/* ================================
   PÁGINAS.CSS — VERSIÓN FINAL OPTIMIZADA
   ================================ */

/* 🔤 Tipografía general */
body {
  font-family: 'Poppins', sans-serif;
  color: #1E3A8A;
  line-height: 1.6;
  background-color: #f9f9fb;
  scroll-behavior: smooth;
}

/* 🎯 Hero principal */
#hero {
  color: #fff;
  text-align: center;
  padding: 8rem 1rem;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 50, 0.6), rgba(0, 0, 100, 0.15));
  z-index: 0;
}

#hero * {
  position: relative;
  z-index: 1;
}

#hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1.2s ease forwards;
}

#hero .subtexto {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 1rem;
  animation: fadeInUp 1.5s ease forwards;
}

#hero .btn {
  margin-top: 2.2rem;
  background: linear-gradient(135deg, #D4A940, #E2BB53);
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 10px;
  transition: all 0.4s ease;
  animation: fadeInUp 1.8s ease forwards;
}

#hero .btn:hover {
  background: linear-gradient(135deg, #b98b28, #e0b23c);
  transform: scale(1.05);
  box-shadow: 0 4px 18px rgba(212, 169, 64, 0.4);
}

/* ✨ Animaciones de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 📦 Secciones generales */
section {
  padding: 5rem 1.5rem;
}

.seccion-clara {
  background-color: #f7f8fb;
}

.seccion-oscura {
  background-color: #1E3A8A;
  color: #fff;
}

/* 🧭 Contenedor general */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* 🧩 3 Pasos */
#pasos h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
  color: #1E3A8A;
}

#pasos .card {
  background: #fff;
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

#pasos .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

#pasos .card h3 {
  margin-bottom: 1rem;
  font-weight: 700;
  color: #1E3A8A;
}

#pasos .card p {
  color: #3C4D94;
}
/* 🖼 Iconos de los 3 pasos */
#pasos .icono {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.2rem;
  background-color: #F1F3F8;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#pasos .icono img {
  width: 38px;
  height: 38px;
  filter: invert(21%) sepia(77%) saturate(830%) hue-rotate(195deg) brightness(91%) contrast(96%);
  transition: transform 0.3s ease;
}

#pasos .card:hover .icono {
  transform: scale(1.08);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

#pasos .card:hover .icono img {
  transform: scale(1.1);
}


/* 👤 Sección del coach (centrada y balanceada, versión final) */
#presentacion {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  background-color: #1E3A8A;
  color: #f4f6ff;
  padding: 5rem 2rem;
}

#presentacion .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.presentacion-texto {
  flex: 1 1 500px;
  color: #f4f6ff;
}

.presentacion-texto h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.presentacion-texto h3 {
  font-weight: 500;
  color: #D4A940;
  margin-bottom: 1.5rem;
}

.presentacion-texto p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.presentacion-texto .btn {
  background: linear-gradient(135deg, #D4A940, #E2BB53);
  color: #fff;
  font-weight: 600;
  padding: 0.8rem 1.8rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  margin-top: 1.5rem;
}

.presentacion-texto .btn:hover {
  background: linear-gradient(135deg, #b98b28, #e0b23c);
  transform: scale(1.05);
}

.presentacion-imagen {
  flex: 1 1 420px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.presentacion-imagen img {
  width: 90%;
  max-width: 430px;
  border-radius: 12px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.presentacion-imagen img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* 🌐 Ecosistema */
#ecosistema h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
  color: #1E3A8A;
}

#ecosistema .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
}

#ecosistema .card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#ecosistema .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

#ecosistema img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

#ecosistema .card h3 {
  padding: 1rem 1.5rem 0;
  color: #1E3A8A;
}

#ecosistema .card p {
  padding: 0 1.5rem 1rem;
  color: #333;
}

#ecosistema .btn {
  margin: 0 1.5rem 1.5rem;
  background-color: #1E3A8A;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

#ecosistema .btn:hover {
  background-color: #D4A940;
  color: #fff;
  transform: scale(1.04);
}

/* 💬 Testimonios */
#testimonios {
  background: linear-gradient(180deg, #1E3A8A 0%, #243E90 100%);
  color: #fff;
  text-align: center;
  padding: 5rem 1.5rem;
}

#testimonios h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.3rem;
  font-weight: 700;
  color: #FFD66B; /* amarillo cálido con contraste */
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

/* Línea decorativa elegante debajo del título */
#testimonios h2::after {
  content: "";
  display: block;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, #D4A940, #E2BB53);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}


#testimonios .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

#testimonios .card {
  background: #fff;
  color: #1E3A8A;
  border-radius: 14px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#testimonios .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.15);
}

#testimonios .card p {
  font-style: italic;
  color: #3C4D94;
}

/* 💬 CTA Final */
#cta-final {
  text-align: center;
  color: #fff;
  padding: 6rem 2rem;
  background-size: cover;
  background-position: center;
  background: linear-gradient(135deg, #243E90, #1E3A8A);
  position: relative;
}

#cta-final h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.97);
  margin-bottom: 2rem;
}

#cta-final .btn {
  background-color: #D4A940;
  color: #fff;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

#cta-final .btn:hover {
  background-color: #b98b28;
  transform: scale(1.05);
}

/* 🌀 Efecto “breathing” del CTA */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#cta-final {
  background: linear-gradient(270deg, #1E3A8A, #243E90, #1E3A8A);
  background-size: 400% 400%;
  animation: gradientMove 15s ease infinite;
}

/* 📱 Responsividad */
@media (max-width: 900px) {
  #presentacion .container {
    flex-direction: column-reverse;
    text-align: center;
    padding: 3rem 1rem;
  }

  .presentacion-imagen img {
    width: 85%;
    margin-bottom: 2rem;
  }

  #hero {
    padding: 6rem 1rem;
  }

  section {
    padding: 3.5rem 1rem;
  }

  #ecosistema .grid,
  #testimonios .grid {
    grid-template-columns: 1fr;
  }
}

/* 🌀 Animación del botón CTA */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

#cta-final .btn {
  animation: pulse 10s infinite ease-in-out;
}

