/* ============================================================
   KLONYX FUNNEL — styles.css
   MOBILE FIRST: base = 375px → min-width escala hacia arriba
   ============================================================ */

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

/* ── Variables ─────────────────────────────────────────── */
:root {
  --primary:       #10b981;
  --primary-dark:  #059669;
  --primary-light: #34d399;
  --primary-glow:  rgba(16,185,129,.25);
  --dark-bg:       #0b1120;
  --dark-secondary:#111827;
  --dark-tertiary: #1a2438;
  --text-primary:  #f8fafc;
  --text-secondary:#e2e8f0;
  --text-3:        #c8d5e3;
  --text-muted:    #94a3b8;
  --red:           #ef4444;
  --red-light:     rgba(239,68,68,.15);
  --yellow:        #f59e0b;
  --price-strike:  #64748b;
  --shadow-glow:   0 0 28px rgba(16,185,129,.28);
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  18px;
  --transition: .28s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Base mobile ───────────────────────────────────────── */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--dark-bg);
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  padding-bottom: 76px; /* espacio para sticky bar */
}

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

/* ── Contenedores ──────────────────────────────────────── */
.container        { max-width: 1100px; margin: 0 auto; padding: 0 18px; }
.container--narrow{ max-width: 740px;  margin: 0 auto; padding: 0 18px; }
.container--mid   { max-width: 880px;  margin: 0 auto; padding: 0 18px; }

/* ── Utilities ─────────────────────────────────────────── */
.text-center { text-align: center; }

.gradient-text {
  background: linear-gradient(120deg, #6ee7b7, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scroll animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}
.fade-in-up.visible { opacity: 1; transform: none; }

/* ── Divider ───────────────────────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16,185,129,.22), transparent);
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  background: var(--primary-dark);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  position: sticky;
  top: 0;
  z-index: 200;
}
.topbar strong { font-weight: 700; }

.topbar-badge {
  display: inline-block;
  background: rgba(255,255,255,.2);
  border-radius: 20px;
  padding: 2px 9px;
  font-size: 11px; font-weight: 700;
  margin-right: 6px; letter-spacing: .04em;
}

#countdown-topbar {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   HERO — mobile: stack centrado
   ============================================================ */
.hero {
  padding: 48px 0 52px;
  background:
    radial-gradient(ellipse 140% 60% at 50% -5%, rgba(16,185,129,.08) 0%, transparent 65%),
    linear-gradient(170deg, #080f1d 0%, var(--dark-bg) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16,185,129,.22), transparent);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid rgba(16,185,129,.3);
  background: rgba(16,185,129,.08);
  border-radius: 30px;
  padding: 5px 13px;
  font-size: 11px; font-weight: 700;
  color: var(--primary-light);
  letter-spacing: .07em; text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
  animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
  0%,100%{ opacity:1; transform:scale(1); }
  50%    { opacity:.4; transform:scale(.7); }
}

/* H1 mobile */
.hero h1 {
  font-size: 27px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 16px;
  color: #dde6f0;
  line-height: 1.72;
  margin-bottom: 24px;
}

/* Precio */
.hero-price {
  display: flex; align-items: baseline;
  justify-content: center; gap: 12px;
  margin-bottom: 16px;
}
.price-original {
  font-size: 20px; font-weight: 500;
  color: var(--price-strike); text-decoration: line-through;
}
.price-actual {
  font-size: 50px; font-weight: 900; color: var(--primary);
  line-height: 1; letter-spacing: -.02em;
}

/* Scarcity badge */
.scarcity-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--red-light);
  border: 1px solid rgba(239,68,68,.3);
  border-radius: var(--r-sm);
  padding: 8px 14px;
  font-size: 13px; font-weight: 600; color: #fca5a5;
  margin-bottom: 22px;
  animation: scare 2.8s infinite;
}
@keyframes scare {
  0%,100%{ border-color:rgba(239,68,68,.3); }
  50%    { border-color:rgba(239,68,68,.65); }
}
.scarcity-badge .red-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); flex-shrink: 0;
  animation: pulse-dot 1.5s infinite;
}

/* CTA Button — full width + touch target en móvil */
.btn-cta {
  display: flex;
  align-items: center; justify-content: center;
  width: 100%;
  min-height: 56px;
  background: var(--primary); color: #fff;
  font-size: 16px; font-weight: 700; letter-spacing: .02em;
  padding: 16px 24px;
  border-radius: var(--r-md);
  text-decoration: none; border: none; cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn-cta:hover, .btn-cta:active {
  background: var(--primary-dark);
  box-shadow: 0 0 36px rgba(16,185,129,.45);
}

.hero-guarantee {
  margin-top: 12px;
  font-size: 13px; color: var(--text-muted);
}

/* ============================================================
   SECCIONES BASE
   ============================================================ */
section { padding: 56px 0; }

.section-dark  { background: var(--dark-bg); }
.section-card  { background: var(--dark-secondary); }
.pricing-section {
  background: linear-gradient(160deg, #080f1c 0%, var(--dark-bg) 100%);
  text-align: center;
}

.section-label {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 10px;
}

.section-title {
  font-size: 26px; font-weight: 800; line-height: 1.18;
  margin-bottom: 14px; letter-spacing: -.01em;
}

.section-sub {
  font-size: 16px; color: #dde6f0;
  line-height: 1.75; margin-bottom: 36px;
}

/* ============================================================
   PARA QUIÉN ES — lista vertical
   ============================================================ */
.audience-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 24px; text-align: left;
}
.audience-list li {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--dark-secondary);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-md);
  padding: 16px 18px;
  font-size: 16px; color: #e2e8f0; line-height: 1.5; font-weight: 500;
}
.audience-list li .icon-no {
  color: var(--red); font-weight: 700; font-size: 17px;
  flex-shrink: 0; margin-top: 1px;
}

/* ============================================================
   EL SISTEMA — stack vertical en móvil
   ============================================================ */
.steps-grid {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 32px;
}
.step-card {
  background: var(--dark-secondary);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  display: flex; gap: 16px; align-items: flex-start;
  text-align: left;
}
.step-number {
  font-size: 28px; font-weight: 900;
  color: rgba(16,185,129,.2); line-height: 1;
  flex-shrink: 0; min-width: 36px;
}
.step-icon {
  display: none; /* visible solo en desktop */
}
.step-card h3 {
  font-size: 14px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--primary-light);
  margin-bottom: 6px;
}
.step-card p {
  font-size: 15px; color: #dde6f0; line-height: 1.6;
}
/* wrapper para texto dentro de step-card en móvil */
.step-card > *:not(.step-number) { flex: 1; }

/* ============================================================
   PARA TI QUE — pain list
   ============================================================ */
.pain-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 28px;
}
.pain-list li {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--dark-secondary);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-md);
  padding: 16px 18px;
  font-size: 16px; color: #e2e8f0; line-height: 1.5; font-weight: 500;
}
.pain-list li .arrow {
  color: var(--primary); font-size: 17px; font-weight: 700;
  flex-shrink: 0; margin-top: 1px;
}

/* ============================================================
   OBJECIONES — stack en móvil
   ============================================================ */
.objections-grid {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 28px;
}
.objection-card {
  background: var(--dark-secondary);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-lg);
  padding: 22px 20px;
}
.objection-q {
  font-size: 15px; font-style: italic;
  color: var(--yellow); font-weight: 600;
  margin-bottom: 8px; line-height: 1.4;
}
.objection-a {
  font-size: 15px; color: #dde6f0; line-height: 1.65;
}

/* ============================================================
   PRECIO — sección grande
   ============================================================ */
.price-block { margin: 24px 0; }
.price-block .original {
  display: block;
  font-size: 20px; font-weight: 500;
  color: var(--price-strike); text-decoration: line-through;
  margin-bottom: 4px;
}
.price-block .actual {
  font-size: 72px; font-weight: 900; color: var(--primary);
  line-height: 1; display: block; letter-spacing: -.02em;
}
.price-block .currency {
  font-size: 28px; font-weight: 700;
  vertical-align: super; color: var(--primary);
}
.price-block .usd {
  font-size: 18px; font-weight: 600;
  color: var(--primary-light); margin-left: 4px;
}

.price-note {
  font-size: 16px; font-style: italic;
  color: var(--text-muted); margin-bottom: 8px;
}
.price-clarification {
  font-size: 15px; color: var(--text-3);
  line-height: 1.65; margin: 0 auto 24px;
}

/* Countdown */
.countdown-display {
  display: flex; justify-content: center; gap: 8px;
  margin: 20px 0 28px;
}
.countdown-unit {
  background: var(--dark-secondary);
  border: 1px solid rgba(16,185,129,.2);
  border-radius: var(--r-md);
  padding: 12px 10px; flex: 1; text-align: center;
}
.countdown-unit .num {
  display: block; font-size: 28px; font-weight: 900;
  color: var(--primary); font-variant-numeric: tabular-nums; line-height: 1;
}
.countdown-unit .label {
  display: block; font-size: 9px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); margin-top: 4px;
}

/* Includes */
.includes-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
  text-align: left; margin: 24px auto;
}
.includes-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 16px; color: #e2e8f0; line-height: 1.5; font-weight: 500;
}
.includes-list li .check {
  color: var(--primary); font-weight: 700; font-size: 17px;
  flex-shrink: 0; margin-top: 1px;
}

.price-warning {
  font-size: 13px; color: var(--text-muted);
  padding: 10px 14px;
  background: rgba(245,158,11,.07);
  border: 1px solid rgba(245,158,11,.18);
  border-radius: var(--r-sm);
  display: block; margin-top: 16px; line-height: 1.5;
}

/* ============================================================
   CLOSING
   ============================================================ */
.closing-section {
  background: linear-gradient(180deg, var(--dark-bg) 0%, #040a12 100%);
  text-align: center;
  padding: 60px 0 80px;
}
.closing-title {
  font-size: 26px; font-weight: 900; line-height: 1.18;
  margin-bottom: 20px; letter-spacing: -.01em;
}
.closing-basta {
  list-style: none;
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 28px;
}
.closing-basta li {
  font-size: 17px; color: #dde6f0; font-weight: 500;
}
.closing-basta li::before { content: '— '; color: var(--primary); font-weight: 700; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #030810;
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 22px 18px;
  text-align: center;
  font-size: 13px; color: var(--text-muted);
}

/* ============================================================
   STICKY CTA — siempre disponible en móvil
   Oculto en desktop por min-width
   ============================================================ */
.sticky-cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
  background: var(--dark-secondary);
  border-top: 2px solid var(--primary);
  padding: 11px 16px;
  display: flex;
  align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 -6px 24px rgba(0,0,0,.6);
  transform: translateY(100%);
  transition: transform .38s ease;
}
.sticky-cta-bar.visible { transform: none; }

.sticky-cta-bar .sticky-price span {
  font-size: 11px; color: var(--text-muted); display: block;
}
.sticky-cta-bar .sticky-price strong {
  font-size: 17px; color: var(--primary); font-weight: 800;
}
.sticky-cta-bar .btn-cta {
  width: auto; min-height: 48px;
  font-size: 14px; padding: 12px 18px;
  white-space: nowrap; flex-shrink: 0;
}

/* ============================================================
   TABLET — min-width: 640px
   ============================================================ */
@media (min-width: 640px) {
  .hero h1          { font-size: 34px; }
  .hero-sub         { font-size: 17px; }

  .steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .step-card {
    flex-direction: column; text-align: center;
    padding: 28px 20px;
  }
  .step-number { font-size: 40px; min-width: auto; margin-bottom: 4px; }
  .step-icon   { display: block; font-size: 28px; margin-bottom: 12px; }

  .objections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  /* La última card centrada en 2 columnas */
  .objection-card:last-child {
    grid-column: 1 / -1;
    max-width: 520px; margin: 0 auto;
  }

  .section-title  { font-size: 32px; }
  .closing-title  { font-size: 32px; }
  .price-block .actual { font-size: 88px; }
}

/* ============================================================
   DESKTOP — min-width: 900px
   ============================================================ */
@media (min-width: 900px) {
  body { padding-bottom: 0; }    /* sin espacio para sticky en desktop */

  section { padding: 88px 0; }
  .closing-section { padding: 88px 0 108px; }

  .container, .container--narrow, .container--mid { padding: 0 24px; }

  .hero           { padding: 84px 0 88px; }
  .hero h1        { font-size: 48px; }
  .hero-sub       { font-size: 18px; margin-bottom: 32px; }
  .price-actual   { font-size: 56px; }

  .btn-cta        { width: auto; display: inline-flex; min-height: 58px;
                    font-size: 18px; padding: 18px 40px; }
  .btn-cta--large { font-size: 19px; padding: 20px 48px; }

  .section-title  { font-size: 38px; }
  .section-sub    { font-size: 18px; }
  .closing-title  { font-size: 40px; }

  .price-block .actual { font-size: 96px; }
  .countdown-unit .num { font-size: 38px; }
  .countdown-unit      { padding: 16px 18px; }

  /* Sticky oculto en desktop */
  .sticky-cta-bar { display: none; }
}
