/* ALBA 16 — shared design system. Specialist layouts live in @layer components. */
:root{--paper:#082750;--surface:#103c6a;--ink:#f4f8ff;--muted:#cee2f6;--line:#4073a0;--accent:#ffe09a;--button:#ffd26b;--button-ink:#173351;--gold:#ffdc81;--heading:#ffdc81;--radius:16px}
html.alba-light{--paper:#f5f6f8;--surface:#fff;--ink:#182e4a;--muted:#5c6c80;--line:#dce2ea;--accent:#244d80;--button:#1b416e;--button-ink:#fff;--gold:#87601a;--heading:#805613}
*{box-sizing:border-box}html{scroll-behavior:smooth}body.alba-v16{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;line-height:1.6}body.alba-v16::before,body.alba-v16::after{display:none}.hidden,[hidden]{display:none!important}
body.alba-v16 .app{width:min(1180px,100%);max-width:1180px;margin:0 auto;padding:0 32px 48px;background:none;box-shadow:none;border:0;min-height:100vh}body.alba-v16 main{padding:0}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}a{color:var(--accent)}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}:focus-visible{outline:3px solid #a27832;outline-offset:4px}:is(h1,[data-alba-view-title]):focus,h2:focus{outline:none}p{line-height:1.7}:is(h1,[data-alba-view-title]),h2,h3{color:var(--ink);letter-spacing:-.035em;line-height:1.2}:is(h1,[data-alba-view-title]){font-size:clamp(30px,4vw,46px)}h2{font-size:24px}small{line-height:1.5}.skip-link{position:fixed;left:16px;top:-100px;z-index:100;background:var(--surface);padding:12px 20px}.skip-link:focus{top:12px}
.kicker,.eyebrow,.section-heading small{font-size:11px;font-weight:750;letter-spacing:.13em;color:var(--muted);text-transform:uppercase}
.primary,.welcome-cta{display:inline-flex;align-items:center;justify-content:center;gap:32px;border:1px solid var(--button);border-radius:10px;padding:14px 22px;background:var(--button);color:var(--button-ink);font-size:15px;font-weight:650;box-shadow:none;min-height:48px;text-transform:none;letter-spacing:0}
.secondary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:1px solid var(--line);border-radius:9px;padding:10px 16px;color:var(--ink);background:var(--surface);text-decoration:none;font-size:14px;font-weight:600;box-shadow:none}
.landing-nav{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:30px 0;border-bottom:1px solid var(--line)}.landing-nav>a:last-child{font-size:13px;font-weight:600;text-decoration:none}.wordmark{display:flex;gap:12px;align-items:center;color:var(--ink);text-decoration:none;font-weight:800;font-size:25px;letter-spacing:.1em}.wordmark img{object-fit:contain}.wordmark small{display:block;font-size:9px;letter-spacing:.12em;font-weight:600;color:var(--muted)}
.landing-hero{display:grid;grid-template-columns:1.45fr 1fr;gap:64px;align-items:center;padding:80px 0 64px}.landing-copy :is(h1,[data-alba-view-title]){font-size:clamp(40px,4.7vw,65px);font-weight:650;line-height:1.08;margin:22px 0;letter-spacing:-.055em}.landing-copy :is(h1,[data-alba-view-title]) span{color:var(--muted)}.landing-lead{max-width:510px;font-size:17px;color:var(--muted)}.landing-actions{display:flex;align-items:center;gap:24px;margin-top:32px}.landing-actions a{font-size:14px;text-underline-offset:5px}.landing-proof{display:flex;flex-wrap:wrap;gap:20px;font-size:12px;color:var(--muted);margin:22px 0 0}
.study-preview{border:1px solid var(--line);border-radius:20px;background:var(--surface);padding:32px;box-shadow:0 24px 55px #142e4a08}.study-preview>.kicker{font-size:9px}.preview-number{font-size:84px;line-height:1.1;letter-spacing:-.06em;font-weight:600;padding:28px 0}.preview-number span{display:block;font-size:17px;font-weight:450;letter-spacing:-.01em;color:var(--muted);margin-top:8px}.preview-row{display:flex;align-items:center;gap:18px;border-top:1px solid var(--line);padding:18px 0}.preview-row strong{font-size:26px;font-weight:600;letter-spacing:-.035em;min-width:90px}.preview-row span{font-size:13px;color:var(--muted)}.preview-foot{font-size:11px;color:var(--muted);padding-top:20px;border-top:1px solid var(--line)}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#3d876b;margin-right:8px}.landing-features{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;border-top:1px solid var(--line);padding:36px 0}.landing-features article>span{font-size:10px;font-weight:700;color:var(--gold);letter-spacing:.1em}.landing-features h2{font-size:19px;margin:16px 0 10px}.landing-features p{font-size:14px;color:var(--muted);margin:0}.landing-footer{display:flex;justify-content:space-between;gap:16px;font-size:11px;color:var(--muted);padding:20px 0;border-top:1px solid var(--line);background:none}
.masthead{display:flex;align-items:center;flex-wrap:wrap;gap:16px;background:none;border:0;border-bottom:1px solid var(--line);box-shadow:none;border-radius:0;padding:22px 0;margin:0 0 34px;color:var(--ink)}.brand{margin-right:auto;display:flex;align-items:center;gap:10px}.brand strong{font-size:25px;letter-spacing:.1em;color:var(--ink)}.brand small{font-size:11px}.brand-logo{width:40px;height:44px;object-fit:contain}.workspace-nav{order:4;width:100%;display:flex;gap:28px;overflow-x:auto;padding-top:16px}.workspace-nav a{white-space:nowrap;text-decoration:none;font-size:13px;padding-bottom:5px}.workspace-nav a[aria-current=page]{color:var(--ink);box-shadow:0 2px var(--gold)}#openProgress{display:none}#openSettingsTop{display:inline-flex;align-items:center;justify-content:center;background:var(--surface);border:1px solid var(--line);color:var(--ink);border-radius:10px;width:44px;height:44px}
.dashboard-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:28px}.dashboard-heading :is(h1,[data-alba-view-title]){margin:10px 0;font-weight:600}.dashboard-heading p:not(.kicker){color:var(--muted);font-size:14px;margin:0}.dashboard-heading>a{flex-shrink:0}.quick-actions{display:flex;gap:16px;margin-bottom:28px}.quick-actions button{flex:1;position:relative;text-align:left;padding:20px 22px;border:1px solid var(--line);border-radius:var(--radius);color:var(--ink);background:var(--surface);min-height:130px}.quick-actions button:first-child{background:#1b3556;color:#fff;border-color:#1b3556}.quick-number{font-size:10px;opacity:.65;letter-spacing:.1em;display:block;margin-bottom:12px}.quick-actions strong{display:block;font-size:17px;font-weight:600}.quick-actions small{font-size:12px;opacity:.75}.quick-arrow{position:absolute;right:22px;top:18px;font-size:20px}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:26px;box-shadow:none;color:var(--ink);margin-bottom:24px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:24px}.section-heading h2{margin:5px 0;font-size:23px;font-weight:600}.soft-pill{background:var(--paper);color:var(--muted);border:1px solid var(--line);border-radius:6px;font-size:10px;padding:6px 10px}.theme-fields,.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:18px}.theme-fields label,.fields label,.advanced-grid label{font-size:12px;font-weight:650;color:var(--ink)}select,input[type=search]{display:block;width:100%;min-height:46px;background:var(--paper);border:1px solid var(--line);border-radius:8px;color:var(--ink);padding:10px 12px;font-size:14px;margin-top:8px;box-shadow:none}.theme-full-title{display:block;color:var(--muted);font-size:11px;margin-top:6px}.advanced-options{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:20px 0}.advanced-options summary{cursor:pointer;padding:16px 0;font-size:13px;font-weight:650}.advanced-options summary span{margin-left:14px;font-weight:400;color:var(--muted);font-size:12px}.advanced-grid{display:grid;gap:18px;padding:8px 0 24px}.advanced-grid .stat-timer{background:none;border:0;padding:0}.advanced-grid .stat-timer small{color:var(--muted);font-size:12px}.multi-theme-toggle,.multi-theme-panel{background:var(--paper);border:1px solid var(--line);border-radius:10px;color:var(--ink);padding:14px}.multi-theme-toggle small{color:var(--muted)}.actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.subtle,#poolInfo{font-size:12px;color:var(--muted)}
.stats{display:grid;grid-template-columns:1fr 1fr 2fr;gap:16px;margin:26px 0 36px}.stats article{border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:none;padding:20px;color:var(--ink)}.stats article label,.stats article small{color:var(--muted);font-size:11px}.stats article>b{color:var(--ink);font-size:32px;font-weight:600}.block-best-grid{display:flex;gap:24px;justify-content:space-between}.block-best-grid b{color:var(--ink);font-size:22px}.block-best-hint{display:block;margin-top:8px}.alba15-section-lead{display:flex;align-items:end;justify-content:space-between;margin:34px 0 18px;gap:20px}.alba15-section-lead h2{font-size:22px;margin:6px 0}.alba15-section-lead small{font-size:10px;color:var(--muted);letter-spacing:.1em}.alba15-section-lead p{font-size:12px;color:var(--muted)}
.mobile-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 32px}.mobile-tile{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:12px;position:static;min-height:112px;width:auto;grid-column:auto;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:12px;box-shadow:none;padding:18px;text-decoration:none;text-align:left;text-transform:none;font-size:12px;font-weight:600;letter-spacing:0}.mobile-tile .tile-icon{display:block;background:none;border:0;box-shadow:none;width:24px;height:24px;color:var(--accent);padding:0}.mobile-tile small{font-size:10px;font-weight:400;color:var(--muted)}.tile-icon svg{width:24px;height:24px}.mobile-tile:hover,.secondary:hover{border-color:var(--accent)}.mobile-tile::before,.mobile-tile::after{display:none}.notes{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;color:var(--muted);font-size:12px}.notes>div{background:none;border:0;padding:0}.notes b{color:var(--ink)}.storage-strip{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 0;border-top:1px solid var(--line);margin-top:24px}.storage-strip strong{font-size:13px}.storage-strip p{font-size:12px;margin:4px 0;color:var(--muted)}#home footer{background:none;color:var(--muted);font-size:11px;border:0}.text-btn{color:var(--accent)}
#about{max-width:820px;margin:20px auto}#about .alba-cover-story{display:block;border:1px solid var(--line);padding:40px;background:var(--surface);border-radius:16px;box-shadow:none;color:var(--ink)}#about .alba-cover-story p{font-size:16px;line-height:1.85;color:var(--muted)}#about .alba-story-signature{display:flex;align-items:center;gap:20px;margin-top:30px;padding-top:24px;border-top:1px solid var(--line)}#about .alba-author-photo{width:70px;height:86px;object-fit:cover;border-radius:10px}#about .alba-author-details{display:grid;gap:7px;font-size:13px}#about .alba-story-footer{font-size:12px;color:var(--muted);background:none;border:0;padding:20px 0 0}
.report-question{display:block;text-align:center;font-size:12px;margin:24px 0;text-underline-offset:4px}#quiz .question-card,#quiz .question-panel{box-shadow:none}#quiz #questionText{line-height:1.6;letter-spacing:0}.screen{scroll-margin-top:20px}#testSetup{scroll-margin-top:24px}.result-stats{grid-template-columns:repeat(4,1fr)}
@media(max-width:800px){body.alba-v16 .app{padding:0 20px 30px}.landing-hero{gap:28px;padding:46px 0;grid-template-columns:1fr 1fr}.landing-copy :is(h1,[data-alba-view-title]){font-size:42px}.study-preview{padding:24px}.landing-features{gap:20px}.mobile-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}.workspace-nav{gap:24px}.dashboard-heading{align-items:flex-start}.dashboard-heading>a{display:none}}
@media(max-width:580px){body.alba-v16 .app{padding:0 18px 28px}.landing-nav{padding:22px 0}.wordmark small{font-size:7px}.landing-nav>a:last-child{font-size:11px}.landing-hero{display:block;padding:38px 0 28px}.landing-copy :is(h1,[data-alba-view-title]){font-size:42px}.landing-lead{font-size:15px}.landing-actions{gap:18px}.landing-actions a{font-size:12px}.landing-actions .primary{padding:13px 16px;gap:16px;font-size:14px}.landing-proof{gap:14px;font-size:11px}.study-preview{margin-top:36px;padding:24px}.preview-number{font-size:64px;padding:20px 0}.landing-features{grid-template-columns:1fr;gap:26px;padding:28px 0}.landing-features h2{margin-top:10px}.landing-footer{flex-direction:column;gap:8px}.masthead{padding:20px 0;margin-bottom:24px}.workspace-nav{gap:22px;padding-top:8px}.workspace-nav a{font-size:12px}.dashboard-heading :is(h1,[data-alba-view-title]){font-size:32px}.quick-actions{flex-direction:column;gap:10px;margin-bottom:22px}.quick-actions button{min-height:100px;padding:16px 20px}.quick-number{margin-bottom:5px}.quick-actions strong{font-size:16px}.panel{padding:20px 16px}.section-heading h2{font-size:21px}.theme-fields,.fields{grid-template-columns:1fr;gap:16px}.advanced-options summary span{display:block;margin:5px 0 0 16px;font-size:11px}.stats{grid-template-columns:1fr 1fr;gap:10px}.stats .stat-block-bests{grid-column:1/-1}.stats article{padding:16px}.mobile-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mobile-tile{padding:16px;min-height:108px;font-size:11px}.alba15-section-lead{display:block}.alba15-section-lead p{margin-top:6px}.notes{grid-template-columns:1fr;gap:14px}.storage-strip{align-items:flex-start;flex-direction:column}.actions #start{width:100%}.result-stats{grid-template-columns:1fr 1fr}#about .alba-cover-story{padding:24px}#about .section-heading{align-items:flex-start;flex-direction:column}#about .alba-author-details{font-size:11px}#about .alba-story-signature{gap:12px}#about :is(h1,[data-alba-view-title]){font-size:32px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
/* Reset inherited presentation properties from earlier releases. */
#welcome{display:block;background:none;padding:0;margin:0;min-height:0;text-align:left;position:static;color:var(--ink);border:0;border-radius:0;box-shadow:none}
#welcome::before,#welcome::after{display:none}
#welcome strong,.preview-number{color:var(--ink)}
#testSetup select{color:var(--ink);-webkit-text-fill-color:var(--ink);appearance:auto;background-image:none;font-weight:450;padding-right:12px}
#testSetup select option{color:var(--ink);-webkit-text-fill-color:var(--ink);background:var(--surface)}
#testSetup .theme-fields>label{grid-column:auto;width:100%;max-width:none;margin:0}
#testSetup .fields{margin-top:18px}
#testSetup label{text-transform:none;letter-spacing:0}
#testSetup #poolInfo{text-transform:none;letter-spacing:0;font-weight:450}
.brand small{display:block}
#testSetup .theme-fields>label{display:block}#testSetup select{height:46px;min-height:46px}
#quiz{background:none;border:0;border-radius:0;padding:0;color:var(--ink);box-shadow:none}
#quiz .quiz-header{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:14px 18px;color:var(--ink)}
#quiz .quiz-meta{color:var(--muted);padding:18px 0;font-size:13px}#quiz .quiz-meta span,#quiz .quiz-meta strong{color:var(--muted)}
#quiz .mode-tag,#quiz .timer,#quiz .back{background:none;color:var(--ink);border:0;box-shadow:none}
#quiz .question-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:26px;color:var(--ink)}
#quiz #questionText{background:none;border:0;padding:12px 0 22px;margin:0;font-size:22px;font-weight:600;color:var(--ink)}
#quiz .qchips{gap:8px;margin-bottom:12px}#quiz .qchips span{background:var(--paper);border:1px solid var(--line);color:var(--muted);font-size:11px;font-weight:500;border-radius:6px;padding:6px 10px}
#quiz .answer{background:var(--surface);border:1px solid var(--line);color:var(--ink);box-shadow:none;border-radius:10px;padding:16px;line-height:1.65;font-size:15px;font-weight:450}
#quiz .answer .letter{background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:6px}
#quiz .answer.correct{background:#e8f4ed;border-color:#75a98a;color:#174c31;opacity:1}#quiz .answer.wrong{background:#fff0ee;border-color:#d7978e;color:#79362c;opacity:1}
#quiz .answer.selected:not(.wrong):not(.correct){border:2px solid var(--accent)}
#quiz .question-help{color:var(--muted);font-size:12px}#quiz .progress{height:4px;background:var(--line);margin-bottom:22px}#quiz #progressFill{background:var(--gold)}
@media(max-width:580px){#quiz .question-card{padding:18px 14px}#quiz #questionText{font-size:18px}#quiz .answer{font-size:14px;padding:12px}#quiz .qfooter{flex-wrap:wrap}}

@media(max-width:580px){.workspace-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;overflow:visible}.workspace-nav a{font-size:10px;white-space:normal;min-height:40px;display:flex;align-items:center;justify-content:center;text-align:center;line-height:1.4}}

/* V16.1 — azul y dorado de ALBA, con tarjetas de color y títulos cálidos. */
body.alba-v16{background:radial-gradient(ellipse at 90% 0%,#2165a955,transparent 48%),radial-gradient(ellipse at 0% 60%,#08637b33,transparent 48%),var(--paper);background-attachment:fixed}
html.alba-light body.alba-v16{background:radial-gradient(ellipse at 95% 0%,#d5e8ff,transparent 50%),#f3f7fc}
.brand strong,.wordmark,.dashboard-heading :is(h1,[data-alba-view-title]),.landing-copy :is(h1,[data-alba-view-title]),.landing-copy :is(h1,[data-alba-view-title]) span,.section-heading h2,.alba15-section-lead h2,.landing-features h2,#about :is(h1,[data-alba-view-title]){color:var(--heading)}
.brand small{color:var(--muted)}
.kicker,.section-heading small,.alba15-section-lead small{color:var(--gold)}
.landing-copy :is(h1,[data-alba-view-title]) span{color:#fff0bd}
html.alba-light .landing-copy :is(h1,[data-alba-view-title]){color:#153e69}html.alba-light .landing-copy :is(h1,[data-alba-view-title]) span{color:#886013}
.landing-nav,.masthead{border-bottom-color:#e5ba694d}
.primary,.welcome-cta{background:linear-gradient(110deg,#ffd877,#f2b943);border-color:#ffe3a2;color:#173351;box-shadow:0 5px 18px #e7b24324;font-weight:750}
.primary:hover,.welcome-cta:hover{background:linear-gradient(110deg,#ffe7a7,#ffce67);box-shadow:0 7px 22px #e7b24340}
.workspace-nav a{color:var(--muted)}.workspace-nav a[aria-current=page],.workspace-nav a:hover{color:var(--heading)}
.study-preview{background:linear-gradient(145deg,#104778,#082c55);border-color:#7da4c1;box-shadow:0 24px 60px #00112835;border-top:3px solid #ffce68}
#welcome .study-preview .kicker,#welcome .study-preview .preview-number,#welcome .study-preview strong{color:#ffdc81}
.study-preview .preview-number span,.study-preview .preview-row span,.study-preview .preview-foot{color:#d5e9ff}
.study-preview .preview-row,.study-preview .preview-foot{border-color:#50779d}
.study-preview .status-dot{background:#6ce0b3;box-shadow:0 0 0 4px #6ce0b31c}
.landing-features article{padding:22px;border:1px solid var(--line);border-top:3px solid #ffd16f;border-radius:14px;background:var(--surface)}
.landing-features article:nth-child(2){border-top-color:#65dacb}.landing-features article:nth-child(3){border-top-color:#9ca9ff}
.quick-actions button{border:1px solid #6497bc;box-shadow:0 8px 24px #001a3526}
.quick-actions button:first-child{background:linear-gradient(120deg,#1263a5,#17467c);border-color:#619fd3}
.quick-actions button:nth-child(2){background:linear-gradient(120deg,#10666e,#16465f);border-color:#579eac}
.quick-actions button:nth-child(3){background:linear-gradient(120deg,#514f94,#283d72);border-color:#8a8dc4}
.quick-actions button strong,.quick-actions .quick-arrow{color:#ffe196}.quick-actions .quick-number,.quick-actions small{color:#f0f6ff;opacity:1}
.quick-actions button:hover{filter:brightness(1.09)}
.panel{border-top:2px solid #e7bb63;box-shadow:0 10px 28px #001b3520}
#testSetup{background:linear-gradient(145deg,#123e6d,#0c3159)}
html.alba-light #testSetup{background:linear-gradient(145deg,#fff,#edf5ff)}
#testSetup .soft-pill{color:#ffe09b;background:#144e7e;border-color:#638bb0}
#testSetup label,#testSetup .advanced-options summary{color:var(--heading)}
#testSetup select{background:var(--paper);border-color:var(--line)}
.stats article{background:linear-gradient(140deg,#124876,#0d345c);border-color:#5380a6;border-top:3px solid #ffd16f}
.stats article:nth-child(2){border-top-color:#63cfc3}.stats article:nth-child(3){border-top-color:#94adff}
.stats article>b,.block-best-grid b{color:#ffdf8c}.stats article label,.stats article small{color:#d2e8ff}
html.alba-light .stats article{background:linear-gradient(140deg,#fff,#e6f1ff)}
html.alba-light .stats article>b,html.alba-light .block-best-grid b{color:#174d7a}
html.alba-light .stats article label,html.alba-light .stats article small{color:#365a78}
.mobile-tile{border-top:3px solid #ffcf70;box-shadow:0 6px 20px #00182b22;color:#ffe39b;background:linear-gradient(135deg,#16578d,#133c68)}
#tileOca{background:linear-gradient(135deg,#795720,#4c3c28);border-color:#c5a165}
#tileProgress,#tileInterview{background:linear-gradient(135deg,#0e666b,#134451);border-color:#68aaa9}
#tileSettings{background:linear-gradient(135deg,#514d91,#2d3b67);border-color:#9293c5}
#tilePsico{background:linear-gradient(135deg,#245988,#263f78);border-color:#849fce}
.mobile-tile .tile-icon{color:#ffdf8c}.mobile-tile small{color:#dcefff}.mobile-tile:hover{filter:brightness(1.12);border-color:#ffdf8c}
.mobile-tile>span:not(.tile-icon){font-size:12px;letter-spacing:.015em;color:#ffe39b;font-weight:750}
.storage-strip{border-top-color:#d4b16c60}.storage-strip strong{color:var(--heading)}
#about .alba-cover-story{border-top:3px solid #ffce68}
#quiz .quiz-header{border-top:2px solid #ffce68}#quiz .mode-tag{color:var(--heading)}
@media(max-width:580px){.landing-features article{padding:20px}.mobile-tile>span:not(.tile-icon){font-size:11px}}
/* V16.2 — contraste de explicaciones, contadores y accesos centrados. */
.mobile-tile{align-items:center;text-align:center;gap:14px;min-height:148px}
.mobile-tile .tile-icon,.tile-icon svg{width:42px;height:42px}
.mobile-tile>span:not(.tile-icon),.mobile-tile small{width:100%;text-align:center}
#stats>article:not(.stat-block-bests){display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:12px;text-align:center}
#stats>article:not(.stat-block-bests)>label{display:block;margin:0;min-height:18px;line-height:18px}
#stats #statSessions,#stats #statMisses{display:flex;align-items:center;justify-content:center;width:116px;min-width:116px;height:52px;min-height:52px;padding:4px 14px;margin:0;border:1px solid #ffffff26;border-radius:11px;font-size:32px;line-height:1;font-weight:750;color:#fff3bf;box-sizing:border-box}
#stats #statSessions{background:#147450}#stats #statMisses{background:#ad3045}
#quiz .answer:disabled{opacity:1}
#quiz #feedback,#explanation .explanation-card,#explanation #explanationBody,#explanation .explanation-reference{background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:12px;box-shadow:none}
#quiz #feedback{padding:20px;border-left:4px solid #6fd5ab}
#quiz #feedback.bad{border-left-color:#ff9c9c}
#quiz #feedback strong,#quiz #feedback div,#explanation #explanationBody{color:var(--ink);-webkit-text-fill-color:var(--ink);font-size:15px;line-height:1.75;opacity:1}
#quiz #feedback small{display:block;color:var(--muted);font-size:13px;line-height:1.65;margin:12px 0;opacity:1}
#quiz #feedback a,#explanation .explanation-reference a{display:inline-block;color:var(--accent);font-weight:700;text-decoration:underline;text-underline-offset:4px;padding:6px 0;opacity:1}
#explanation .explanation-card{padding:18px}
#explanation #explanationBody{padding:20px;margin:12px 0;white-space:pre-line}
#explanation .explanation-reference{padding:18px}
#explanation .explanation-reference strong{color:var(--heading)}
#explanation #explanationReference{color:var(--muted);font-size:14px;line-height:1.7}
#quiz #explanationOpen{background:var(--surface);color:var(--heading);border:1px solid var(--line)}
#reviewList .review-card{background:var(--surface);color:var(--ink);border:1px solid var(--line)}
#reviewList .review-card h3,#reviewList .review-card details,#reviewList .review-card p{color:var(--ink)}
#reviewList .review-card a{color:var(--accent)}
@media(max-width:580px){.mobile-tile{min-height:144px}.mobile-tile .tile-icon,.tile-icon svg{width:38px;height:38px}#stats #statSessions,#stats #statMisses{width:104px;min-width:104px}#explanation .explanation-card{padding:12px}#explanation #explanationBody{padding:16px}}

/* ALBA · portada v17, octubre de 2026 */
#enter {
  font-size:17px !important;
  font-weight:800;
  justify-content:center !important;
  gap:0 !important;
  text-align:center;
  min-width:min(100%,260px);
}
#welcome .landing-actions {
}
#welcome .landing-discover {
  display:block;
  width:fit-content;
  max-width:100%;
  margin:18px auto 0;
  padding:11px 15px;
  color:#fff;
  font-size:15px;
  line-height:1.5;
  font-weight:850;
  text-align:center;
  letter-spacing:.07em;
  text-decoration:underline;
  text-underline-offset:5px;
}
#welcome .landing-discover:hover {color:#ffe1a0}
#welcome :is(.landing-proof,.landing-lead,.landing-footer,.landing-features p,
  .landing-features article>span,.landing-nav a,.wordmark small,
  .landing-copy .kicker,.study-preview .kicker,.preview-number span,
  .preview-row span,.preview-foot,.landing-proof span,.landing-discover) {
  color:#fff;
}
#welcome .landing-proof {
}
#welcome .landing-footer {justify-content:center;text-align:center}
#welcome .landing-footer span {flex:unset}
@media(max-width:580px) {
  #welcome .landing-actions {justify-content:center}
  #welcome #enter {min-width:min(100%,270px);font-size:17px!important}
  #welcome .landing-proof {justify-content:center;gap:10px 15px}
}

/* ALBA · portada centrada y tarjeta de recursos compacta · 29/10/2026 */
#welcome .landing-hero{
  grid-template-columns:minmax(0,1fr) minmax(0,365px);
  column-gap:clamp(24px,3vw,50px);
  align-items:center;
}
#welcome .landing-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
#welcome .landing-center-logo{
  display:block;
  width:96px;
  max-height:105px;
  object-fit:contain;
  margin:8px auto 18px;
  filter:drop-shadow(0 5px 11px #00183366);
}
#welcome .landing-copy :is(h1,[data-alba-view-title]){
  text-align:center;
}
#welcome .landing-lead{
  text-align:center;
  margin-left:auto;
  margin-right:auto;
}
#welcome .landing-actions{
  width:100%;
  justify-content:center;
}
#welcome .landing-proof{
  align-items:center;
  justify-content:center;
  text-align:center;
}
#welcome .study-preview{
  width:100%;
  max-width:365px;
  justify-self:end;
  min-width:0;
}
/* En iPad y pantallas medianas las dos zonas se apilan sin perder legibilidad. */
@media(max-width:1240px){
  #welcome .landing-hero{
    grid-template-columns:minmax(0,1fr);
    row-gap:24px;
  }
  #welcome .study-preview{
    justify-self:center;
    margin:8px auto 0;
  }
}
@media(max-width:580px){
  #welcome .landing-hero{display:block}
  #welcome .landing-center-logo{
    width:86px;
    max-height:95px;
    margin:8px auto 14px;
  }
  #welcome .study-preview{margin:30px auto 0}
  #welcome .landing-copy :is(h1,[data-alba-view-title]){font-size:clamp(32px,9vw,42px)}
}

/* ALBA · portada con lema, escudo y textos más visibles · 29/10/2026 */
#welcome .landing-copy .kicker {
  font-size:clamp(13px,1.1vw,16px);
  font-weight:850;
  line-height:1.5;
  letter-spacing:.12em;
}
#welcome .landing-center-logo{
  width:clamp(122px,10vw,145px);
  max-height:none;
  height:auto;
  margin:13px auto 24px;
}
#welcome .landing-copy :is(h1,[data-alba-view-title]){
  font-size:clamp(46px,4.9vw,70px);
  font-weight:760;
  line-height:1.12;
  letter-spacing:-.045em;
  margin-top:8px;
  margin-bottom:20px;
  max-width:100%;
}
#welcome .landing-lead{
  font-size:clamp(18px,1.58vw,22px);
  line-height:1.6;
  max-width:680px;
}
@media(max-width:580px){
  #welcome .landing-copy .kicker{
    font-size:13px;
    letter-spacing:.08em;
  }
  #welcome .landing-center-logo{
    width:114px;
    max-height:none;
    margin:10px auto 18px;
  }
  #welcome .landing-copy :is(h1,[data-alba-view-title]){
    font-size:clamp(36px,9.8vw,44px);
    line-height:1.13;
    margin-bottom:16px;
  }
  #welcome .landing-lead{font-size:18px;line-height:1.55}
}

/* ALBA · Tests por temas, misma identidad que Temario y Psicotécnicos */
#themes .themes-hero.themes-hero--illustrated{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,40%);
  align-items:center;
  gap:clamp(16px,2.2vw,32px);
  min-height:330px;
  padding:clamp(27px,3.6vw,52px);
  margin:0 0 25px;
  background:radial-gradient(circle at 87% 2%,#347bac96,transparent 50%),
    linear-gradient(120deg,#061a38,#164675);
  border:1px solid #c39f5c;
  border-radius:23px;
  box-shadow:0 18px 38px #0005;
  color:#fff;
}
#themes .themes-hero--illustrated::after{
  content:"";
  position:absolute;
  pointer-events:none;
  z-index:0;
  width:400px;
  height:400px;
  right:-70px;
  top:-270px;
  border:1px solid #9acbfa32;
  border-radius:50%;
}
#themes .themes-hero-copy{position:relative;z-index:2;min-width:0}
#themes .themes-hero-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
#themes .themes-eyebrow{
  margin:0;
  color:#f5d078;
  font-size:12px;
  font-weight:900;
  letter-spacing:1.5px;
  text-transform:uppercase;
}
#themes .themes-hero :is(h1,[data-alba-view-title]){
  margin:14px 0 19px;
  font-size:clamp(36px,4.3vw,65px);
  line-height:1.08;
  letter-spacing:-.035em;
  font-weight:950;
  color:#ffdc81;
}
#themes .themes-hero-text{
  margin:0;
  max-width:700px;
  font-size:clamp(16px,1.25vw,19px);
  line-height:1.62;
  font-weight:550;
  color:#fff;
}
#themes .themes-blocks{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:24px;
}
#themes .themes-blocks span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:39px;
  padding:9px 12px;
  border-radius:11px;
  border:1px solid #cfb372;
  background:#082747c9;
  color:#ffdf8c;
  font-size:11px;
  font-weight:850;
  letter-spacing:.025em;
  text-align:center;
  line-height:1.35;
}
#themes .themes-hero-top .mobile-back{
  position:relative;
  z-index:3;
  margin:0;
  flex-shrink:0;
}
#themes .themes-hero-art{
  position:relative;
  z-index:1;
  width:100%;
  min-width:0;
  min-height:200px;
  align-self:stretch;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
}
#themes .themes-hero-art img{
  display:block;
  width:110%;
  max-width:none;
  height:auto;
  max-height:340px;
  object-fit:contain;
  object-position:center right;
  filter:brightness(1.09) contrast(1.08);
  -webkit-mask-image:radial-gradient(ellipse 76% 78% at 53% 50%,#000 69%,transparent 100%);
  mask-image:radial-gradient(ellipse 76% 78% at 53% 50%,#000 69%,transparent 100%);
}
@media(max-width:1050px){
  #themes .themes-hero.themes-hero--illustrated{
    grid-template-columns:minmax(0,1fr);
    gap:8px;
  }
  #themes .themes-hero-art{
    width:min(100%,630px);
    min-height:170px;
    justify-self:center;
    align-self:center;
  }
  #themes .themes-hero-art img{
    width:100%;
    max-height:250px;
  }
}
@media(max-width:580px){
  #themes .themes-hero.themes-hero--illustrated{
    min-height:0;
    padding:24px 18px;
    border-radius:17px;
    margin-bottom:22px;
  }
  #themes .themes-eyebrow{font-size:10px;letter-spacing:1px}
  #themes .themes-hero :is(h1,[data-alba-view-title]){font-size:clamp(31px,8vw,43px);margin:16px 0}
  #themes .themes-hero-text{font-size:16px;line-height:1.55}
  #themes .themes-blocks{display:grid;grid-template-columns:1fr;gap:8px;margin-top:18px}
  #themes .themes-blocks span{min-height:39px;font-size:11px}
  #themes .themes-hero-art{min-height:105px}
  #themes .themes-hero-art img{max-height:170px}
}

/* Tests por temas: VOLVER en esquina superior derecha del encabezado. */
#themes .themes-hero .themes-hero-top{
  display:block;
  padding-right:clamp(96px,11vw,126px);
}
#themes .themes-hero #themeBack{
  position:absolute!important;
  z-index:10!important;
  top:clamp(18px,2vw,28px)!important;
  right:clamp(18px,2.5vw,30px)!important;
  left:auto!important;
  min-width:94px!important;
  margin:0!important;
}
@media(max-width:580px){
  #themes .themes-hero .themes-hero-top{padding-right:106px}
  #themes .themes-hero #themeBack{
    top:16px!important;
    right:16px!important;
    left:auto!important;
    min-width:88px!important;
    padding:9px 12px!important;
  }
}

/* ALBA · Página de Juegos con la identidad visual de Temario y Psicotécnicos */
#games .games-hero.games-hero--illustrated{
 position:relative;
 isolation:isolate;
 overflow:hidden;
 display:grid;
 grid-template-columns:minmax(0,1fr) minmax(230px,43%);
 align-items:center;
 gap:clamp(14px,2.2vw,30px);
 min-height:326px;
 padding:clamp(28px,3.8vw,52px);
 margin:0 0 24px;
 background:radial-gradient(circle at 87% 2%,#347bac96,transparent 50%),
   linear-gradient(120deg,#061a38,#164675);
 border:1px solid #c39f5c;
 border-radius:23px;
 box-shadow:0 18px 38px #0005;
 color:#fff;
}
#games .games-hero::after{
 content:"";
 position:absolute;
 pointer-events:none;
 z-index:0;
 width:400px;height:400px;
 top:-270px;right:-70px;
 border:1px solid #9acbfa32;
 border-radius:50%;
}
#games .games-hero-copy{position:relative;z-index:2;min-width:0}
#games .games-eyebrow{
 margin:0;
 color:#f5d078;
 font-size:12px;
 font-weight:900;
 letter-spacing:.12em;
}
#games .games-hero :is(h1,[data-alba-view-title]){
 margin:15px 0 18px;
 font-size:clamp(38px,4.4vw,64px);
 line-height:1.08;
 font-weight:950;
 letter-spacing:-.035em;
 color:#ffdc81;
}
#games .games-hero-lead{
 margin:0 0 15px;
 max-width:660px;
 color:#fff;
 font-size:clamp(18px,1.7vw,23px);
 font-weight:750;
 line-height:1.48;
}
#games .games-hero-subtext{
 margin:0;
 color:#fff;
 font-size:clamp(15px,1.3vw,18px);
 line-height:1.5;
 font-weight:550;
}
#games .games-hero-art{
 position:relative;
 z-index:1;
 display:flex;
 align-items:center;
 justify-content:center;
 align-self:stretch;
 min-height:180px;
 min-width:0;
 pointer-events:none;
}
#games .games-hero-art img{
 display:block;
 width:110%;
 max-width:none;
 height:auto;
 max-height:318px;
 object-fit:contain;
 object-position:center right;
 opacity:.95;
 filter:brightness(1.16) contrast(1.06) saturate(1.07);
 -webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 20%,#000 89%,transparent 100%);
 mask-image:linear-gradient(90deg,transparent 0%,#000 20%,#000 89%,transparent 100%);
}
#games .games-hero #gamesBack{
 position:absolute!important;
 top:clamp(18px,2vw,27px)!important;
 right:clamp(18px,2.5vw,29px)!important;
 left:auto!important;
 margin:0!important;
 z-index:5!important;
 min-width:90px;
}
#games .games-hero .games-eyebrow{
 max-width:calc(100% - 113px);
}
@media(max-width:1050px){
 #games .games-hero.games-hero--illustrated{
  grid-template-columns:minmax(0,1fr);
  gap:10px;
 }
 #games .games-hero-art{
  justify-self:center;
  width:min(100%,660px);
  min-height:150px;
  align-self:center;
 }
 #games .games-hero-art img{width:100%;max-height:240px}
}
@media(max-width:580px){
 #games .games-hero.games-hero--illustrated{
  min-height:0;
  padding:25px 18px;
  border-radius:17px;
  gap:11px;
 }
 #games .games-hero #gamesBack{top:15px!important;right:15px!important;min-width:80px;padding:9px 11px!important}
 #games .games-hero .games-eyebrow{font-size:10px;max-width:calc(100% - 100px)}
 #games .games-hero :is(h1,[data-alba-view-title]){font-size:clamp(33px,8.7vw,46px)}
 #games .games-hero-lead{font-size:18px;line-height:1.48}
 #games .games-hero-subtext{font-size:16px}
 #games .games-hero-art{min-height:100px}
 #games .games-hero-art img{max-height:175px}
}
