:root {
  --bg: #0e0e11;
  --fg: #f4f4f6;
  --muted: #9a9aa6;
  --soft: #17171d;
  --surface: #1e1e25;
  --line: rgba(255, 255, 255, .1);
  --dark: #070709;
  --dark-2: #15151b;
  --rojo: #ff3b30;
  --azul: #4d80ff;
  --verde: #12b457;
  --amarillo: #ffc400;
  --morado: #8e4bff;
  --naranja: #ff7a1a;
  --radius: 24px;
  --radius-sm: 14px;
  --max: 1180px;
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Plus Jakarta Sans", "Rubik", system-ui, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #ffffff; --fg: #0e0e11; --muted: #6b6b75; --soft: #f3f3f6; --surface: #ffffff;
  --line: rgba(14, 14, 17, .08); --dark: #0e0e11; --dark-2: #0e0e11; --azul: #2f6bff; color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background .25s, color .25s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.05; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; overflow-wrap: break-word; }
h1 { font-size: clamp(3rem, 8vw, 6.5rem); }
h2 { font-size: clamp(2.1rem, 4.8vw, 3.6rem); }
h3 { font-size: 1.35rem; letter-spacing: -.01em; }
.grid > *, .hero .container > * { min-width: 0; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.container { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section-dark { background: var(--dark-2); color: #fff; }
.section-dark .muted, .section-dark .lead { color: rgba(255,255,255,.65); }
.section-soft { background: var(--soft); }
.section-head { max-width: 52rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--eyebrow-ink, var(--rojo)); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--muted); line-height: 1.55; }

/* Tintas Stroop */
.stroop { font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; transition: color .35s; }
[data-ink="rojo"] { color: var(--rojo); }
[data-ink="azul"] { color: var(--azul); }
[data-ink="verde"] { color: var(--verde); }
[data-ink="amarillo"] { color: var(--amarillo); }
[data-ink="morado"] { color: var(--morado); }
[data-ink="naranja"] { color: var(--naranja); }
.bg-rojo { background: var(--rojo); } .bg-azul { background: var(--azul); } .bg-verde { background: var(--verde); }
.bg-amarillo { background: var(--amarillo); } .bg-morado { background: var(--morado); } .bg-naranja { background: var(--naranja); }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--dark) 88%, transparent); backdrop-filter: blur(14px); color: #fff; }
.site-header .container { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: baseline; gap: .5rem; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: #fff; letter-spacing: -.02em; white-space: nowrap; flex: none; }
.brand .mark { text-transform: uppercase; }
.brand .mark span { display: inline-block; transition: color .3s; }
.brand small { font-family: var(--font); font-weight: 500; color: rgba(255,255,255,.55); font-size: .78rem; letter-spacing: 0; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; }
.nav a {
  display: block; padding: .55rem .85rem; border-radius: 999px; text-decoration: none;
  color: rgba(255,255,255,.78); font-weight: 500; font-size: .92rem; white-space: nowrap; transition: color .15s, background .15s;
}
@media (max-width: 1320px) { .brand small { display: none; } .nav a { padding: .55rem .7rem; font-size: .9rem; } }
.nav a:hover, .nav a:focus-visible { background: rgba(255,255,255,.08); color: var(--hover-ink, #fff); font-weight: 700; }
.nav a[aria-current="page"] { background: #fff; color: #0e0e11; font-weight: 700; }
.nav li:nth-child(1) a { --hover-ink: var(--rojo); }
.nav li:nth-child(2) a { --hover-ink: var(--azul); }
.nav li:nth-child(3) a { --hover-ink: var(--verde); }
.nav li:nth-child(4) a { --hover-ink: var(--morado); }
.nav li:nth-child(5) a { --hover-ink: var(--naranja); }
.nav li:nth-child(6) a { --hover-ink: var(--amarillo); }
.nav li:nth-child(7) a { --hover-ink: var(--rojo); }
.nav li:nth-child(8) a { --hover-ink: var(--azul); }
.nav-toggle, .theme-toggle {
  width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; color: #fff;
  background: transparent; cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; transition: background .15s;
}
.nav-toggle:hover, .theme-toggle:hover { background: rgba(255,255,255,.1); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .brand small { display: inline; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 72px); background: var(--dark); display: none; overflow: auto; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: 1.5rem 1.25rem 2rem; gap: .25rem; }
  .nav a { padding: .9rem 1rem; border-radius: 14px; font-family: var(--display); font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 800; color: #fff; letter-spacing: -.02em; }
  .nav a:hover { background: transparent; }
  .nav li:nth-child(1) a { color: var(--rojo); } .nav li:nth-child(2) a { color: var(--azul); }
  .nav li:nth-child(3) a { color: var(--verde); } .nav li:nth-child(4) a { color: var(--morado); }
  .nav li:nth-child(5) a { color: var(--naranja); } .nav li:nth-child(6) a { color: var(--amarillo); }
  .nav li:nth-child(7) a { color: var(--rojo); } .nav li:nth-child(8) a { color: var(--azul); }
  body.nav-open { overflow: hidden; }
}

/* Botones y etiquetas */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .95rem 1.5rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid var(--fg); color: var(--fg); background: transparent;
  cursor: pointer; font-family: inherit; font-size: 1rem; transition: transform .12s, background .15s, color .15s, border-color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: var(--azul); border-color: var(--azul); color: #fff; }
.section-dark .btn, .hero .btn { border-color: #fff; color: #fff; }
.section-dark .btn-primary, .hero .btn-primary { background: #fff; color: #0e0e11; }
.section-dark .btn-primary:hover, .hero .btn-primary:hover { background: var(--amarillo); border-color: var(--amarillo); color: #0e0e11; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; background: var(--line); color: var(--muted); }
.tag-pending { background: #fff1c2; color: #7a5200; }

/* Tarjetas y rejillas */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--soft); border-radius: var(--radius); padding: 2rem; position: relative; display: flex; flex-direction: column; }
.card > * { flex: none; }
.card .card-action { margin-top: auto; padding-top: 1rem; }
.section-soft .card { background: var(--surface); }
.card h3 { margin-top: .5rem; }
.card p:last-child { margin-bottom: 0; }
.card::before { content: ""; display: block; width: 44px; height: 6px; border-radius: 6px; background: var(--card-ink, var(--fg)); margin-bottom: 1.25rem; }
.card-link { text-decoration: none; color: inherit; display: block; transition: transform .2s, box-shadow .2s; }
.card-link:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(0,0,0,.35); }
.card-rojo { --card-ink: var(--rojo); } .card-azul { --card-ink: var(--azul); } .card-verde { --card-ink: var(--verde); }
.card-amarillo { --card-ink: var(--amarillo); } .card-morado { --card-ink: var(--morado); } .card-naranja { --card-ink: var(--naranja); }

/* Bento de inicio */
.tile { border-radius: var(--radius); padding: 2rem; color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; min-height: 240px; transition: transform .2s; }
.tile:hover { transform: translateY(-4px); }
.tile h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); margin: 0 0 .4rem; }
.tile p { margin: 0; opacity: .85; }
.tile .tag { background: rgba(255,255,255,.18); color: #fff; }
.tile .arrow { font-size: 1.6rem; font-weight: 800; align-self: flex-end; }
.tile-amarillo { color: #0e0e11; } .tile-amarillo .tag { background: rgba(0,0,0,.12); color: #0e0e11; }

.figure { margin: 0; background: var(--soft); border-radius: var(--radius); overflow: hidden; }
.figure img { width: 100%; }
.figure figcaption { padding: .9rem 1.25rem; font-size: .9rem; color: var(--muted); }
.placeholder { border-radius: var(--radius); padding: 3rem 1.5rem; text-align: center; color: var(--muted); background: var(--soft); }
.placeholder strong { display: block; color: var(--fg); margin-bottom: .25rem; font-family: var(--display); font-size: 1.2rem; }
.prose { max-width: 48rem; }
.prose h3 { margin-top: 2rem; font-size: 1.5rem; }
.prose ol, .prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }

/* Hero */
.hero { background: var(--dark); color: #fff; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero .eyebrow { color: rgba(255,255,255,.6); }
.hero h1 { margin-bottom: 1.25rem; font-size: clamp(2.2rem, 6vw, 5.4rem); }
@media (max-width: 900px) { .hero h1 { font-size: clamp(2rem, 10vw, 4.9rem); } .stroop-board span { font-size: 2.3vw; } }
.hero h1 .stroop { display: inline-block; }
.hero .lead { color: rgba(255,255,255,.7); max-width: 32rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-note { font-size: .9rem; color: rgba(255,255,255,.5); margin-top: 1.25rem; }
.stroop-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.stroop-board span {
  display: grid; place-items: center; aspect-ratio: 1.15; border-radius: 18px; background: rgba(255,255,255,.07); overflow: hidden;
  font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(.8rem, 1.3vw, 1.05rem); letter-spacing: -.02em; transition: color .4s, background .3s;
}
.stroop-board span:hover { background: rgba(255,255,255,.12); }
.stroop-board-caption { text-align: center; font-size: .85rem; color: rgba(255,255,255,.5); margin-top: 1rem; }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; } }

/* Franja de palabras */
.ticker { overflow: hidden; background: var(--dark); padding: 1rem 0 1.4rem; border-top: 1px solid rgba(255,255,255,.08); }
.ticker-track { display: flex; gap: 3rem; width: max-content; animation: ticker 30s linear infinite; }
.ticker-track span { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.4rem, 3vw, 2.2rem); white-space: nowrap; letter-spacing: -.02em; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* Tableros hechos en código */
.board { background: var(--soft); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.section-soft .board, .card .board { background: var(--surface); }
.section-soft .card .board { background: var(--soft); }
.section-dark .board { background: rgba(255,255,255,.06); }
.board-title { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.board-words { display: grid; gap: .5rem; font-family: var(--font); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; grid-template-columns: minmax(0, 1fr); }
.board-words span { font-size: clamp(1.1rem, 2vw, 1.6rem); line-height: 1.1; min-width: 0; }
.board-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.board-grid .board-words { grid-template-columns: repeat(4, minmax(0, 1fr)); text-align: center; gap: .9rem .5rem; }
.board-grid .board-words span { font-size: clamp(.9rem, 1.5vw, 1.25rem); }
.board-tasks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.board-tasks .board-words { grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: center; }
.board-tasks .board-words span { font-size: clamp(.9rem, 1.4vw, 1.1rem); }
@media (max-width: 700px) { .board-tasks { grid-template-columns: 1fr; } .board-compare { grid-template-columns: 1fr; } }

/* Personas */
.person { display: flex; flex-direction: column; gap: .9rem; }
.avatar { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.4rem; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin: 0; font-size: 1.2rem; }
.person .role { font-size: .9rem; color: var(--muted); margin-bottom: .5rem; }

/* Cifras */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 2rem 0; }
.stat { background: rgba(255,255,255,.06); border-radius: var(--radius); padding: 2rem; }
.stat .num { font-family: var(--display); font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.stat .lbl { color: rgba(255,255,255,.65); font-size: .95rem; margin-top: .75rem; }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; } }

/* Prueba interactiva */
.test { background: var(--soft); color: var(--fg); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); max-width: 760px; margin-inline: auto; }
.section-soft .test { background: var(--surface); box-shadow: 0 30px 60px -40px rgba(0,0,0,.25); }
.section-soft .test-stage, .section-soft .test-choices button { background: var(--soft); }
.section-dark .test .btn { border-color: var(--fg); color: var(--fg); }
.section-dark .test .btn-primary { background: var(--fg); color: var(--bg); }
.section-dark .test .btn-primary:hover { background: var(--azul); border-color: var(--azul); color: #fff; }
.test-top { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.test-top strong { color: var(--fg); }
.test-timer strong { font-family: var(--display); font-size: 1.35rem; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
@media (max-width: 600px) { .test-top { flex-wrap: wrap; } .test-top > span:last-child { width: 100%; } }
.test-stage { position: relative; min-height: 200px; display: grid; place-items: center; background: var(--surface); border-radius: 20px; margin-bottom: 1.25rem; padding: 1rem 1rem 1.5rem; text-align: center; overflow: hidden; }
.trial-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--line); }
.trial-bar i { display: block; height: 100%; width: 100%; background: var(--verde); transform-origin: left; }
.trial-bar.is-warning i { background: var(--rojo); }
.btn-small { padding: .45rem .9rem; font-size: .85rem; border-width: 1.5px; }
.test-word { font-family: var(--display); font-size: clamp(3rem, 11vw, 6rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.03em; line-height: 1; }
.test-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.test-choices button {
  display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1rem .5rem; border-radius: 18px; border: 2px solid transparent;
  background: var(--surface); cursor: pointer; font-family: inherit; font-weight: 700; color: var(--fg); transition: transform .08s, border-color .15s;
}
.test-choices button:hover { border-color: var(--fg); }
.test-choices button:active { transform: scale(.96); }
.test-choices .swatch { width: 42px; height: 42px; border-radius: 14px; }
.test-choices kbd { font-size: .75rem; color: var(--muted); font-family: inherit; }
.test-feedback { min-height: 1.6rem; text-align: center; margin-top: .75rem; font-weight: 700; }
.test-results table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.test-results th, .test-results td { text-align: left; padding: .7rem .5rem; border-bottom: 1px solid var(--line); }
.test-results .big { font-family: var(--display); font-size: 2.2rem; font-weight: 800; }
.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 1rem; }
.progress i { display: block; height: 100%; width: 0; background: var(--fg); transition: width .2s; }
.test-intro h3 { font-size: 1.6rem; }
.test-intro ul { padding-left: 1.2rem; }
[hidden] { display: none !important; }
@media (max-width: 600px) { .test-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Videos */
.video-embed { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.team-media { display: grid; grid-template-columns: 2fr 1fr; gap: 1.25rem; align-items: stretch; }
.team-media .figure { display: flex; flex-direction: column; }
.team-media figcaption { margin-top: auto; }
.phone-embed { flex: 1; min-height: 0; position: relative; background: #000; }
.phone-embed iframe { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); height: 100%; aspect-ratio: 9 / 16; width: auto; max-width: 100%; border: 0; }
@media (max-width: 900px) { .team-media { grid-template-columns: 1fr; } .phone-embed { flex: none; height: 560px; } }

/* Textos */
.poem { font-size: 1.1rem; line-height: 1.75; white-space: pre-line; background: var(--soft); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); }
.poem-title { font-family: var(--display); font-weight: 800; font-size: 1.6rem; margin-bottom: 1rem; letter-spacing: -.02em; }
.preview h3 { font-size: 1.45rem; }
.preview-text { color: var(--muted); }
.preview-thumb { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; }
.preview-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s; }
.preview-thumb:hover img { transform: scale(1.03); }

/* Lector emergente */
.reader { border: 0; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius); background: var(--surface); color: var(--fg); width: min(760px, 100% - 2rem); max-height: 90vh; overflow: auto; box-shadow: 0 40px 100px -30px rgba(0,0,0,.5); }
.reader-wide { width: min(960px, 100% - 2rem); }
.reader::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); }
.reader-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.reader-close { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); color: var(--fg); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.reader-close:hover { background: var(--line); }
.reader-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.25rem; }
.reader .poem, .reader .letter { background: var(--soft); }
.letter { background: var(--soft); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); }
.ref { display: block; padding: 1.1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.ref:hover .ref-title { color: var(--azul); }
.ref-title { font-weight: 700; font-size: 1.05rem; }
.ref-meta { font-size: .9rem; color: var(--muted); }

/* Pie */
.site-footer { background: var(--dark); color: rgba(255,255,255,.6); padding: 3.5rem 0 2.5rem; margin-top: 2rem; font-size: .95rem; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.site-footer a { color: #fff; }
.footer-mark { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 7vw, 4.5rem); line-height: 1; letter-spacing: -.03em; text-transform: uppercase; color: #fff; display: block; margin-bottom: .5rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--dark); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* Una sola página */
section[id] { scroll-margin-top: 72px; }
.coming { border-radius: var(--radius); padding: 3rem 1.5rem; text-align: center; color: rgba(255,255,255,.65); background: rgba(255,255,255,.06); }
.coming strong { display: block; color: #fff; margin-bottom: .25rem; font-family: var(--display); font-size: 1.2rem; }
.stats-light .stat { background: var(--surface); }
.stats-light .lbl { color: var(--muted); }

/* Pestañas */
.tab-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.tab-list [role="tab"] {
  padding: .65rem 1.1rem; border-radius: 999px; border: 2px solid var(--line); background: transparent; color: var(--fg);
  font-family: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.tab-list [role="tab"]:hover { border-color: var(--fg); }
.tab-list [role="tab"][aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.tab-panel { align-items: start; }
.tab-panel .prose h3 { margin-top: 0; }

/* Reto del hero */
.challenge-row { text-align: center; margin: .75rem 0 0; }
.hero .btn-small { border-width: 1.5px; }
.stroop-board span { cursor: default; user-select: none; }
.challenge-on .stroop-board span { cursor: pointer; }
.stroop-board span.hit { background: rgba(18, 180, 87, .35); }
.stroop-board span.miss { background: rgba(255, 59, 48, .35); }
.stroop-board-caption strong { color: #fff; }
.stroop-board-caption .ch-time { font-variant-numeric: tabular-nums; }

/* Modo voz, historial y compartir */
.test-voice { display: flex; gap: .6rem; align-items: flex-start; margin: 0 0 1.25rem; font-size: .95rem; color: var(--muted); cursor: pointer; }
.test-voice input { margin-top: .35rem; accent-color: var(--azul); }
.voice-status { text-align: center; margin: .75rem 0 0; font-size: .9rem; }
.test-voice-wait { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; font-size: .95rem; margin: 0; }
.test-history { margin: 1.5rem 0; padding: 1.25rem; background: var(--surface); border-radius: 18px; }
.section-soft .test-history { background: var(--soft); }
.test-history h4 { margin: 0 0 1rem; font-size: 1rem; }
.history-bars { display: flex; align-items: flex-end; gap: .5rem; height: 140px; padding-top: 1.4rem; }
.history-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.history-bar i { display: block; width: 100%; max-width: 48px; background: var(--azul); opacity: .55; border-radius: 8px 8px 0 0; }
.history-bar.is-last i { opacity: 1; }
.history-val { font-size: .75rem; font-weight: 700; margin-bottom: .3rem; }
.history-lbl { font-size: .75rem; color: var(--muted); margin-top: .3rem; }
.history-note { font-size: .9rem; margin: .75rem 0 0; }
.test-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

/* Minijuegos */
.mini-stage { min-height: 170px; display: grid; place-items: center; background: var(--soft); border-radius: 16px; margin: 1rem 0; padding: 1rem; }
.simon-box { width: 100%; display: grid; grid-template-columns: 1fr 1fr; align-items: center; justify-items: center; }
.simon-arrow, .flanker { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 8vw, 4rem); line-height: 1; }
.flanker { letter-spacing: .12em; }
.mini-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.mini-choices button { padding: 1rem; border-radius: 14px; border: 2px solid transparent; background: var(--soft); color: var(--fg); font-family: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; }
.mini-choices button:hover { border-color: var(--fg); }
.mini-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.mini-table th, .mini-table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); }

/* Quiz */
.quiz-q h3 { font-size: 1.15rem; margin-top: .75rem; }
.quiz-options { display: grid; gap: .5rem; }
.quiz-options button { text-align: left; padding: .8rem 1rem; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--fg); font-family: inherit; font-size: .95rem; cursor: pointer; transition: border-color .15s; }
.quiz-options button:hover { border-color: var(--fg); }
.quiz-q.is-done .quiz-options button { cursor: default; }
.quiz-options button.is-correct { border-color: var(--verde); background: color-mix(in srgb, var(--verde) 18%, var(--surface)); }
.quiz-options button.is-wrong { border-color: var(--rojo); background: color-mix(in srgb, var(--rojo) 18%, var(--surface)); }
.quiz-explain { margin: .9rem 0 0; font-size: .95rem; }
.quiz-score { margin-top: 1.25rem; }
.quiz-score h3 strong { color: var(--verde); }

/* Logo, videos sin conexión y práctica */
.brand .logo { width: 28px; height: 28px; border-radius: 7px; flex: none; align-self: center; }
.video-embed, .phone-embed { background: #1a1a21; }
.video-offline { position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; text-align: center; color: rgba(255,255,255,.55); font-size: .9rem; }
.video-embed iframe, .phone-embed iframe { z-index: 1; }
.test-phase { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; background: var(--amarillo); color: #0e0e11; margin-left: .5rem; vertical-align: middle; }
.test-interlude { font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--fg); }
.test-context { margin-top: 1rem; padding: 1rem 1.25rem; border-left: 4px solid var(--azul); border-radius: 0; background: var(--surface); }
.section-soft .test-context { background: var(--soft); }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
