:root{--bg:#071512;--panel:#0d201b;--panel2:#102a23;--line:#214339;--text:#f3f7f4;--muted:#9ab0a8;--lime:#d5ff63;--green:#73dda9;--orange:#ff9d66;--red:#ff7a7a;--shadow:0 24px 70px #02080766;--radius:22px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.55 ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.01em}button{font:inherit;color:inherit}button:focus-visible{outline:3px solid var(--lime);outline-offset:3px}.shell{width:min(1160px,calc(100% - 40px));margin-inline:auto}.topbar{height:72px;position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;padding:0 max(20px,calc((100vw - 1160px)/2));border-bottom:1px solid var(--line);background:#071512e8;backdrop-filter:blur(18px)}.brand{border:0;background:none;display:flex;align-items:center;gap:10px;font-weight:800;font-size:18px;cursor:pointer}.brand-mark{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:var(--lime);color:#102016;font-weight:900}.topbar nav{display:flex;gap:6px}.topbar nav button,.icon-btn{border:0;background:transparent;color:var(--muted);padding:9px 12px;border-radius:10px;cursor:pointer}.topbar nav button:hover,.icon-btn:hover{color:var(--text);background:var(--panel)}.icon-btn{font-size:20px}.view{display:none}.view.active{display:block;animation:in .35s ease}@keyframes in{from{opacity:0;transform:translateY(6px)}}.hero{min-height:620px;display:grid;grid-template-columns:1.04fr .96fr;align-items:center;gap:76px;padding:76px 0}.eyebrow,.page-head>p,.section-title>p{font-size:12px;letter-spacing:.13em;font-weight:800;color:var(--green)}.eyebrow span{display:inline-block;width:7px;height:7px;background:var(--lime);border-radius:50%;box-shadow:0 0 0 6px #d5ff6318;margin-right:8px}.hero h1{font-size:clamp(48px,6vw,78px);line-height:.98;letter-spacing:-.055em;margin:20px 0 26px}.hero h1 em{font-style:normal;color:var(--lime)}.lead{color:var(--muted);font-size:18px;max-width:600px}.actions,.result-actions{display:flex;gap:12px;margin:32px 0}.primary,.secondary{border-radius:12px;padding:13px 18px;font-weight:750;cursor:pointer}.primary{border:1px solid var(--lime);background:var(--lime);color:#102016}.primary:hover{filter:brightness(.92);transform:translateY(-1px)}.secondary{border:1px solid var(--line);background:var(--panel);color:var(--text)}.secondary:hover{border-color:#497062}.trust{display:flex;flex-wrap:wrap;gap:16px;color:var(--muted);font-size:12px}.hero-card{padding:26px;background:linear-gradient(145deg,#143128,#0b1c18);border:1px solid #315a4d;border-radius:28px;box-shadow:var(--shadow);transform:rotate(1.5deg)}.mini-top{display:flex;justify-content:space-between;font-size:11px;color:var(--green);letter-spacing:.09em}.mini-label{color:var(--muted);font-size:12px;margin-top:32px}.hero-card h2{font-size:20px;line-height:1.4;margin:12px 0 22px}.mini-option{display:flex;gap:14px;border:1px solid var(--line);padding:13px;border-radius:12px;margin:9px 0;color:var(--muted)}.mini-option.selected{border-color:var(--lime);background:#d5ff630c;color:var(--text)}.mini-progress{height:5px;background:#1c3b32;border-radius:4px;margin-top:26px}.mini-progress i{display:block;width:43%;height:100%;background:var(--lime);border-radius:4px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);border-block:1px solid var(--line)}.metrics div{padding:28px;text-align:center;border-right:1px solid var(--line)}.metrics div:last-child{border:0}.metrics strong{display:block;font-size:28px}.metrics span{color:var(--muted);font-size:12px}.section{padding:96px 0}.section-title{text-align:center;margin-bottom:40px}.section-title.left{text-align:left}.section-title h2,.page-head h1{font-size:clamp(34px,4vw,52px);line-height:1.05;letter-spacing:-.04em;margin:10px 0}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.feature-grid article{padding:28px;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel)}.feature-grid article>span{color:var(--lime);font-weight:800}.feature-grid h3{font-size:20px;margin:30px 0 8px}.feature-grid p{color:var(--muted);margin:0}.subject-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.subject-card{position:relative;min-height:210px;border:1px solid var(--line);background:var(--panel);border-radius:18px;padding:22px;cursor:pointer;text-align:left;overflow:hidden}.subject-card:after{content:"";position:absolute;width:100px;height:100px;right:-35px;bottom:-35px;border-radius:50%;background:var(--subject);opacity:.15}.subject-card:hover{transform:translateY(-4px);border-color:var(--subject)}.subject-code{color:var(--subject);font-weight:900;font-size:26px}.subject-card h3{font-size:18px;margin:42px 0 8px;line-height:1.2}.subject-card p{color:var(--muted);font-size:12px;margin:0}.subject-card .resume{display:block;color:var(--lime);margin-top:12px;font-weight:700}.page{padding-block:72px;min-height:75vh}.page-head{margin-bottom:38px}.page-head>span{color:var(--muted)}.subject-grid.large{grid-template-columns:repeat(3,1fr)}.subject-grid.large .subject-card{min-height:240px}.notice{margin-top:28px;padding:18px 20px;border:1px solid #5b5330;background:#302d18;border-radius:14px;color:#d6cfaa}.narrow{max-width:800px}.back{border:0;background:none;color:var(--muted);cursor:pointer;padding:8px 0}.setup-card{margin-top:24px;padding:36px;border:1px solid var(--line);border-radius:26px;background:var(--panel)}.setup-top{display:flex;gap:22px;align-items:center}.setup-icon{width:72px;height:72px;border-radius:18px;display:grid;place-items:center;font-size:24px;font-weight:900;background:var(--subject);color:#071512}.setup-card h1{margin:0;font-size:32px}.setup-card p{color:var(--muted)}.setup-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:28px 0}.setup-facts div{padding:16px;background:var(--bg);border-radius:12px}.setup-facts b,.setup-facts span{display:block}.setup-facts span{color:var(--muted);font-size:12px}.setup-card .primary{width:100%;margin-top:12px}.exam-view.active{display:block}.exam-bar{height:72px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 max(20px,calc((100vw - 1160px)/2));border-bottom:1px solid var(--line);background:var(--bg)}.exam-bar>div{text-align:center}.exam-bar>div span{display:block;color:var(--muted);font-size:12px}.exam-bar>strong{justify-self:end;font-variant-numeric:tabular-nums}.exam-progress{height:4px;background:var(--panel)}.exam-progress i{display:block;height:100%;background:var(--lime);transition:width .2s}.exam-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;padding-block:34px}.question-card,.exam-layout aside{border:1px solid var(--line);background:var(--panel);border-radius:20px}.question-card{padding:36px}.q-meta{display:flex;gap:8px;margin-bottom:22px}.tag{font-size:11px;padding:5px 9px;border-radius:20px;background:var(--panel2);color:var(--green)}.stimulus{padding:20px;background:var(--bg);border-left:3px solid var(--green);border-radius:8px;margin:12px 0 24px;color:#d5dfda;white-space:pre-line}.stimulus .source{display:block;color:var(--muted);font-size:11px;margin-top:12px}.question-card h1{font-size:22px;line-height:1.4;margin:20px 0 24px}.q-options{display:grid;gap:10px}.q-option{display:flex;align-items:flex-start;gap:14px;text-align:left;padding:15px;border:1px solid var(--line);background:var(--bg);border-radius:13px;cursor:pointer}.q-option:hover{border-color:#497062}.q-option.selected{border-color:var(--lime);background:#d5ff6309}.letter{flex:0 0 28px;width:28px;height:28px;display:grid;place-items:center;border:1px solid var(--line);border-radius:8px;font-weight:800}.selected .letter{background:var(--lime);color:#071512;border-color:var(--lime)}.exam-actions{display:grid;grid-template-columns:auto auto 1fr;gap:10px;margin-top:28px}.exam-actions .primary{justify-self:end}.exam-layout aside{align-self:start;position:sticky;top:90px;padding:20px}.aside-head{display:flex;justify-content:space-between;align-items:center}.aside-head h3{margin:0}.aside-head button{border:0;background:none;cursor:pointer}.palette{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin:18px 0}.palette button{aspect-ratio:1;border:1px solid var(--line);background:var(--bg);border-radius:8px;color:var(--muted);cursor:pointer}.palette button.current{outline:2px solid var(--lime);color:var(--text)}.palette button.answered{background:var(--green);border-color:var(--green);color:#071512}.palette button.marked{box-shadow:inset 0 -4px var(--orange)}.legend{display:flex;gap:12px;color:var(--muted);font-size:10px}.legend i{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:4px}.legend .answered{background:var(--green)}.legend .marked{background:var(--orange)}.shortcut{color:var(--muted);font-size:10px;margin-top:16px}.result-hero{text-align:center;padding:42px;border:1px solid var(--line);border-radius:24px;background:var(--panel)}.score{font-size:72px;font-weight:900;letter-spacing:-.06em;color:var(--lime)}.result-hero h1{margin:0;font-size:34px}.result-hero p{color:var(--muted)}.result-stats,.progress-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}.stat-box{padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--panel)}.stat-box b{display:block;font-size:28px}.stat-box span{color:var(--muted);font-size:12px}.topic-results{display:grid;gap:12px;margin-top:34px}.topic-row{display:grid;grid-template-columns:180px 1fr 48px;align-items:center;gap:16px}.topic-bar{height:9px;background:var(--panel2);border-radius:8px;overflow:hidden}.topic-bar i{display:block;height:100%;background:var(--green)}.review-list{display:grid;gap:12px}.review-item{border:1px solid var(--line);border-radius:16px;background:var(--panel);overflow:hidden}.review-head{width:100%;border:0;background:none;padding:18px;display:grid;grid-template-columns:1fr auto;gap:12px;text-align:left;cursor:pointer}.review-head span{font-size:11px;padding:5px 9px;border-radius:20px}.ok{color:var(--green);background:#73dda916}.bad{color:var(--red);background:#ff7a7a16}.skip{color:var(--orange);background:#ff9d6616}.review-body{display:none;padding:0 18px 20px}.review-item.open .review-body{display:block}.answer-line{padding:12px;border-radius:10px;background:var(--bg);margin:8px 0}.explanation{color:var(--muted);padding-top:10px}.history-card{border:1px solid var(--line);border-radius:20px;background:var(--panel);padding:24px}.history-head{display:flex;justify-content:space-between;align-items:center}.danger-link{border:0;background:none;color:var(--red);cursor:pointer}.history-row{display:grid;grid-template-columns:1fr repeat(3,120px);gap:16px;padding:16px 0;border-top:1px solid var(--line);align-items:center}.history-row span{color:var(--muted)}.empty{text-align:center;color:var(--muted);padding:50px}.danger{color:var(--red)!important}footer{border-top:1px solid var(--line);color:var(--muted);font-size:12px}footer .shell{min-height:90px;display:flex;align-items:center;justify-content:space-between}footer b{color:var(--text)}
body.light{--bg:#f3f6f1;--panel:#fff;--panel2:#e9f0eb;--line:#d5dfd8;--text:#11251e;--muted:#60756c;--lime:#9cce20;--green:#20885b;--shadow:0 24px 70px #49655820}.light .topbar{background:#f3f6f1e8}.light .primary{color:#102016}.light .stimulus{color:#30473e}
@media(max-width:900px){.hero{grid-template-columns:1fr;gap:20px;padding:55px 0}.hero-card{transform:none}.subject-grid,.subject-grid.large{grid-template-columns:repeat(2,1fr)}.feature-grid{grid-template-columns:1fr}.exam-layout{grid-template-columns:1fr}.exam-layout aside{position:static;order:-1}.metrics{grid-template-columns:repeat(2,1fr)}.metrics div:nth-child(2){border-right:0}.result-stats,.progress-summary{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.shell{width:min(100% - 24px,1160px)}.topbar nav{display:none}.hero h1{font-size:48px}.subject-grid,.subject-grid.large{grid-template-columns:1fr}.subject-card{min-height:170px}.metrics div{padding:20px 10px}.setup-card,.question-card{padding:22px}.setup-facts{grid-template-columns:1fr}.exam-bar{grid-template-columns:auto 1fr auto;gap:8px}.exam-bar>div b{font-size:12px}.exam-actions{grid-template-columns:1fr 1fr}.exam-actions .primary{grid-column:1/-1;width:100%}.topic-row{grid-template-columns:110px 1fr 40px}.history-row{grid-template-columns:1fr 1fr}.history-row span:nth-child(3){display:none}footer .shell{flex-direction:column;justify-content:center;gap:4px}.trust{display:grid}.hero-card{padding:20px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.nav-tools{display:flex;align-items:center;gap:8px}.streak-chip{padding:7px 11px;border:1px solid #66502c;background:#302715;border-radius:20px;color:#ffd58a;font-size:12px;font-weight:800}.practice-modes{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:28px 0 18px}.mode-card{border:1px solid var(--line);background:var(--bg);border-radius:14px;padding:17px;text-align:left;cursor:pointer}.mode-card b,.mode-card span{display:block}.mode-card b{font-size:15px}.mode-card span{color:var(--muted);font-size:11px;margin-top:4px}.mode-card.active{border-color:var(--lime);box-shadow:inset 0 0 0 1px var(--lime);background:#d5ff6309}.custom-panel{display:none;margin:20px 0;padding:20px;border:1px solid var(--line);border-radius:15px;background:var(--bg)}.custom-panel.show{display:block}.custom-panel h3{font-size:14px;margin:0 0 12px}.topic-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}.topic-chip{border:1px solid var(--line);background:var(--panel);color:var(--muted);border-radius:20px;padding:8px 12px;font-size:12px;cursor:pointer}.topic-chip.active{border-color:var(--green);color:var(--text);background:#73dda916}.count-row{display:flex;align-items:center;justify-content:space-between;gap:20px}.count-row select{min-width:120px;border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:10px;padding:10px}.resume-box{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0;padding:14px 16px;border:1px solid #66502c;background:#302715;border-radius:13px}.resume-box span{color:#e0c996;font-size:12px}.resume-box button{white-space:nowrap}.setup-error{min-height:20px;color:var(--red)!important;font-size:12px}.mode-label{color:var(--green);font-weight:800}.progress-summary{grid-template-columns:repeat(5,1fr)}
.access-options{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:28px 0}.access-option{padding:22px;border:1px solid var(--line);border-radius:17px;background:var(--bg)}.access-option.featured{border-color:var(--lime);background:linear-gradient(145deg,#17362a,#0d201b)}.access-option p{margin:0!important;color:var(--green)!important;font-size:11px;font-weight:900;letter-spacing:.1em}.access-option h2{margin:12px 0 4px;font-size:25px}.access-option h2 small,.access-option span{color:var(--muted);font-size:12px}.access-option span{display:block;min-height:38px}.access-option button{width:100%;margin-top:18px}.access-option button:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:900px){.progress-summary{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.streak-chip{padding:6px 8px;font-size:11px}.practice-modes,.access-options{grid-template-columns:1fr}.resume-box,.count-row{align-items:stretch;flex-direction:column}.progress-summary{grid-template-columns:1fr 1fr}}
.stimulus h3{margin:0 0 4px;color:var(--green);font-size:12px;letter-spacing:.08em;text-transform:uppercase}.stimulus h4{margin:0 0 18px;color:var(--text);font-size:20px}.stimulus p{margin:0 0 14px}.data-visual{margin:18px 0;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--panel);overflow:auto}.visual-title{font-weight:800;color:var(--text);margin-bottom:10px}.data-visual table{width:100%;border-collapse:collapse;font-size:13px;white-space:normal}.data-visual th,.data-visual td{border:1px solid var(--line);padding:9px;text-align:left}.data-visual th{background:var(--panel2);color:var(--green)}.phone-visual{width:min(300px,100%);margin:18px auto;padding:18px;border:1px solid var(--line);border-radius:28px;background:linear-gradient(160deg,var(--panel),var(--bg));box-shadow:inset 0 0 0 5px #0002}.phone-top{width:70px;height:6px;margin:0 auto 18px;border-radius:999px;background:var(--line)}.phone-line{height:11px;margin:10px 0;border-radius:999px;background:var(--panel2)}.phone-line.wide{width:92%}.phone-line.short{width:54%}.notification{margin:16px 0;padding:12px;border-radius:12px;background:#ffd166;color:#2b2205;font-weight:800;font-size:12px;box-shadow:0 10px 26px #0004}
.mobile-tabbar{display:none}.taking-exam .mobile-tabbar{display:none!important}.light .secondary{background:#ffffff;color:#11251e}.light .subject-card,.light .feature-grid article,.light .setup-card,.light .question-card,.light .exam-layout aside,.light .result-hero,.light .stat-box,.light .history-card,.light .review-item{background:#ffffff}.light .pricing-card.featured{background:#11251e;color:#f7fbf6;border-color:#20885b}.light .pricing-card.featured li,.light .pricing-card.featured>span,.light .pricing-card.featured h2 small{color:#c8d8d0}.light .notice{background:#fff8dd;border-color:#ead27a;color:#5a4711}.light .resume-box,.light .streak-chip{background:#fff1cf;border-color:#e5bd64;color:#6b4812}.light .resume-box span{color:#6b4812}.light .stimulus,.light .q-option,.light .answer-line,.light .setup-facts div,.light .mode-card,.light .custom-panel{background:#f8faf6;color:#263d34}.light .q-option.selected,.light .mode-card.active,.light .topic-chip.active{background:#ecf7dc}.light .tag{background:#e5f0ea;color:#12683f}.light .data-visual,.light .math-card,.light .triangle-visual,.light .rectangle-visual,.light .square-visual,.light .coordinate-visual,.light .work-visual,.light .circle-visual,.light .parabola-visual,.light .token-visual,.light .boxplot{background:#ffffff}.light .hero-float{background:#ffffff;color:#11251e}.light input,.light select,.light textarea{background:#ffffff!important;color:#11251e!important}.light .mobile-tabbar{background:#fffffff2}
@media(max-width:760px){body{font-size:14px}.topbar{height:64px;padding-inline:12px}.brand{font-size:16px}.brand-mark{width:30px;height:30px;border-radius:9px}.nav-tools{gap:6px}.streak-chip{max-width:82px;overflow:hidden;white-space:nowrap;text-overflow:clip}.account-pill{width:38px;height:38px;justify-content:center;padding:0}.account-pill span{display:none}.icon-btn{width:38px;height:38px;padding:0}.hero{min-height:auto;padding:38px 0 26px!important;gap:28px}.hero h1{font-size:clamp(38px,12vw,48px);line-height:1}.lead{font-size:16px}.actions,.result-actions{display:grid;grid-template-columns:1fr;margin:24px 0}.actions button,.result-actions button{width:100%;min-height:48px}.trust{gap:8px}.hero-visual{width:100%!important;min-height:320px!important}.hero-visual>img{height:320px!important;min-height:320px!important;border-radius:20px}.hero-visual:after{border-radius:20px}.hero-float{max-width:calc(100% - 20px);padding:11px 13px}.hero-float.top{left:10px;top:14px}.hero-float.bottom{right:10px;bottom:14px}.metrics{border:1px solid var(--line);border-radius:16px;overflow:hidden}.metrics strong{font-size:22px}.section{padding:56px 0}.section-title h2,.page-head h1{font-size:clamp(31px,10vw,42px)}.story-section{padding:36px 0 54px!important}.story-copy h2{font-size:clamp(31px,10vw,42px)}.story-image img{border-radius:20px}.subject-card{padding:20px;min-height:160px}.subject-card h3{margin-top:28px}.plan-banner{border-radius:18px;padding:26px!important}.plan-banner h2{font-size:30px}.pricing-card,.account-card,.profile-form,.report-form{border-radius:18px;padding:24px}.page{padding-block:42px 82px}.setup-card{border-radius:18px}.setup-top{align-items:flex-start;gap:14px}.setup-icon{width:56px;height:56px;border-radius:14px;font-size:19px}.setup-card h1{font-size:26px}.practice-modes{gap:8px}.mode-card{padding:14px}.topic-chips{max-height:178px;overflow:auto;padding-bottom:2px}.exam-bar{position:sticky;top:0;z-index:20;height:auto;min-height:64px;padding:8px 12px;background:var(--bg)}.exam-layout{gap:14px;padding-block:16px 84px}.exam-layout aside{order:2;padding:16px;border-radius:16px}.question-card{padding:20px;border-radius:16px}.question-card h1{font-size:18px;line-height:1.45}.stimulus{max-height:48vh;overflow:auto;padding:16px;font-size:14px}.q-option{padding:14px;gap:11px}.letter{flex-basis:26px;width:26px;height:26px}.palette{grid-template-columns:repeat(10,minmax(34px,1fr));gap:6px}.palette button{min-height:34px}.shortcut{display:none}.topic-row{grid-template-columns:1fr;gap:7px}.topic-row b{justify-self:end}.history-head{display:grid;gap:8px}.history-row{grid-template-columns:1fr;gap:4px}.history-row span:nth-child(3){display:block}.mobile-tabbar{position:fixed;left:10px;right:10px;bottom:10px;z-index:40;display:grid;grid-template-columns:repeat(4,1fr);gap:4px;padding:7px;border:1px solid var(--line);border-radius:18px;background:#071512f2;box-shadow:0 18px 50px #0005;backdrop-filter:blur(18px)}.mobile-tabbar button{display:grid;place-items:center;gap:1px;min-height:48px;border:0;border-radius:12px;background:transparent;color:var(--muted);font-size:10px;font-weight:800;cursor:pointer}.mobile-tabbar button span{font-size:18px;line-height:1}.mobile-tabbar button:hover,.mobile-tabbar button:focus-visible{background:var(--panel);color:var(--text)}body:not(.taking-exam){padding-bottom:74px}footer .shell{padding-bottom:18px}}
@media(max-width:380px){.shell{width:min(100% - 18px,1160px)}.topbar{padding-inline:9px}.brand span:last-child{display:none}.hero h1{font-size:36px}.hero-visual>img,.hero-visual{height:280px!important;min-height:280px!important}.pricing-card h2{font-size:34px}.palette{grid-template-columns:repeat(8,minmax(32px,1fr))}.mobile-tabbar{left:6px;right:6px;bottom:6px}.mobile-tabbar button{font-size:9px}}
.logo-brand{padding:0;min-width:0}.logo-brand img{display:block;width:184px;height:auto;max-height:52px;object-fit:contain}.light .logo-brand img{content:url("assets/rutapreu-logo.svg")}
@media(max-width:760px){.logo-brand img{width:142px;max-height:42px}}
@media(max-width:380px){.logo-brand img{content:url("assets/rutapreu-mark.svg")!important;width:38px;height:38px}}

.email-auth-form{display:grid;gap:12px;width:100%;margin-top:18px}.email-auth-form label{display:grid;gap:7px;color:var(--muted);font-size:13px;font-weight:700}.email-auth-form input{width:100%;border:1px solid var(--line);background:var(--bg);color:var(--text);border-radius:10px;padding:12px;font:inherit}.email-auth-form button{width:100%}.signout-btn{display:none;margin-top:12px}.logged-in .signout-btn{display:inline-block}.logged-in .email-auth-form{display:none}.logged-in .google-btn{display:none}.auth-required{border-color:#66502c!important;background:#302715!important}.auth-required h3:before{content:"🔒 ";}.auth-note{margin-top:14px;color:#ffd58a!important;font-size:12px;font-weight:800}.cloud-badge{display:inline-flex;align-items:center;gap:6px;margin-top:10px;padding:7px 10px;border:1px solid #73dda944;border-radius:999px;background:#73dda914;color:var(--green);font-size:12px;font-weight:900}

/* Perfil académico y orientación personalizada */
body:not(.logged-in) .academic-profile{display:none}
.academic-profile{max-width:none;margin-top:24px;padding:34px}
.academic-profile.onboarding{border-color:var(--lime);box-shadow:0 20px 60px #0003,inset 0 0 0 1px #d5ff6328;background:linear-gradient(145deg,var(--panel),#122c23)}
.form-heading p{margin:0 0 7px;color:var(--green);font-size:11px;font-weight:900;letter-spacing:.12em}
.form-heading h2{margin:0;font-size:28px}
.form-heading span{display:block;max-width:680px;margin-top:8px;color:var(--muted);line-height:1.55}
.profile-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 20px}
.profile-fields label{display:grid;gap:7px;color:var(--muted);font-size:13px;font-weight:800}
.profile-fields input,.profile-fields select{width:100%;min-height:46px;border:1px solid var(--line);background:var(--bg);color:var(--text);border-radius:11px;padding:11px 12px;font:inherit}
.profile-fields input:focus,.profile-fields select:focus{outline:2px solid var(--lime);outline-offset:2px;border-color:transparent}
.profile-email-field{grid-column:1/-1}
.profile-form-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.profile-form-actions small{color:var(--muted)}
.admission-lookup{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:92px;padding:18px 20px;border:1px dashed var(--line);border-radius:14px;background:var(--bg);color:var(--muted)}
.admission-lookup.found{border-style:solid;border-color:#73dda966;background:#73dda910;color:var(--text)}
.admission-lookup.found div{display:grid;gap:2px}
.admission-lookup p{margin:0;color:var(--green);font-size:10px;font-weight:900;letter-spacing:.1em}
.admission-lookup strong{font-size:30px;color:var(--lime)}
.admission-lookup span{display:block;color:var(--muted);font-size:12px}
.admission-lookup a{color:var(--green);font-size:12px;font-weight:900;white-space:nowrap}
.admission-lookup.pending{display:grid;justify-content:start;gap:4px;border-color:#66502c;background:#302715}
.goal-progress{margin:0 0 20px}
.goal-card{display:grid;grid-template-columns:1.4fr .8fr;gap:26px;padding:30px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(135deg,var(--panel),#143126)}
.goal-card p{margin:0;color:var(--green);font-size:11px;font-weight:900;letter-spacing:.11em}
.goal-card h2{margin:8px 0;font-size:clamp(24px,3vw,36px);line-height:1.12}
.goal-card .goal-message{display:block;color:var(--muted);line-height:1.55}
.goal-score{display:grid;place-items:center;align-content:center;min-height:150px;border:1px solid var(--line);border-radius:18px;background:#07151288;text-align:center}
.goal-score strong{font-size:44px;color:var(--lime);letter-spacing:-.05em}
.goal-score span{color:var(--muted);font-size:12px}
.goal-meter{grid-column:1/-1;height:11px;border-radius:999px;background:var(--bg);overflow:hidden}
.goal-meter i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--green),var(--lime));transition:width .35s ease}
.goal-disclaimer{grid-column:1/-1;margin:0!important;color:var(--muted)!important;font-size:11px!important;font-weight:500!important;letter-spacing:0!important}
.goal-empty{display:flex;justify-content:space-between;align-items:center;gap:22px;padding:24px 28px;border:1px dashed var(--line);border-radius:18px;background:var(--panel)}
.goal-empty h2{margin:0 0 4px}.goal-empty span{color:var(--muted)}
@media(max-width:760px){.profile-fields,.goal-card{grid-template-columns:1fr}.profile-email-field,.admission-lookup{grid-column:auto}.academic-profile{padding:24px}.profile-form-actions{display:grid}.profile-form-actions .primary{width:100%}.admission-lookup{align-items:flex-start;flex-direction:column}.goal-score,.goal-meter,.goal-disclaimer{grid-column:1}.goal-empty{align-items:stretch;flex-direction:column}.goal-empty button{width:100%}}
.light .email-auth-form input{background:#ffffff;color:#11251e}.light .auth-required{background:#fff1cf!important;border-color:#e5bd64!important}.light .auth-note{color:#6b4812!important}.light .cloud-badge{background:#e8f7ef;color:#12683f}

/* Mobile polish layer: RutaPreu app-like layout */
@supports(padding:max(0px)){
  body{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
}

/* Selector mensual o anual del plan Premium */
.billing-toggle{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:18px 0;padding:5px;border:1px solid var(--line);border-radius:13px;background:var(--bg)}
.billing-toggle button{width:auto!important;border:0;border-radius:9px;padding:10px 12px;background:transparent;color:var(--muted);font:inherit;font-size:12px;font-weight:900;cursor:pointer}
.billing-toggle button.active{background:var(--lime);color:#102016;box-shadow:0 5px 16px #0003}
.billing-toggle small{margin-left:4px;padding:3px 5px;border-radius:999px;background:#102016;color:var(--lime);font-size:8px;letter-spacing:.06em}
html,body{max-width:100%;overflow-x:hidden}
button,input,select,textarea{-webkit-tap-highlight-color:transparent}
.primary,.secondary,.account-pill,.icon-btn,.subject-card,.mode-card,.topic-chip,.q-option,.mobile-tabbar button{touch-action:manipulation}
@media(max-width:760px){
  :root{--radius:18px}
  body{font-size:14px;line-height:1.5}
  .shell{width:100%;padding-inline:16px}
  .topbar{
    height:62px;
    padding:8px 12px;
    gap:8px;
    box-shadow:0 10px 32px #00000024;
  }
  .logo-brand{flex:1;min-width:0;justify-content:flex-start}
  .logo-brand img{width:min(138px,40vw);max-height:38px}
  .nav-tools{flex:0 0 auto}
  .streak-chip{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:36px;
    max-width:72px;
    padding-inline:9px;
    border-radius:999px;
    font-size:11px;
  }
  .account-pill,.icon-btn{
    width:36px;
    height:36px;
    min-width:36px;
    border-radius:12px;
  }
  .hero{
    display:flex;
    flex-direction:column;
    padding:32px 16px 24px!important;
    gap:24px;
  }
  .hero-copy{width:100%}
  .eyebrow,.page-head>p,.section-title>p{
    font-size:10px;
    line-height:1.35;
    letter-spacing:.11em;
  }
  .hero h1{
    max-width:12ch;
    margin:14px 0 16px;
    font-size:clamp(37px,11.5vw,48px);
    line-height:.96;
    letter-spacing:-.06em;
  }
  .lead,.section-lead,.story-copy>p{
    max-width:34rem;
    font-size:15.5px;
    line-height:1.6;
  }
  .actions,.result-actions{
    grid-template-columns:1fr;
    gap:10px;
    margin:22px 0;
  }
  .primary,.secondary,.google-btn{
    min-height:48px;
    border-radius:14px;
    padding:13px 16px;
  }
  .trust{
    display:grid;
    grid-template-columns:1fr;
    gap:7px;
    font-size:12px;
  }
  .hero-visual{
    width:100%!important;
    min-height:0!important;
    aspect-ratio:4/3;
    margin:2px 0 0!important;
  }
  .hero-visual>img{
    height:100%!important;
    min-height:0!important;
    border-radius:22px;
  }
  .hero-visual:after{border-radius:22px}
  .hero-float{
    border-radius:14px;
    padding:10px 12px;
    box-shadow:0 16px 38px #00000040;
  }
  .hero-float.top{left:10px;top:10px}
  .hero-float.top b{font-size:20px}
  .hero-float.bottom{
    right:10px;
    bottom:10px;
    max-width:calc(100% - 20px);
  }
  .hero-float.bottom small{display:none}
  .metrics{
    width:calc(100% - 32px);
    margin-inline:auto;
    grid-template-columns:repeat(2,minmax(0,1fr));
    border:1px solid var(--line);
    border-radius:18px;
    overflow:hidden;
  }
  .metrics div{
    min-height:86px;
    padding:16px 10px;
    display:grid;
    place-items:center;
    align-content:center;
    gap:3px;
  }
  .metrics div:nth-child(odd){border-right:1px solid var(--line)}
  .metrics div:nth-child(1),.metrics div:nth-child(2){border-bottom:1px solid var(--line)}
  .metrics strong{font-size:21px;line-height:1.05}
  .metrics span{max-width:11ch;line-height:1.25}
  .section{padding:50px 16px}
  .section-title{margin-bottom:24px}
  .section-title.left{text-align:left}
  .section-title h2,.page-head h1,.story-copy h2{
    font-size:clamp(30px,9.2vw,40px);
    line-height:1.02;
  }
  .feature-grid,.pricing-grid,.account-grid{
    grid-template-columns:1fr;
    gap:12px;
  }
  .feature-grid article,.pricing-card,.account-card,.profile-form,.report-form,.history-card,.result-hero{
    padding:22px;
    border-radius:20px;
  }
  .premium-features article{min-height:0}
  .feature-grid h3{margin:22px 0 7px}
  .story-section{
    display:flex;
    flex-direction:column;
    padding:34px 16px 52px!important;
    gap:24px;
  }
  .story-image,.story-copy{width:100%}
  .story-image img{
    width:100%;
    min-height:0;
    aspect-ratio:4/3;
    border-radius:22px;
  }
  .story-copy ul{margin:20px 0}
  .story-copy li{padding:12px 0}
  .subject-grid,.subject-grid.large{
    grid-template-columns:1fr;
    gap:10px;
  }
  .subject-card{
    min-height:136px!important;
    padding:18px;
    border-radius:18px;
  }
  .subject-card h3{
    margin:24px 0 7px;
    font-size:18px;
  }
  .subject-code{font-size:24px}
  .plan-banner{
    width:calc(100% - 32px);
    margin:0 auto 56px;
    padding:26px!important;
    border-radius:22px;
  }
  .plan-banner h2{font-size:30px}
  .page{
    padding:34px 16px calc(92px + env(safe-area-inset-bottom));
  }
  .page-head{margin-bottom:24px}
  .notice{
    padding:15px 16px;
    border-radius:16px;
    font-size:13px;
  }
  .setup-card{
    margin-top:18px;
    padding:20px;
    border-radius:20px;
  }
  .setup-top{
    display:grid;
    grid-template-columns:auto 1fr;
    gap:12px;
  }
  .setup-icon{
    width:52px;
    height:52px;
    border-radius:14px;
    font-size:18px;
  }
  .setup-card h1{font-size:24px}
  .practice-modes{
    grid-template-columns:1fr;
    gap:9px;
    margin:22px 0 14px;
  }
  .mode-card{
    min-height:72px;
    padding:15px;
    border-radius:16px;
  }
  .custom-panel{
    margin:16px 0;
    padding:16px;
    border-radius:16px;
  }
  .topic-chips{
    display:grid;
    grid-template-columns:1fr;
    max-height:210px;
    gap:7px;
  }
  .topic-chip{
    width:100%;
    min-height:42px;
    border-radius:14px;
    text-align:left;
  }
  .count-row{gap:12px}
  .count-row select{width:100%;min-height:46px}
  .setup-facts{
    grid-template-columns:1fr;
    margin:20px 0;
  }
  .setup-facts div{padding:14px;border-radius:14px}
  .exam-bar{
    min-height:62px;
    grid-template-columns:66px 1fr 74px;
    padding:8px 12px;
    gap:8px;
    border-bottom-color:color-mix(in srgb,var(--line),transparent 20%);
  }
  .exam-bar .back{
    min-height:40px;
    padding:0;
    text-align:left;
    font-size:13px;
  }
  .exam-bar>div b{
    display:-webkit-box;
    overflow:hidden;
    -webkit-line-clamp:1;
    -webkit-box-orient:vertical;
    font-size:12px;
  }
  .exam-bar>div span{font-size:11px}
  .exam-bar>strong{
    font-size:13px;
    text-align:right;
  }
  .exam-layout{
    width:100%;
    padding:14px 12px calc(24px + env(safe-area-inset-bottom));
    gap:12px;
  }
  .question-card{
    padding:18px;
    border-radius:20px;
  }
  .q-meta{
    flex-wrap:wrap;
    gap:6px;
    margin-bottom:14px;
  }
  .tag{font-size:10px}
  .stimulus{
    max-height:none;
    padding:15px;
    margin:10px 0 18px;
    border-radius:16px;
    font-size:14px;
    line-height:1.62;
  }
  .stimulus h4{font-size:17px;line-height:1.25}
  .data-visual{
    margin:14px 0;
    padding:12px;
    border-radius:14px;
  }
  .data-visual table{
    min-width:520px;
    font-size:12px;
  }
  .math-card{
    grid-template-columns:1fr;
    padding:13px;
    border-radius:14px;
  }
  .triangle-visual,.rectangle-visual,.square-visual,.coordinate-visual,.work-visual,.circle-visual,.parabola-visual,.token-visual{
    min-height:96px;
    margin:14px 0;
    padding:13px;
    border-radius:14px;
  }
  .question-card h1{
    margin:16px 0 18px;
    font-size:18px;
    line-height:1.45;
  }
  .q-options{gap:9px}
  .q-option{
    min-height:58px;
    padding:13px;
    gap:10px;
    border-radius:16px;
  }
  .letter{
    flex:0 0 28px;
    width:28px;
    height:28px;
    border-radius:9px;
  }
  .exam-actions{
    grid-template-columns:1fr 1fr;
    gap:9px;
    margin-top:20px;
  }
  .exam-actions .primary{
    grid-column:1/-1;
    width:100%;
  }
  .exam-layout aside{
    order:2;
    padding:16px;
    border-radius:20px;
  }
  .palette{
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:7px;
  }
  .palette button{
    min-height:42px;
    border-radius:12px;
    font-size:12px;
  }
  .legend{flex-wrap:wrap}
  .result-stats,.progress-summary{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .score{font-size:58px}
  .result-hero h1{font-size:28px}
  .stat-box{
    padding:16px;
    border-radius:16px;
  }
  .stat-box b{font-size:24px}
  .topic-row{
    grid-template-columns:1fr;
    gap:8px;
    padding:14px 0;
    border-bottom:1px solid var(--line);
  }
  .topic-row b{justify-self:start}
  .review-head{
    grid-template-columns:1fr;
    padding:16px;
  }
  .review-head span{justify-self:start}
  .review-body{padding:0 16px 18px}
  .profile-card{
    grid-template-columns:52px 1fr;
    gap:14px;
  }
  .profile-card button{grid-column:1/-1}
  .avatar{
    width:52px;
    height:52px;
    border-radius:15px;
  }
  .profile-form,.report-form{max-width:none}
  .profile-form input,.report-form input,.report-form select,.report-form textarea{
    min-height:46px;
    border-radius:13px;
    font-size:16px;
  }
  .pricing-card h2{font-size:38px}
  .pricing-card.featured{box-shadow:0 18px 48px #00000026}
  .pricing-faq{
    grid-template-columns:1fr;
    padding:18px;
    border-radius:18px;
  }
  .history-card{padding:18px}
  .history-head{align-items:start}
  .history-row{
    grid-template-columns:1fr;
    gap:3px;
    padding:14px 0;
  }
  footer .shell{
    min-height:auto;
    padding:24px 16px calc(92px + env(safe-area-inset-bottom));
    text-align:center;
    gap:8px;
  }
  .mobile-tabbar{
    left:12px;
    right:12px;
    bottom:max(10px,env(safe-area-inset-bottom));
    padding:6px;
    border-radius:20px;
  }
  .mobile-tabbar button{
    min-height:50px;
    border-radius:15px;
  }
  .mobile-tabbar button.active{
    background:var(--lime);
    color:#102016;
    box-shadow:0 10px 24px #d5ff6324;
  }
}
@media(max-width:420px){
  .shell{padding-inline:12px}
  .topbar{height:58px;padding-inline:10px}
  .logo-brand img{content:url("assets/rutapreu-mark.svg")!important;width:36px;height:36px}
  .streak-chip{max-width:64px;font-size:10px}
  .account-pill{display:none}
  .hero{padding-inline:12px!important}
  .hero h1{font-size:clamp(34px,11vw,40px)}
  .hero-visual{aspect-ratio:1/1}
  .metrics,.plan-banner{width:calc(100% - 24px)}
  .section,.story-section,.page{padding-left:12px;padding-right:12px}
  .feature-grid article,.pricing-card,.account-card,.profile-form,.report-form,.history-card,.result-hero,.setup-card,.question-card{padding:18px}
  .mobile-tabbar{left:8px;right:8px}
  .mobile-tabbar button{font-size:9px}
}
@media(max-width:340px){
  .streak-chip{display:none}
  .hero h1{font-size:32px}
  .metrics strong{font-size:19px}
  .result-stats,.progress-summary{grid-template-columns:1fr}
  .palette{grid-template-columns:repeat(4,minmax(0,1fr))}
}

.pricing-trust{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  max-width:850px;
  margin:18px auto 0;
}
.pricing-trust article{
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0;
  padding:15px;
  border:1px solid var(--line);
  border-radius:15px;
  background:linear-gradient(145deg,var(--panel),var(--bg));
}
.pricing-trust i{
  flex:0 0 32px;
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:10px;
  background:#d5ff6314;
  color:var(--lime);
  font-style:normal;
  font-weight:900;
}
.pricing-trust b,.pricing-trust span{display:block}
.pricing-trust b{font-size:12px;line-height:1.25}
.pricing-trust span{margin-top:3px;color:var(--muted);font-size:10px;line-height:1.35}
@media(max-width:900px){.pricing-trust{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){
  .pricing-trust{grid-template-columns:1fr;gap:8px}
  .pricing-trust article{padding:13px 14px}
  .pricing-trust b{font-size:13px}
  .pricing-trust span{font-size:11px}
}

.story-copy ul{display:grid;gap:0}
.story-copy li{
  grid-template-columns:34px minmax(0,1fr);
  grid-template-rows:auto auto;
  column-gap:16px;
  align-items:start;
  min-height:82px;
  padding:18px 0;
}
.story-copy li:before{
  grid-column:1;
  grid-row:1/3;
  display:grid;
  place-items:center;
  width:26px;
  height:26px;
  margin-top:1px;
  border-radius:9px;
  background:#d5ff6312;
}
.story-copy li b,.story-copy li span{grid-column:2}
.story-copy li b{line-height:1.35}
.story-copy li span{margin-top:3px;line-height:1.45}
.story-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:54px;
  padding:15px 22px;
  border:1px solid var(--lime);
  border-radius:14px;
  background:linear-gradient(115deg,var(--lime),#91ef9b);
  color:#102016;
  box-shadow:0 14px 34px #d5ff6324;
  font:inherit;
  font-weight:900;
  cursor:pointer;
  transition:transform .2s ease,box-shadow .2s ease,filter .2s ease;
}
.story-cta span{font-size:20px;line-height:1;transition:transform .2s ease}
.story-cta:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 42px #d5ff6335;
  filter:brightness(1.04);
}
.story-cta:hover span{transform:translateX(4px)}
.story-cta:focus-visible{outline:3px solid var(--text);outline-offset:4px}
@media(max-width:620px){
  .story-copy li{grid-template-columns:32px minmax(0,1fr);column-gap:12px;min-height:0;padding:15px 0}
  .story-cta{width:100%;min-height:52px;padding-inline:16px}
}

.premium-features .feature-link{
  display:inline-flex;
  align-items:center;
  gap:7px;
  align-self:flex-start;
  margin-top:auto;
  padding:14px 0 0;
  border:0;
  background:transparent;
  color:var(--lime);
  font:inherit;
  font-size:13px;
  font-weight:850;
  text-align:left;
  cursor:pointer;
}
.premium-features .feature-link span{transition:transform .2s ease}
.premium-features .feature-link:hover span{transform:translateX(4px)}
.premium-features .feature-link:hover{color:var(--green)}
.premium-features .feature-link:focus-visible{
  outline:2px solid var(--lime);
  outline-offset:6px;
  border-radius:3px;
}
@media(max-width:520px){
  .premium-features .feature-link{
    width:100%;
    min-height:44px;
    padding-top:12px;
  }
}

.about-section{
  display:grid;
  grid-template-columns:.88fr 1.12fr;
  gap:54px;
  align-items:start;
  padding:90px 0;
  scroll-margin-top:86px;
}
.about-intro h2{
  max-width:540px;
  margin:15px 0 20px;
  font-size:clamp(36px,4.6vw,58px);
  line-height:1.02;
  letter-spacing:-.045em;
}
.about-intro>p:not(.eyebrow){max-width:590px;color:var(--muted);font-size:17px}
.about-goal{
  position:relative;
  display:grid;
  margin-top:32px;
  padding:26px;
  overflow:hidden;
  border:1px solid #d5ff6350;
  border-radius:22px;
  background:linear-gradient(135deg,#17382d,#0d201b);
}
.about-goal:after{
  content:"";
  position:absolute;
  width:150px;
  height:150px;
  right:-50px;
  bottom:-70px;
  border-radius:50%;
  background:#d5ff6318;
}
.about-goal small{color:var(--green);font-weight:900;letter-spacing:.12em}
.about-goal strong{margin:8px 0 0;color:var(--lime);font-size:58px;line-height:1;letter-spacing:-.06em}
.about-goal span{max-width:290px;color:var(--text);font-size:14px}
.about-goal b{margin-top:17px;color:var(--green);font-size:11px;letter-spacing:.05em}
.about-steps{display:grid;gap:12px}
.about-steps article{
  display:grid;
  grid-template-columns:54px 1fr;
  gap:18px;
  min-height:150px;
  padding:26px;
  border:1px solid var(--line);
  border-radius:22px;
  background:var(--panel);
}
.about-steps article>span{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  border-radius:14px;
  background:#d5ff6312;
  color:var(--lime);
  font-weight:900;
}
.about-steps h3{margin:1px 0 8px;font-size:21px}
.about-steps p{margin:0;color:var(--muted)}
@media(max-width:900px){.about-section{grid-template-columns:1fr;gap:28px;padding:64px 0}.about-intro h2{max-width:680px}.about-goal{max-width:560px}}
@media(max-width:520px){
  .about-section{padding:50px 12px;scroll-margin-top:70px}
  .about-intro h2{font-size:36px}
  .about-intro>p:not(.eyebrow){font-size:15px}
  .about-goal{padding:22px;border-radius:18px}
  .about-goal strong{font-size:50px}
  .about-steps article{grid-template-columns:44px 1fr;gap:12px;min-height:0;padding:20px;border-radius:18px}
  .about-steps article>span{width:40px;height:40px;border-radius:12px}
  .about-steps h3{font-size:18px}
}

/* Accesibilidad visual: contraste, tacto y foco */
:root{
  --muted:#b2c4bd;
  --line:#2b5548;
  --focus-ring:#d5ff63;
}

button,a,input,select,textarea{
  transition:outline-color .15s ease,box-shadow .15s ease,border-color .15s ease,background-color .15s ease,color .15s ease,transform .15s ease;
}

:where(button,a,input,select,textarea,[tabindex]):focus-visible{
  outline:3px solid var(--focus-ring)!important;
  outline-offset:3px!important;
  box-shadow:0 0 0 2px var(--bg)!important;
}

:where(input,select,textarea):focus-visible{
  border-color:var(--focus-ring)!important;
}

:where(button,a):active{transform:translateY(1px)}
:where(button:disabled){opacity:.62;cursor:not-allowed}

.primary,.secondary,.google-btn,.back,.account-pill,.icon-btn,.footer-link,
.danger-link,.story-cta,.premium-features .feature-link,.billing-toggle button,
.topic-chip,.mode-card,.q-option,.palette button,.aside-head button,.review-head,
.report-question,.mobile-tabbar button{
  min-height:44px;
}

.topbar nav button{min-height:44px;padding:10px 14px}
.account-pill,.icon-btn{min-width:44px;min-height:44px}
.aside-head button{min-width:44px;color:var(--text);border-radius:10px}
.palette button{min-width:44px;min-height:44px}
.billing-toggle button{min-height:44px}
.footer-link,.danger-link,.report-question{display:inline-flex;align-items:center;padding-inline:8px}

.hero-float.top span,.hero-float small,.popular,.mini-top,.mini-label,
.mode-card span,.access-option p,.access-option h2 small,.access-option span,
.stimulus .source,.review-head span,.legend,.shortcut,.pricing-trust span,
.admission-lookup p,.admission-lookup span,.goal-score span,.goal-disclaimer,
.form-heading p,.about-goal b,.billing-toggle small{
  font-size:12px!important;
  line-height:1.45;
}

.hero-float.top span,.hero-float small{color:#43554d}

.subject-card p,.setup-facts span,.stat-box span,.payment-note,
.profile-card span,.sync-card span,.profile-form-actions small{
  font-size:13px;
  line-height:1.5;
}

.billing-toggle small{
  display:inline-flex;
  align-items:center;
  min-height:20px;
  padding:2px 7px;
}

.mobile-tabbar button{font-size:11px!important;color:#c2d1cc}
.mobile-tabbar button:hover,.mobile-tabbar button:focus-visible,.mobile-tabbar button.active{color:var(--text)}
.back,.footer-link,.report-question{color:#c2d1cc}
.pricing-card li,.history-row span,.empty,.explanation{color:#b2c4bd}

@media(max-width:760px){
  body{font-size:15px}
  .topbar{min-height:68px;height:68px}
  .account-pill,.icon-btn{width:44px;height:44px;min-width:44px}
  .primary,.secondary,.google-btn{min-height:48px}
  .mobile-tabbar button{min-height:48px}
  .palette{grid-template-columns:repeat(5,minmax(44px,1fr));gap:8px}
  .palette button{aspect-ratio:auto}
  .eyebrow,.page-head>p,.section-title>p{font-size:11px}
}

@media(max-width:380px){
  .mobile-tabbar button{font-size:10px!important}
  .palette{grid-template-columns:repeat(5,minmax(44px,1fr))}
}

@media(forced-colors:active){
  :where(button,a,input,select,textarea,[tabindex]):focus-visible{outline:3px solid Highlight!important}
  .primary,.selected .letter,.billing-toggle button.active{forced-color-adjust:none}
}

/* Experiencia de escritorio: portada pública y espacio del estudiante */
.topbar .student-nav{display:none}
body:not(.logged-in) .streak-chip{display:none}
.student-dashboard{padding-top:52px}
.dashboard-welcome{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin-bottom:30px}
.dashboard-welcome h1{margin:10px 0 6px;font-size:clamp(38px,4vw,56px);line-height:1;letter-spacing:-.045em}
.dashboard-welcome>div>span{color:var(--muted);font-size:16px}
.dashboard-welcome .primary{flex:0 0 auto}
.dashboard-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}
.dashboard-stats article{min-height:142px;padding:22px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(145deg,var(--panel),#0b1b17)}
.dashboard-stats span,.dashboard-main-card p,.dashboard-side>article>p{display:block;margin:0;color:var(--green);font-size:11px;font-weight:900;letter-spacing:.1em}
.dashboard-stats strong{display:block;margin:10px 0 0;font-size:32px;letter-spacing:-.04em}
.dashboard-stats small{color:var(--muted);font-size:12px}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(280px,.8fr);gap:18px;align-items:start}
.dashboard-main-card,.dashboard-side>article{border:1px solid var(--line);border-radius:22px;background:var(--panel)}
.dashboard-main-card{padding:26px}
.dashboard-card-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}
.dashboard-card-head h2{margin:5px 0 0;font-size:25px}
.dashboard-subjects{grid-template-columns:repeat(3,1fr)}
.dashboard-subjects .subject-card{min-height:205px}
.dashboard-side{display:grid;gap:18px}
.dashboard-side>article{padding:24px}
.dashboard-side h3{margin:14px 0 4px;font-size:20px;line-height:1.25}
.dashboard-side article>div>span{display:block;color:var(--muted);font-size:13px;line-height:1.5}
.dashboard-goal-score{margin:22px 0 8px;padding:16px;border-radius:14px;background:var(--bg)}
.dashboard-goal-score strong{display:block;color:var(--lime);font-size:30px;line-height:1}
.dashboard-goal-score small{color:var(--muted)}
.dashboard-recent-score{display:flex;align-items:baseline;gap:5px;margin-top:16px}
.dashboard-recent-score strong{color:var(--lime);font-size:40px;line-height:1}
.dashboard-recent-score span{color:var(--muted)}
.dashboard-text-link{min-height:44px;margin:14px -8px -8px;padding:8px;border:0;background:transparent;color:var(--lime);font-weight:800;text-align:left;cursor:pointer}

@media(min-width:901px){
  body.logged-in .marketing-nav{display:none}
  body.logged-in .topbar .student-nav{display:flex}
  body.logged-in .streak-chip{display:inline-flex}
  body:not(.logged-in) .streak-chip{display:none}
  body.logged-in footer{display:none}
  body.logged-in .topbar{background:#071512f4}
  body.logged-in .topbar nav button.active{color:var(--text);background:var(--panel)}
}

@media(max-width:1050px) and (min-width:901px){
  .dashboard-grid{grid-template-columns:1fr}
  .dashboard-side{grid-template-columns:1fr 1fr}
  .dashboard-subjects{grid-template-columns:repeat(3,1fr)}
}

@media(max-width:900px){
  .student-dashboard{padding-top:42px}
  .dashboard-welcome{align-items:flex-start;flex-direction:column}
  .dashboard-stats{grid-template-columns:repeat(2,1fr)}
  .dashboard-grid{grid-template-columns:1fr}
  .dashboard-subjects{grid-template-columns:1fr}
  .dashboard-side{grid-template-columns:1fr}
}

/* Portada comercial: narrativa de producto y conversión */
.marketing-hero{padding-bottom:54px}
.marketing-hero .hero-copy{max-width:620px}
.marketing-hero .lead{max-width:590px}
.hero-offer{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:-12px;color:var(--muted);font-size:13px}
.hero-offer b{padding:6px 10px;border-radius:999px;background:#d5ff6317;color:var(--lime);font-size:11px;letter-spacing:.04em;text-transform:uppercase}
.marketing-proof{border:1px solid var(--line);border-radius:20px;overflow:hidden;background:#0a1b16}
.marketing-proof div{min-height:116px;display:grid;place-content:center}
.marketing-proof strong{font-size:30px;color:var(--text)}
.product-definition{padding-top:110px}
.product-definition .section-title{max-width:790px;margin-inline:auto;margin-bottom:48px}
.product-definition .section-title>p:last-child{letter-spacing:0;font-weight:500;color:var(--muted)}

.how-section{display:grid;grid-template-columns:minmax(260px,.75fr) minmax(0,1.25fr);gap:70px;padding:88px 54px;margin-bottom:110px;border:1px solid var(--line);border-radius:30px;background:linear-gradient(145deg,#102a23,#0a1a16)}
.how-heading h2{margin:12px 0 18px;font-size:clamp(34px,4vw,52px);line-height:1.04;letter-spacing:-.045em}
.how-heading>p:last-child{color:var(--muted);font-size:16px}
.how-steps{display:grid;gap:0}
.how-steps article{display:grid;grid-template-columns:48px 1fr;gap:18px;padding:22px 0;border-bottom:1px solid var(--line)}
.how-steps article:first-child{padding-top:0}
.how-steps article>span{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:var(--lime);color:#102016;font-size:18px;font-weight:900}
.how-steps small{color:var(--green);font-size:10px;font-weight:900;letter-spacing:.1em}
.how-steps h3{margin:3px 0 6px;font-size:20px}
.how-steps p{margin:0;color:var(--muted)}
.how-cta{grid-column:2;margin-top:-48px;justify-self:start}

.comparison-section{padding:98px 0}
.comparison-heading{max-width:710px;margin-bottom:36px}
.comparison-heading h2{margin:12px 0;font-size:clamp(34px,4vw,50px);line-height:1.05;letter-spacing:-.04em}
.comparison-heading>p:last-child{color:var(--muted);font-size:17px}
.comparison-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.comparison-grid article{padding:34px;border:1px solid var(--line);border-radius:24px;background:var(--panel)}
.comparison-grid small{font-size:11px;font-weight:900;letter-spacing:.1em}
.comparison-grid h3{margin:10px 0 24px;font-size:28px}
.comparison-grid ul{list-style:none;padding:0;margin:0}
.comparison-grid li{position:relative;padding:13px 0 13px 28px;border-bottom:1px solid var(--line);color:var(--muted)}
.comparison-grid li:before{position:absolute;left:0;font-weight:900}
.comparison-before{opacity:.78}
.comparison-before small{color:#ffb08a}
.comparison-before li:before{content:"×";color:#ff9d66}
.comparison-after{border-color:#6d9552!important;background:linear-gradient(145deg,#173329,#0d211b)!important}
.comparison-after small{color:var(--lime)}
.comparison-after li{color:var(--text)}
.comparison-after li:before{content:"✓";color:var(--lime)}

.subjects-marketing{padding-top:110px}
.subjects-marketing .section-title{max-width:760px}
.marketing-plan{margin-top:28px;margin-bottom:24px}
.plan-banner-actions{display:grid;gap:8px;min-width:230px}
.plan-banner-actions small{text-align:center;color:#294336;font-weight:700}

.faq-section{display:grid;grid-template-columns:minmax(250px,.72fr) minmax(0,1.35fr);gap:52px;padding:82px 0 88px}
.faq-heading{position:sticky;top:110px;align-self:start}
.faq-heading h2{margin:10px 0 14px;font-size:clamp(34px,4vw,48px);line-height:1.04;letter-spacing:-.04em}
.faq-heading>p:last-child{max-width:370px;margin:0;color:var(--muted);font-size:15px;line-height:1.6}
.faq-list{display:grid;gap:8px;align-content:start}
.faq-list details{border:1px solid var(--line);border-radius:14px;background:var(--panel);overflow:hidden;transition:border-color .2s ease,background-color .2s ease}
.faq-list summary{position:relative;min-height:58px;display:flex;align-items:center;padding:14px 54px 14px 18px;font-size:15.5px;font-weight:800;line-height:1.32;cursor:pointer;list-style:none}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary:after{content:"+";position:absolute;right:16px;top:50%;display:grid;place-items:center;width:28px;height:28px;transform:translateY(-50%);border-radius:8px;background:var(--panel2);color:var(--lime);font-size:19px;line-height:1}
.faq-list details[open] summary:after{content:"−"}
.faq-list details[open]{border-color:#4f745f;background:linear-gradient(145deg,#102a23,#0c201a)}
.faq-list details[open] summary{padding-bottom:9px;color:var(--text)}
.faq-list details p{max-width:700px;margin:0;padding:0 54px 17px 18px;color:var(--muted);font-size:14.5px;line-height:1.58}

.final-cta{display:flex;align-items:center;justify-content:space-between;gap:42px;margin:20px auto 110px;padding:52px;border:1px solid #7aa05e;border-radius:28px;background:radial-gradient(circle at 85% 25%,#d5ff6322,transparent 34%),linear-gradient(145deg,#18382d,#0d211b)}
.final-cta p{margin:0;color:var(--lime);font-size:11px;font-weight:900;letter-spacing:.12em}
.final-cta h2{max-width:700px;margin:10px 0;font-size:clamp(30px,4vw,46px);line-height:1.05;letter-spacing:-.04em}
.final-cta span{color:var(--muted);font-size:16px}
.final-cta .primary{flex:0 0 auto}

@media(max-width:900px){
  .marketing-hero{padding-bottom:30px}
  .marketing-proof{grid-template-columns:repeat(2,1fr)}
  .product-definition{padding-top:76px}
  .how-section{grid-template-columns:1fr;gap:34px;padding:34px 26px;margin-inline:20px;margin-bottom:70px}
  .how-cta{grid-column:1;margin-top:0;width:100%}
  .comparison-section{padding:70px 0}
  .comparison-grid{grid-template-columns:1fr}
  .subjects-marketing{padding-top:76px}
  .faq-section{grid-template-columns:1fr;gap:24px;padding:64px 0 72px}
  .faq-heading{position:static}
  .final-cta{display:grid;margin-bottom:86px;padding:34px 26px}
  .final-cta .primary{width:100%}
}

@media(max-width:520px){
  body:not(.logged-in) .account-pill{width:auto;min-width:94px;padding:0 12px}
  body:not(.logged-in) .account-pill b{display:block}
  .hero-offer{align-items:flex-start;display:grid}
  .marketing-proof{width:calc(100% - 32px);grid-template-columns:1fr 1fr}
  .marketing-proof div{min-height:96px;padding:13px 8px}
  .marketing-proof strong{font-size:24px}
  .marketing-proof span{font-size:11px}
  .comparison-grid article{padding:26px 22px}
  .marketing-plan{margin-bottom:0}
  .faq-section{width:calc(100% - 32px);margin-inline:auto}
  .faq-heading h2{margin-bottom:12px}
  .faq-list summary{min-height:56px;padding:13px 48px 13px 16px;font-size:15px;line-height:1.3}
  .faq-list summary:after{right:12px;width:28px;height:28px}
  .faq-list details[open] summary{padding-bottom:8px}
  .faq-list details p{padding:0 16px 16px;font-size:14px;line-height:1.55}
}

/* Tema claro: superficies, contraste y estados coherentes en todo el sitio */
body.light{
  --bg:#f4f7f2;
  --panel:#ffffff;
  --panel2:#e8f0ea;
  --line:#cbd9d0;
  --text:#10271f;
  --muted:#536b61;
  --lime:#557f0f;
  --green:#18734c;
  --orange:#9a4d00;
  --red:#b42318;
  --focus-ring:#315f16;
  --shadow:0 22px 60px #3656481f;
}

.light .topbar,
body.light.logged-in .topbar{background:#f4f7f2ed;border-color:#c6d5cb}
.light .topbar nav button:hover,.light .icon-btn:hover,
.light .topbar nav button.active{background:#e5eee8;color:var(--text)}
.light .account-pill{background:#fff;border-color:#c4d3c9;box-shadow:0 4px 14px #395b4c12}

.light .primary{
  border-color:#8fbd27;
  background:#a6d539;
  color:#132213;
}
.light .primary:hover{background:#96c52c;filter:none}
.light .secondary{background:#fff;border-color:#c4d3c9;color:var(--text)}
.light .secondary:hover{background:#edf3ef;border-color:#6d8b7b}
.light .story-cta{border-color:#8fbd27;background:linear-gradient(115deg,#a6d539,#86d9a6);color:#132213;box-shadow:0 14px 34px #64891e24}
.light .popular,.light .avatar,.light .how-steps article>span,
.light .selected .letter,.light .mobile-tabbar button.active{
  background:#a6d539;
  border-color:#8fbd27;
  color:#132213;
}

.light .hero-card{
  background:linear-gradient(145deg,#ffffff,#eaf3ed);
  border-color:#bfd3c7;
  box-shadow:0 24px 60px #36564824;
}
.light .mini-progress{background:#d9e5dd}
.light .mini-option.selected,.light .mode-card.active,.light .q-option.selected{background:#eef7dc}
.light .hero-offer b,.light .pricing-trust i,.light .story-copy li:before,
.light .about-steps article>span{background:#eaf4d5;color:#4d7710}
.light .marketing-proof{background:#fff;border-color:#cbd9d0;box-shadow:0 16px 42px #36564812}

.light .how-section{
  border-color:#bed0c5;
  background:linear-gradient(145deg,#ffffff,#eaf3ed);
  box-shadow:0 22px 54px #36564814;
}
.light .how-steps article{border-color:#cbd9d0}
.light .comparison-before{opacity:1;background:#fff}
.light .comparison-after{
  border-color:#8eac78!important;
  background:linear-gradient(145deg,#f7fbf3,#eaf4df)!important;
}
.light .comparison-before small{color:#9a4d00}
.light .comparison-before li:before{color:#b54708}
.light .comparison-after li{color:var(--text)}

.light .about-goal{
  border-color:#aac783;
  background:linear-gradient(135deg,#f6faef,#e4f1d8);
}
.light .about-goal:after{background:#7da92a18}
.light .about-goal strong,.light .about-goal b{color:#4d7710}
.light .academic-profile.onboarding,
.light .goal-card{
  border-color:#b8cdbf;
  background:linear-gradient(145deg,#ffffff,#edf4ef);
  box-shadow:0 20px 52px #36564814;
}
.light .access-option.featured{
  border-color:#8eac78;
  background:linear-gradient(145deg,#f7fbf3,#eaf4df);
  color:var(--text);
}

.light .pricing-card.featured{
  border-color:#527a63;
  background:linear-gradient(150deg,#17382d,#10271f);
  color:#f7fbf8;
}
.light .pricing-card.featured p,.light .pricing-card.featured li:before{color:#aee7c9}
.light .pricing-card.featured li,.light .pricing-card.featured>span,
.light .pricing-card.featured h2 small{color:#d4e2db}
.light .pricing-card.featured .primary{background:#b4df47;border-color:#b4df47;color:#102016}

.light .faq-list details{background:#fff;border-color:#cbd9d0}
.light .faq-list summary:after{background:#e8f0ea;color:#4d7710}
.light .faq-list details[open]{border-color:#86a990;background:linear-gradient(145deg,#fff,#eef5f0)}
.light .final-cta{
  border-color:#91af72;
  background:radial-gradient(circle at 85% 25%,#a6d5392b,transparent 36%),linear-gradient(145deg,#f8fbf4,#e6f2df);
  box-shadow:0 22px 54px #36564816;
}

.light .dashboard-stats article{
  border-color:#c7d6cd;
  background:linear-gradient(145deg,#fff,#edf4ef);
}
.light .dashboard-main-card,.light .dashboard-side>article{background:#fff;border-color:#c7d6cd}
.light .dashboard-goal-score{background:#edf4ef}
.light .dashboard-goal-score strong,.light .dashboard-recent-score strong,
.light .score,.light .premium-features .feature-link,.light .dashboard-text-link{color:#4d7710}

.light .stimulus,.light .q-option,.light .answer-line,.light .setup-facts div,
.light .mode-card,.light .custom-panel,.light .admission-lookup,.light .goal-meter,
.light .dashboard-goal-score{background:#f2f6f3;color:#263d34}
.light .palette button{background:#f5f8f6;color:#4f665c}
.light .palette button.answered{background:#c9ead8;border-color:#72ac8d;color:#153c2d}
.light .palette button.marked{box-shadow:inset 0 -4px #d27a25}
.light .topic-bar{background:#dce7e0}
.light .ok{color:#176b47;background:#e2f3e9}
.light .bad{color:#a1241b;background:#fbe8e6}
.light .skip{color:#8a4608;background:#fff0df}

.light .notice{background:#fff7d6;border-color:#d7bd5d;color:#5a4711}
.light .resume-box,.light .streak-chip{background:#fff0c7;border-color:#d8ac4a;color:#68440b}
.light .resume-box span{color:#68440b}
.light .auth-required{background:#fff3d5!important;border-color:#d8b45a!important}
.light .auth-note{color:#68440b!important}
.light .cloud-badge{background:#e5f5ec;color:#176b47;border-color:#8bc3a5}

.light input,.light select,.light textarea{
  background:#fff!important;
  border-color:#bccdc2!important;
  color:var(--text)!important;
}
.light input::placeholder,.light textarea::placeholder{color:#71857b;opacity:1}
.light .tag{background:#e1eee7;color:#176b47}
.light .data-visual,.light .math-card,.light .triangle-visual,.light .rectangle-visual,
.light .square-visual,.light .coordinate-visual,.light .work-visual,.light .circle-visual,
.light .parabola-visual,.light .token-visual,.light .boxplot{background:#fff}
.light .token-visual i{background:#fbe8e6;color:#a1241b}
.light .token-visual i:nth-child(2){background:#e5eefc;color:#245ca6}
.light .mobile-tabbar{background:#fffffff2;border-color:#becfc4;box-shadow:0 18px 46px #3656482b}
.light .mobile-tabbar button{color:#526a60}
.light .back,.light .footer-link,.light .report-question,
.light .pricing-card li,.light .history-row span,.light .empty,.light .explanation{color:#536b61}

/* Demostración interactiva de la experiencia RutaPreu */
.practice-preview{display:grid;grid-template-columns:minmax(280px,.72fr) minmax(520px,1.28fr);gap:68px;align-items:center;padding:118px 0 88px}
.practice-preview-copy h2{margin:12px 0 18px;font-size:clamp(38px,4.5vw,58px);line-height:1.01;letter-spacing:-.05em}
.practice-preview-copy>p:not(.eyebrow){max-width:480px;color:var(--muted);font-size:16px;line-height:1.65}
.preview-benefits{display:grid;gap:0;margin:28px 0 24px;border-block:1px solid var(--line)}
.preview-benefits span{display:flex;align-items:center;gap:12px;min-height:50px;border-bottom:1px solid var(--line);color:var(--muted);font-size:13px;font-weight:750}
.preview-benefits span:last-child{border:0}
.preview-benefits b{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#d5ff6312;color:var(--lime);font-size:10px;letter-spacing:.06em}
.demo-replay{display:inline-flex;align-items:center;justify-content:center;gap:10px}
.demo-replay span{font-size:18px}
.practice-demo-wrap{min-width:0}
.practice-demo{--pointer-x:75%;--pointer-y:62%;position:relative;overflow:hidden;border:1px solid #3c6155;border-radius:28px;background:linear-gradient(145deg,#122d25,#091a16);box-shadow:0 30px 80px #02080766;transform:rotate(.7deg)}
.demo-appbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 22px;border-bottom:1px solid var(--line);background:#0f261f}
.demo-appbar>div{display:flex;align-items:center;gap:12px}
.demo-appbar>div>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--lime);color:#102016;font-weight:950}
.demo-appbar p{margin:0;color:var(--green);font-size:10px;font-weight:900;letter-spacing:.1em}
.demo-appbar small{display:block;margin-top:2px;color:var(--muted);font-size:10px;letter-spacing:0}
.demo-appbar>b{color:var(--muted);font-size:12px}
.demo-progress{height:5px;background:#18382f}
.demo-progress i{display:block;width:20%;height:100%;border-radius:0 99px 99px 0;background:linear-gradient(90deg,var(--green),var(--lime));transition:width .55s cubic-bezier(.2,.8,.2,1)}
.demo-content{padding:24px 26px 26px}
.demo-stimulus{padding:15px 17px;border:1px solid var(--line);border-left:3px solid var(--green);border-radius:12px;background:#071512aa}
.demo-stimulus small,.demo-question-number{color:var(--green);font-size:9px;font-weight:900;letter-spacing:.12em}
.demo-stimulus p{margin:8px 0 0;color:#d8e4df;font-size:12.5px;line-height:1.55}
.demo-question-number{margin:18px 0 5px}
.demo-content>h3{max-width:600px;margin:0 0 15px;font-size:17px;line-height:1.35}
.demo-options{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.demo-option{display:grid;grid-template-columns:30px 1fr;gap:10px;align-items:center;min-height:58px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#0a1b17;color:var(--muted);text-align:left;cursor:pointer;transition:transform .2s ease,border-color .2s ease,background .2s ease,color .2s ease}
.demo-option:hover{border-color:#5f8779;color:var(--text);transform:translateY(-1px)}
.demo-option>span{display:grid;place-items:center;width:30px;height:30px;border:1px solid var(--line);border-radius:9px;color:var(--text);font-size:11px}
.demo-option>b{font-size:11.5px;line-height:1.35}
.demo-option.selected.correct,.demo-option.reveal-correct{border-color:var(--lime);background:#d5ff6310;color:var(--text)}
.demo-option.selected.correct>span,.demo-option.reveal-correct>span{border-color:var(--lime);background:var(--lime);color:#102016}
.demo-option.selected.wrong{border-color:var(--red);background:#ff7a7a12;color:var(--text)}
.demo-option.selected.wrong>span{border-color:var(--red);background:var(--red);color:#25100e}
.demo-feedback{display:grid;grid-template-rows:0fr;opacity:0;transform:translateY(8px);transition:grid-template-rows .45s ease,opacity .3s ease,transform .45s ease;overflow:hidden}
.demo-feedback>*{min-height:0}
.demo-feedback.show{grid-template-rows:auto auto;opacity:1;transform:none;margin-top:13px;padding:14px 16px;border:1px solid #73dda95c;border-radius:13px;background:#73dda910}
.demo-feedback>div{display:grid;grid-template-columns:28px auto 1fr;align-items:center;gap:9px}
.demo-feedback i{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--green);color:#071512;font-style:normal;font-weight:950}
.demo-feedback strong{font-size:13px}
.demo-feedback span{justify-self:end;color:var(--green);font-size:9px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
.demo-feedback p{margin:9px 0 0 37px;color:var(--muted);font-size:11px;line-height:1.5}
.demo-feedback.incorrect{border-color:#ff9d665c;background:#ff9d6610}
.demo-feedback.incorrect i{background:var(--orange)}
.demo-feedback.incorrect span{color:var(--orange)}
.demo-pointer{position:absolute;z-index:5;left:calc(100% - 54px);top:calc(100% - 48px);width:25px;height:34px;opacity:0;filter:drop-shadow(0 5px 4px #0008);transform:rotate(-16deg);transition:left 1.05s cubic-bezier(.23,.84,.32,1),top 1.05s cubic-bezier(.23,.84,.32,1),opacity .2s ease}
.demo-pointer:before{content:"";position:absolute;inset:0;background:#f7fbf8;clip-path:polygon(0 0,100% 70%,57% 73%,43% 100%,29% 94%,42% 68%,0 74%)}
.demo-pointer:after{content:"";position:absolute;inset:3px;background:#12211b;clip-path:polygon(0 0,100% 70%,57% 73%,43% 100%,29% 94%,42% 68%,0 74%)}
.practice-demo.demo-pointing .demo-pointer{left:var(--pointer-x);top:var(--pointer-y);opacity:1}
.practice-demo.demo-answered .demo-pointer{opacity:0}
.demo-caption{display:flex;align-items:center;justify-content:center;gap:8px;margin:13px 0 0;color:var(--muted);font-size:11px}
.demo-caption span{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 0 5px #73dda916}

.light .preview-benefits b{background:#eaf4d5;color:#4d7710}
.light .practice-demo{border-color:#b7ccbf;background:linear-gradient(145deg,#fff,#edf4ef);box-shadow:0 28px 70px #36564824}
.light .demo-appbar{background:#f1f6f3;border-color:#cbd9d0}
.light .demo-appbar>div>span{background:#a6d539;color:#132213}
.light .demo-progress{background:#d9e5dd}
.light .demo-stimulus{border-color:#cbd9d0;background:#f4f7f2}
.light .demo-stimulus p{color:#30473e}
.light .demo-option{border-color:#cbd9d0;background:#fff;color:#536b61}
.light .demo-option:hover{border-color:#789485;color:var(--text)}
.light .demo-option.selected.correct,.light .demo-option.reveal-correct{border-color:#6f941e;background:#f0f7df}
.light .demo-option.selected.correct>span,.light .demo-option.reveal-correct>span{border-color:#8fbd27;background:#a6d539;color:#132213}
.light .demo-option.selected.wrong{border-color:#b42318;background:#fbe8e6}
.light .demo-option.selected.wrong>span{background:#d75b51;color:#fff}
.light .demo-feedback.show{border-color:#8fbea5;background:#e8f6ee}
.light .demo-feedback.incorrect{border-color:#d5a169;background:#fff1e2}

@media(max-width:980px){
  .practice-preview{grid-template-columns:1fr;gap:34px;padding:82px 20px 64px}
  .practice-preview-copy{max-width:720px}
  .practice-preview-copy>p:not(.eyebrow){max-width:650px}
  .preview-benefits{grid-template-columns:repeat(3,1fr);gap:12px;border:0;margin-bottom:6px}
  .preview-benefits span{display:grid;grid-template-columns:28px 1fr;min-height:64px;padding:10px;border:1px solid var(--line);border-radius:12px}
}
@media(max-width:620px){
  .practice-preview{width:100%;padding:66px 16px 54px}
  .practice-preview-copy h2{font-size:clamp(35px,10vw,44px)}
  .practice-preview-copy>p:not(.eyebrow){font-size:15px}
  .preview-benefits{grid-template-columns:1fr;gap:7px}
  .preview-benefits span{display:flex;min-height:48px;padding:8px 10px}
  .demo-replay{width:100%;margin-top:12px}
  .practice-demo{border-radius:21px;transform:none}
  .demo-appbar{padding:14px}
  .demo-appbar>div>span{width:31px;height:31px}
  .demo-appbar p{font-size:9px}
  .demo-content{padding:16px 14px 18px}
  .demo-stimulus{padding:13px}
  .demo-options{grid-template-columns:1fr;gap:7px}
  .demo-option{min-height:52px;padding:9px 10px}
  .demo-content>h3{font-size:16px}
  .demo-feedback.show{padding:13px}
  .demo-feedback>div{grid-template-columns:26px 1fr}
  .demo-feedback span{grid-column:2;justify-self:start}
  .demo-feedback p{margin-left:35px}
  .demo-caption{text-align:center}
}
@media(prefers-reduced-motion:reduce){
  .demo-pointer{display:none}
  .demo-progress i,.demo-feedback,.demo-option{transition:none}
}

/* Centro legal, consentimiento y pie de página */
.purchase-legal{margin:14px 0 0!important;color:#cbdad4!important;font-size:10.5px!important;font-weight:600!important;line-height:1.55;letter-spacing:0!important;text-align:center}
.purchase-legal button,.legal-consent button{border:0;background:transparent;color:var(--lime);padding:0;font:inherit;font-weight:850;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.legal-consent{display:grid;gap:9px;width:100%;margin:18px 0 0;padding:14px 15px;border:1px solid var(--line);border-radius:12px;background:#07151280}
.legal-consent label{display:grid;grid-template-columns:20px 1fr;gap:9px;align-items:start;color:var(--muted);font-size:11px;line-height:1.45;cursor:pointer}
.legal-consent input{width:18px;height:18px;margin:1px 0 0;accent-color:var(--lime)}
.legal-consent>div{display:flex;gap:14px;margin-left:29px}

.legal-page{max-width:1100px}
.legal-head{max-width:780px;margin-bottom:34px}
.legal-launch-warning{margin-bottom:22px;padding:18px 20px;border:1px solid #dba95b;border-radius:15px;background:#33260f;color:#ffe1a6}
.legal-launch-warning b{display:block;margin-bottom:5px;font-size:13px}.legal-launch-warning p{margin:0;color:#e9c98d;font-size:12px;line-height:1.55}
.legal-identity{display:grid;grid-template-columns:1.2fr .65fr 1.1fr 1.15fr;gap:1px;overflow:hidden;margin-bottom:22px;border:1px solid var(--line);border-radius:16px;background:var(--line)}
.legal-identity>div{min-width:0;padding:17px;background:var(--panel)}
.legal-identity small{display:block;margin-bottom:7px;color:var(--green);font-size:9px;font-weight:900;letter-spacing:.09em}
.legal-identity strong{display:block;color:#ffc86b;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.legal-index{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px}
.legal-index button{min-height:40px;border:1px solid var(--line);border-radius:999px;background:var(--panel);color:var(--muted);padding:9px 14px;font:inherit;font-size:11px;font-weight:800;cursor:pointer}
.legal-index button:hover,.legal-index button:focus-visible{border-color:var(--green);color:var(--text)}
.legal-documents{display:grid;gap:10px}
.legal-documents details{overflow:hidden;border:1px solid var(--line);border-radius:18px;background:var(--panel)}
.legal-documents summary{display:grid;grid-template-columns:42px 1fr;gap:14px;align-items:center;min-height:82px;padding:15px 20px;list-style:none;cursor:pointer}
.legal-documents summary::-webkit-details-marker{display:none}
.legal-documents summary>span{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#d5ff6312;color:var(--lime);font-size:11px;font-weight:950}
.legal-documents summary>div{display:grid;gap:3px;position:relative;padding-right:34px}
.legal-documents summary>div:after{content:"+";position:absolute;right:2px;top:4px;color:var(--muted);font-size:24px;font-weight:400}
.legal-documents details[open] summary>div:after{content:"−"}
.legal-documents summary b{font-size:16px}.legal-documents summary small{color:var(--muted);font-size:11px}
.legal-documents details[open] summary{border-bottom:1px solid var(--line);background:#10271f}
.legal-copy{padding:25px 28px 30px;max-width:880px}
.legal-copy h2{margin:26px 0 8px;font-size:15px;line-height:1.3}.legal-copy h2:first-child{margin-top:0}
.legal-copy p,.legal-copy li{color:var(--muted);font-size:13px;line-height:1.72}
.legal-copy p{margin:0}.legal-copy ul{display:grid;gap:7px;margin:0;padding-left:20px}.legal-copy li b{color:var(--text)}
.legal-sources{margin-top:18px;padding:21px 24px;border:1px solid var(--line);border-radius:16px;background:var(--panel)}
.legal-sources b{display:block;margin-bottom:6px}.legal-sources p{margin:0 0 8px;color:var(--muted);font-size:12px;line-height:1.6}.legal-sources small{color:#ffc86b;line-height:1.5}

footer{margin-top:54px;border-top:1px solid var(--line)}
.legal-footer{display:grid;grid-template-columns:1fr 1.6fr auto;gap:32px;align-items:start;padding-block:34px 110px}
.footer-brand,.footer-meta{display:grid;gap:5px}.footer-brand b{font-size:18px}.footer-brand span,.footer-meta span{color:var(--muted);font-size:11px;line-height:1.45}
.legal-footer nav{display:flex;flex-wrap:wrap;gap:11px 18px}.legal-footer .footer-link{min-height:32px;font-size:11px;font-weight:750;text-align:left}
.footer-meta{text-align:right}

.light .purchase-legal{color:#d9e7df!important}
.light .legal-consent{background:#f3f7f4;border-color:#c4d4ca}
.light .legal-consent button,.light .purchase-legal button{color:#4d7710}
.light .legal-launch-warning{border-color:#d0a24e;background:#fff4d7;color:#68440b}
.light .legal-launch-warning p{color:#72551b}
.light .legal-identity{background:#c9d8ce;border-color:#c9d8ce}.light .legal-identity>div{background:#fff}.light .legal-identity strong{color:#87510a}
.light .legal-index button,.light .legal-documents details,.light .legal-sources{background:#fff;border-color:#c8d7ce}
.light .legal-documents details[open] summary{background:#eef5f0;border-color:#c8d7ce}
.light .legal-documents summary>span{background:#eaf4d5;color:#4d7710}
.light .legal-sources small{color:#87510a}

@media(max-width:900px){
  .legal-identity{grid-template-columns:1fr 1fr}
  .legal-footer{grid-template-columns:1fr 1.5fr}.footer-meta{grid-column:1/-1;text-align:left}
}
@media(max-width:620px){
  .legal-launch-warning{padding:16px}
  .legal-identity{grid-template-columns:1fr}
  .legal-index{display:grid;grid-template-columns:1fr 1fr}
  .legal-index button{border-radius:12px}
  .legal-documents summary{grid-template-columns:36px 1fr;min-height:74px;padding:13px 14px;gap:11px}
  .legal-documents summary>span{width:36px;height:36px}.legal-documents summary b{font-size:14px}.legal-documents summary small{line-height:1.35}
  .legal-copy{padding:21px 17px 24px}.legal-copy p,.legal-copy li{font-size:12.5px}
  .legal-footer{grid-template-columns:1fr;gap:22px;padding:28px 20px 104px}.legal-footer nav{display:grid;grid-template-columns:1fr 1fr}.footer-meta{grid-column:auto}
  .legal-consent>div{margin-left:0}
}
