@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
:root {
  --azul-principal: #004171;
  --azul-secundario1: #0d5575;
  --azul-secundario2: #297ba2;
  --azul-secundario3: #389eb0;
  --color-destacado: #FF9154;
  --gris-fondo: #f9f9f9;
}
/*SECCIÓN BOLETIN DE DIFUSIÓN*/
.boletines-archive {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

.boletin-card-imagen {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.boletin-card-imagen img {
    width: 100%;
    height: 100%;
    display: block;
}

.boletines-archive h1 {
    text-transform: uppercase;
    font-size: 2rem;
    font-weight: 700;
    color: var(--azul-principal);
    margin-bottom: 0.5rem;
    border-bottom: 3px solid var(--azul-secundario1);
    padding-bottom: 0.5rem;
    letter-spacing: 1px;
}

.boletines-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.boletin-item {
    background: #f9faff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
    padding: 1rem;
    transition: box-shadow 0.3s ease;
}

.boletin-item:hover {
    box-shadow: 0 6px 12px rgb(0 0 0 / 0.15);
}

.boletin-item a {
    text-decoration: none;
    color: #003366;
}

.boletin-item a:hover {
    text-decoration: underline;
}

.boletin-item img {
    width: 100%;        
    height: 350px;
    object-fit: contain; 
    border-radius: 6px;
    margin-bottom: 1rem;
    display: block;
}

.boletin-item h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.boletin-excerpt {
    font-size: 1rem;
    color: #444;
    line-height: 1.4;
}

.boletines-pagination {
    margin: 2rem 0;
    text-align: center;
}

.boletines-pagination .page-numbers {
    display: inline-block;
    margin: 0 0.25rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    background-color: #e1e8f0;
    color: #004080;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.boletines-pagination .page-numbers.current {
    background-color: #004080;
    color: white;
}

.boletines-pagination .page-numbers:hover {
    background-color: #0073e6;
    color: white;
}

.contenedor-boletin {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: #f9f9f9;
}

.boletin-individual {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.boletin-header {
    border-bottom: 1px solid var(--azul-principal);
    margin-bottom: 1rem;
}

.boletin-titulo {
    font-size: 2rem;
    margin: 0;
    background-color: var(--azul-principal);
    color: var(--gris-fondo);
    padding: 10px;
}

.boletin-contenido {
    line-height: 1.6;
}

.boletin-contenido img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.boletin-navegacion, .noticia-navegacion {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

.boletin-anterior a,
.noticia-anterior a,
.boletin-siguiente a,
.noticia-siguiente a {
    text-decoration: none;
    color: #0073aa;
    font-weight: bold;
}

.boletin-anterior a:hover,
.noticia-anterior a:hover,
.boletin-siguiente a:hover,
.noticia-siguiente a:hover {
    color: #005177;
}

/* ARCHIVE BOLETINES */
.boletines-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:2rem;
    margin:30px;
}

.boletin-card{
    background:white;
    border-radius:8px;
    overflow:hidden;
    box-shadow:0 2px 8px rgba(0,0,0,0.08);
    display:flex;
    flex-direction:column;
    transition:transform .2s;
}

.boletin-card:hover{
    transform:translateY(-4px);
}

.boletin-img img{
    width:100%;
    height:200px;
    object-fit:cover;
    display:block;
}

.boletin-content{
    padding:20px;
    display:flex;
    flex-direction:column;
    flex:1;
}

.boletin-fecha{
    font-size:18px;
    color:#64748b;
    margin-bottom:8px;
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 2px;
    font-family: Arial, sans-serif;
}

.boletin-title{
    font-size:20px;
    margin-bottom:10px;
}

.boletin-title a{
    text-decoration:none;
    color:#0b3d5c;
}

.boletin-excerpt{
    font-size:15px;
    margin-bottom:15px;
}

.boletin-btn{
    margin-top:auto;
    display:inline-block;
    padding:8px 14px;
    background:#0b3d5c;
    color:white;
    text-decoration:none;
    border-radius:4px;
    font-size:14px;
}

.boletin-btn:hover{
    background:#095079;
}

/* CONTENEDOR FILTROS */
.boletines-filtros{
    display:flex;
    gap:15px;
    margin-bottom:30px;
    flex-wrap:wrap;
    align-items:center;
}

/* FORMULARIO BUSCADOR */
.boletin-buscador{
    display:flex;
    gap:10px;
}

/* INPUT BUSQUEDA */
.boletin-buscador input{
    padding:10px 12px;
    border:1px solid #ccc;
    border-radius:6px;
    font-size:14px;
    min-width:220px;
}

/* BOTON BUSCAR */
.boletin-buscador button{
    padding:10px 18px;
    background:#0b3d5c;
    color:white;
    border:none;
    border-radius:6px;
    font-weight:600;
    cursor:pointer;
    transition:background 0.3s ease;
}

/* HOVER BOTON */
.boletin-buscador button:hover{
    background:#072c42;
}
.boletin-lista-titulos{
    margin-top:10px;
    padding-left:20px;
}

.boletin-lista-titulos li{
    margin-bottom:5px;
    font-size:0.95rem;
    color:#333;
}

/*SINGLE BOLETINES*/
.boletin-items{
    margin-top:40px;
}


.boletin-item-imagen img{
    max-width:100%;
    border-radius:6px;
    margin-bottom:10px;
}

.boletin-item {
    margin-bottom: 45px; 
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.boletin-item-header {
    background-color: #f8fafc; 
    padding: 15px;
    border-left: 4px solid #389eb0; 
    border-radius: 0 4px 4px 0;
    margin-bottom: 15px;
}

.boletin-item-titulo {
    font-size: 18px;
    color: #1a1a1a; 
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
    font-family: Arial, sans-serif;
}

.boletin-item-imagen img{
    width:420px;
    height:auto;
    border-radius:6px;
}

.boletin-item-imagen{
    display: flex;
    align-items: center;
    justify-content: center;
}

.boletin-item-titulo{
    margin:0;
}

.boletin-item-contenido{
    text-align:justify
}

.boletin-lista-titulos a {
    text-decoration: none;
    color: #004171;
    display: block;
    padding: 5px 0;
}

.boletin-lista-titulos a:hover {
    text-decoration: underline;
}
.boletin-lista-titulos {
    list-style: none;
    padding-left: 0;
}

.boletin-lista-titulos li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
}

.boletin-lista-titulos li::before {
    content: "\f1ea"; 
    font-family: "Font Awesome 5 Free"; 
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #004171;
}
.boletin-categoria {
    text-transform: uppercase;
    font-size: 22px;
    background: #004171;
    color: #fff;
    padding: 10px 15px;
    margin: 30px 0 15px;
    border-radius: 4px;
}

.boletin-separador {
    margin: 40px 0;
    border-top: 1px dashed #cbd5e1;
    height: 1px;
    width: 100%;
    display: block;
}

.boletin-item-imagen img {
    width: 100%;
    max-width: 550px; 
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 10px;
    background: #f8fafc;
}

.boletin-item-contenido {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.7;
    text-align: justify;
    font-family: Arial, sans-serif;
}

/* Mobile */
@media (max-width: 768px) {
  .boletin-header-wrapper {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
  }

  .boletin-imagen {
    flex: 0 0 200px; 
  }

  .boletin-header-texto {
    flex: 1;
  }
  .boletines-grid{
    grid-template-columns:repeat(2,1fr);
  }
  .boletin-item img {        
    height: auto;
  }
}

@media (min-width: 768px) and (max-width: 1024px)  {
  .contenedor-boletin {
    padding: 1.5rem 1rem;
  }
  
  .boletines-list {
    grid-template-columns: repeat(1, 1fr);
  } 
  
  .contenedor-boletin h1,
  .boletin-titulo {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
  }

  .boletin-fecha {
    font-size: 0.75rem;
    color: #888;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .boletin-contenido {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .boletin-contenido img {
    max-width: 100%;
    height: 100%;
    margin-bottom: 1rem;
    display: block;
  }
  
  .boletin-item img {       
    height: 350px;
  }
  
  .boletin-lista-titulos a {
  font-size: 20px;
  }
  
  .boletin-navegacion {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    border-top: 1px solid #ddd;
    padding-top: 1rem;
  }

  .boletin-anterior a,
  .boletin-siguiente a {
    font-size: 0.9rem;
    text-decoration: none;
    color: #0073aa;
    background: #f5f5f5;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
  }

  .boletin-anterior a:hover,
  .boletin-siguiente a:hover {
    background: #0073aa;
    color: #fff;
  }
}


