:root {
  --bg: #080808;
  --surface: #121212;
  --surface-2: #1b1b1b;
  --line: #2a2a2a;
  --text: #f4f4f4;
  --muted: #a6a6a6;
  --green: #39ff14;
  --green-soft: rgba(57, 255, 20, 0.12);
  --gold: #f2c14e;
  --danger: #ff6b5a;
  --radius: 14px;
  --maxw: 1120px;
  --font-head: "Archivo Black", "Arial Black", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.g { color: var(--green); }
.muted { color: var(--muted); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
section { padding: 72px 0; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: .8rem; letter-spacing: .12em;
  color: var(--green); text-transform: uppercase; margin-bottom: 14px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--green); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 8, 8, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 12px; }
.logo { font-family: var(--font-head); font-size: 1.25rem; color: var(--text); text-decoration: none; white-space: nowrap; }
.logo span { color: var(--green); }
.nav-links { display: flex; gap: 16px; align-items: center; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--green); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px 12px; font: inherit; }
/* Menú en dos grupos: el libro y lo gratis (juego + herramientas) */
.nav-group { display: flex; gap: 16px; align-items: center; }
.nav-group.free { padding-left: 16px; border-left: 1px solid var(--line); }
.nav-h { display: none; }
.scroll-bar { height: 3px; background: transparent; }
.scroll-bar i { display: block; height: 100%; width: 0; background: var(--green); }
@media (max-width: 1080px) {
  .menu-btn { display: block; }
  .nav-links {
    display: none; position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 62px); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-group { flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0 10px; }
  .nav-group.free { padding-left: 0; border-left: 0; background: var(--surface); border-top: 1px solid var(--line); }
  .nav-h { display: block; padding: 12px 16px 4px; font-family: var(--font-head); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
  .nav-links a { padding: 12px 16px; }
  .nav-links .btn { margin: 12px 16px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 2px solid var(--green);
  background: var(--green); color: #050505; font-weight: 800; text-decoration: none;
  font-family: var(--font-body); font-size: 1rem; cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(57, 255, 20, .25); }
.btn.ghost { background: transparent; color: var(--green); }
.btn.small { padding: 9px 16px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 10px; }

/* Hero */
.hero { padding: 56px 0 72px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto -20% -40% 40%; height: 520px;
  background: radial-gradient(closest-side, rgba(57, 255, 20, .18), transparent);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hero .lead { font-size: 1.15rem; color: #d6d6d6; max-width: 34em; }
.price-note { font-size: .92rem; color: var(--muted); }
.cover {
  width: 100%; max-width: 360px; margin: 0 auto; border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 0 1px #222, 0 0 60px rgba(57, 255, 20, .12);
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .cover { max-width: 240px; }
}

/* Dialogue */
.dialogue { display: grid; gap: 18px; max-width: 760px; }
.line { display: flex; gap: 14px; align-items: flex-end; }
.line.right { flex-direction: row-reverse; }
.line .mascot { width: 72px; flex: none; }
.bubble {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px 18px 18px 4px;
  padding: 14px 18px; font-size: 1.02rem;
}
.line.right .bubble { border-radius: 18px 18px 4px 18px; border-color: rgba(57, 255, 20, .35); }
.bubble b { display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }

/* Cards */
.grid { display: grid; gap: 16px; }
.grid.c5 { grid-template-columns: repeat(5, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid.c5 { grid-template-columns: repeat(2, 1fr); } .grid.c3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid.c5, .grid.c3, .grid.c2 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: relative;
}
.card h3 { margin-bottom: .35em; }
.card p { color: #cfcfcf; font-size: .96rem; margin: 0; }
.card .num { font-family: var(--font-head); color: var(--green); font-size: .8rem; letter-spacing: .1em; }
a.card { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--green); transform: translateY(-2px); }
.card .tag { display: inline-block; margin-top: 12px; font-size: .8rem; color: var(--green); font-weight: 700; }
.icon { width: 34px; height: 34px; color: var(--green); margin-bottom: 12px; }

.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }

.gift {
  border: 2px dashed var(--green); border-radius: var(--radius); padding: 32px;
  background: var(--green-soft);
}

details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--green); font-weight: 900; }
details[open] summary::after { content: "−"; }
details p { margin: 10px 0 0; color: #cfcfcf; }

footer { border-top: 1px solid var(--line); padding: 40px 0 60px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: grid; gap: 10px; }
footer a { color: var(--muted); }

/* ---------- Tools ---------- */
.tool-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; margin-bottom: 18px;
  scrollbar-width: thin;
}
.tool-tabs button {
  flex: none; background: var(--surface); color: var(--text); border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 16px; font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer;
}
.tool-tabs button[aria-selected="true"] { background: var(--green); color: #050505; border-color: var(--green); }
.tool { display: none; }
.tool.active { display: block; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tool-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px; }
@media (max-width: 860px) { .tool-grid { grid-template-columns: 1fr; } }

label { display: block; font-weight: 700; font-size: .92rem; margin: 14px 0 6px; }
label:first-child { margin-top: 0; }
input[type="number"], input[type="text"], input[type="email"] {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 1.05rem;
}
input:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: transparent; }
input[type="range"] { width: 100%; accent-color: var(--green); }
.range-val { font-family: var(--font-head); color: var(--green); float: right; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 7px 12px; font: inherit; font-size: .88rem; cursor: pointer;
}
.chip:hover, .chip.on { border-color: var(--green); color: var(--green); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 5px; accent-color: var(--green); width: 18px; height: 18px; flex: none; }

.big-result { font-family: var(--font-head); font-size: clamp(2.4rem, 7vw, 4rem); color: var(--green); line-height: 1; margin: 8px 0; }
.result-sub { color: #d6d6d6; font-size: 1.05rem; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
@media (max-width: 520px) { .stat-row { grid-template-columns: 1fr; } }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.stat small { display: block; color: var(--muted); font-size: .8rem; }
.stat strong { font-family: var(--font-head); font-size: 1.35rem; }
.book-cta {
  margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--green);
  background: var(--green-soft); border-radius: 0 10px 10px 0; font-size: .95rem;
}
.book-cta a { font-weight: 700; }
.hours-bar { display: flex; flex-wrap: wrap; gap: 5px; margin: 14px 0; }
.hours-bar i { width: 22px; height: 22px; border-radius: 5px; background: var(--green); display: block; }
.hours-bar i.part { background: linear-gradient(90deg, var(--green) var(--p), var(--surface-2) var(--p)); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); margin-top: 8px; }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--c); }
.disclaimer { font-size: .82rem; color: var(--muted); margin-top: 10px; }

.jars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; }
.jar { text-align: center; }
.jar .glass {
  height: 180px; border: 2px solid #3a3a3a; border-top: none; border-radius: 0 0 22px 22px;
  position: relative; overflow: hidden; background: #0d0d0d;
}
.jar .fill { position: absolute; left: 0; right: 0; bottom: 0; background: var(--c); transition: height .4s; opacity: .9; }
.jar .lid { height: 12px; background: #3a3a3a; border-radius: 6px; margin: 0 -4px 0; }
.jar strong { display: block; font-family: var(--font-head); font-size: 1.3rem; margin-top: 8px; }
.jar small { color: var(--muted); }

.wish { display: flex; gap: 12px; align-items: center; justify-content: space-between; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 10px; flex-wrap: wrap; }
.wish .w-name { font-weight: 700; }
.wish .w-time { font-size: .88rem; color: var(--muted); }
.wish.ready { border-color: var(--green); }
.wish .w-actions { display: flex; gap: 8px; }
.saved-box { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.quiz-levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 18px; }
@media (max-width: 700px) { .quiz-levels { grid-template-columns: repeat(2, 1fr); } }
.level-btn {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 10px;
  color: var(--text); font: inherit; cursor: pointer; text-align: center;
}
.level-btn small { display: block; color: var(--muted); font-size: .75rem; }
.level-btn b { font-family: var(--font-head); font-size: .9rem; display: block; }
.level-btn.done { border-color: var(--green); }
.level-btn.done small { color: var(--green); }
.level-btn.current { outline: 2px solid var(--green); }
.q-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 14px; }
.opt {
  display: block; width: 100%; text-align: left; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px;
  font: inherit; cursor: pointer;
}
.opt:hover:not(:disabled) { border-color: var(--green); }
.opt.right { border-color: var(--green); background: var(--green-soft); }
.opt.wrong { border-color: var(--danger); background: rgba(255, 107, 90, .1); }
.explain { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; margin: 6px 0 14px; font-size: .96rem; }
.progress { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-bottom: 18px; }
.progress div { height: 100%; background: var(--green); transition: width .3s; }
.badge { text-align: center; padding: 10px 0; }
.badge .seal {
  width: 120px; height: 120px; margin: 0 auto 14px; border-radius: 50%;
  border: 3px solid var(--green); display: grid; place-items: center;
  font-family: var(--font-head); color: var(--green); font-size: 2.2rem;
  box-shadow: 0 0 40px rgba(57, 255, 20, .3);
}

/* ---------- Portada (index) ---------- */
.path-q { font-weight: 800; margin: 26px 0 10px; }
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 640px; }
.path {
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center;
  padding: 16px; border-radius: var(--radius); border: 2px solid var(--line); background: var(--surface);
  color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s;
}
.path:first-child { border-color: var(--green); }
.path:hover { border-color: var(--green); transform: translateY(-2px); }
.path-ico { grid-row: span 2; font-size: 1.9rem; }
.path b { font-size: 1.05rem; }
.path small { color: var(--muted); font-size: .85rem; line-height: 1.3; }
@media (max-width: 520px) { .paths { grid-template-columns: 1fr; } }
.hero .price-note { margin-top: 14px; }

.calc { margin-top: 18px; }
.calc .big-result { margin-top: 18px; }
.calc .result-sub { margin: 0; }
.split.top { align-items: start; }

/* Secciones claras para alternar ritmo (y para los padres) */
.light {
  --text: #15161a; --muted: #5b5e66; --line: #e5ddc9; --surface: #ffffff; --surface-2: #f4eedf;
  --green: #138a0f; --green-soft: rgba(19, 138, 15, .1);
  background: #fbf6ea; color: var(--text);
}
.light a:not(.btn):not(.buy-opt) { color: #0f6e0c; }
.light .btn { background: #39ff14; border-color: #15161a; color: #050505; }
.light .btn.ghost { background: transparent; color: #15161a; }
.light .bubble { background: #fff; }
.light .card p, .light details p { color: #3b3e46; }

.duel { padding: 64px 0; }
.duel-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
.vs-art { display: flex; align-items: center; justify-content: center; gap: 10px; }
.vs-art .mascot { width: 140px; }
.vs-art span { font-family: var(--font-head); font-size: 2.6rem; color: #15161a; background: #39ff14; padding: 4px 14px; border-radius: 12px; }
.big-p { font-size: 1.2rem; font-weight: 700; }
.duel-facts, .facts { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.duel-facts li, .facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.duel-facts b, .facts b { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--green); line-height: 1.1; }
.duel-facts span, .facts span { font-size: .85rem; color: var(--muted); }
@media (max-width: 820px) { .duel-grid { grid-template-columns: 1fr; gap: 20px; } .vs-art .mascot { width: 100px; } }

/* Mapa de niveles con candados */
.map { list-style: none; padding: 0; margin: 30px 0 14px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; position: relative; }
.map::before { content: ""; position: absolute; top: 30px; left: 10%; right: 10%; border-top: 3px dashed var(--line); }
.map li { position: relative; text-align: center; display: grid; justify-items: center; gap: 10px; }
.map .node {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; position: relative;
  font-family: var(--font-head); font-size: 1.4rem; background: var(--surface); border: 3px solid var(--line); color: var(--muted);
}
.map li.open .node { border-color: var(--green); color: var(--green); box-shadow: 0 0 24px rgba(57, 255, 20, .35); }
.map li.done .node { background: var(--green); border-color: var(--green); color: #050505; }
.map li.done .node::after { content: "✓"; position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; background: #050505; color: var(--green); font-size: .8rem; display: grid; place-items: center; border: 2px solid var(--green); }
.map li.locked .node::after { content: "🔒"; position: absolute; right: -6px; bottom: -6px; font-size: 1rem; }
.map li.locked { opacity: .75; }
.map b { display: block; font-family: var(--font-head); font-size: 1rem; }
.map small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.35; }
.map-note { color: var(--muted); font-size: .95rem; }
@media (max-width: 820px) {
  .map { grid-template-columns: 1fr; gap: 14px; }
  .map::before { top: 20px; bottom: 20px; left: 29px; right: auto; border-top: 0; border-left: 3px dashed var(--line); }
  .map li { grid-template-columns: 60px 1fr; text-align: left; justify-items: start; align-items: center; gap: 14px; }
}
.did { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding: 18px 20px; border-radius: var(--radius); background: var(--green-soft); border: 1px solid rgba(57, 255, 20, .35); }
.did-k { font-family: var(--font-head); color: var(--green); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.did p { margin: 0; flex: 1 1 280px; }
.did a { font-weight: 700; }

/* Compra: un solo bloque con precios */
.buy { background: #fff; border: 2px solid #15161a; border-radius: 20px; padding: 24px; text-align: center; box-shadow: 8px 8px 0 #39ff14; }
.buy img { width: 120px; margin: 0 auto 12px; border-radius: 4px; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.buy h3 { font-size: 1.4rem; }
.buy-opt {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left;
  padding: 14px 18px; margin-top: 10px; border-radius: 14px; border: 2px solid #15161a; color: #15161a; text-decoration: none; font-weight: 800;
}
.buy-opt small { display: block; font-weight: 500; font-size: .82rem; color: #5b5e66; }
.buy-opt b { font-family: var(--font-head); font-size: 1.3rem; white-space: nowrap; }
.buy-opt.main { background: #39ff14; }
.buy-opt:hover { transform: translateY(-1px); }
.buy-note { font-size: .82rem; color: #5b5e66; margin: 12px 0 0; }
.light .line .mascot { width: 64px; flex: none; }
.light .line { margin-top: 18px; }

.lvl-pill {
  margin-right: auto; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  color: #f4f4f4; border: 1.5px solid #39ff14; font-family: var(--font-head); font-size: .72rem;
  opacity: 0; transition: opacity .2s;
}
.lvl-pill b { color: #39ff14; }
.lvl-pill.show { opacity: 1; }

.code-preview canvas { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Herramientas en tema claro ---------- */
.page-light {
  --bg: #fbf6ea; --surface: #ffffff; --surface-2: #f4eedf; --line: #e5ddc9;
  --text: #15161a; --muted: #5b5e66; --green: #138a0f; --green-soft: rgba(19, 138, 15, .09);
  background: var(--bg); color: var(--text);
}
.page-light .nav { background: rgba(251, 246, 234, .94); }
.page-light .nav .btn { background: #39ff14; border-color: #15161a; color: #050505; }
.page-light .menu-btn { border-color: #15161a; }
.page-light a { color: #0f6e0c; }
.page-light .btn { background: #39ff14; border-color: #15161a; color: #050505; }
.page-light .btn.ghost { background: #fff; color: #15161a; }
.page-light .btn:hover { box-shadow: 0 6px 18px rgba(19, 138, 15, .2); }
.page-light .panel { box-shadow: 0 10px 30px -18px rgba(21, 22, 26, .25); }
.page-light .result-sub, .page-light .card p { color: #3b3e46; }
.page-light input[type="number"], .page-light input[type="text"], .page-light input[type="email"] { background: #fff; }
.page-light .stat { background: var(--surface-2); border-color: transparent; }
.page-light .big-result { color: #16a312; }
.page-light .range-val { color: #138a0f; }
.page-light .jar .glass { background: #f4eedf; border-color: #c9bfa8; }
.page-light .jar .lid { background: #c9bfa8; }
.page-light .hours-bar i { background: #39ff14; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.page-light .hours-bar i.part { background: linear-gradient(90deg, #39ff14 var(--p), var(--surface-2) var(--p)); }
.page-light .opt.right { background: rgba(57, 255, 20, .18); }
.page-light .badge .seal { box-shadow: 0 0 0 6px rgba(57, 255, 20, .25); }
.page-light .code-preview canvas { border-color: transparent; box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .4); }
.page-light footer { color: var(--muted); }
/* Pestañas grandes, como botones */
.page-light .tool-tabs { gap: 10px; flex-wrap: wrap; overflow: visible; }
.page-light .tool-tabs button { padding: 12px 18px; font-size: 1rem; background: #fff; border: 2px solid #15161a; color: #15161a; box-shadow: 3px 3px 0 #15161a; transition: transform .1s, box-shadow .1s; }
.page-light .tool-tabs button:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #15161a; }
.page-light .tool-tabs button[aria-selected="true"] { background: #39ff14; color: #050505; border-color: #15161a; }
@media (max-width: 600px) { .page-light .tool-tabs button { flex: 1 1 calc(50% - 10px); padding: 11px 10px; font-size: .92rem; } }
/* Euro o Dólar comentando el resultado */
.tool-say { margin: 16px 0 4px; }
.tool-say .mascot { width: 58px; flex: none; }
.tool-say .bubble { font-size: .98rem; }
.page-light .bubble { background: var(--surface-2); border-color: transparent; }

/* Portada recta que se inclina en 3D al pasar el ratón o tocarla */
.cover-link { display: block; max-width: 360px; margin: 0 auto; perspective: 900px; text-decoration: none; position: relative; }
.cover-link .cover { transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s; transform-origin: center; will-change: transform; animation: cover-hello 1.6s .6s ease-in-out 1; }
.cover-link:hover .cover, .cover-link:focus-visible .cover, .cover-link.tilt .cover {
  transform: rotateY(-16deg) rotateX(5deg) scale(1.03);
  box-shadow: 24px 30px 60px rgba(0, 0, 0, .7), 0 0 0 1px #222, 0 0 80px rgba(57, 255, 20, .25);
}
.cover-hint { display: block; text-align: center; margin-top: 14px; font-weight: 800; font-size: .9rem; color: var(--green); opacity: .85; }
@keyframes cover-hello { 0%, 100% { transform: none; } 40% { transform: rotateY(-12deg) rotateX(4deg); } }
@media (max-width: 820px) { .cover-link { max-width: 240px; } }
@media (prefers-reduced-motion: reduce) { .cover-link .cover { animation: none; } }

/* ---------- Zona de JUEGO (rosa y morado, como Misión 18) vs HERRAMIENTA (verde) ---------- */
.type-tag { display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; font-weight: 900; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.type-tag.game { background: #ff3d7f; color: #fff; border: 2px solid #17141f; }
.type-tag.tool { background: var(--green-soft); color: var(--green); border: 1.5px solid var(--green); }
.game-zone { background: linear-gradient(120deg, #ff3d7f 0%, #7b4dff 100%); padding: 64px 0; }
.game-card { display: grid; grid-template-columns: .85fr 1.15fr; background: #fff8ec; color: #17141f; border: 3px solid #17141f; border-radius: 24px; box-shadow: 10px 10px 0 #17141f; overflow: hidden; }
.game-vs { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 28px 16px; background: linear-gradient(100deg, #ff3d7f 0 50%, #7b4dff 50% 100%); border-right: 3px solid #17141f; }
.game-vs .mascot { width: 130px; animation: bob 2.4s ease-in-out infinite; }
.game-vs .mascot:last-child { animation-delay: -1.2s; }
.game-vs span { font-family: var(--font-head); font-size: 3rem; color: #fff; text-shadow: 3px 3px 0 #17141f; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.game-body { padding: 30px 30px 26px; }
.game-body h2 { color: #17141f; }
.game-zone .steps { list-style: none; padding: 0; margin: 8px 0 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.game-zone .steps li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 12px 10px; border-radius: 14px; background: #f1ebff; border: 2px solid #17141f; }
.game-zone .steps span { font-size: 1.6rem; }
.game-zone .steps b { font-size: .92rem; line-height: 1.3; }
.btn-play {
  display: block; text-align: center; text-decoration: none; padding: 18px; border-radius: 18px; border: 3px solid #17141f;
  background: linear-gradient(100deg, #ff3d7f, #7b4dff); color: #fff !important;
  font-family: var(--font-head); font-size: clamp(1.35rem, 4vw, 1.75rem); letter-spacing: .02em;
  box-shadow: 6px 6px 0 #17141f; text-shadow: 2px 2px 0 rgba(0, 0, 0, .25);
  animation: pulse-play 1.8s ease-in-out infinite; transition: box-shadow .1s;
}
.btn-play:hover { animation-play-state: paused; box-shadow: 8px 8px 0 #17141f; }
@keyframes pulse-play { 50% { transform: scale(1.03); } }
.play-sub { text-align: center; font-size: .88rem; color: #5d5868; margin: 12px 0 6px; }
.game-alt { display: block; text-align: center; font-weight: 700; font-size: .92rem; color: #7b4dff !important; }
@media (max-width: 820px) {
  .game-zone { padding: 44px 0; }
  .game-card { grid-template-columns: 1fr; box-shadow: 6px 6px 0 #17141f; }
  .game-vs { border-right: 0; border-bottom: 3px solid #17141f; }
  .game-vs .mascot { width: 96px; }
  .game-body { padding: 22px 18px; }
  .game-zone .steps { grid-template-columns: 1fr; }
  .game-zone .steps li { flex-direction: row; text-align: left; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .btn-play, .game-vs .mascot { animation: none; } }
.page-light .logo, .page-light .nav-links a:not(.btn) { color: #15161a; }
.page-light .logo span { color: #16a312; }
.stat strong { white-space: nowrap; }

/* ---------- Páginas claras de padres y profesores ---------- */
.p-hero { padding: 48px 0 56px; background: radial-gradient(ellipse at 85% 10%, rgba(57, 255, 20, .16), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(123, 77, 255, .10), transparent 50%); }
.p-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.p-hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); }
.p-hero .lead { font-size: 1.15rem; color: #3b3e46; max-width: 34em; }
.p-hero-art { position: relative; }
.page-light .cover { box-shadow: 0 26px 60px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .1); }
.page-light .cover-link:hover .cover, .page-light .cover-link.tilt .cover { box-shadow: 24px 30px 60px -16px rgba(0, 0, 0, .5); }
.page-light .cover-hint { color: #138a0f; }
.p-mascots { position: absolute; left: -10px; bottom: 30px; display: flex; gap: 0; pointer-events: none; }
.p-mascots .mascot { width: 84px; animation: bob 2.6s ease-in-out infinite; }
.p-mascots .mascot:last-child { animation-delay: -1.3s; margin-left: -10px; }
@media (max-width: 820px) { .p-hero-grid { grid-template-columns: 1fr; } .p-mascots .mascot { width: 64px; } .p-mascots { left: 0; } }

.p-facts-wrap { padding: 0 0 24px; }
.p-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.p-facts li { background: #15161a; color: #fff; border-radius: 18px; padding: 20px; }
.p-facts b { display: block; font-family: var(--font-head); font-size: 2.2rem; color: #39ff14; line-height: 1; margin-bottom: 6px; }
.p-facts span { font-size: .92rem; color: #d6d6d6; }
@media (max-width: 760px) { .p-facts { grid-template-columns: 1fr 1fr; } .p-facts b { font-size: 1.8rem; } }

.lvl-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 26px; }
.lvl-card { background: #fff; border-radius: 18px; padding: 20px; border-top: 6px solid var(--lc); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .3); display: flex; flex-direction: column; gap: 6px; }
.lvl-n { font-family: var(--font-head); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--lc); }
.lvl-card h3 { margin: 0; font-size: 1.3rem; }
.lvl-card p { margin: 0; font-size: .94rem; color: #3b3e46; flex: 1; }
.lvl-card em { font-size: .9rem; color: #15161a; background: color-mix(in srgb, var(--lc) 12%, #fff); padding: 8px 10px; border-radius: 10px; font-style: normal; font-weight: 600; }
.lvl-card a { font-weight: 700; font-size: .9rem; }
@media (max-width: 1000px) { .lvl-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lvl-cards { grid-template-columns: 1fr; } }

.home-steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.home-steps li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 18px; padding: 20px; border: 2px solid #15161a; box-shadow: 5px 5px 0 #15161a; }
.hs-n { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #39ff14; border: 2px solid #15161a; display: grid; place-items: center; font-family: var(--font-head); font-size: 1.2rem; }
.home-steps h3 { margin: 4px 0 4px; }
.home-steps p { margin: 0; font-size: .95rem; color: #3b3e46; }
@media (max-width: 820px) { .home-steps { grid-template-columns: 1fr; } }

.wa-family { display: block; margin-top: 14px; text-align: center; padding: 12px; border-radius: 14px; background: #25d366; color: #fff !important; font-weight: 800; text-decoration: none; border: 2px solid #17141f; }
.wa-family::before { content: "💬 "; }

.chips-big { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips-big li { padding: 8px 16px; border-radius: 999px; background: #15161a; color: #39ff14; font-weight: 800; font-size: .92rem; }

.session { list-style: none; padding: 0; margin: 26px 0 0; display: flex; gap: 12px; }
.session li { flex: 1 1 var(--w); background: #fff; border-radius: 16px; padding: 18px; border-left: 6px solid #39ff14; }
.session b { display: block; font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 4px; }
.session span { font-size: .95rem; color: #3b3e46; }
@media (max-width: 760px) { .session { flex-direction: column; } }

.page-light .card { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .3); border-color: transparent; }
.page-light .card .tag { color: #138a0f; }
.page-light .band { background: #f4eedf; border-color: transparent; }
.guide-form { background: #fff; }
.thanks { text-align: center; max-width: 640px; }
.thanks .mascot { width: 120px; margin: 0 auto 12px; }

@media (max-width: 1080px) and (min-width: 521px) { .paths { grid-template-columns: 1fr; max-width: 420px; } }

/* ---------- Código 18 en claro, con la zona de adolescentes en neón ---------- */
.page-light .hero .lead { color: #3b3e46; }
.page-light .hero::after { background: radial-gradient(closest-side, rgba(57, 255, 20, .14), transparent); }
.page-light .lvl-pill { color: #15161a; border-color: #16a312; }
.page-light .lvl-pill b { color: #16a312; }
.page-light .path { background: #fff; box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .35); border-color: #e5ddc9; }
.page-light .path:first-child { border-color: #16a312; }
.neon {
  --bg: #080808; --surface: #121212; --surface-2: #1b1b1b; --line: #2a2a2a;
  --text: #f4f4f4; --muted: #a6a6a6; --green: #39ff14; --green-soft: rgba(57, 255, 20, .12);
  background: var(--bg); color: var(--text);
}
.neon.band { background: #101010; border: 0; }
.page-light .neon a:not(.btn) { color: #39ff14; }
.page-light .neon .big-result, .page-light .neon .range-val { color: #39ff14; }
.page-light .neon .result-sub { color: #d6d6d6; }
.page-light .neon input[type="number"], .page-light .neon input[type="text"] { background: #080808; color: #f4f4f4; }
.page-light .neon .panel { box-shadow: none; }

/* Cuatro zonas: Adolescentes · En familia · Padres · Profesores */
.zones { padding: 56px 0; }
.zone-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.zone { background: #fff; border-radius: 18px; padding: 18px; border-top: 6px solid var(--zc); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .3); }
.z-teen { --zc: #16a312; } .z-family { --zc: #ff3d7f; } .z-parents { --zc: #e08a00; } .z-teachers { --zc: #1f7ae0; }
.zone-h { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.zone-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; background: color-mix(in srgb, var(--zc) 14%, #fff); flex: none; }
.zone-h b { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.zone-h small { color: #5b5e66; font-size: .82rem; }
.zone ul { list-style: none; margin: 0; padding: 0; }
.zone li { border-top: 1px solid #efe8d8; }
.zone li a { display: block; padding: 9px 0; font-weight: 600; font-size: .93rem; color: #15161a !important; text-decoration: none; }
.zone li a::after { content: " →"; color: var(--zc); font-weight: 800; }
.zone li a:hover { color: var(--zc) !important; }
@media (max-width: 1000px) { .zone-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .zone-grid { grid-template-columns: 1fr; } }

/* Contraste: textos legibles sobre crema (mínimo 4,5:1) */
.page-light { --muted: #4a4d55; }
.page-light details p, .page-light .card p, .page-light .disclaimer, .page-light .price-note { color: #2f3239; }
.page-light summary { color: #15161a; }
.page-light .neon { --muted: #b5b5b5; }
.page-light { --green: #0b6b08; }
.page-light .logo span, .page-light .big-result, .page-light .range-val, .page-light .cover-hint { color: #0f7d0c; }
.page-light .neon { --green: #39ff14; }
.type-tag.game { background: #d1105a; }
.wa-family { background: #1a7f4b; }
.btn-play { background: linear-gradient(100deg, #d81b60, #6a3df0); }
.light { --green: #0b6b08; } .light a:not(.btn):not(.buy-opt) { color: #0b6b08; }
.lvl-n { color: color-mix(in srgb, var(--lc) 62%, #000); }

/* Código 18 más corto: bloque de padres resumido */
.parents-short p { font-size: 1.08rem; color: #2f3239; max-width: 32em; }
.btn.big-cta { font-size: 1.1rem; padding: 16px 28px; margin-top: 8px; }

/* Botón fijo «Comprar» en el móvil */
.buybar { display: none; }
@media (max-width: 820px) {
  .buybar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #15161a; color: #fff; box-shadow: 0 -8px 24px rgba(0, 0, 0, .25);
    transition: transform .25s;
  }
  .buybar.hide { transform: translateY(110%); }
  .buybar span { font-size: .92rem; line-height: 1.25; }
  .buybar b { color: #39ff14; }
  .buybar a { flex: none; background: #39ff14; color: #050505 !important; font-weight: 800; text-decoration: none; padding: 11px 18px; border-radius: 999px; }
  body.has-buybar { padding-bottom: 72px; }
}

/* Letra un poco más grande en el móvil para leer mejor */
@media (max-width: 600px) { body { font-size: 18px; } details p, .lvl-card p, .home-steps p, .card p { font-size: 1rem; } }
