/* ============================================
   ÍNDICE COMPARTIDO: PUBLICACIONES Y REPORTES
   Estructura común para galerías y listados
   Versión Neutra - Optimizada 2026
   ============================================ */

/* ============================================
   CONTENEDOR PRINCIPAL Y TITULOS
   ============================================ */
#main-container {
  margin: 0 auto;
  padding: 10px;
  max-width: 1200px;
}

.hnz-page-padding {
  padding-top: 120px !important;
}

.hnz-titulo-seccion {
  font-size: 2.2rem;
  text-align: center;
  margin: 2rem 0 1.5rem;
  color: #0a2e5a;
  font-weight: 600;
}

.hnz-titulo-mes {
  font-size: 1.8rem;
  margin: 2.5rem 0 1.5rem;
  color: #0a2e5a;
  border-bottom: 2px solid #0a2e5a;
  padding-bottom: 0.5rem;
  font-weight: 500;
}

.hnz-sin-noticias {
  text-align: center;
  padding: 3rem;
  font-size: 1.2rem;
  color: #666;
  background: #f9f9f9;
  border-radius: 8px;
}

/* ============================================
   GALERÍA PRINCIPAL (3 columnas)
   ============================================ */
.hnz-gallery {
  margin: 2rem auto;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 20px;
  max-width: 1100px;
}

.hnz-gallery-item {
  width: calc(33.333% - 20px);
  margin-bottom: 20px;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hnz-gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.hnz-gallery-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  filter: brightness(0.9);
  transition: filter 0.3s ease;
}

.hnz-gallery-item:hover .hnz-gallery-img {
  filter: brightness(1);
}

.hnz-gallery-title {
  font-size: 1rem;
  padding: 1rem 1rem 0.5rem;
  text-align: center;
  margin: 0;
}

.hnz-gallery-link {
  color: #003366;
  text-decoration: none;
  display: block;
}

.hnz-gallery-link b {
  color: #003366;
  font-size: 1rem;
  font-weight: 600;
  display: block;
  margin-top: 0.5rem;
  line-height: 1.4;
  transition: color 0.2s;
}

.hnz-gallery-link:hover b {
  color: #00549c;
}

.hnz-details {
  padding: 0 1rem 1rem;
  text-align: left;
}

.hnz-pi-meta {
  font-size: 0.85rem;
  color: #444;
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.hnz-pi-meta li {
  display: flex;
  align-items: center;
  color: #1c1c1c;
  opacity: 0.8;
}

.hnz-pi-meta li i {
  margin-right: 4px;
  color: #003366;
}

/* ============================================
   SECCIÓN DE PUBLICACIONES ANTERIORES (ACORDEÓN)
   ============================================ */
.publicaciones-anteriores {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  padding: 40px 20px;
  background-color: #f9f9f9;
  border-top: 1px solid #e1e1e1;
  margin: 40px 0;
  border-radius: 8px;
}

.publicaciones-anteriores h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgb(88, 35, 211);
  text-align: center;
}

/* ACORDEÓN MEJORADO */
.acordeon-item {
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.acordeon-item:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.acordeon-header {
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
  border: none;
  border-bottom: 1px solid #ddd;
  text-align: left;
  font-size: 1.2rem;
  font-weight: 600;
  color: #0a2e5a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}

.acordeon-header:hover {
  background: linear-gradient(to bottom, #e9ecef, #dee2e6);
}

.acordeon-contador {
  font-size: 0.9rem;
  color: #666;
  font-weight: normal;
  margin-left: 10px;
}

.acordeon-icono {
  font-size: 1rem;
  transition: transform 0.3s ease;
  color: #0a2e5a;
}

.acordeon-item.abierto .acordeon-icono {
  transform: rotate(180deg);
}

.acordeon-contenido {
  padding: 20px;
  background: white;
  transition: all 0.3s ease;
}

/* LISTA DE PUBLICACIONES - MEJORADA */
.lista-publicaciones {
  list-style-type: none;
  padding: 0;
  margin: 0;
  counter-reset: publication-counter;
}

.lista-publicaciones li {
  counter-increment: publication-counter;
  padding: 14px 15px 14px 55px;
  margin-bottom: 8px;
  background-color: #f8f9fa;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  position: relative;
  border-left: 3px solid transparent;
}

.lista-publicaciones li:hover {
  transform: translateX(3px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  border-left-color: rgb(60, 86, 231);
  background-color: white;
}

.lista-publicaciones li::before {
  content: counter(publication-counter);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgb(60, 86, 231);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(60, 86, 231, 0.3);
}

.lista-publicaciones a {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  margin-right: 10px;
  transition: color 0.2s;
  font-size: 1rem;
}

.lista-publicaciones a:hover {
  color: rgb(60, 86, 231);
  text-decoration: underline;
}

.lista-publicaciones .date {
  color: #7f8c8d;
  font-size: 0.9rem;
  font-style: italic;
}

/* ============================================
   PAGINACIÓN (si se usa)
   ============================================ */
#pag-cover {
  color: #fff;
  line-height: 1;
  margin: 20px auto;
  background-color: #051E50;
  border-radius: 8px;
  box-shadow: 0 5px 5px hsla(225, 58%, 35%, 0.32);
  user-select: none;
  overflow-x: auto;
  scrollbar-width: none;
  width: 90%;
  max-width: 960px;
  padding: 10px;
}

#pag-cover::-webkit-scrollbar {
  display: none;
}

#pg-links {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  justify-content: center;
}

#links {
  display: flex;
  gap: 0.5rem;
  white-space: nowrap;
}

.pg-link {
  flex-shrink: 0;
  color: #fff;
  font-size: 15px;
  text-align: center;
  padding: 8px 12px;
  background-color: transparent;
  transition: 0.2s ease background-color;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
}

.pg-link:hover {
  background-color: #2d59d6;
}

.pg-link a {
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 12px;
  text-decoration: none;
  transition: background 0.2s ease;
  border-radius: 4px;
  display: inline-block;
}

.pg-link a:hover {
  background: #1d4e89;
}

/* ============================================
   RESPONSIVE - OPTIMIZADO
   ============================================ */
@media (max-width: 1100px) {
  .hnz-gallery {
    max-width: 95%;
    padding: 10px 15px;
  }
  
  .hnz-gallery-item {
    width: calc(50% - 20px);
  }
}

@media (max-width: 992px) {
  .hnz-titulo-seccion {
    font-size: 2rem;
  }
  
  .hnz-titulo-mes {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .hnz-gallery-item {
    width: 100%;
  }
  
  .hnz-gallery {
    justify-content: center;
    gap: 15px;
    max-width: 100%;
    padding: 10px;
  }
  
  .hnz-gallery-img {
    height: 200px;
  }
  
  .publicaciones-anteriores {
    padding: 30px 15px;
  }
  
  .publicaciones-anteriores h2 {
    font-size: 1.7rem;
  }
  
  .acordeon-header {
    font-size: 1rem;
    padding: 14px 15px;
  }
  
  .lista-publicaciones li {
    padding: 12px 12px 12px 45px;
    font-size: 0.95rem;
  }
  
  .lista-publicaciones li::before {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
    left: 10px;
  }
  
  .lista-publicaciones .date {
    display: block;
    margin-top: 5px;
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .publicaciones-anteriores h2 {
    font-size: 1.5rem;
  }
  
  .lista-publicaciones li {
    padding: 10px 10px 10px 40px;
    font-size: 0.9rem;
  }
  
  .lista-publicaciones li::before {
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
  }
}





/* ============================================
   ESTILOS PARA BLOQUE OBSERVATORIO EN REPORTES
   ============================================ */

/* Contenedor principal */
.hz-indice-intro {
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Header con icono y texto (estilo home) */
.obs-header-block {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.obs-icon {
    flex-shrink: 0;
}

.obs-icon img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 16px;
}

.obs-text-content {
    flex: 1;
}

.obs-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #d1a000fb;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.obs-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #003366;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.obs-subtitle {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* Descripción */
.obs-description p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1.2rem;
}

.obs-description p:last-child {
    margin-bottom: 0;
}

.obs-description strong {
    color: #003366;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .obs-header-block {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .obs-title {
        font-size: 1.6rem;
    }

    .obs-subtitle {
        font-size: 1rem;
    }

    .hz-indice-intro {
        padding: 1rem 0;
    }
}

@media (max-width: 480px) {
    .obs-title {
        font-size: 1.4rem;
    }

    .obs-icon img {
        width: 70px;
        height: 70px;
    }
}