/* Reset básico para evitar scroll horizontal */
body {
  padding-top: 90px; /* Ajusta si navbar es más alto */
  font-family: 'Poppins', sans-serif;
  color: #222;
  background-color: #fafafa;
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 16px;
}


.hero {
  position: relative;
  height: 75vh;
  background: linear-gradient(135deg, rgba(12, 100, 116, 0.95) 0%, rgba(130, 183, 196, 0.95) 100%),
              url('../imagenes/QuienesSomosPortada.png') center center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 1rem;
  overflow: hidden;
}

.hero-content {
  max-width: 720px;
  animation: fadeInUp 1.2s ease forwards;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 1.5rem;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  line-height: 1.5;
}

.hero .btn {
  font-weight: 600;
  background-color: #06b6d4;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  color: white;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.5);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero .btn:hover,
.hero .btn:focus {
  background-color: #054f5e;
  transform: scale(1.07);
  box-shadow: 0 6px 18px rgba(4, 140, 168, 0.7);
}

/* Animación para fadedown y fadeup combinados en una sola */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll animation */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- SECCIONES --- */
.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: #0592b8;
  margin-bottom: 3rem;
  position: relative;
  letter-spacing: 1.25px;
}

.section-title::after {
  content: '';
  display: block;
  height: 4px;
  width: 70px;
  background: #0592b8;
  margin: 0.8rem auto 0;
  border-radius: 4px;
  box-shadow: 0 2px 6px #0592b8aa;
}

/* --- TARJETAS MISIÓN / VISIÓN --- */
.mission-card {
  background: #ffffffee;
  border-radius: 1rem;
  padding: 1.8rem 1.5rem;
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.07);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 1px solid #e3f0f8;
}

.mission-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.12);
}

.mission-card .card-title {
  color: #0592b8;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* --- EQUIPO --- */
.team-member {
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  padding: 15px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 10px rgba(0,0,0,0.05);
}

.team-member:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 30px rgba(0,0,0,0.12);
}

.team-member .img-container {
  width: 180px;
  height: 180px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.4s ease;
}

.team-member:hover .img-container {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.21);
}

.team-member img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  border-radius: 50%;
}

.team-member:hover img {
  transform: scale(1.12);
}

/* Video estilizado */
section video {
  border-radius: 1rem;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
  max-width: 100%;
}

/* Fondos secciones alternados */
section.bg-light {
  background-color: #f5f9fb;
}

/* Ajustes responsive para textos en secciones */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.4rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .mission-card {
    padding: 1.4rem 1.2rem;
  }
}
