/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
  --navy:         #2A3045;
  --bronze:       #857D5F;
  --bronze-light: #a09878;
  --cream:        #DFDCD2;
  --white:        #FFFFFF;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-ui:      'Montserrat', sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --max-w: 1100px;

  /* Spacing scale — multiples of 8px */
  --sp-1:  8px;
  --sp-2:  16px;
  --sp-3:  24px;
  --sp-4:  32px;
  --sp-5:  40px;
  --sp-6:  48px;
  --sp-7:  56px;
  --sp-8:  64px;
  --sp-10: 80px;

  /* Section vertical padding */
  --section-v:      var(--sp-7);   /* 56px mobile  */
  --section-v-desk: var(--sp-10);  /* 80px desktop */
  --section-v-form: var(--sp-3);   /* 24px — form compact */

  /* Border-radius — unified scale */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 16px;

  /* Shadows — navy-based, never black */
  --sh-xs: 0 1px 4px  rgba(42,48,69,0.06);
  --sh-sm: 0 2px 10px rgba(42,48,69,0.08);
  --sh-md: 0 4px 20px rgba(42,48,69,0.10);
  --sh-lg: 0 8px 36px rgba(42,48,69,0.13);
  --sh-xl: 0 16px 48px rgba(42,48,69,0.16);

  /* Transitions */
  --tr:      220ms ease;
  --tr-slow: 380ms ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   FADE-UP ANIMATION
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   EYEBROW / KICKER
   ============================================================ */
.eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: var(--sp-1);
}

.eyebrow-light {
  color: var(--bronze-light);
}

/* ============================================================
   SECTION HEAD (eyebrow + h2 + decorative line)
   ============================================================ */
.section-head {
  text-align: center;
  margin-bottom: var(--sp-6);
}

.section-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-top: var(--sp-1);
}

.section-head h2::after {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background: var(--bronze);
  margin: var(--sp-2) auto 0;
  border-radius: 2px;
  opacity: 0.7;
}

/* ============================================================
   CTA BUTTON — unified system
   ============================================================ */
.btn-cta {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 15px 40px;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--tr), border-color var(--tr), color var(--tr),
              transform var(--tr), box-shadow var(--tr);

  /* Default (on light bg) */
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
  box-shadow: var(--sh-md);
}

.btn-cta:hover,
.btn-cta:focus-visible {
  background: var(--bronze);
  border-color: var(--bronze);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--sh-lg);
  outline: none;
}

.btn-cta:active {
  transform: translateY(0);
  box-shadow: var(--sh-sm);
}

/* On dark (navy) background */
.dark-bg .btn-cta,
#hero .btn-cta,
#cta-final .btn-cta,
#mobile-cta .btn-cta {
  background: var(--cream);
  color: var(--navy);
  border-color: var(--cream);
}

.dark-bg .btn-cta:hover,
#hero .btn-cta:hover,
#cta-final .btn-cta:hover,
#mobile-cta .btn-cta:hover {
  background: var(--bronze-light);
  border-color: var(--bronze-light);
  color: var(--white);
}

/* ============================================================
   TOP BAR
   ============================================================ */
#top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--cream);
  text-align: center;
  padding: 11px 20px;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(160,152,120,0.25);
}

/* ============================================================
   FORM SECTION
   ============================================================ */
#formulario {
  background: var(--cream);
  padding: var(--section-v-form) 0;
}

.ghl-wrapper {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  background: transparent;
  overflow: hidden;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  background: var(--navy);
  color: var(--white);
  padding: var(--section-v) 0;
  text-align: center;
}

#hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: var(--sp-3);
}

#hero h1 em {
  color: var(--bronze-light);
  font-style: normal;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.97rem, 2.5vw, 1.08rem);
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto var(--sp-5);
  line-height: 1.7;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: var(--sp-5);
}

.badge {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(160,152,120,0.4);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: var(--r-sm);
}

.hero-microcopy {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.38);
  margin-top: var(--sp-2);
  letter-spacing: 0.04em;
}

/* ============================================================
   COUNTDOWN
   ============================================================ */
#countdown {
  background: var(--white);
  padding: var(--section-v) 0;
  text-align: center;
  border-top: 1px solid rgba(133,125,95,0.15);
  border-bottom: 1px solid rgba(133,125,95,0.15);
}

.countdown-intro {
  margin-bottom: var(--sp-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.countdown-label {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(42,48,69,0.65);
  line-height: 1.4;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(4px, 1.5vw, 8px);
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.countdown-unit .number {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 7.5vw, 3.2rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.countdown-unit .unit-label {
  font-family: var(--font-ui);
  font-size: clamp(0.55rem, 2vw, 0.65rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-top: 6px;
}

.countdown-separator {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 5vw, 2.5rem);
  color: var(--bronze-light);
  align-self: flex-start;
  padding-top: 2px;
  line-height: 1.1;
  flex-shrink: 0;
  opacity: 0.7;
}

.countdown-expired {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  color: var(--bronze);
  letter-spacing: 0.06em;
  margin-top: var(--sp-4);
}

/* ============================================================
   MENTORA
   ============================================================ */
#mentora {
  background: var(--navy);
  color: var(--white);
  padding: var(--section-v) 0;
}

.mentora-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
  max-width: 900px;
  margin: 0 auto;
}

.mentora-photo {
  width: 220px;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-md);
  object-fit: cover;
  object-position: top;
  border: 2px solid rgba(160,152,120,0.4);
  flex-shrink: 0;
  display: block;
  box-shadow: var(--sh-lg);
}

.mentora-copy {
  text-align: center;
}

.mentora-label {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze-light);
  margin-bottom: var(--sp-1);
}

.mentora-copy h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 6px;
}

.mentora-title {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--bronze-light);
  font-weight: 500;
  margin-bottom: var(--sp-3);
  font-style: italic;
  opacity: 0.85;
}

.mentora-copy p {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  max-width: 580px;
  margin: 0 auto;
}

/* ============================================================
   PARA QUIÉN ES
   ============================================================ */
#para-quien {
  background: var(--white);
  padding: var(--section-v) 0;
}

.para-quien-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  max-width: 800px;
  margin: 0 auto;
}

.para-quien-col {
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-4) var(--sp-3);
  box-shadow: var(--sh-sm);
}

.para-quien-col.si {
  background: var(--cream);
  border-left: 3px solid var(--bronze);
}

.para-quien-col.no {
  background: #f6f5f2;
  border-left: 3px solid #c9c5bb;
}

.para-quien-col h3 {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}

.para-quien-col.si h3 { color: var(--bronze); }
.para-quien-col.no h3 { color: #9a9589; }

.para-quien-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.para-quien-col ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--navy);
}

.para-quien-col.si ul li::before {
  content: '✓';
  flex-shrink: 0;
  color: var(--bronze);
  font-weight: 700;
  margin-top: 1px;
}

.para-quien-col.no ul li::before {
  content: '✗';
  flex-shrink: 0;
  color: #bbb;
  font-weight: 700;
  margin-top: 1px;
}

/* ============================================================
   TESTIMONIOS
   ============================================================ */
#testimonios {
  background: var(--cream);
  padding: var(--section-v) 0;
}

.carousel-wrapper {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}

.carousel-track {
  overflow: hidden;
  border-radius: var(--r-md);
}

.carousel-slides {
  display: flex;
  transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 340px;
}

.carousel-slide img {
  max-height: 520px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  border-radius: var(--r-md);
  display: block;
  box-shadow: var(--sh-md);
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}

.carousel-btn {
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--tr), transform var(--tr), box-shadow var(--tr);
  flex-shrink: 0;
  touch-action: manipulation;
  box-shadow: var(--sh-sm);
}

.carousel-btn:hover,
.carousel-btn:active {
  background: var(--bronze);
  transform: scale(1.08);
  box-shadow: var(--sh-md);
}

.carousel-counter {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bronze);
  letter-spacing: 0.08em;
  min-width: 48px;
  text-align: center;
}

.testimonios-cta {
  text-align: center;
  margin-top: var(--sp-6);
}

/* ============================================================
   CTA FINAL
   ============================================================ */
#cta-final {
  background: var(--navy);
  color: var(--white);
  padding: var(--section-v) 0;
  text-align: center;
}

#cta-final .eyebrow-light {
  display: block;
  margin-bottom: var(--sp-3);
}

#cta-final p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  max-width: 480px;
  margin: 0 auto 8px;
  line-height: 1.65;
}

#cta-final p strong {
  color: var(--white);
  font-weight: 500;
}

#cta-final .btn-cta {
  margin-top: var(--sp-4);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #191e2d;
  color: rgba(255,255,255,0.35);
  text-align: center;
  padding: var(--sp-4) 20px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

/* ============================================================
   MOBILE STICKY CTA
   ============================================================ */
#mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--navy);
  padding: 10px 20px 14px;
  box-shadow: 0 -4px 24px rgba(42,48,69,0.22);
  text-align: center;
  border-top: 1px solid rgba(160,152,120,0.18);
}

#mobile-cta .btn-cta {
  width: 100%;
  max-width: 400px;
  padding: 14px 24px;
  font-size: 0.82rem;
}

/* ============================================================
   RESPONSIVE — DESKTOP
   ============================================================ */
@media (min-width: 768px) {
  #formulario {
    padding: var(--sp-4) 0; /* 32px */
  }

  #hero,
  #countdown,
  #mentora,
  #para-quien,
  #testimonios,
  #cta-final {
    padding: var(--section-v-desk) 0;
  }

  .para-quien-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mentora-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--sp-8);
  }

  .mentora-photo {
    width: 240px;
  }

  .mentora-copy {
    text-align: left;
  }

  .mentora-label {
    display: block;
  }

  .mentora-copy p {
    margin: 0;
  }

  .carousel-wrapper {
    max-width: 540px;
  }

  #mobile-cta {
    display: none !important;
  }
}

@media (max-width: 767px) {
  #mobile-cta {
    display: block;
  }

  footer {
    padding-bottom: 74px;
  }
}
