:root {
  --bg: #050b1a;
  --bg-alt: #081229;
  --card: #0c1a38;
  --border: rgba(96, 165, 250, 0.18);
  --blue: #2563eb;
  --blue-2: #3b82f6;
  --cyan: #38bdf8;
  --text: #e6edf9;
  --muted: #94a3c4;
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 64px; }
[hidden] { display: none !important; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 820px; margin-inline: auto; }
.center { text-align: center; }

.nav { position: sticky; top: 0; z-index: 20; background: rgba(5, 11, 26, .8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-center { justify-content: center; }
.logo { font-weight: 900; font-size: 22px; letter-spacing: .08em; }
.logo span { color: var(--blue-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff; font-weight: 800; border: 0; cursor: pointer;
  border-radius: 999px; padding: 14px 26px; font-size: 16px; font-family: inherit;
  box-shadow: 0 10px 30px rgba(37, 99, 235, .45), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(37, 99, 235, .6); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 18px 34px; font-size: 18px; }
.btn-block { width: 100%; }

.hero { position: relative; padding: 64px 0 80px; overflow: hidden; }
.glow {
  position: absolute; inset: -200px -20% auto; height: 700px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(37, 99, 235, .35), transparent);
}
.hero .container { position: relative; }
.pill {
  display: inline-block; border: 1px solid var(--border); background: rgba(37, 99, 235, .12);
  color: var(--cyan); font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .06em;
}
h1 { font-size: clamp(30px, 5vw, 54px); line-height: 1.1; font-weight: 900; letter-spacing: -.02em; margin: 18px 0 16px; }
h2 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.15; font-weight: 900; letter-spacing: -.02em; margin-bottom: 14px; }
h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.grad { background: linear-gradient(90deg, var(--blue-2), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 18px; max-width: 680px; margin: 0 auto 32px; }
.sub { color: var(--muted); font-size: 17px; }
.micro { color: var(--muted); font-size: 13px; margin-top: 12px; }
.kicker { display: block; color: var(--blue-2); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }

.video-wrap {
  position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 32px;
  border: 1px solid var(--border); background: #000; aspect-ratio: 16 / 9;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 6px rgba(37, 99, 235, .12);
}
.video-wrap video { width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute; inset: 0; margin: auto; width: max-content; height: max-content;
  display: flex; align-items: center; gap: 12px; padding: 16px 26px 16px 20px;
  background: rgba(37, 99, 235, .92); color: #fff; border: 0; border-radius: 999px;
  font: 800 17px 'Inter', sans-serif; cursor: pointer;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, .7); animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 22px rgba(59, 130, 246, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); } }

.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }

.proof { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 44px; }
.proof-card { overflow: hidden; display: flex; flex-direction: column; }
.proof-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.proof-card:last-child img { object-position: center 60%; }
.proof-card figcaption { padding: 20px 22px 22px; display: grid; gap: 6px; }
.proof-card small { color: var(--muted); }
.tag { justify-self: start; background: rgba(56, 189, 248, .14); color: var(--cyan); font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.stats div { text-align: center; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(37, 99, 235, .06); }
.stats b { display: block; font-size: 34px; font-weight: 900; color: var(--blue-2); }
.stats span { color: var(--muted); font-size: 14px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.feature { padding: 26px; transition: border-color .2s, transform .2s; }
.feature:hover { border-color: var(--blue-2); transform: translateY(-3px); }
.feature p { color: var(--muted); font-size: 15px; }
.ico { font-size: 26px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: rgba(37, 99, 235, .15); margin-bottom: 14px; }

.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fit .card { padding: 30px; }
.fit ul { list-style: none; display: grid; gap: 12px; margin-top: 12px; color: var(--muted); }
.fit li { padding-left: 18px; position: relative; }
.fit li::before { content: ''; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-2); }
.fit-yes { border-color: rgba(59, 130, 246, .5); }
.fit-no { opacity: .85; }
.fit-no li::before { background: #64748b; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.step { text-align: center; padding: 10px; }
.step span { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--cyan)); font-weight: 900; font-size: 22px; margin-bottom: 14px; }
.step p { color: var(--muted); }

.faq { display: grid; gap: 12px; margin-top: 36px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--blue-2); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--muted); margin-top: 10px; }

.final { padding: 96px 0; background: radial-gradient(ellipse at center, rgba(37, 99, 235, .3), transparent 70%); }
.final .btn { margin-top: 24px; }

.footer { border-top: 1px solid var(--border); padding: 40px 0 110px; color: var(--muted); font-size: 14px; text-align: center; }
.footer .logo { display: inline-block; margin-bottom: 10px; color: var(--text); }
.disclaimer { font-size: 12px; margin-top: 10px; opacity: .7; max-width: 720px; margin-inline: auto; }

.sticky-cta { display: none; }

@media (max-width: 860px) {
  .grid3, .steps { grid-template-columns: 1fr; }
  .proof, .fit { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 40px 0 60px; }
  .play { font-size: 15px; padding: 12px 20px 12px 16px; }
  .sticky-cta { display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30; }
}

/* ---------- CTA ---------- */
.btn-pulse { animation: pulse 2.2s infinite; text-transform: uppercase; letter-spacing: .02em; }
.btn .arrow { display: inline-block; animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(3px); } }
.cta-row { margin-top: 40px; }
.h1-sm { font-size: clamp(26px, 4vw, 42px); }

/* ---------- Vídeo bloqueado ---------- */
.video-wrap.locked { display: block; cursor: pointer; }
.video-wrap.locked img { width: 100%; height: 100%; object-fit: cover; filter: blur(7px) brightness(.55) saturate(1.1); transform: scale(1.06); transition: filter .3s; }
.video-wrap.locked:hover img { filter: blur(5px) brightness(.65); }
.lock { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; color: #fff; text-align: center; padding: 20px; }
.lock-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px;
  background: rgba(37, 99, 235, .9); border: 1.5px solid rgba(255,255,255,.5); animation: pulse 2s infinite; }
.lock b { font-size: 20px; font-weight: 800; }
.lock small { color: #c7d4f0; font-size: 14px; }

/* ---------- Formulario por pasos ---------- */
.tf { max-width: 720px; margin: 44px auto 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, #0e1f44, var(--card)); box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 80px rgba(37, 99, 235, .15); }
.tf-top { height: 5px; background: rgba(255,255,255,.07); }
.tf-top i { display: block; height: 100%; background: var(--blue-2); box-shadow: 0 0 14px var(--blue-2); transition: width .4s cubic-bezier(.4,0,.2,1); }
.tf-body { padding: 54px 48px 44px; min-height: 430px; display: flex; flex-direction: column; }
.step-n { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--blue-2); letter-spacing: .2em; margin-bottom: 18px; }
.step-n .ar { color: var(--muted); }
.tf h3 { font-size: clamp(24px, 3.4vw, 36px); line-height: 1.1; font-weight: 800; letter-spacing: -.018em; margin-bottom: 8px; }
.tf .hint { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.tf .hint a { color: var(--blue-2); }
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 11px; cursor: pointer;
  border: 1.5px solid var(--border); background: rgba(255,255,255,.015); color: var(--text);
  font: 600 16.5px 'Inter', sans-serif; text-align: left; transition: all .15s ease; }
.opt:hover, .opt:focus-visible { border-color: var(--blue-2); background: rgba(37, 99, 235, .08); outline: none; }
.opt.sel { border-color: var(--blue-2); background: rgba(37, 99, 235, .16); }
.opt .k { width: 26px; height: 26px; flex: none; border-radius: 6px; display: grid; place-items: center;
  font: 500 12px 'JetBrains Mono', monospace; box-shadow: inset 0 0 0 1.5px var(--border); color: var(--muted); }
.opt.sel .k, .opt:hover .k { box-shadow: inset 0 0 0 1.5px var(--blue-2); background: var(--blue-2); color: #fff; }
.field input, .field textarea, .field select { width: 100%; background: transparent; border: none; border-bottom: 2px solid var(--border);
  color: var(--text); font: 400 22px 'Inter', sans-serif; padding: 12px 2px; outline: none; transition: border-color .2s; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue-2); }
.field input::placeholder, .field textarea::placeholder { color: #4b5d84; }
.tel-field { display: flex; gap: 14px; align-items: flex-end; }
.tel-field select { width: auto; max-width: 46%; font-size: 16px; cursor: pointer; }
.tel-field select option { background: var(--card); color: var(--text); }
.err { color: #f87171; font-size: 14px; margin-top: 14px; }
.tf-foot { margin-top: auto; display: flex; align-items: center; gap: 16px; padding-top: 30px; }
.tf-foot .btn { padding: 13px 30px; }
.nav-prev { background: none; border: none; color: var(--muted); font: 500 13px 'JetBrains Mono', monospace; letter-spacing: .08em; cursor: pointer; }
.nav-prev:hover { color: var(--text); }
.enter-hint { color: var(--muted); font-size: 13px; }
.tf-done { padding: 70px 40px; min-height: 430px; display: grid; place-content: center; justify-items: center; text-align: center; gap: 8px; }
.tf-done .check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-weight: 900;
  background: var(--blue-2); color: #fff; margin-bottom: 10px; box-shadow: 0 0 40px rgba(59, 130, 246, .6); }
.tf-done p { color: var(--muted); }
.tf-done b { color: var(--text); }

/* ---------- Página de la clase ---------- */
.cta-zone { margin-top: 8px; }
.cta-zone .btn { text-align: center; }

@media (max-width: 860px) {
  .tf-body { padding: 34px 22px 28px; min-height: 380px; }
  .tf-done { padding: 50px 22px; }
  .enter-hint { display: none; }
  .tel-field select { max-width: 42%; font-size: 15px; }
  .field input, .field textarea { font-size: 19px; }
  .lock b { font-size: 17px; }
}

/* ---------- Consentimiento / honeypot ---------- */
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; font-size: 14px; color: var(--muted); cursor: pointer; line-height: 1.5; }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--blue-2); cursor: pointer; }
.consent a, .footer a { color: var(--blue-2); text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Página legal ---------- */
.legal { padding: 56px 0 80px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; }
.legal h2 { font-size: 20px; margin: 34px 0 10px; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--muted); margin-bottom: 10px; }
.legal ul { padding-left: 20px; }
.legal strong { color: var(--text); }
.legal .pending { background: rgba(250, 204, 21, .15); color: #fde68a; padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.legal a { color: var(--blue-2); }
.legal-sep { border: 0; border-top: 1px solid var(--border); margin: 40px 0 20px; }

/* ---------- Testimonios (carrusel infinito) ---------- */
.testi-section { overflow: hidden; position: relative; }
.testi { position: relative; margin-top: 44px; padding: 26px 0 34px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 6%, #000 18%, #000 82%, rgba(0,0,0,.35) 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 6%, #000 18%, #000 82%, rgba(0,0,0,.35) 94%, transparent 100%); }
/* halo azul detrás de la fila */
.testi::before { content: ''; position: absolute; left: 10%; right: 10%; top: 50%; height: 60%; transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(37, 99, 235, .45), rgba(56, 189, 248, .12) 60%, transparent);
  filter: blur(40px); pointer-events: none; }
.testi-track { --gap: 22px; position: relative; display: flex; gap: var(--gap); width: max-content;
  animation: testi-scroll 60s linear infinite; will-change: transform; }
@keyframes testi-scroll { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }
.testi-card { position: relative; height: 440px; flex: none; padding: 0; border: 0; border-radius: 18px; overflow: hidden;
  background: var(--card); cursor: zoom-in; isolation: isolate;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, .28), 0 22px 60px rgba(0, 0, 0, .55), 0 0 40px rgba(37, 99, 235, .18);
  transition: transform .35s ease, box-shadow .35s ease; }
/* brillo suave arriba y difuminado oscuro abajo */
.testi-card::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgba(147, 197, 253, .14) 0%, transparent 22%, transparent 72%, rgba(5, 11, 26, .55) 100%); }
.testi-card:hover, .testi-card:focus-visible { transform: translateY(-6px) scale(1.02); outline: none;
  box-shadow: 0 0 0 1.5px var(--blue-2), 0 26px 70px rgba(0, 0, 0, .6), 0 0 60px rgba(59, 130, 246, .45); }
.testi-card img { width: 100%; height: 100%; object-fit: cover; }
.testi-box { position: fixed; inset: 0; z-index: 100; background: rgba(2, 6, 18, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.testi-box img { max-width: min(92vw, 720px); max-height: 88vh; width: auto; height: auto; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.testi-close { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--card); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; }
.testi-hint { color: var(--muted); font-size: 13px; text-align: center; margin-top: 16px; }
@media (max-width: 860px) { .testi-card { height: 340px; } .testi-track { --gap: 14px; }
  .testi { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); } }
@media (prefers-reduced-motion: reduce) {
  .testi { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .testi-track { animation: none; }
}

/* ---------- Botón WhatsApp (página de la clase) ---------- */
.wa-zone { margin-top: 30px; display: grid; justify-items: center; gap: 12px; }
.wa-or { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; font-weight: 600; width: min(420px, 100%); }
.wa-or::before, .wa-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.btn-wa { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; border-radius: 999px;
  font-weight: 800; font-size: 16px; color: #fff; background: rgba(37, 211, 102, .08);
  box-shadow: inset 0 0 0 1.5px #25d366, 0 10px 30px rgba(37, 211, 102, .15); transition: transform .15s, background .15s, box-shadow .15s; }
.btn-wa svg { color: #25d366; flex: none; }
.btn-wa:hover { transform: translateY(-2px); background: #25d366; box-shadow: inset 0 0 0 1.5px #25d366, 0 14px 40px rgba(37, 211, 102, .35); }
.btn-wa:hover svg { color: #fff; }
.wa-zone .micro { margin-top: 0; }
