/* Kontigo · Academia Kuantika
   Ligero: fondo blanco, mucho aire, pocas cajas. Colores del logo: azul marino + aqua + azul eléctrico. */
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}
:root {
  --navy: #14296F;
  --navy-2: #0C1B4D;
  --blue: #2148E0;
  --blue-2: #1A39B8;
  --aqua: #22DFE0;
  --aqua-2: #13B9BB;
  --aqua-soft: #E4FAFA;
  --aqua-ink: #0A7E80;
  --ink: #101935;
  --ink-2: #2B3553;
  --muted: #6B7590;
  --line: #E4E8F1;
  --bg: #FFFFFF;
  --bg-2: #F5F7FB;
  --card: #FFFFFF;
  --ok: #1DB077;
  --ok-2: #138A5B;
  --ok-bg: #E7F8F0;
  --bad: #E5484D;
  --bad-2: #B4232A;
  --bad-bg: #FDEDEE;
  --warn: #F5A524;
  --hint-bg: #FFF7E0;
  --hint-ink: #7A5600;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(16, 25, 53, .06), 0 6px 20px rgba(16, 25, 53, .06);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Nunito", ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  font-size: 16px;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--blue); }
svg.i { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -0.22em; }
#app { min-height: 100dvh; max-width: 480px; margin: 0 auto; position: relative; }

/* ---------- estructura ---------- */
.screen { min-height: 100dvh; padding: calc(var(--safe-top) + 14px) 22px calc(var(--safe-bottom) + 24px); display: flex; flex-direction: column; animation: in .3s ease both; }
@keyframes in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.boot { min-height: 100dvh; display: grid; place-items: center; }
.boot img { width: 92px; height: 92px; animation: breathe 1.1s ease-in-out infinite alternate; }
@keyframes breathe { to { transform: scale(1.06); opacity: .85; } }
h1 { font-size: 30px; line-height: 1.12; margin: 0 0 10px; letter-spacing: -.5px; font-weight: 900; color: var(--navy); }
h2 { font-size: 20px; margin: 0 0 6px; font-weight: 900; color: var(--navy); }
p { line-height: 1.5; margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 17px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.grow { flex: 1; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.hidden { display: none !important; }
.eyebrow { font-size: 12px; font-weight: 900; letter-spacing: 1.4px; text-transform: uppercase; color: var(--aqua-ink); }
.divider { height: 1px; background: var(--line); margin: 22px 0; border: 0; }

/* ---------- marca ---------- */
.kontigo { --s: 26px; display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; color: var(--navy); }
.kontigo .kw { font-size: var(--s); font-weight: 900; letter-spacing: -.02em; position: relative; white-space: nowrap; }
.kontigo .ki { position: relative; display: inline-block; }
.kontigo .kstar { position: absolute; left: 50%; top: -.2em; width: .5em; height: .5em; transform: translateX(-50%) rotate(-8deg); color: var(--aqua); }
.kontigo .ksw { width: calc(var(--s) * 3.7); height: calc(var(--s) * .4); margin-top: calc(var(--s) * -.04); margin-left: calc(var(--s) * -.08); display: block; }
.kontigo.light { color: #fff; }
.kontigo small { font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.by-kuantika { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.by-kuantika img { height: 40px; width: auto; }
/* admin (compatibilidad) */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; color: var(--navy); }
.brand small { display: block; font-weight: 700; font-size: 12px; }
.logo-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; font-size: 22px; color: #fff; background: var(--navy); }
.go { color: var(--aqua-2); }

/* ---------- botones ---------- */
.btn { --b: var(--navy); --b2: var(--navy-2); --c: #fff;
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  padding: 15px 18px; border-radius: 16px; font-weight: 900; font-size: 17px; letter-spacing: .2px;
  background: var(--b); color: var(--c); box-shadow: 0 4px 0 var(--b2);
  transition: transform .06s ease, box-shadow .06s ease, filter .15s; user-select: none; text-decoration: none; margin-bottom: 4px; }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--b2); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-primary { --b: var(--navy); --b2: var(--navy-2); }
.btn-aqua { --b: var(--aqua); --b2: var(--aqua-2); --c: var(--navy); }
.btn-ok { --b: var(--ok); --b2: var(--ok-2); }
.btn-bad { --b: var(--bad); --b2: var(--bad-2); }
.btn-wa { --b: #25D366; --b2: #1A9E4B; }
.btn-white { --b: #fff; --b2: #D8DEEA; --c: var(--navy); }
.btn-outline { --b: #fff; --b2: var(--line); --c: var(--navy); border: 2px solid var(--line); }
.btn-soft { --b: var(--bg-2); --b2: var(--line); --c: var(--navy); }
.btn-ghost { --b: transparent; --b2: transparent; --c: var(--navy); box-shadow: none; }
.link { color: var(--blue); font-weight: 800; padding: 10px; }
.back { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--muted); margin-left: -8px; }
.back svg.i { width: 26px; height: 26px; }

/* ---------- formularios ---------- */
.card { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.field { display: block; }
.field span { display: block; font-size: 14px; font-weight: 800; color: var(--ink-2); margin: 0 0 7px 2px; }
.input { width: 100%; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg-2); font-size: 17px; outline: none; color: var(--ink); transition: border-color .15s, background .15s; }
.input:focus { border-color: var(--aqua); background: #fff; }
.input::placeholder { color: #A3AAC0; }
.err { color: var(--bad); font-weight: 800; font-size: 14px; min-height: 18px; }
.note { font-size: 13px; color: var(--muted); }

#toast { position: fixed; left: 50%; bottom: calc(var(--safe-bottom) + 24px); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 800; transition: transform .25s ease, opacity .25s; z-index: 50; max-width: 90vw; text-align: center; }
#toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- bienvenida ---------- */
.welcome { overflow: hidden; position: relative; }
.welcome .orbit { position: absolute; right: -120px; top: 90px; width: 420px; height: 420px; border-radius: 50%; border: 22px solid var(--aqua-soft); transform: rotate(-20deg); z-index: -1; }
.welcome .orbit::after { content: ""; position: absolute; right: 52px; top: 22px; width: 18px; height: 18px; border-radius: 50%; background: var(--aqua); }
.preview { position: relative; height: 290px; margin: 26px 0 8px; }
.pv-card { position: absolute; left: 6%; right: 6%; top: 8px; background: #fff; border: 2px solid var(--line); border-radius: 22px; padding: 18px 16px; box-shadow: 0 18px 40px rgba(20, 41, 111, .12); transform: rotate(-2.5deg); }
.pv-card.back-card { top: 0; transform: rotate(4deg) translate(10px, 8px); box-shadow: none; background: var(--bg-2); height: 250px; }
.pv-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pv-bar { flex: 1; height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.pv-bar i { display: block; height: 100%; width: 60%; background: var(--aqua); border-radius: 8px; }
.pv-q { font-weight: 900; color: var(--navy); font-size: 15px; line-height: 1.35; margin-bottom: 12px; }
.pv-opt { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 2px solid var(--line); border-radius: 12px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin-top: 8px; }
.pv-opt b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; border: 2px solid var(--line); color: var(--muted); flex: none; }
.pv-opt.ok { border-color: var(--ok); background: var(--ok-bg); color: var(--ok-2); }
.pv-opt.ok b { background: var(--ok); border-color: var(--ok); color: #fff; }
.pv-badge { position: absolute; right: 0; bottom: -6px; background: var(--navy); color: #fff; font-weight: 900; font-size: 13px; padding: 10px 14px; border-radius: 14px; display: flex; gap: 8px; align-items: center; transform: rotate(3deg); box-shadow: 0 10px 24px rgba(20, 41, 111, .25); }
.pv-badge svg.i { color: var(--aqua); }

/* ---------- selector ---------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 14px 2px; text-align: left; width: 100%; border-bottom: 1px solid var(--line); transition: background .15s; }
.list-item:last-child { border-bottom: 0; }
.list-item:active { background: var(--bg-2); }
.list-item .t { flex: 1; font-weight: 900; font-size: 17px; color: var(--navy); }
.list-item small { display: block; font-weight: 700; color: var(--muted); font-size: 13px; margin-top: 2px; }
.list-item .chev { color: #B6BDCF; }
.list-item.soon { opacity: .5; pointer-events: none; }
.cico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c, var(--navy)) 12%, white); color: var(--c, var(--navy)); }
.cico svg.i { width: 24px; height: 24px; }

/* ---------- inicio ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin-bottom: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; font-weight: 900; font-size: 15px; color: var(--ink-2); background: var(--bg-2); }
.chip.fire { color: #E8590C; background: #FFF1E7; }
.chip.fire.off { color: #A3AAC0; background: var(--bg-2); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 900; display: grid; place-items: center; font-size: 16px; }
.course-head { margin: 6px 0 22px; }
.course-head .name { font-size: 32px; font-weight: 900; letter-spacing: -.6px; color: var(--navy); line-height: 1.08; margin: 6px 0 8px; }
.course-head .change { color: var(--blue); font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.goal { margin: 4px 0 22px; }
.goal .row { justify-content: space-between; font-weight: 800; font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.meter { height: 12px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--aqua), var(--blue)); transition: width .5s ease; }
.free-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 14px; color: var(--muted); font-weight: 700; }
.free-line button { color: var(--blue); font-weight: 900; white-space: nowrap; }
.section-t { font-size: 13px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.week { display: flex; justify-content: space-between; }
.day { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--muted); }
.day .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: #fff; font-size: 12px; }
.day .dot.part { background: conic-gradient(var(--aqua) calc(var(--p) * 1%), var(--bg-2) 0); }
.day .dot.part::after { content: ""; width: 26px; height: 26px; border-radius: 50%; background: #fff; grid-area: 1 / 1; }
.day .dot.hit { background: var(--navy); }
.day.today { color: var(--navy); }
.day.today .dot { outline: 2px solid var(--aqua); outline-offset: 2px; }
.numbers { display: flex; gap: 0; margin-top: 22px; }
.numbers > div { flex: 1; padding: 0 4px; }
.numbers > div + div { border-left: 1px solid var(--line); padding-left: 14px; }
.numbers b { display: block; font-size: 24px; font-weight: 900; color: var(--navy); }
.numbers span { font-size: 13px; color: var(--muted); font-weight: 700; }
/* admin (compatibilidad) */
.stat { background: #fff; border-radius: 16px; padding: 12px; text-align: center; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 22px; }
.stat span { font-size: 12px; color: var(--muted); font-weight: 700; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--bg-2); font-weight: 800; font-size: 15px; }
.pill.pro { background: var(--navy); color: #fff; }
.install { display: flex; gap: 12px; align-items: center; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink-2); margin-top: 22px; }
.install .x { color: #A3AAC0; }
.install .inst { background: var(--navy); color: #fff; font-weight: 900; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }

/* ---------- práctica ---------- */
.quiz-top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; min-height: 40px; }
.quiz-top .close { color: #A3AAC0; display: grid; place-items: center; width: 32px; height: 32px; margin-left: -6px; }
.quiz-top .close svg.i { width: 26px; height: 26px; }
.progress { flex: 1; height: 14px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--aqua); border-radius: 999px; transition: width .4s ease; box-shadow: inset 0 -4px 0 rgba(0,0,0,.06); }
.quiz-top .count { font-weight: 900; color: var(--muted); font-size: 14px; min-width: 38px; text-align: right; }
.qmeta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.qmeta .topic { font-size: 12px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; color: var(--aqua-ink); }
.qmeta .lvl { display: inline-flex; gap: 3px; }
.qmeta .lvl i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.qmeta .lvl i.on { background: var(--navy); }
.qmeta .review { font-size: 12px; font-weight: 900; color: var(--bad); letter-spacing: 1px; text-transform: uppercase; }
.statement { font-size: 21px; font-weight: 800; line-height: 1.38; margin: 0 0 22px; white-space: pre-line; color: var(--navy); letter-spacing: -.2px; }
.crowd { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--muted); margin: -12px 0 18px; }
.crowd svg.i { color: var(--aqua-ink); }
.opts { display: grid; gap: 10px; }
.opt { display: flex; gap: 14px; align-items: center; text-align: left; width: 100%; padding: 13px 14px; border-radius: 16px; background: #fff; border: 2px solid var(--line); box-shadow: 0 3px 0 var(--line); font-size: 16.5px; font-weight: 700; line-height: 1.35; color: var(--ink-2); transition: transform .06s, border-color .15s, background .15s, box-shadow .06s; }
.opt:active { transform: translateY(3px); box-shadow: 0 0 0 var(--line); }
.opt .l { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); color: var(--muted); font-weight: 900; font-size: 14px; }
.opt.wrong { border-color: #F5B5B7; background: var(--bad-bg); color: var(--bad-2); box-shadow: 0 3px 0 #F5B5B7; animation: shake .35s; }
.opt.wrong .l { background: var(--bad); border-color: var(--bad); color: #fff; }
.opt.right { border-color: #9BE0C2; background: var(--ok-bg); color: var(--ok-2); box-shadow: 0 3px 0 #9BE0C2; }
.opt.right .l { background: var(--ok); border-color: var(--ok); color: #fff; }
.opt.dim { opacity: .4; }
.opts.locked .opt { pointer-events: none; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.hint { margin-top: 18px; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--hint-bg); color: var(--hint-ink); font-weight: 700; line-height: 1.45; animation: in .25s ease; }
.hint svg.i { width: 22px; height: 22px; margin-top: 1px; color: #D99A00; }
.hint small { display: block; font-weight: 800; margin-top: 4px; opacity: .75; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; max-width: 480px; margin: 0 auto; border-radius: 24px 24px 0 0; padding: 20px 22px calc(var(--safe-bottom) + 18px); visibility: hidden; transform: translateY(105%); transition: transform .32s cubic-bezier(.2,.9,.3,1.05); max-height: 72dvh; overflow: auto; }
.sheet.show { transform: none; visibility: visible; }
.sheet.ok { background: var(--ok-bg); }
.sheet.bad { background: var(--bad-bg); }
.sheet .verdict { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 900; margin-bottom: 10px; }
.sheet .verdict .badge { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.sheet.ok .verdict { color: var(--ok-2); }
.sheet.ok .badge { background: var(--ok); }
.sheet.bad .verdict { color: var(--bad-2); }
.sheet.bad .badge { background: var(--bad); }
.sheet .expl { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); margin: 0 0 18px; white-space: pre-line; }
.sheet .expl b { color: var(--ink); }
.spacer-sheet { height: 300px; }

/* ---------- resultados ---------- */
.score { position: relative; width: 180px; height: 180px; margin: 26px auto 18px; }
.score svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.score .val b { display: block; font-size: 52px; font-weight: 900; color: var(--navy); letter-spacing: -2px; line-height: 1; }
.score .val span { font-size: 13px; font-weight: 800; color: var(--muted); }
.dots { display: flex; justify-content: center; gap: 7px; margin: 0 0 22px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--line); }
.dots i.ok { background: var(--ok); }
.dots i.mid { background: var(--warn); }
.dots i.bad { background: var(--bad); }
.facts { display: flex; justify-content: center; gap: 22px; font-weight: 800; color: var(--ink-2); font-size: 15px; margin-bottom: 8px; }
.facts span { display: inline-flex; align-items: center; gap: 6px; }
.facts .fire { color: #E8590C; }
.review-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); line-height: 1.4; }
.review-item:last-child { border-bottom: 0; }
.review-item .mk { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; margin-top: 1px; }
.review-item .mk svg.i { width: 14px; height: 14px; }
.mk.ok { background: var(--ok); } .mk.mid { background: var(--warn); } .mk.bad { background: var(--bad); }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 30; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 13px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- pago ---------- */
.plan-name { font-size: 15px; font-weight: 900; color: var(--aqua-ink); letter-spacing: 1px; text-transform: uppercase; margin-top: 8px; }
.price { font-size: 56px; font-weight: 900; letter-spacing: -2px; color: var(--navy); line-height: 1; margin: 8px 0 4px; }
.price small { font-size: 17px; font-weight: 800; color: var(--muted); letter-spacing: 0; }
.perks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; font-weight: 700; color: var(--ink-2); }
.perks li { display: flex; gap: 12px; align-items: center; }
.perks li svg.i { color: var(--aqua-ink); width: 22px; height: 22px; }
.limit-note { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--bad-2); font-size: 14px; margin: 4px 0 18px; }
.pay-to { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.pay-to .apps { font-size: 14px; font-weight: 800; color: var(--muted); }
.pay-to .num { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 2px; }
.pay-to .num b { font-size: 30px; font-weight: 900; color: var(--navy); letter-spacing: 1px; }
.pay-to .copy { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 900; font-size: 15px; padding: 8px 0 8px 10px; }
.pay-to .who { color: var(--muted); font-weight: 700; font-size: 15px; }
.pay-steps { list-style: none; counter-reset: s; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.pay-steps li { counter-increment: s; display: flex; gap: 12px; align-items: baseline; font-weight: 700; color: var(--ink-2); }
.pay-steps li::before { content: counter(s); font-weight: 900; color: var(--aqua-ink); min-width: 14px; }

/* ---------- perfil ---------- */
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.kv span { color: var(--muted); }
.kv b { color: var(--navy); text-align: right; }
.goals { display: flex; gap: 8px; flex-wrap: wrap; }
.goals button { min-width: 52px; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); font-weight: 900; color: var(--ink-2); }
.goals button.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.menu { margin-top: 8px; }
.menu .list-item .t { font-size: 16px; }
.menu .danger .t { color: var(--bad); }
