/* =========================================================================
   1. BASE STYLES & RESET
   ========================================================================= */

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0A0A0A;
  color: #1C1C1C;
  overflow-x: hidden;
}

main {
  width: 100%;
}

/* =========================================================================
   2. REUSABLE COMPONENTS & TYPOGRAPHY
   ========================================================================= */

section {
  padding: 60px 24px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.section-title {
  font-size: 44px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 70px 0;
  color: #fff;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  background: linear-gradient(90deg, #00AEEF, #FECF00);
  border-radius: 10px;
}

/* Keyframe Animations */

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.1); }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-particle {
  0%, 100% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(100px, -800px); opacity: 0; }
}


/* =========================================================================
   3. NAVIGATION (HEADER FIJO)
   ========================================================================= */

.top-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: #00AEEF;
}

.nav-cta {
  padding: 10px 22px;
  background: linear-gradient(90deg, #00AEEF, #3DD9AD);
  border-radius: 40px;
  color: black;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.nav-cta:hover {
  filter: brightness(1.2);
}


/* =========================================================================
   4. HERO SECTION
   ========================================================================= */

.hero {
  background: linear-gradient(135deg, #0A0A0A 0%, #1C1C1C 100%);
  color: white;
  padding: 60px 24px 140px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background effects (Pseudo-elements) */
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #00AEEF 0%, transparent 70%);
  opacity: 0.15;
  border-radius: 50%;
  filter: blur(100px);
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #FECF00 0%, transparent 70%);
  opacity: 0.1;
  border-radius: 50%;
  filter: blur(100px);
  animation: float 10s ease-in-out infinite reverse;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 32px 0;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #FFFFFF 0%, #00AEEF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
  font-size: 22px;
  line-height: 1.7;
  margin: 0 auto 48px; /* Optimizando margin */
  color: #B8C5D0;
  font-weight: 400;
  max-width: 800px;
  animation: fadeInUp 1s ease 0.2s forwards;
  opacity: 0;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #00AEEF 0%, #0096D1 100%);
  color: white;
  padding: 20px 56px;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 174, 239, 0.4);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s ease 0.4s forwards;
  opacity: 0;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 48px rgba(0, 174, 239, 0.6);
}

.cta-button:active {
  transform: translateY(-2px) scale(1.02);
}

/* Countdown */
.countdown {
  margin-top: 25px;
  display: flex;
  gap: 15px;
  justify-content: center;
  font-family: inherit;
}

.countdown-box {
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 18px;
  border-radius: 10px;
  text-align: center;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.countdown-number {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.countdown-label {
  font-size: 0.8rem;
  color: #ddd;
  margin-top: 3px;
}

@media (max-width: 600px) {

  /* Header compacto */
  .top-nav {
    padding: 12px 18px;
  }

  /* El hero se aleja del header, pero mantiene el tamaño del h1 */
  .hero {
    padding-top: 150px; /* antes 60px */
  }

  /* Restauramos tamaños originales del texto */
  .hero h1 {
    font-size: 56px;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 22px;
  }

  /* Ajustes suaves: CTA y contador */
  .cta-button {
    padding: 18px 48px;
    font-size: 18px;
  }

  .countdown {
    margin-top: 25px;
    gap: 12px;
  }
}


/* Hero Footer */
.hero-footer {
  margin-top: 40px;
  font-size: 15px;
  color: #B8C5D0;
  font-weight: 600;
  animation: fadeInUp 1s ease 0.6s forwards;
  opacity: 0;
  display: inline-block;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Particles */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(0, 174, 239, 0.4);
  border-radius: 50%;
  animation: float-particle 15s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; }
.particle:nth-child(7) { left: 70%; animation-delay: 2.5s; }
.particle:nth-child(8) { left: 80%; animation-delay: 4.5s; }
.particle:nth-child(9) { left: 90%; animation-delay: 1.5s; }


/* =========================================================================
   5. BENEFITS BAR
   ========================================================================= */

.benefits-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 15px;
  color: #fff;
}

.benefits-bar span {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
}


/* =========================================================================
   6. PUBLICO (PARA QUIÉN ES)
   ========================================================================= */

#publico {
  padding: 60px 0;
}

.publico-grid {
  max-width: 900px;
  margin: auto;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.publico-item {
  background: rgba(255, 255, 255, 0.06);
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 16px;
  text-align: center;
  transition: 0.3s;
}

.publico-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}


/* =========================================================================
   7. LEARNING SECTION (QUÉ APRENDERÁS)
   ========================================================================= */

.learning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.learning-item {
  text-align: center;
  padding: 48px 32px;
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFB 100%);
  border-radius: 24px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid rgba(0, 174, 239, 0.1);
  overflow: hidden;
}

.learning-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #00AEEF, #FECF00);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.learning-item:hover::before {
  transform: scaleX(1);
}

.learning-item:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 174, 239, 0.15);
  border-color: rgba(0, 174, 239, 0.3);
}

.learning-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 28px;
  background: linear-gradient(135deg, #00AEEF 0%, #0096D1 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 174, 239, 0.3);
  transition: all 0.4s ease;
}

.learning-item:hover .learning-icon {
  transform: rotateY(360deg) scale(1.1);
  box-shadow: 0 12px 32px rgba(0, 174, 239, 0.5);
}

.learning-text {
  font-size: 19px;
  line-height: 1.7;
  color: #1C1C1C;
  font-weight: 600;
}

/* =========================================================================
   8. PRICING (INVERSIÓN)
   ========================================================================= */

#inversion .section-title {
  margin-bottom: 10px;
}

#inversion .investment-box {
  margin-top: 20px;
}

/* Pricing Box */
.pricing-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 174, 239, 0.15);
  border-radius: 20px;
  padding: 40px 30px;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 174, 239, 0.18);
  backdrop-filter: blur(10px);
}

/* Texto "Inscripción" */
.precio {
  font-size: 22px;
  color: #DDEEFF;
  opacity: 0.9;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

/* Contenedor del precio */
.precio-valor {
  margin: 10px 0 0 0;
  padding: 12px 0;
}

/* *** PRECIO DESTACADO *** */
.precio-valor strong {
  font-size: 45px;
  font-weight: 900;
  background: linear-gradient(135deg, #00C6FF, #FECF00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Le da volumen */
  filter: drop-shadow(0 0 14px rgba(0, 174, 239, 0.55));

  letter-spacing: -1px;
  display: inline-block;
  
  /* Bordecito brillante */
  text-shadow:
    0px 0px 10px rgba(255,255,255,0.25),
    0px 0px 20px rgba(0, 174, 239, 0.4),
    0px 0px 30px rgba(254, 207, 0, 0.25);
}

/* Texto inferior */
.precio-sub {
  margin-top: 12px;
  font-size: 16px;
  color: #BFD0DD;
  opacity: 0.85;
}

.pago-button {
  margin-top: 30px;
  background: linear-gradient(135deg, #FECF00 0%, #00AEEF 100%);
  color: #000;
  box-shadow: 0 8px 32px rgba(254, 207, 0, 0.6);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.pago-button:hover {
  filter: brightness(1.15);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 48px rgba(254, 207, 0, 0.8);
}

.pago-button:active {
  transform: translateY(-1px) scale(1.02);
}


/* =========================================================================
   . FAQs
   ========================================================================= */

.faq-section {
  max-width: 720px;
  margin: 50px auto;
  padding: 0 24px;
  font-family: 'Inter', sans-serif;
}

.faq-section .section-title {
  font-weight: 800;
  font-size: 44px;
  color: #fff;
  text-align: center;
  margin-bottom: 70px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.faq-section .section-title::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  background: linear-gradient(90deg, #00AEEF, #FECF00);
  border-radius: 10px;
}

.faq-item {
  margin-bottom: 30px;
}

.faq-question {
  font-weight: 700;
  font-size: 22px;
  color: #FFFFFF;
  margin-bottom: 12px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: #00AEEF;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: linear-gradient(135deg, #0A0A0A, #1C1C1C);
  border: 1px solid rgba(0, 174, 239, 0.25);
  border-radius: 20px;
  padding: 0 30px;
  color: #B8C5D0;
  font-weight: 500;
  font-size: 18px;
  box-shadow: 0 10px 30px rgba(0, 174, 239, 0.2);
  margin-bottom: 20px;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 200px; /* Ajusta según el contenido */
  padding: 20px 30px;
}

.faq-answer.hidden {
  display: none;
}

/* =========================================================================
   9. ABOUT SECTION (ACERCA DEL INSTRUCTOR)
   ========================================================================= */

.about-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 32px;
  padding: 60px 50px;
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

/* Centrado en mobile */
@media (max-width: 700px) {
  .about-section {
    text-align: center;
    justify-content: center;
    padding: 50px 24px;
  }

  .about-image {
    margin: 0 auto !important; /* lo centra sí o sí */
  }

  .about-content {
    text-align: center;
  }

  .expertise-tags {
    justify-content: center;
  }
}


.about-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.about-image {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #00AEEF;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 48px rgba(0, 174, 239, 0.3);
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease;
}


.about-section:hover .about-image {
  transform: scale(1.05) rotate(3deg);
}

.about-text {
  max-width: 600px;
  font-size: 19px;
  line-height: 1.8;
  color: #1C1C1C;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.tag {
  padding: 12px 22px;
  background: linear-gradient(135deg, #ffffff, #f2f2f2);
  color: #1C1C1C;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: .3s ease;
}

.tag::before {
  content: "⚡";
  font-size: 18px;
  opacity: 0.8;
}

.tag:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #00AEEF, #0096D1);
  color: #fff;
}

.tag:hover::before {
  content: "🚀";
}

.about-cta {
  margin-top: 30px;
  display: inline-block;
  font-size: 18px;
  padding: 16px 40px;
}

@media (max-width: 700px) {
  .about-cta {
    margin-top: 25px;
    width: 100%;
    text-align: center;
  }
}


/* =========================================================================
   10. OFFER SECTION (OFERTA)
   ========================================================================= */

#oferta {
  padding: 60px 24px;
  background: #0A0A0A;
  display: flex;
  justify-content: center;
  align-items: center;
}

.offer-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 60px 40px;
  max-width: 700px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 174, 239, 0.1);
  backdrop-filter: blur(12px);
}

.offer-list {
  list-style: none;
  padding: 0;
  margin: 40px 0 50px; /* Optimizando margin */
}

.offer-list li {
  color: #D6E4EF;
  font-size: 20px;
  font-weight: 500;
  margin: 14px 0;
  position: relative;
  padding-left: 40px; /* más espacio para el ícono */
  text-align: left;
}

.offer-list li::before {
  content: "✔"; /* check */
  position: absolute;
  left: 0;
  top: 3px; /* para alinear con el texto */
  color: #00AEEF;
  font-size: 24px;
  font-weight: 900;
  text-shadow:
    0 0 6px #00AEEF99,
    0 0 12px #00AEEFbb;
}


/* =========================================================================
   11. FOOTER
   ========================================================================= */

.footer {
  text-align: center;
  padding: 40px 0;
  margin-top: 100px;
  color: #888;
  font-size: 14px;
}


/* =========================================================================
   13. RESPONSIVE / MEDIA QUERIES
   ========================================================================= */

@media (max-width: 600px) {
  .offer-box {
    padding: 50px 22px;
  }

  .offer-list li {
    font-size: 18px;
  }

  .section-title {
    font-size: 34px;
    color: #fff;
  }

  .form-box button {
    width: 100%;
  }
}