/* PAGINACIÓN */
#pag-cover {
  width: 750px;
  max-width: 95%;
  color: #fff;
  line-height: 1;
  margin: -10px auto 20px auto;
  background-color: #051E50;
  border-radius: 4px;
  box-shadow: 0 5px 5px hsla(225, 58%, 35%, 0.32);
  user-select: none;
  overflow-x: auto;
  scrollbar-width: none;
}
#pag-cover::-webkit-scrollbar {
  display: none;
}
#pg-links {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
}
.pg-fixed {
  background-color: #051E50;
  z-index: 2;
  flex-shrink: 0;
}
#links {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  flex: 1;
}
.pg-link {
  flex-shrink: 0;
  color: #fff;
  font-size: 15px;
  text-align: center;
  padding: 15px 20px;
  background-color: transparent;
  transition: 0.2s ease background-color, 0.3s ease color;
  white-space: nowrap;
}
.pg-link:hover {
  background-color: #2d59d6;
}
.pi-section-white a {
  color: #ccd2dd;
}

/* GALERÍA DE NOTICIAS Y ESTRUCTURA */
#main-container {
  margin: 0 auto;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 20px;
}
.gallery-item {
  width: calc(25% - 20px);
  margin-bottom: 10px;
  text-align: left;
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  box-sizing: border-box;
}
.gallery-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  filter: brightness(0.7);
  transition: filter 0.3s;
}
.gallery-item:hover .gallery-img {
  filter: brightness(1);
}
.details {
  text-align: left;
  padding: 10px;
}
.gallery-title {
  margin: 0 0 10px 0;
  font-size: 13px;
}
.gallery-link {
  color: #333;
  text-decoration: none;
  display: block;
}



/* RESPONSIVE */
@media screen and (max-width: 768px) {
  .gallery-img {
    height: 200px;
  }
  #main-container {
    justify-content: center;
  }
  .gallery-item {
    width: 100%;
  }
  .details {
    padding: 5px;
  }
}

/* Integración visual con hz-internas.css */

.gallery-title b {
  color: #003366;
  font-size: 1rem;
  font-weight: 600;
  display: block;
  margin-top: 0.5rem;
  line-height: 1.4;
}

.details .pi-meta {
  font-size: 0.85rem;
  color: #1c1c1c;
  opacity: 0.8;
}

.gallery-link:hover b {
  color: #00549c;
}

#main-container {
  max-width: 1200px;
  padding: 2rem 1rem;
  margin: auto;
}

.gallery-item {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.gallery-img {
  border-radius: 0;
  box-shadow: none;
}

.pi-meta li i {
  color: #003366;
}

/* === NUEVA ESTRUCTURA PARA PÁGINA DE NOTICIAS === */

#pi-all {
  background-color: #fafafa;
  font-family: "Segoe UI", sans-serif;
  color: #1c1c1c;
}

#main-container {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 6rem 0rem 1rem 0rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.gallery-item {
  width: calc(33.333% - 2rem);
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
}

.gallery-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  filter: brightness(0.9);
  transition: filter 0.3s ease;
}

.gallery-item:hover .gallery-img {
  filter: brightness(1);
}

.gallery-title {
  font-size: 1rem;
  padding: 1rem;
  text-align: center;
  margin: 0;
}

.gallery-link {
  color: #003366;
  text-decoration: none;
}

.details {
  padding: 0 1rem 1rem;
}

.pi-meta {
  font-size: 0.85rem;
  color: #444;
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.pi-meta li {
  display: flex;
  align-items: center;
}

.pi-meta li i {
  margin-right: 4px;
  color: #003366;
}

/* Responsive */
@media (max-width: 1024px) {
  .gallery-item {
    width: calc(50% - 2rem);
  }
}

@media (max-width: 600px) {
  .gallery-item {
    width: 100%;
  }
}

/* PAGINACIÓN */
#pag-cover {
  width: 90%;
  max-width: 960px;
  margin: 2rem auto;
  padding: 10px;
  background-color: #003366;
  border-radius: 6px;
  overflow-x: auto;
  color: #fff;
}

#pg-links {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
}

#links {
  display: flex;
  gap: 1rem;
  white-space: nowrap;
}

.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;
}

.pg-link a:hover {
  background: #1d4e89;
}

/* 5. BLOQUE FINAL: BANNER DE SERVICIOS LEGALES */

.hz-banner-servicios {
  position: relative;
  background-color: #1663ac;
  overflow: hidden;
  text-align: center;
  padding: 60px 20px 40px;
}

.hz-banner-fondo {
  position: absolute;
  inset: 0;
  background-image: url('/componentes/imagenes/hexagon-trama.webp');
  background-repeat: repeat;
  background-size: auto;
  opacity: 1;
  z-index: 1;
}

.hz-banner-contenido {
  position: relative;
  z-index: 2;
}

.hz-banner-texto {
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 500;
  margin: 0;
}
/* BLOQUE INTRODUCTORIO ÍNDICE DE REPORTES */

.hz-indice-intro {
  max-width: 900px;
  margin: 0 auto 50px;
  padding: 0 20px;
  color: #1c1c1c;
  line-height: 1.7;
}

.hz-indice-titulo {
  font-size: 2rem;
  font-weight: 700;
  color: #003366;
  margin-bottom: 16px;
}

.hz-indice-intro p {
  font-size: 1rem;
  margin-bottom: 14px;
  text-align: justify;
}

.hz-indice-intro strong {
  color: #003366;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hz-indice-titulo {
    font-size: 1.6rem;
  }

  .hz-indice-intro {
    margin-bottom: 40px;
  }
}
