/* ============ Identidad Bitframe Studio ============ */
:root {
  --purple: #7b1fc9;
  --purple-2: #8b1dc9;
  --purple-deep: #4e0d8c;
  --purple-ink: #2e0959;
  --lav: #f3ecfd;
  --lav-2: #e4d4fa;
  --lav-3: #c9adf3;
  --gold: #f7c75a;
  --ink: #1d1a24;
  --grey: #5b5a62;
  --text: #3e3c46;
  --muted: #7d7a86;
  --line: #ebe6f3;
  --bg: #fcfbfe;
  --white: #fff;
  --ok: #19a463;
  --warn: #c2410c;
  --grad: linear-gradient(95deg, #a46be6 0%, #7b1fc9 45%, #4e0d8c 100%);
  --grad-btn: linear-gradient(135deg, #8b1dc9 0%, #5a0f9e 100%);
  --radius: 18px;
  --shadow: 0 1px 2px rgba(46, 9, 89, .06), 0 12px 32px -12px rgba(46, 9, 89, .18);
  --shadow-lg: 0 30px 60px -24px rgba(78, 13, 140, .35);
  --sans: "Inter Tight", "Inter", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --script: "Kaushan Script", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--purple); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.section { padding: 96px 0; position: relative; }
.center { text-align: center; }

/* ---------- Tipografía de marca ---------- */
.hl-grey { color: var(--grey); font-weight: 600; }
.hl-purple { color: var(--purple); }
.hl-grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hl-serif { font-family: var(--serif); font-weight: 600; letter-spacing: -0.03em; }
.script { font-family: var(--script); color: var(--purple); font-weight: 400; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 14px; letter-spacing: .02em;
  color: var(--purple-deep);
  background: var(--lav); border: 1px solid var(--lav-2);
  padding: 7px 14px 7px 12px; border-radius: 999px;
}
.diamond {
  width: 12px; height: 12px; display: inline-block; flex: none;
  background: var(--grad-btn); transform: rotate(45deg) scaleY(1.25); border-radius: 2px;
}
.section-title { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.section-title .hl-serif { font-size: 1.12em; }
.section-sub { font-size: 19px; color: var(--muted); max-width: 620px; margin: 18px auto 0; }

/* Subrayado de pincel */
.brush { display: block; width: min(420px, 90%); height: 22px; margin-top: 6px; }
.center .brush { margin-inline: auto; }
.brush path { fill: none; stroke: var(--purple); stroke-linecap: round; }

/* Caja "→ texto" de los carruseles */
.callout {
  display: inline-flex; align-items: stretch; border-radius: 6px; overflow: hidden;
  background: var(--lav); font-size: 17px; color: var(--purple-ink);
}
.callout .arr {
  background: var(--grad-btn); color: #fff; display: grid; place-items: center;
  width: 44px; flex: none;
}
.callout span:last-child { padding: 9px 16px; }
.callout b { color: var(--purple); }

/* ---------- Botones ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 14px; border: 0;
  font: 700 17px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 10px 24px -10px rgba(123, 31, 201, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(123, 31, 201, .8); }
.btn-ghost { background: var(--white); color: var(--purple-deep); border: 1.5px solid var(--lav-2); }
.btn-ghost:hover { border-color: var(--purple); }
.btn-white { background: #fff; color: var(--purple-deep); }
.btn-wa { background: #1fa855; color: #fff; }
.btn-wa:hover { background: #178c46; }
.btn-sm { --h: 42px; font-size: 15px; padding: 0 18px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible, input:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--lav-3); outline-offset: 2px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: #fcfbfe;
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.logo {
  display: block; width: 132px; aspect-ratio: 1280 / 530;
  background: url("assets/logo.webp") 53% 47% / 125% auto no-repeat;
  mix-blend-mode: multiply;
}
.logo-sm { width: 112px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--purple); }
.nav-tag { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -30% 30%; height: 80%;
  background: radial-gradient(closest-side, rgba(183, 139, 233, .35), transparent);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(44px, 6.4vw, 82px); font-weight: 600; margin-top: 22px; }
.hero h1 .hl-serif { display: block; font-size: 1.32em; line-height: .95; padding-bottom: 6px; }
.hero-lead { font-size: 20px; max-width: 540px; margin: 22px 0 26px; }
.hero-lead b { color: var(--purple); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 14px; color: var(--muted); font-weight: 600; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { color: var(--purple); }

.hero-media { position: relative; }
.photo-card {
  border-radius: 28px; overflow: hidden; aspect-ratio: 700 / 960; box-shadow: var(--shadow-lg);
  background: url("assets/foto-hero.webp") 50% 20% / cover no-repeat, #1b1b22;
  max-height: 600px; margin-left: auto; width: min(100%, 420px);
}
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow);
  font-size: 14px; line-height: 1.3; color: var(--ink); font-weight: 700;
}
.float-chip small { display: block; color: var(--muted); font-weight: 500; }
.float-chip .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--lav); color: var(--purple); flex: none; }
.chip-a { left: 0; top: 14%; animation: bob 6s ease-in-out infinite; }
.chip-b { right: -10px; bottom: 12%; animation: bob 6s ease-in-out -3s infinite; }
.mascot {
  position: absolute; left: 8%; bottom: -26px; width: 96px; height: 96px; border-radius: 50%;
  border: 5px solid #fff; box-shadow: var(--shadow);
  background: url("assets/avatar.webp") 50% 40% / 175% auto no-repeat, var(--purple-2);
}
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .chip-a, .chip-b { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Franja de números ---------- */
.stats { background: var(--purple-ink); color: #fff; padding: 30px 0; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.stat span { color: var(--lav-3); font-size: 15px; }

/* ---------- Problema ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 54px; }
.pain {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.pain .num { font-size: 40px; font-weight: 800; color: var(--lav-3); line-height: 1; }
.pain h3 { font-size: 21px; margin: 14px 0 8px; }
.pain p { margin: 0; color: var(--muted); font-size: 16px; }
.quote-big { margin-top: 70px; text-align: center; }
.quote-big p { margin: 0; font-size: clamp(26px, 3.6vw, 44px); font-weight: 800; color: var(--ink); line-height: 1.15; letter-spacing: -.02em; }
.quote-big p .hl-purple { font-size: 1.15em; }

/* ---------- Programa (señalética) ---------- */
.program { background: linear-gradient(180deg, var(--bg), var(--lav) 55%, var(--bg)); }
.program-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.program-intro { position: sticky; top: 110px; }
.program-intro .section-title { font-size: clamp(38px, 5vw, 64px); }
.program-intro p { font-size: 18px; color: var(--muted); margin: 22px 0 26px; max-width: 420px; }
.signpost { position: relative; display: flex; flex-direction: column; gap: 16px; padding-left: 10px; }
.signpost::before {
  content: ""; position: absolute; left: 38px; top: -10px; bottom: -10px; width: 18px; border-radius: 9px;
  background: linear-gradient(90deg, #cfcdd6, #f6f5f8 45%, #b9b6c2);
}
.sign { position: relative; display: flex; align-items: center; }
.sign .n {
  position: relative; z-index: 2; width: 66px; height: 66px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 800; font-size: 22px;
  background: #fff; color: var(--purple-deep); border: 6px solid var(--purple-deep);
}
.sign .board {
  margin-left: -22px; flex: 1; padding: 18px 64px 18px 40px; border-radius: 14px;
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 50%, calc(100% - 34px) 100%, 0 100%);
  background: var(--purple-deep); color: #fff; box-shadow: var(--shadow);
}
.sign:nth-child(even) .n { border-color: var(--lav-3); }
.sign:nth-child(even) .board { background: var(--lav-2); color: var(--purple-ink); }
.sign .board h3 { color: inherit; font-size: 20px; letter-spacing: -.01em; }
.sign .board p { margin: 4px 0 0; font-size: 14.5px; opacity: .85; line-height: 1.45; }
.sign .board .count { display: inline-block; margin-top: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .75; }

/* ---------- Qué incluye ---------- */
.incl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 54px; }
.incl {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.incl:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.incl .ico {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  background: var(--grad-btn); color: #fff; box-shadow: 0 10px 20px -10px rgba(123, 31, 201, .8);
}
.incl h3 { font-size: 20px; margin: 18px 0 8px; }
.incl p { margin: 0; font-size: 15.5px; color: var(--muted); }
.incl .tag { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--purple); background: var(--lav); padding: 4px 10px; border-radius: 6px; }

/* ---------- Para quién ---------- */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 50px; }
.fit { border-radius: var(--radius); padding: 32px; }
.fit.yes { background: var(--purple-deep); color: #fff; }
.fit.yes h3 { color: #fff; }
.fit.no { background: #fff; border: 1px solid var(--line); }
.fit h3 { font-size: 24px; margin-bottom: 18px; }
.fit ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fit li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; }
.fit li svg { flex: none; margin-top: 3px; }
.fit.yes li svg { color: var(--gold); }
.fit.no li svg { color: #b4b1bc; }
.fit.no li { color: var(--muted); }

/* ---------- Sobre mí ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.about-photo {
  border-radius: 28px; aspect-ratio: 2 / 3; width: min(100%, 400px); max-width: 100%; margin-inline: auto;
  background: url("assets/foto-sobre-mi.webp") 50% 100% / cover no-repeat, #1b1b22;
  box-shadow: var(--shadow-lg);
}
.about-photo-wrap { position: relative; }
.about-photo-wrap .mascot { left: auto; right: 10%; bottom: 8%; width: 110px; height: 110px; }
.about h2 { font-size: clamp(34px, 4.6vw, 52px); font-weight: 800; margin-top: 18px; }
.about p { font-size: 18px; margin: 18px 0 0; }
.about .sign-name { font-family: var(--script); font-size: 34px; color: var(--purple); margin-top: 18px; }

/* ---------- Testimonios ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 54px; }
.testi { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 18px; }
.testi p { font-size: 16.5px; margin: 12px 0 22px; flex: 1; color: var(--ink); }
.testi .who { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.testi .who b { display: block; color: var(--ink); font-size: 15px; }
.av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--grad-btn); flex: none; }

/* ---------- Precio ---------- */
.pricing { background: radial-gradient(800px 400px at 50% 0%, var(--lav-2), transparent 70%), var(--bg); }
.price-card {
  max-width: 560px; margin: 50px auto 0; background: #fff; border-radius: 28px; padding: 40px;
  box-shadow: var(--shadow-lg); border: 2px solid var(--lav-2); position: relative;
}
.price-card .badge {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--purple-ink); font-weight: 800; font-size: 13px; letter-spacing: .05em;
  text-transform: uppercase; padding: 7px 16px; border-radius: 999px; white-space: nowrap;
}
.price-card h3 { font-size: 26px; text-align: center; }
.price-card .sub { text-align: center; color: var(--muted); margin: 6px 0 0; }
.price { display: flex; align-items: baseline; justify-content: center; gap: 14px; margin: 24px 0 4px; }
.price s { color: #a7a3b0; font-size: 24px; font-weight: 600; }
.price b { font-size: 72px; font-weight: 800; color: var(--ink); letter-spacing: -.04em; line-height: 1; }
.price b small { font-size: 22px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.price-note { text-align: center; font-weight: 700; color: var(--purple); font-size: 15px; }
.checklist { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; color: var(--ink); }
.checklist li svg { flex: none; color: var(--purple); margin-top: 3px; }
.pay-methods { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.pm {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--grey);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: #fff;
}
.pm i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 46px auto 0; display: grid; gap: 12px; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 17.5px; color: var(--ink);
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-size: 26px; font-weight: 500; color: var(--purple); transition: transform .2s; line-height: 1;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0 0 20px; color: var(--muted); }

/* ---------- CTA final ---------- */
.final { padding: 0 0 96px; }
.final-box {
  background: var(--grad-btn); border-radius: 32px; padding: 64px 40px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.final-box::after {
  content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%;
  border: 60px solid rgba(255, 255, 255, .07);
}
.final-box h2 { color: #fff; font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; position: relative; }
.final-box h2 .hl-serif { color: var(--lav-2); }
.final-box p { color: var(--lav-2); font-size: 19px; margin: 18px auto 30px; max-width: 560px; position: relative; }
.final-box .mascot { position: relative; left: auto; bottom: auto; margin: 0 auto 22px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 34px 0; font-size: 14px; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer a { color: var(--muted); text-decoration: none; margin-left: 18px; }
.footer a:hover { color: var(--purple); }

/* ============ Página de pago ============ */
.checkout { padding: 40px 0 90px; }
.checkout-head { margin-bottom: 30px; }
.checkout-head h1 { font-size: clamp(32px, 4.4vw, 46px); font-weight: 800; margin-top: 14px; }
.checkout-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: 32px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 20px; }
.step-title { display: flex; align-items: center; gap: 12px; font-size: 21px; margin-bottom: 22px; }
.step-title .n { width: 34px; height: 34px; border-radius: 50%; background: var(--grad-btn); color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 800; flex: none; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink); }
.field label small { font-weight: 500; color: var(--muted); }
.field input, .field select {
  height: 50px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg);
  padding: 0 14px; font: 500 16px var(--sans); color: var(--ink); transition: border-color .15s, background .15s;
}
.field input:focus { border-color: var(--purple); background: #fff; outline: none; box-shadow: 0 0 0 4px var(--lav); }
.field.err input { border-color: #e04848; background: #fff6f6; }
.field .msg { font-size: 13px; color: #c62828; display: none; }
.field.err .msg { display: block; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--purple); }
.hint { font-size: 13.5px; color: var(--muted); margin: 0; }

.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.method { position: relative; }
.method input { position: absolute; opacity: 0; pointer-events: none; }
.method label {
  display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 16px; border-radius: 14px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--bg); transition: all .15s;
}
.method label b { font-size: 15.5px; color: var(--ink); line-height: 1.25; }
.method label small { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.method .mi { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--purple); }
.method input:checked + label { border-color: var(--purple); background: var(--lav); box-shadow: 0 0 0 4px rgba(123, 31, 201, .1); }
.method input:focus-visible + label { outline: 3px solid var(--lav-3); outline-offset: 2px; }

.pay-panel { display: none; margin-top: 24px; padding-top: 24px; border-top: 1px dashed var(--lav-2); }
.pay-panel.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

.crypto-grid { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: start; }
.qr { width: 170px; height: 170px; border-radius: 16px; background: #fff; border: 1px solid var(--line); padding: 12px; position: relative; }
.qr canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.qr .qr-logo {
  position: absolute; inset: 50% auto auto 50%; width: 34px; height: 34px; transform: translate(-50%, -50%);
  background: #fff; border-radius: 8px; display: grid; place-items: center;
}
.qr-cap { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.data-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.data-row > span { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.copybox {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--lav); border-radius: 11px; padding: 10px 10px 10px 14px; font-weight: 700; color: var(--purple-ink);
}
.copybox code { font: 700 15.5px/1.35 ui-monospace, Consolas, monospace; word-break: break-all; }
.copybox code.big { font-size: 22px; letter-spacing: .04em; }
.copy-btn {
  flex: none; border: 0; background: #fff; color: var(--purple); font: 700 13px var(--sans);
  padding: 8px 12px; border-radius: 8px; cursor: pointer; box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
.copy-btn.done { background: var(--ok); color: #fff; }
.steps-mini { margin: 0 0 20px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; }
.steps-mini li { counter-increment: s; position: relative; padding-left: 34px; font-size: 15px; }
.steps-mini li::before {
  content: counter(s); width: 24px; height: 24px; border-radius: 50%; background: var(--lav-2); color: var(--purple-deep);
  font-weight: 800; font-size: 13px; display: grid; place-items: center; position: absolute; left: 0; top: 1px;
}
.net-tabs { display: inline-flex; background: var(--lav); padding: 4px; border-radius: 11px; gap: 4px; margin-bottom: 16px; }
.net-tabs button { border: 0; background: transparent; font: 700 14px var(--sans); color: var(--purple-deep); padding: 8px 14px; border-radius: 8px; cursor: pointer; }
.net-tabs button.on { background: #fff; box-shadow: 0 1px 3px rgba(46, 9, 89, .15); }
.alert {
  display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45;
  background: #fff4ec; border: 1px solid #fed7bc; color: #8a3a0c; padding: 12px 14px; border-radius: 12px; margin: 4px 0 18px;
}
.alert svg { flex: none; margin-top: 2px; }
.alert.info { background: var(--lav); border-color: var(--lav-2); color: var(--purple-ink); }

.drop {
  border: 2px dashed var(--lav-3); border-radius: 16px; padding: 22px; text-align: center; cursor: pointer;
  background: #fdfbff; transition: all .15s; display: block;
}
.drop:hover, .drop.over { background: var(--lav); border-color: var(--purple); }
.drop input { display: none; }
.drop .di { width: 46px; height: 46px; border-radius: 13px; margin: 0 auto 10px; display: grid; place-items: center; background: var(--lav-2); color: var(--purple); }
.drop b { color: var(--ink); display: block; }
.drop small { color: var(--muted); }
.drop.has { border-style: solid; border-color: var(--ok); background: #f2fbf6; }
.drop .preview { display: none; align-items: center; gap: 12px; text-align: left; }
.drop.has .preview { display: flex; }
.drop.has .empty { display: none; }
.drop .preview img { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.drop .preview .x { margin-left: auto; color: var(--muted); font-size: 13px; text-decoration: underline; }
.drop.err { border-color: #e04848; background: #fff6f6; }
.wa-alt { margin-top: 16px; font-size: 14.5px; color: var(--muted); text-align: center; }
.wa-alt a { color: #178c46; font-weight: 700; }

.summary { position: sticky; top: 100px; }
.summary .prod { display: flex; gap: 14px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.summary .thumb {
  width: 64px; height: 64px; border-radius: 16px; flex: none;
  background: url("assets/avatar.webp") 50% 40% / 175% auto no-repeat, var(--purple-2);
}
.summary .prod b { color: var(--ink); font-size: 18px; display: block; }
.summary .prod small { color: var(--muted); }
.summary .checklist { margin: 20px 0; gap: 9px; }
.summary .checklist li { font-size: 14.5px; }
.sum-row { display: flex; justify-content: space-between; font-size: 15px; padding: 6px 0; }
.sum-row s { color: #a7a3b0; }
.sum-row.disc { color: var(--ok); font-weight: 700; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; }
.sum-total span { font-weight: 700; color: var(--ink); }
.sum-total b { font-size: 34px; color: var(--ink); letter-spacing: -.03em; }
.secure { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); margin-top: 16px; }

/* ============ Gracias ============ */
.thanks { padding: 60px 0 100px; }
.thanks-card { max-width: 760px; margin: 0 auto; text-align: center; }
.big-check {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 26px; display: grid; place-items: center;
  background: var(--grad-btn); color: #fff; box-shadow: 0 0 0 12px var(--lav), var(--shadow-lg);
}
.thanks-card h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; }
.thanks-card .lead { font-size: 19px; margin: 18px auto 0; max-width: 600px; }
.thanks-card .lead b { color: var(--purple); }
.timeline { display: grid; gap: 14px; margin: 44px auto 0; max-width: 560px; text-align: left; }
.tl { display: flex; align-items: center; gap: 0; }
.tl .n {
  z-index: 2; width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-weight: 800; font-size: 19px; background: #fff; color: var(--purple-deep); border: 5px solid var(--purple-deep);
}
.tl .board {
  margin-left: -18px; flex: 1; padding: 14px 54px 14px 34px; font-weight: 700; font-size: 16.5px;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, 0 100%);
  background: var(--lav-2); color: var(--purple-ink); display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.tl .board small { display: block; font-weight: 500; font-size: 13.5px; opacity: .8; }
.tl.done .board { background: var(--purple-deep); color: #fff; }
.tl.done .n { background: var(--ok); color: #fff; border-color: var(--ok); }
.thanks-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.order-box { margin: 34px auto 0; max-width: 560px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; text-align: left; font-size: 15px; }
.order-box div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.order-box span { color: var(--muted); }
.order-box b { color: var(--ink); text-align: right; word-break: break-all; }

/* ============ Área de alumnos ============ */
.student-hero { padding: 44px 0 30px; }
.student-hero .wrap { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.student-hero h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 800; margin-top: 14px; }
.progress-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; min-width: 300px; box-shadow: var(--shadow); }
.progress-card .top { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; color: var(--ink); }
.progress-card .top span { color: var(--purple); }
.bar { height: 10px; border-radius: 99px; background: var(--lav); margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--grad-btn); border-radius: 99px; transition: width .4s ease; }
.tabs-nav { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-top: 10px; overflow-x: auto; }
.tabs-nav a {
  padding: 12px 16px; text-decoration: none; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; font-size: 15.5px;
}
.tabs-nav a:hover { color: var(--purple); }
.tabs-nav a.on { color: var(--purple-deep); border-bottom-color: var(--purple); }
.student-body { padding: 34px 0 90px; }
.student-body > .wrap > .alert { margin-bottom: 28px; }
.module {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow);
}
.module summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 18px; padding: 20px 24px;
}
.module summary::-webkit-details-marker { display: none; }
.module .mn {
  width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 18px;
  border: 5px solid var(--purple-deep); color: var(--purple-deep);
}
.module:nth-of-type(even) .mn { border-color: var(--lav-3); }
.module summary h3 { font-size: 19px; }
.module summary p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.module .mmeta { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--purple); background: var(--lav); padding: 6px 12px; border-radius: 99px; white-space: nowrap; }
.module .chev { color: var(--muted); transition: transform .2s; flex: none; }
.module[open] .chev { transform: rotate(180deg); }
.lessons { border-top: 1px solid var(--line); }
.lesson { display: flex; align-items: center; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.lesson:last-child { border-bottom: 0; }
.lesson .lk { position: relative; flex: none; }
.lesson .lk input { width: 22px; height: 22px; accent-color: var(--ok); cursor: pointer; display: block; }
.lesson .lt { flex: 1; min-width: 0; }
.lesson .lt b { color: var(--ink); font-weight: 700; font-size: 16px; display: block; }
.lesson .lt small { color: var(--muted); font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.lesson.seen .lt b { color: var(--muted); }
.res-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.res {
  display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow);
}
.res .ri { width: 50px; height: 50px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--grad-btn); color: #fff; }
.res.light .ri { background: var(--lav); color: var(--purple); }
.res .rt { flex: 1; min-width: 0; }
.res .rt b { display: block; color: var(--ink); font-size: 16px; line-height: 1.3; }
.res .rt small { color: var(--muted); font-size: 13.5px; display: block; margin-top: 3px; line-height: 1.4; }
.block-title { display: flex; align-items: center; gap: 12px; margin: 56px 0 8px; font-size: 28px; font-weight: 800; }
.block-sub { color: var(--muted); margin: 0 0 22px; }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .hero-grid, .program-grid, .about-grid, .checkout-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 440px; margin: 0 auto; width: 100%; }
  .program-intro { position: static; }
  .summary { position: static; order: -1; }
  .incl-grid, .testi-grid, .pain-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .student-hero .wrap { grid-template-columns: 1fr; }
  .progress-card { min-width: 0; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .hero { padding: 30px 0 70px; }
  .hero-lead { font-size: 18px; }
  .hero-ctas .btn { width: 100%; }
  .stats .wrap { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .incl-grid, .testi-grid, .pain-grid, .fit-grid, .res-grid { grid-template-columns: 1fr; }
  .fields, .methods { grid-template-columns: 1fr; }
  .method label { flex-direction: row; align-items: center; }
  .crypto-grid { grid-template-columns: 1fr; }
  .qr { margin: 0 auto; }
  .panel { padding: 22px 18px; }
  .price-card { padding: 34px 22px; }
  .price b { font-size: 60px; }
  .sign .board { padding: 14px 50px 14px 34px; }
  .sign .n { width: 56px; height: 56px; font-size: 19px; }
  .signpost::before { left: 33px; }
  .float-chip { font-size: 12.5px; padding: 9px 12px; }
  .float-chip .ico { width: 32px; height: 32px; }
  .chip-b { right: 0; }
  .final-box { padding: 48px 22px; }
  .nav .btn { padding: 0 14px; }
  .module summary { padding: 16px; gap: 12px; }
  .module .mmeta { display: none; }
  .lesson { padding: 14px 16px; flex-wrap: wrap; }
  .lesson .btn { margin-left: 38px; }
  .res { flex-wrap: wrap; }
  .res .btn { width: 100%; }
  .footer .wrap { flex-direction: column; text-align: center; }
  .footer a { margin: 0 9px; }
}

/* ============ Aviso de demostración ============ */
.demo-bar {
  background: var(--gold); color: var(--purple-ink); text-align: center;
  font-size: 14px; font-weight: 600; line-height: 1.4; padding: 9px 16px;
}
.demo-bar b { font-weight: 800; }
.demo-tag {
  display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 800; letter-spacing: .05em;
  background: var(--gold); color: var(--purple-ink); padding: 2px 7px; border-radius: 5px; vertical-align: middle;
}
.demo-note { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 18px; }

/* ============ Animaciones ============ */
/* Barra de progreso de lectura */
.scroll-prog {
  position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%;
  background: var(--grad-btn); transform-origin: 0 50%; transform: scaleX(0);
}

/* Cinta de herramientas */
.tools { padding: 34px 0 6px; }
.tools-label { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.track { display: flex; gap: 14px; width: max-content; }
.tool {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 11px 20px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 700; font-size: 16px; color: var(--ink); box-shadow: var(--shadow);
}
.tool .diamond { width: 9px; height: 9px; }

/* Brillo en el botón principal */
.btn-shine { position: relative; overflow: hidden; isolation: isolate; }
.btn-shine::after {
  content: ""; position: absolute; inset: 0 auto 0 -60%; width: 40%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg);
}

@media (prefers-reduced-motion: no-preference) {
  /* Entrada del hero */
  .hero-anim > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-anim > :nth-child(1) { animation-delay: .05s; }
  .hero-anim > :nth-child(2) { animation-delay: .15s; }
  .hero-anim > :nth-child(3) { animation-delay: .3s; }
  .hero-anim > :nth-child(4) { animation-delay: .4s; }
  .hero-anim > :nth-child(5) { animation-delay: .5s; }
  .hero-anim > :nth-child(6) { animation-delay: .6s; }
  .hero-anim > :nth-child(7) { animation-delay: .7s; }
  .hero-anim .brush path { stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 1.3s .75s cubic-bezier(.6, 0, .2, 1) forwards; }
  .photo-card { animation: photoIn 1.1s .2s cubic-bezier(.2, .7, .2, 1) backwards; }
  .hero-media .float-chip { animation: pop .6s cubic-bezier(.3, 1.5, .5, 1) both, bob 6s ease-in-out infinite; }
  .chip-a { animation-delay: .9s, 1.5s !important; }
  .chip-b { animation-delay: 1.1s, 1.7s !important; }
  .hero-media .mascot { animation: pop .6s 1.3s cubic-bezier(.3, 1.5, .5, 1) both; }

  /* Palabra en degradado con brillo */
  .shimmer {
    background-image: linear-gradient(95deg, #a46be6, #7b1fc9 30%, #4e0d8c 50%, #7b1fc9 70%, #a46be6);
    background-size: 200% auto; animation: shimmer 7s linear infinite;
  }

  /* Cinta infinita */
  .track { animation: marquee 32s linear infinite; }
  .marquee:hover .track { animation-play-state: paused; }

  /* Brillo periódico del botón */
  .btn-shine::after { animation: shine 4s 2s ease-in-out infinite; }

  /* Etiqueta de oferta que late */
  .price-card .badge { animation: pulse 2.4s ease-in-out infinite; }

  /* Microinteracciones */
  .incl:hover .ico { animation: wiggle .5s ease; }
  .mascot { transition: transform .3s cubic-bezier(.3, 1.5, .5, 1); }
  .mascot:hover { transform: rotate(-8deg) scale(1.08); }
  .pain, .testi { transition: transform .25s ease, box-shadow .25s ease; }
  .pain:hover, .testi:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .sign .board { transition: transform .25s ease; }
  .sign:hover .board { transform: translateX(8px); }

  /* Aparición al hacer scroll (solo si el JS lo activa) */
  html.anim .reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity .8s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--d, 0s);
  }
  html.anim .sign.reveal { transform: translateX(-48px); }
  html.anim .reveal.in { opacity: 1; transform: none; }
  html.anim .reveal .brush path { stroke-dasharray: 520; stroke-dashoffset: 520; transition: stroke-dashoffset 1.2s .3s cubic-bezier(.6, 0, .2, 1); }
  html.anim .reveal.in .brush path { stroke-dashoffset: 0; }
}

@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes photoIn { from { opacity: 0; transform: translateY(30px) scale(.94) rotate(2deg); } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes shimmer { to { background-position: -200% center; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(247, 199, 90, .25); } }
@keyframes wiggle { 30% { transform: rotate(-10deg) scale(1.08); } 60% { transform: rotate(8deg) scale(1.08); } }

/* ============ Contador circular (alumnos) ============ */
.ring-widget {
  position: fixed; z-index: 60; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 20px 8px 8px;
  box-shadow: 0 18px 40px -16px rgba(46, 9, 89, .45);
}
.ring { position: relative; width: 64px; height: 64px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring-bg { stroke: var(--lav); }
.ring-fg {
  stroke: url(#ringGrad); stroke-linecap: round;
  stroke-dasharray: 169.65; stroke-dashoffset: 169.65;
  transition: stroke-dashoffset .7s cubic-bezier(.3, 1.2, .5, 1), stroke .3s;
}
.ring-pct {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 15px; font-weight: 800; color: var(--purple-ink); font-variant-numeric: tabular-nums;
}
.ring-txt b { display: block; font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.ring-txt small { font-size: 13px; color: var(--muted); }
.ring-widget.complete .ring-fg { stroke: var(--ok); }
.ring-widget.complete .ring-pct { color: var(--ok); }
.ring-widget .plus {
  position: absolute; left: 22px; top: -4px; font-weight: 800; font-size: 16px; color: var(--ok);
  pointer-events: none; animation: plusUp .9s ease-out forwards;
}
.student-body { padding-bottom: 130px; }
@media (max-width: 680px) {
  .ring-widget { padding: 6px; gap: 0; }
  .ring-txt { display: none; }
  .ring { width: 58px; height: 58px; }
}

/* Casilla de "vista" personalizada */
.lesson .lk input {
  appearance: none; -webkit-appearance: none; margin: 0;
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--lav-3); background: #fff;
  display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s;
}
.lesson .lk input::after {
  content: ""; width: 11px; height: 6px; margin-top: -3px;
  border: solid #fff; border-width: 0 0 2.5px 2.5px;
  transform: rotate(-45deg) scale(0); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.lesson .lk input:hover { border-color: var(--purple); }
.lesson .lk input:checked { background: var(--ok); border-color: var(--ok); }
.lesson .lk input:checked::after { transform: rotate(-45deg) scale(1); }
.lesson { transition: background .3s; }
.lesson.seen { background: #f6fcf9; }

/* Módulo completado */
.module .mn { position: relative; transition: background .3s, border-color .3s, color .3s; }
.module .mn-ok { position: absolute; opacity: 0; transform: scale(.3); transition: all .35s cubic-bezier(.3, 1.6, .5, 1); }
.module .mn-num { transition: all .25s; }
.module.done .mn { background: var(--ok); border-color: var(--ok); color: #fff; }
.module.done .mn-ok { opacity: 1; transform: none; }
.module.done .mn-num { opacity: 0; transform: scale(.3); }
.module.done .mmeta { background: #e6f7ee; color: var(--ok); }

/* Carga en botones de pago */
.spinner {
  width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.btn.loading { cursor: wait; opacity: .95; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100; }

@media (prefers-reduced-motion: no-preference) {
  .ring-widget { animation: widgetIn .7s .4s cubic-bezier(.3, 1.4, .5, 1) backwards; }
  .ring-widget.bump .ring { animation: bump .45s cubic-bezier(.3, 1.6, .5, 1); }
  .lesson .lk input:checked { animation: checkPop .4s cubic-bezier(.3, 1.6, .5, 1); }
  .module.done .mn { animation: checkPop .5s cubic-bezier(.3, 1.6, .5, 1); }
  .lesson.enter { animation: lessonIn .45s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--i) * 60ms); }
  .res { transition: transform .25s ease, box-shadow .25s ease; }
  .res:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
  .res:hover .ri { animation: wiggle .5s ease; }
  .module summary { transition: background .2s; }
  .module summary:hover { background: var(--bg); }
  .lesson .btn-ghost svg { transition: transform .2s; }
  .lesson .btn-ghost:hover svg { transform: translate(2px, -2px); }

  /* Pago */
  .step-title .n { animation: stepPulse 2.8s ease-in-out infinite; }
  .method label:hover { transform: translateY(-2px); }
  .method label.picked { animation: picked .45s cubic-bezier(.3, 1.6, .5, 1); }
  .method label.picked .mi { animation: wiggle .5s ease; }
  .field.shake, .drop.shake { animation: shake .4s ease; }
  .drop.got .preview { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1); }
  .drop .di { transition: transform .25s; }
  .drop:hover .di, .drop.over .di { transform: translateY(-4px); }
  .qr::after {
    content: ""; position: absolute; left: 10px; right: 10px; height: 2px; top: 12px;
    background: linear-gradient(90deg, transparent, var(--purple), transparent);
    box-shadow: 0 0 10px var(--purple); animation: scan 2.6s ease-in-out infinite; pointer-events: none;
  }
  .pay-panel.active .copybox { animation: rise .5s cubic-bezier(.2, .7, .2, 1) backwards; }
  .pay-panel.active .data-row:nth-child(2) .copybox { animation-delay: .08s; }
  .pay-panel.active .data-row:nth-child(3) .copybox { animation-delay: .16s; }
  .summary .thumb { animation: floaty 5s ease-in-out infinite; }
  .copy-btn { transition: transform .15s, background .2s; }
  .copy-btn:active { transform: scale(.92); }
}

@keyframes plusUp { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-34px); } }
@keyframes widgetIn { from { opacity: 0; transform: translateY(30px) scale(.8); } }
@keyframes bump { 50% { transform: scale(1.14); } }
@keyframes checkPop { 50% { transform: scale(1.2); } }
@keyframes lessonIn { from { opacity: 0; transform: translateX(-16px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes stepPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(123, 31, 201, .35); } 50% { box-shadow: 0 0 0 8px rgba(123, 31, 201, 0); } }
@keyframes picked { 40% { transform: scale(.95); } 70% { transform: scale(1.03); } }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
@keyframes scan { 0%, 100% { top: 12px; } 50% { top: calc(100% - 14px); } }
@keyframes floaty { 50% { transform: translateY(-4px) rotate(-3deg); } }

/* ============ Tarjeta final (100% completado) ============ */
.finale {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px;
  background: rgba(29, 26, 36, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .35s ease;
}
.finale[hidden] { display: none; }
.finale.show { opacity: 1; }
.finale-card {
  position: relative; overflow: hidden; width: 100%; max-width: 480px; text-align: center;
  background: #fff; border-radius: 28px; padding: 44px 32px 32px; box-shadow: var(--shadow-lg);
  transform: translateY(30px) scale(.9); transition: transform .55s cubic-bezier(.3, 1.4, .5, 1);
}
.finale.show .finale-card { transform: none; }
.finale-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 150px;
  background: linear-gradient(180deg, var(--lav), transparent); pointer-events: none;
}
.finale-card > * { position: relative; }
.finale-badge { width: 112px; height: 112px; margin: 0 auto 20px; }
.finale-badge::before {
  content: ""; position: absolute; inset: -34px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(247, 199, 90, .45) 0 9deg, transparent 9deg 24deg);
  -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 70%);
          mask-image: radial-gradient(circle, #000 35%, transparent 70%);
}
.mascot-lg {
  position: relative; display: block; width: 100%; height: 100%; border-radius: 50%;
  border: 5px solid #fff; box-shadow: 0 0 0 6px var(--lav-2), var(--shadow);
  background: url("assets/avatar.webp") 50% 40% / 175% auto no-repeat, var(--purple-2);
}
.medal {
  position: absolute; right: -6px; bottom: -2px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold); color: var(--purple-ink); border: 3px solid #fff;
  box-shadow: var(--shadow);
}
.finale-card h2 { font-size: clamp(26px, 6vw, 32px); font-weight: 800; margin: 16px 0 10px; text-wrap: balance; }
.finale-card p { margin: 0; color: var(--muted); font-size: 16.5px; }
.finale-sign { font-size: 28px !important; color: var(--purple) !important; margin: 14px 0 24px !important; line-height: 1.2; }
.finale-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
@media (max-width: 680px) {
  .finale-card { padding: 38px 20px 24px; }
  .finale-ctas .btn { width: 100%; }
}

/* ============ Brillo que sigue al mouse ============ */
.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: 55; width: 560px; height: 560px; margin: -280px 0 0 -280px;
  border-radius: 50%; pointer-events: none; mix-blend-mode: multiply;
  background: radial-gradient(circle, rgba(164, 107, 230, .24), rgba(164, 107, 230, 0) 62%);
  opacity: 0; transition: opacity .5s ease; will-change: transform;
}
.cursor-glow.on { opacity: 1; }

/* Tarjetas que se iluminan bajo el cursor */
.spot { position: relative; }
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--spot, rgba(123, 31, 201, .11)), transparent 62%);
  opacity: 0; transition: opacity .35s ease;
}
.spot:hover::before { opacity: 1; }
.fit.yes, .sign .board, .stats { --spot: rgba(255, 255, 255, .16); }
.price-card.spot::before { border-radius: 26px; }

@media (prefers-reduced-motion: no-preference) {
  .finale.show .mascot-lg { animation: pop .6s .15s cubic-bezier(.3, 1.6, .5, 1) backwards; }
  .finale.show .medal { animation: pop .5s .55s cubic-bezier(.3, 1.8, .5, 1) backwards; }
  .finale.show .finale-badge::before { animation: spin 14s linear infinite; }
  .finale.show .finale-card > :not(.finale-badge) { animation: rise .6s cubic-bezier(.2, .7, .2, 1) backwards; }
  .finale.show .finale-card > :nth-child(2) { animation-delay: .3s; }
  .finale.show .finale-card > :nth-child(3) { animation-delay: .38s; }
  .finale.show .finale-card > :nth-child(4) { animation-delay: .46s; }
  .finale.show .finale-card > :nth-child(5) { animation-delay: .54s; }
  .finale.show .finale-card > :nth-child(6) { animation-delay: .62s; }
}

/* ============ Resultados: reels ============ */
.results { padding-top: 70px; }
.reels {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 50px;
  align-items: center;
}
.reel {
  position: relative; margin: 0; aspect-ratio: 9 / 16; max-width: 100%; border-radius: 22px; overflow: hidden;
  background: var(--purple-ink); box-shadow: var(--shadow-lg); cursor: pointer;
  border: 4px solid #fff; outline: 1px solid var(--line);
}
.reel:nth-child(odd) { transform: translateY(18px); }
.reel video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-sound {
  position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(29, 26, 36, .55); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.reel-sound .i-on { display: none; }
.reel.sound .reel-sound { background: var(--purple); }
.reel.sound .reel-sound .i-on { display: block; }
.reel.sound .reel-sound .i-off { display: none; }
.reel.sound { outline: 3px solid var(--purple); }
.reels-hint { text-align: center; color: var(--muted); font-size: 14px; margin: 36px 0 0; }

/* ============ Catálogo de cursos ============ */
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 54px; align-items: stretch; }
.course {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: 30px 26px 26px; box-shadow: var(--shadow); min-width: 0;
}
.course.featured { border: 2px solid var(--purple); box-shadow: var(--shadow-lg); }
.course-tag {
  align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--purple-deep); background: var(--lav); padding: 5px 11px; border-radius: 999px;
}
.course.featured .course-tag { background: var(--purple); color: #fff; }
.course-tag.gold { background: var(--gold); color: var(--purple-ink); }
.course h3 { font-size: 23px; margin: 16px 0 10px; text-wrap: balance; }
.course-desc { margin: 0; font-size: 15.5px; color: var(--muted); }
.course-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0 6px;
  padding: 14px 0; border-block: 1px solid var(--line); text-align: center; font-size: 12.5px; color: var(--muted);
}
.course-meta b { display: block; font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; }
.course .checklist { margin: 16px 0 22px; gap: 9px; }
.course .checklist li { font-size: 15px; }
.course-price { margin-top: auto; display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.course-price s { color: #a7a3b0; font-weight: 600; }
.course-price b { font-size: 44px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.course-price b small { font-size: 16px; color: var(--muted); letter-spacing: 0; }

/* Pack */
.pack {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; margin-top: 26px; border-radius: 28px; overflow: hidden;
  background: var(--purple-ink); color: #fff; box-shadow: var(--shadow-lg);
}
.pack-info { padding: 36px; }
.pack-info h3 { color: #fff; font-size: clamp(26px, 3.4vw, 34px); margin: 16px 0 8px; }
.pack-info > p { color: var(--lav-3); margin: 0 0 22px; }
.pack-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pack-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 16px;
}
.pack-list li span { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pack-list li svg { color: var(--gold); flex: none; }
.pack-list li b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pack-list .pack-sum { border-bottom: 0; color: var(--lav-3); font-weight: 600; }
.pack-list .pack-sum b { color: #fff; font-size: 18px; }
.pack-buy {
  padding: 36px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  background: var(--grad-btn); position: relative;
}
.pack-save {
  font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  background: var(--gold); color: var(--purple-ink); padding: 6px 14px; border-radius: 999px;
}
.pack-price { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 6px; }
.pack-price s { color: var(--lav-3); font-size: 22px; font-weight: 600; }
.pack-price b { font-size: 68px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.pack-price b small { font-size: 20px; color: var(--lav-2); letter-spacing: 0; }
.pack-buy > p { color: var(--lav-2); margin: 0 0 22px; font-size: 15px; }
.pack-buy .btn { max-width: 340px; }

/* ============ Pestañas de cursos (alumnos) ============ */
.course-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 26px; }
.ctab {
  display: flex; flex-direction: column; gap: 4px; text-align: left; cursor: pointer; min-width: 0;
  background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px; font: inherit;
  box-shadow: var(--shadow); transition: border-color .2s, background .2s, transform .2s;
}
.ctab b { font-size: 15.5px; color: var(--ink); line-height: 1.3; }
.ctab small { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ctab-bar { display: block; height: 6px; border-radius: 99px; background: var(--lav); margin-top: 6px; overflow: hidden; }
.ctab-bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad-btn); transition: width .5s ease; }
.ctab:hover { border-color: var(--lav-3); }
.ctab.on { border-color: var(--purple); background: var(--lav); }
.ctab.complete small { color: var(--ok); font-weight: 700; }
.ctab.complete .ctab-bar i { background: var(--ok); }

@media (max-width: 980px) {
  .reels { grid-template-columns: repeat(5, 58%); overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 30px; }
  .reel { scroll-snap-align: center; }
  .reel:nth-child(odd) { transform: none; }
  .course-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .pack { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 680px) {
  .reels { grid-template-columns: repeat(5, 72%); }
  .pack-info, .pack-buy { padding: 28px 22px; }
  .pack-price b { font-size: 56px; }
  .course-tabs { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .reel { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
  .reel:hover { transform: translateY(-8px) scale(1.03); box-shadow: 0 40px 70px -28px rgba(78, 13, 140, .55); }
  .reel:nth-child(odd):hover { transform: translateY(10px) scale(1.03); }
  html.anim .reel.reveal { transform: translateY(40px) scale(.94); }
  html.anim .reel.reveal.in { transform: none; }
  html.anim .reel.reveal.in:nth-child(odd) { transform: translateY(18px); }
  .course { transition: transform .25s ease, box-shadow .25s ease; }
  .course:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
  .pack-save { animation: pulse 2.4s ease-in-out infinite; }
  .ctab:hover { transform: translateY(-2px); }
  .module.swap { animation: rise .5s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--i) * 70ms); }
  .summary.swap { animation: picked .45s cubic-bezier(.3, 1.6, .5, 1); }
}
@media (max-width: 980px) and (prefers-reduced-motion: no-preference) {
  html.anim .reel.reveal.in:nth-child(odd), .reel:nth-child(odd):hover { transform: none; }
}

/* ============ Premio por completar todos los cursos ============ */
.gift {
  position: relative; display: grid; place-items: center; width: 112px; height: 112px; border-radius: 30px;
  background: linear-gradient(135deg, #ffe29a, var(--gold)); color: var(--purple-ink);
  box-shadow: 0 0 0 6px #fff, 0 0 0 12px rgba(247, 199, 90, .35), var(--shadow-lg);
}
.gift.sm { width: 54px; height: 54px; border-radius: 16px; box-shadow: none; flex: none; }
.prize-box.locked .gift.sm { background: var(--lav); color: var(--purple); }
.gift-badge::before { background: repeating-conic-gradient(from 0deg, rgba(247, 199, 90, .6) 0 8deg, transparent 8deg 20deg) !important; inset: -44px !important; }
.premio .finale-card { max-width: 540px; border: 2px solid var(--gold); }
.premio .finale-card::before { background: linear-gradient(180deg, #fff4d6, transparent); height: 180px; }
.gold-eyebrow { background: #fff4d6; border-color: #f6dc97; color: #7a5200; }
.gold-eyebrow .diamond { background: var(--gold); }

.prize-items { display: grid; gap: 10px; margin: 22px 0 18px; text-align: left; }
.prize-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; text-decoration: none;
  background: var(--bg); border: 1.5px solid var(--line); color: inherit; transition: border-color .2s, background .2s, transform .2s;
}
.prize-item:hover { border-color: var(--purple); background: var(--lav); }
.pi-ico { width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center; background: var(--grad-btn); color: #fff; }
.pi-txt { flex: 1; min-width: 0; }
.pi-txt b { display: block; color: var(--ink); font-size: 16px; line-height: 1.3; }
.pi-txt small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.4; margin-top: 2px; }
.pi-go { color: var(--purple); flex: none; }
.prize-social { border-top: 1px dashed var(--lav-2); padding-top: 16px; margin-bottom: 18px; }
.prize-social p { margin: 0 0 12px !important; font-weight: 700; color: var(--ink) !important; font-size: 15px !important; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.social {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; text-decoration: none;
  background: var(--purple-ink); color: #fff; font-weight: 700; font-size: 14px; transition: transform .2s, background .2s;
}
.social:hover { background: var(--purple); }

/* Sección en el área de alumnos */
.prize-box { border-radius: 22px; padding: 24px; margin-bottom: 8px; }
.prize-box.locked { background: #fff; border: 1.5px dashed var(--lav-3); }
.prize-box.open { background: #fffaf0; border: 2px solid var(--gold); box-shadow: var(--shadow-lg); }
.prize-head { display: flex; align-items: center; gap: 16px; }
.prize-head b { display: block; font-size: 19px; color: var(--ink); }
.prize-head small { color: var(--muted); font-size: 14.5px; }
.prize-box .ctab-bar { margin-top: 18px; height: 8px; }
.prize-teaser { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.prize-teaser li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14.5px; filter: blur(.4px); }
.prize-teaser svg { color: var(--lav-3); }
.prize-box.open .socials { justify-content: flex-start; }
.prize-box.open .prize-social p { text-align: left; }

@media (prefers-reduced-motion: no-preference) {
  .premio.show .gift { animation: giftIn .8s .15s cubic-bezier(.3, 1.6, .5, 1) backwards, giftShake 2.8s 1.2s ease-in-out infinite; }
  .premio.show .prize-item { animation: rise .5s cubic-bezier(.2, .7, .2, 1) backwards; }
  .premio.show .prize-item:nth-child(1) { animation-delay: .55s; }
  .premio.show .prize-item:nth-child(2) { animation-delay: .65s; }
  .premio.show .social { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1) backwards; }
  .premio.show .social:nth-child(1) { animation-delay: .8s; }
  .premio.show .social:nth-child(2) { animation-delay: .87s; }
  .premio.show .social:nth-child(3) { animation-delay: .94s; }
  .premio.show .social:nth-child(4) { animation-delay: 1.01s; }
  .prize-item:hover { transform: translateX(4px); }
  .social:hover { transform: translateY(-3px); }
  .prize-box.open .gift.sm { animation: giftShake 2.8s ease-in-out infinite; }
}
@keyframes giftIn { from { opacity: 0; transform: scale(.2) rotate(-25deg); } }
@keyframes giftShake { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-8deg) scale(1.05); } 88% { transform: rotate(7deg) scale(1.05); } 92% { transform: rotate(-4deg); } 96% { transform: rotate(3deg); } }

/* Las tarjetas emergentes se desplazan si no caben en pantallas bajas */
.finale { display: flex; overflow-y: auto; overscroll-behavior: contain; }
.finale[hidden] { display: none; }
.finale-card { margin: auto; flex: none; }

/* ============ Versión de un solo curso (oct 2026) ============ */
/* Señalética: lista de clases dentro de cada cartel */
.sign .board { padding-block: 22px; }
.sign-lessons { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sign-lessons li {
  font-size: 12.5px; font-weight: 600; line-height: 1.3; padding: 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22);
}
.sign:nth-child(even) .sign-lessons li { background: rgba(255, 255, 255, .6); border-color: rgba(78, 13, 140, .14); }

/* Resultados: video horizontal destacado + 7 reels */
.motion-feat { max-width: 880px; margin: 50px auto 0; }
.motion-feat:empty { display: none; }
.reel-wide { aspect-ratio: 16 / 9; border-radius: 24px; }
.reel-wide:nth-child(odd), html.anim .reel-wide.reveal.in:nth-child(odd) { transform: none; }
.reels { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.reel { border-width: 3px; border-radius: 18px; }
.reel-tag {
  position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 20px);
  font-size: 11.5px; font-weight: 700; line-height: 1.2; color: #fff; padding: 6px 10px; border-radius: 999px;
  background: rgba(46, 9, 89, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.reel-tag .diamond { width: 7px; height: 7px; flex: none; }
.reel-wide .reel-tag { font-size: 13px; left: 16px; top: 16px; padding: 7px 13px; }

/* Caja de valor: todo lo que recibes por el precio */
.value-box {
  margin-top: 40px; padding: 38px; border-radius: 28px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, #8b1dc9 0%, var(--purple-ink) 60%);
  box-shadow: var(--shadow-lg); display: grid; grid-template-columns: auto 1fr; gap: 26px 40px; align-items: center;
}
.value-box:empty { display: none; }
.value-head { display: flex; align-items: center; gap: 22px; }
.value-num {
  font-size: clamp(84px, 11vw, 132px); font-weight: 800; line-height: .85; letter-spacing: -.05em;
  background: linear-gradient(180deg, #fff 30%, var(--lav-3)); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.value-kicker { display: block; font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lav-3); }
.value-price { display: block; font-size: clamp(30px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--gold); }
.value-price s { font-size: .55em; color: var(--lav-3); font-weight: 600; }
.value-head p { margin: 6px 0 0; font-size: 15px; color: var(--lav-2); }
.value-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; }
.value-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--lav-2); min-width: 0; }
.value-list .vi {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: rgba(255, 255, 255, .1); color: var(--gold);
}
.value-list b { font-size: 20px; color: #fff; font-variant-numeric: tabular-nums; min-width: 24px; }
.value-box > .btn { grid-column: 1 / -1; justify-self: center; }

/* Oferta de un solo curso */
.course-grid.solo { display: block; max-width: 1000px; margin-inline: auto; }
.offer .pack-list li b { font-size: 18px; }
.pack-price b small { font-size: 22px; }
.offer-note { display: block; margin-top: 14px; font-size: 12.5px; color: var(--lav-2); opacity: .85; }

/* Testimonios con foto */
img.av { width: 52px; height: 52px; object-fit: cover; padding: 0; border: 2px solid var(--lav-2); }

@media (max-width: 980px) {
  .reels { grid-template-columns: repeat(7, 46%); }
  .value-box { grid-template-columns: 1fr; padding: 30px 24px; }
}
@media (max-width: 680px) {
  .reels { grid-template-columns: repeat(7, 64%); }
  .value-head { gap: 16px; }
  .value-list { grid-template-columns: 1fr; }
  .value-box > .btn { justify-self: stretch; text-align: center; }
  .reel-wide { border-radius: 16px; }
  .reel-wide .reel-tag { font-size: 11.5px; left: 10px; top: 10px; }
}

/* Área de alumnos: material de cada clase */
.lesson .lt small { flex-wrap: wrap; }
.lt-mat { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding-left: 10px; border-left: 1px solid var(--line); }
.l-btns { display: flex; gap: 8px; flex: none; }
@media (max-width: 680px) {
  .lt-mat { margin-left: 0; padding-left: 0; border-left: 0; width: 100%; }
  .l-btns { margin-left: 38px; }
  .lesson .l-btns .btn { margin-left: 0; }
}

/* Área de alumnos: recursos de cada clase */
.rec-mod {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden;
}
.rec-mod + .rec-mod { margin-top: 14px; }
.rec-mod-title {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none;
  color: var(--ink); transition: background .2s;
}
.rec-mod-title::-webkit-details-marker { display: none; }
.rec-mod-title:hover { background: var(--lav); }
.rec-mod-title .rm-n {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: 16px; font-weight: 800; color: var(--purple-deep); border: 5px solid var(--purple-deep); background: #fff;
}
.rec-mod-title .rm-t { flex: 1; min-width: 0; }
.rec-mod-title .rm-t b { display: block; font-size: 19px; line-height: 1.3; }
.rec-mod-title .rm-t small { color: var(--muted); font-size: 13.5px; }
.rec-mod-title .chev { color: var(--purple); flex: none; transition: transform .25s ease; }
.rec-mod[open] > .rec-mod-title { border-bottom: 1px solid var(--line); }
.rec-mod[open] > .rec-mod-title .chev { transform: rotate(180deg); }
.rec-mod[open] > .rec-mod-title .rm-n { background: var(--purple-deep); color: #fff; }
.rec-classes {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start;
  padding: 18px; background: var(--bg);
}
@media (prefers-reduced-motion: no-preference) {
  .rec-mod[open] .rec-classes { animation: rise .4s cubic-bezier(.2, .7, .2, 1); }
}
.rec-class {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; scroll-margin-top: 120px;
}
.rec-class summary {
  display: grid; grid-template-columns: 1fr auto auto; gap: 2px 12px; align-items: center;
  padding: 16px 20px; cursor: pointer; list-style: none; transition: background .2s;
}
.rec-class summary::-webkit-details-marker { display: none; }
.rec-class summary:hover { background: var(--lav); }
.rec-class[open] summary { background: var(--lav); border-bottom: 1px solid var(--line); }
.rec-class summary .chev { grid-row: 1 / 3; grid-column: 3; color: var(--purple); transition: transform .25s ease; }
.rec-class[open] summary .chev { transform: rotate(180deg); }
.rec-class summary b { grid-column: 1; }
.rec-class summary small { grid-row: 2; grid-column: 2; }
.rec-class .rc-n { grid-column: 1 / -1; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--purple); }
.rec-class summary b { color: var(--ink); font-size: 16.5px; line-height: 1.3; }
.rec-class summary small { color: var(--muted); font-size: 13px; white-space: nowrap; }
.rec-class ul { list-style: none; margin: 0; padding: 6px 8px; }
.rec-class li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; transition: background .2s; }
.rec-class li:hover { background: var(--lav); }
.rf-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--grad-btn); color: #fff; }
.rf-t { flex: 1; min-width: 0; }
.rf-t b { display: block; font-size: 15px; color: var(--ink); line-height: 1.3; }
.rf-t small { color: var(--muted); font-size: 12.5px; }
.rf-dl {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  color: var(--purple); border: 1.5px solid var(--lav-2); background: #fff; transition: background .2s, color .2s, transform .2s;
}
.rf-dl:hover { background: var(--purple); color: #fff; border-color: var(--purple); }
.rec-class.flash { animation: recFlash 1.6s ease; }
@keyframes recFlash {
  0%, 100% { box-shadow: var(--shadow); border-color: var(--line); }
  20%, 60% { box-shadow: 0 0 0 4px var(--lav-3), var(--shadow-lg); border-color: var(--purple); }
}
@media (max-width: 860px) { .rec-classes { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) { .rf-dl:hover { transform: translateY(-2px); } }

/* Área de alumnos: recursos de estratega */
.est-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.est {
  position: relative; display: flex; flex-direction: column; padding: 26px 24px 24px; border-radius: 22px; overflow: hidden;
  color: #fff; background: radial-gradient(130% 120% at 0% 0%, #8b1dc9 0%, var(--purple-ink) 70%); box-shadow: var(--shadow-lg);
}
.est::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; transform: rotate(45deg);
  border: 2px solid rgba(255, 255, 255, .12); border-radius: 18px; pointer-events: none;
}
.est-ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: var(--gold); }
.est-tipo { position: absolute; right: 22px; top: 26px; font-size: 12px; font-weight: 800; letter-spacing: .05em; color: var(--lav-3); }
.est h3 { color: #fff; font-size: 19px; line-height: 1.25; margin: 18px 0 8px; }
.est p { color: var(--lav-2); font-size: 14.5px; line-height: 1.5; margin: 0 0 20px; flex: 1; }
.est .btn { background: #fff; color: var(--purple-deep); justify-content: center; }
@media (max-width: 860px) { .est-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) {
  .est { transition: transform .25s ease; }
  .est:hover { transform: translateY(-4px); }
}
.est-partes { display: grid; gap: 8px; }
.est-partes .btn { background: #fff; color: var(--purple-deep); justify-content: flex-start; gap: 8px; }
.est-partes .btn small { margin-left: auto; font-weight: 600; color: var(--muted); font-size: 12px; }

@media (prefers-reduced-motion: no-preference) {
  .rec-class[open] ul { animation: rise .35s cubic-bezier(.2, .7, .2, 1); }
}
.rec-class summary .rc-n { grid-column: 1 / 3; grid-row: 1; }

/* Pago: 4 métodos, QR reales y Zinli */
.methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qr-img { padding: 6px; overflow: hidden; }
.qr-img img { width: 100%; height: 100%; display: block; object-fit: contain; border-radius: 10px; }
.pay-note { margin-bottom: 16px; }
.zinli-box > p { margin: 0 0 14px; font-size: 15.5px; }
.zinli-box .zinli-lead { font-size: 19px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.zinli-box .alert { margin: 4px 0 18px; }

/* Páginas legales */
.legal { padding: 70px 0 90px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 800; margin: 18px 0 6px; }
.legal-date { color: var(--muted); font-size: 14px; margin: 0 0 34px; }
.legal h2 { font-size: 21px; margin: 34px 0 10px; color: var(--ink); }
.legal p, .legal li { font-size: 16.5px; line-height: 1.7; }
.legal ul { padding-left: 22px; margin: 0 0 14px; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--purple); font-weight: 600; }
.legal-note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); text-align: center; }
.legal-note a { color: var(--purple); }

/* Precio de lanzamiento explicado */
.launch-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 18px; font-size: 15.5px; color: var(--text); }
.launch-note s { color: var(--muted); }
.launch-note b { color: var(--purple); }
.launch-tag { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: var(--gold); color: var(--purple-ink); padding: 5px 11px; border-radius: 999px; }
.launch-explain {
  display: grid; grid-template-columns: auto auto auto; justify-content: center; align-items: center; gap: 10px 26px;
  margin: 30px auto 0; max-width: 620px; padding: 22px 28px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.launch-explain small { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.launch-explain s { font-size: 28px; font-weight: 700; color: #a7a3b0; }
.launch-explain .now b { font-size: 36px; font-weight: 800; color: var(--purple); letter-spacing: -.02em; }
.launch-arrow { font-size: 28px; color: var(--purple); font-weight: 800; }
.launch-explain p { grid-column: 1 / -1; margin: 6px 0 0; font-size: 14.5px; color: var(--muted); text-align: center; }
.launch-explain p b { color: var(--ok); }
.zinli-flags { display: inline-block; font-size: 13px; font-weight: 700; color: var(--purple-deep); background: var(--lav); padding: 6px 12px; border-radius: 999px; margin-bottom: 12px; }
@media (max-width: 680px) { .launch-explain { padding: 18px; gap: 8px 14px; } .launch-explain s { font-size: 22px; } .launch-explain .now b { font-size: 28px; } }

/* Pago: aceptar términos y aviso de reembolso */
.terms-box { margin: 20px 0 18px; padding: 16px 18px; border-radius: 16px; background: var(--lav); border: 1.5px solid transparent; }
.terms-box .msg { display: none; color: #c0262d; font-size: 13px; margin-top: 6px; }
.terms-box.err { border-color: #e5484d; background: #fff5f5; }
.terms-box.err .msg { display: block; }
.terms-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; cursor: pointer; }
.terms-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--purple); flex: none; }
.terms-check a { color: var(--purple); font-weight: 700; }
.refund-hint { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; font-size: 14px; line-height: 1.45; }
.refund-hint svg { flex: none; margin-top: 2px; }
.refund-hint.ok { color: #137a4b; }
.refund-hint.no { color: var(--warn); }
/* Página de reembolsos */
.refund-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0 8px; }
.refund-card { padding: 18px 20px; border-radius: 18px; border: 1.5px solid var(--line); background: #fff; }
.refund-card h3 { font-size: 17px; margin: 0 0 6px; }
.refund-card p { margin: 0; font-size: 15px; }
.refund-card.ok { border-color: #a7e3c4; background: #f1fbf6; }
.refund-card.no { border-color: #f5c9a8; background: #fff8f2; }
@media (max-width: 680px) { .refund-grid { grid-template-columns: 1fr; } }
.fee-note { margin-top: 4px; font-size: 14.5px; }

/* Cuenta regresiva */
.launch-timer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; font-size: 14.5px; color: var(--text); }
.launch-timer[hidden] { display: none; }
.lt-label b { color: var(--purple-deep); }
.countdown { display: inline-flex; gap: 6px; }
.cd-box { display: grid; place-items: center; min-width: 50px; padding: 6px 6px 5px; border-radius: 12px; background: var(--purple-ink); color: #fff; line-height: 1; }
.cd-box b { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cd-box small { font-size: 10px; font-weight: 600; color: var(--lav-3); margin-top: 3px; text-transform: uppercase; letter-spacing: .04em; }
.launch-timer.big { grid-column: 1 / -1; justify-content: center; margin-top: 4px; }
.launch-timer.big .cd-box { min-width: 64px; padding: 9px 8px 7px; }
.launch-timer.big .cd-box b { font-size: 26px; }
.launch-timer.sm { justify-content: center; margin-top: 14px; font-size: 13px; }
.launch-timer.sm .cd-box { min-width: 42px; }
.launch-timer.sm .cd-box b { font-size: 16px; }

/* Login y bloqueo del área de alumnos */
.login { padding: 70px 0 90px; min-height: 70vh; }
.login-card { position: relative; max-width: 480px; margin: 0 auto; padding: 38px 34px 30px; background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-lg); }
.login-card h1 { font-size: clamp(32px, 5vw, 42px); font-weight: 800; margin: 16px 0 10px; line-height: 1.1; }
.login-sub { color: var(--muted); font-size: 15.5px; margin: 0 0 22px; }
.login-card .field { margin-bottom: 16px; }
.code-input { font-size: 28px !important; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.login-alt { text-align: center; font-size: 14px; margin: 16px 0 4px; }
.login-alt a, .login-foot a { color: var(--purple); font-weight: 700; }
.login-hint { text-align: center; font-size: 13px; color: var(--muted); margin: 0; }
.login-foot { text-align: center; font-size: 14px; color: var(--muted); margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.login-error { margin-top: 16px; }
.login-mascot { position: absolute; left: auto; bottom: auto; right: -24px; top: -34px; width: 84px; height: 84px; }
.nav-user { display: flex; align-items: center; gap: 12px; }
.nav-mail { font-size: 13.5px; color: var(--muted); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body[data-protegida] .student-hero, body[data-protegida] .student-body, body[data-protegida] .ring-widget, .gate-sin { display: none; }
body[data-protegida].acceso-ok .student-hero, body[data-protegida].acceso-ok .student-body { display: block; }
body[data-protegida].acceso-ok .ring-widget { display: flex; }
body.sin-acceso .gate-sin { display: block; padding: 70px 0 90px; }
.gate-loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 120px 20px; color: var(--muted); font-weight: 600; }
body.acceso-ok .gate-loading, body.sin-acceso .gate-loading { display: none; }
.spinner.dark { border-color: var(--lav-2); border-top-color: var(--purple); }
.gate-btns { display: flex; flex-wrap: wrap; gap: 10px; }
a.loading { opacity: .5; pointer-events: none; }
@media (max-width: 680px) { .nav-mail { display: none; } .login-card { padding: 30px 22px 24px; } .login-mascot { right: -6px; top: -30px; width: 64px; height: 64px; } }

/* Panel de administrador */
.admin { padding: 50px 0 90px; min-height: 70vh; }
.admin h1 { font-size: clamp(32px, 4.5vw, 46px); font-weight: 800; margin: 14px 0 24px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.admin-tabs button { border: 0; background: transparent; font: 700 15px var(--sans); color: var(--muted); padding: 9px 14px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.admin-tabs button.on { background: var(--lav); color: var(--purple-deep); }
.admin-tabs .count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 12px; background: var(--purple); color: #fff; }
.sol-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.sol { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.sol.ok { border-color: #a7e3c4; background: #f1fbf6; }
.sol-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-bottom: 12px; }
.sol-head b { font-size: 17px; color: var(--ink); }
.sol-met { font-size: 13px; font-weight: 700; color: var(--purple-deep); background: var(--lav); padding: 3px 9px; border-radius: 999px; }
.sol-head small { color: var(--muted); font-size: 12.5px; margin-left: auto; }
.sol dl { margin: 0 0 14px; display: grid; gap: 8px; }
.sol dt { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.sol dd { margin: 2px 0 0; font-size: 14.5px; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; word-break: break-all; }
.sol-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.sol-no { background: #fff; color: #c0262d; border: 1.5px solid #f3c2c4; }
.admin-msg { font-size: 14px; margin: 12px 0 0; color: var(--text); }
.admin-msg.err { color: #c0262d; }
.admin-msg a { color: var(--purple); font-weight: 700; }
.admin-empty { color: var(--muted); padding: 30px 0; text-align: center; }
.admin-search { max-width: 420px; margin-bottom: 16px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.admin-table th { text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table td small { display: block; color: var(--muted); font-size: 13px; }
.admin-table tr.off td { opacity: .5; }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #d9d4e3; cursor: pointer; transition: background .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(20px); }
.admin-form { max-width: 640px; }
.admin-form .btn { margin-top: 8px; }
.admin-form select { width: 100%; }

/* Lo que tiene el atributo hidden siempre se oculta */
[hidden] { display: none !important; }

/* Botones del menú: Iniciar sesión + Quiero entrar */
.nav-ctas { display: flex; gap: 8px; align-items: center; }
.nav-ctas .btn { white-space: nowrap; }
@media (max-width: 680px) { .nav-ctas { flex-direction: row; flex-wrap: nowrap; gap: 6px; } .nav-ctas .btn { padding: 9px 12px; font-size: 13px; } }
@media (max-width: 380px) { .nav .logo { width: 104px; } .nav-ctas .btn { padding: 8px 10px; font-size: 12.5px; } }

/* Números: 5 columnas */
.stats .wrap { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 680px) { .stats .wrap { grid-template-columns: 1fr 1fr; } .stats .stat:last-child { grid-column: 1 / -1; } }
/* Testimonios: inicial del nombre */
span.av { width: 52px; height: 52px; font-size: 22px; font-family: var(--serif); }
/* Pago con tarjeta: código de descuento */
.code-box { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center; margin-bottom: 16px; padding: 16px 18px; border-radius: 16px; background: #fff8e6; border: 1.5px dashed var(--gold); }
.code-ico { font-size: 26px; }
.code-txt b { display: block; color: var(--ink); font-size: 15.5px; }
.code-txt small { color: var(--text); font-size: 13.5px; line-height: 1.45; }
.code-box .copybox { grid-column: 1 / -1; }
.code-box code.big { letter-spacing: .12em; color: var(--purple-deep); }
