/* 1. ESTILOS GENERALES DE ÁREAS */

.pagina-interna {
  padding: 10rem 2rem 4rem;
  background: #fafafa;
  font-family: "Segoe UI", sans-serif;
  line-height: 1.65;
  color: #1c1c1c;
}

.pagina-interna .hz-header h1 {
  font-size: 2rem;
  color: #003366;
  text-align: center;
  margin-bottom: 0.3rem;
}

/* 2. ENCABEZADOS Y SUBTÍTULOS  */

.hz-header h1 {
  font-size: 2rem;
  color: #003366;
  text-align: center;
  margin-bottom: 0.3rem;
}

.hz-subtitulo {
  font-size: 1.1rem;
  color: #555;
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 760px;
  margin-inline: auto;
}

.hz-fusiones .hz-header h1 {
  color: #4b0055;
}

/* 3. CONTENIDO INTERNO DE TEXTO */

.hz-contenido {
  max-width: 960px;
  margin: auto;
  padding: 0 1rem;
}

.hz-contenido p {
  margin-top: 1rem;
  font-size: 1rem;
  text-align: justify;
}


.hz-contenido h2 {
  font-size: 1.2rem;
  color: #004080;
  margin-top: 2rem;
  border-left: 4px solid #cce0f5;
  padding-left: 0.8rem;
}

.hz-fusiones .hz-contenido h2 {
  color: #660077;
  border-left-color: #e4d1ed;
}

.hz-contenido h3 {
  font-size: 1.2rem;
  color: #004080;
  margin-top: 2rem;
  border-left: 4px solid #cce0f5;
  padding-left: 0.8rem;
}

.hz-fusiones .hz-contenido h3 {
  color: #660077;
  border-left-color: #e4d1ed;
}

/* 4. IMÁGENES DE CABECERA       */

.hz-hero-imagen {
  max-width: 900px;
  width: 100%;
  margin: 0 auto 2.5rem auto;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #d0d6dc;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.hz-hero-imagen img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center center;
}


/* 7. GALERÍA DE ALIANZA LEGAL */

.hz-galeria-alianza {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 3rem auto;
  padding: 0 1rem;
  max-width: 1200px;
}

.hz-galeria-alianza .hz-item {
  flex: 1 1 160px;
  max-width: 200px;
  text-align: center;
  background: #fff;
  border-radius: 8px;
  padding: 0.5rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hz-galeria-alianza .hz-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.hz-galeria-alianza .hz-item h3 {
  font-size: 0.95rem;
  color: #003366;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  margin-top: 0.5rem;
  font-weight: 700;

}

.hz-galeria-alianza .hz-item img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: contain;
}

/* 7. ESTILO PARA LISTAS */

.hz-contenido ul,
.hz-contenido ol {
  margin-top: 1rem;
  margin-left: 2rem;
  padding-left: 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
}

.hz-contenido ul li {
  list-style-type: disc;
}

.hz-contenido ol li {
  list-style-type: upper-roman;
  /* O usa 'upper-alpha', 'lower-alpha' según el contexto */
}

.hz-contenido li::marker {
  color: #003366;
  font-weight: bold;
}

/* 8. LISTA DE ENLACES TIPO TARJETA */

.hz-servicios-tarjetas {
  margin-top: 50px;
  padding: 0 20px;
}

.hz-servicios-tarjetas h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.hz-servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.hz-tarjeta-servicio {
  background: #f4f4f4;
  border-radius: 10px;
  padding: 16px 20px;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
  border: 1px solid #ddd;
}

.hz-tarjeta-servicio .titulo {
  font-weight: 500;
  color: #333;
  flex-grow: 1;
}

.hz-tarjeta-servicio i {
  font-size: 16px;
  color: #007bff;
}

.hz-tarjeta-servicio:hover {
  background: #e9f0ff;
}

/* 9. TESTIMONIALES EN VIDEO */

.hz-testimoniales {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 30px 0;
}

.hz-testimonio {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.hz-video {
  flex: 1 1 60%;
  min-width: 300px;
}

.hz-video iframe {
  width: 100%;
  height: 260px;
  border-radius: 10px;
  border: none;
}

.hz-video-descripcion {
  flex: 1 1 35%;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hz-video-descripcion h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 5px;
}

.hz-video-descripcion p {
  font-size: 16px;
  color: var(--gris-oscuro, #555);
}

/* Responsive */
@media (max-width: 768px) {
  .hz-testimonio {
    flex-direction: column;
  }

  .hz-video iframe {
    height: 220px;
  }

  .hz-video-descripcion h3,
  .hz-video-descripcion p {
    text-align: center;
  }
}

/*****************  FAQ ********/
  .hz-faq-item {
      margin-bottom: 2rem;
      border-bottom: 1px solid #ddd;
      padding-bottom: 1.5rem;
    }

    .hz-faq-item h3 {
      font-size: 1.25rem;
      margin-bottom: 0.75rem;
      font-weight: 600;
      color: #333;
    }

    .hz-faq-item p {
      font-size: 1rem;
      line-height: 1.6;
      color: #555;
    }

    /* ============================================
   PÁGINA 404 - ERROR NO ENCONTRADO
   ============================================ */
.pagina-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    background-color: #f8f9fa;
}

.contenido-404 {
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.ilustracion-404 {
    max-width: 200px;
    height: auto;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.titulo-404 {
    font-size: 2.5rem;
    color: #001c55;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.texto-404 {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

.boton-404 {
    display: inline-block;
    background-color: #001c55;
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
    opacity: 0;
}

.boton-404:hover {
    background-color: #003399;
    transform: scale(1.05);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .titulo-404 {
        font-size: 2rem;
    }
    
    .texto-404 {
        font-size: 1rem;
    }
    
    .ilustracion-404 {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .titulo-404 {
        font-size: 1.8rem;
    }
    
    .boton-404 {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

/* Ajuste específico para Nosotros */

.hz-servicios-tarjetas {
  max-width: 900px;
  margin-inline: auto;
}

.hz-servicios-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 420px));
  justify-content: center;
}