/* ===================== HERO NOSOTROS ===================== */  
.hero-nosotros {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #f0f8ff; /* fondo suave */
}

.hero-nosotros h1 {
  font-size: 2.5rem;
  color: #003366;
  margin-bottom: 1rem;
}

.hero-nosotros p {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================== SELLOS ===================== */
.sellos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.sello {
  background-color: #ffffff;
  padding: 1.5rem 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  max-width: 250px;
  flex: 1 1 200px;
  text-align: center;

  /* NUEVO: para alinear elementos verticalmente */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Títulos */
.sello h3 {
  font-size: 1.5rem;
  color: #0077cc;
  margin-bottom: 0.5rem;
}

/* Texto */
.sello p {
  font-size: 1rem;
  color: #333;
  line-height: 1.5;

  /* NUEVO: altura fija para que todos los textos ocupen lo mismo */
  min-height: 80px; /* puedes ajustarlo según tu contenido */
}

/* Imagen dentro de los sellos */
.sello img {
  display: block;
  margin: 0 auto;
  max-width: 200px;
  opacity: 0.8;
  transition: opacity 0.3s ease;

  /* NUEVO: asegura que TODAS las imágenes están en la misma altura */
  margin-top: auto;
}

.sello img:hover {
  opacity: 1;
}


/* ===================== SECCIONES ===================== */
.section {
  background-color: #f9f9f9;
  padding: 3rem 2rem;
  margin: 2rem auto;
  border-radius: 10px;
  max-width: 1000px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #003366;
  text-align: center;
}

.section p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  text-align: justify;
}

/* ===================== HISTORIA ===================== */
.historia-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.historia-texto {
  flex: 1 1 400px;
}

.historia-imagenes {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.historia-imagenes .img-lado {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.historia-imagenes .img-abajo {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

/* ===================== RESPONSIVO ===================== */
@media (max-width: 768px) {
  .hero-nosotros h1 {
    font-size: 2rem;
  }

  .hero-nosotros p {
    font-size: 1rem;
  }

  .sellos {
    flex-direction: column;
    align-items: center;
  }

  .historia-section {
    flex-direction: column;
  }

  .historia-imagenes {
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  .hero-nosotros h1 {
    font-size: 1.5rem;
  }

  .hero-nosotros p {
    font-size: 0.9rem;
  }

  .sello {
    max-width: 100%;
  }
}

/* ===================== MOSTRAR FLECHAS SUBMENU SOLO EN MÓVIL ===================== */
@media (max-width: 900px) {
  .nav__list .has-submenu > .submenu-toggle {
    display: inline-block; /* Mostrar flecha en móvil */
  }
}

@media (min-width: 901px) {
  .nav__list .has-submenu > .submenu-toggle {
    display: none; /* Ocultar flecha en escritorio */
  }
}
.menu-toggle:checked ~ .nav .has-submenu > .submenu-toggle {
    display: inline-block; /* Mostrar flecha al abrir menú */
}
