:root{
    color-scheme:light;--navy:#102d46;--ink:#172f43;--muted:#4e6474;--blue:#185d89;--gold:#f4be44;
    --paper:#f4f6f5;--line:#d7e0e3;--pale:#eaf2f5;--good:#13684f;--bad:#983f3b;
    --shadow:0 12px 42px -29px #12334977;--serif:Georgia,"Times New Roman",serif;
    --sans:system-ui,-apple-system,"Segoe UI",sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-padding-top:20px}
body{margin:0;background:var(--paper);font:1rem/1.55 var(--sans);color:var(--ink);overflow-wrap:anywhere}
[hidden]{display:none!important}
a{color:var(--blue);text-underline-offset:.22em}
img{max-width:100%;height:auto}
button,input,select{font:inherit}
button,a,input,select,summary{touch-action:manipulation}
:focus-visible{outline:3px solid #bf7f00;outline-offset:3px}
button{cursor:pointer}button:disabled{cursor:default;opacity:.48}
h1,h2,h3,p{margin:0 0 .65em}
h1,h2,h3{line-height:1.12}
h1{font:500 clamp(2.45rem,5.4vw,4.6rem)/1.02 var(--serif);letter-spacing:-.045em;text-wrap:balance}
h2{font:500 clamp(1.6rem,3vw,2.25rem)/1.14 var(--serif);letter-spacing:-.027em}
h3{font:650 1.06rem/1.35 var(--sans)}
hr{border:0;border-top:1px solid var(--line);margin:1.5rem 0}
.gl-bar{background:var(--navy);color:white;border-bottom:3px solid var(--gold)}
.gl-bar-inner{width:min(1120px,calc(100% - 40px));min-height:72px;display:flex;gap:22px;align-items:center;margin:auto;padding:9px 0}
.gl-brand{display:inline-flex;align-items:center;gap:10px;color:inherit;text-decoration:none;line-height:1;white-space:nowrap;font-weight:450;font-size:1.12rem;letter-spacing:-.03em}
.gl-brand img{width:42px;height:42px;object-fit:contain}
.gl-monogram{display:grid;place-items:center;width:40px;aspect-ratio:1;border:1px solid #ffffff60;border-radius:9px;color:var(--gold);font:italic bold 23px var(--serif);letter-spacing:-.13em;padding-right:3px}
.gl-section{color:#c1d1db;border-left:1px solid #ffffff40;padding-left:21px;font-size:.83rem}
.gl-bar nav{margin-left:auto;display:flex;gap:14px;align-items:center}
.gl-bar nav a,.gl-exit{color:#fff;text-decoration:none;font-size:.88rem;font-weight:650}
.gl-bar nav a{display:inline-flex;align-items:center;min-height:44px}.gl-bar nav a:hover{text-decoration:underline}
.gl-bar form{margin:0}.gl-exit{border:1px solid #ffffff61;border-radius:8px;background:transparent;padding:.48rem .9rem;min-height:42px}
.gl-main{width:min(1120px,calc(100% - 40px));margin:0 auto;padding:clamp(26px,5vw,64px) 0 70px}
.gl-narrow{max-width:720px}.back{display:inline-block;font-size:.9rem;font-weight:650;text-decoration:none;margin-bottom:18px}
.mast,.exam-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:4px 0 clamp(20px,3vw,34px)}
.mast h1,.exam-heading h1{margin-bottom:12px}.mast p:not(.eyebrow){color:var(--muted);margin:0;max-width:64ch}
.eyebrow,.qmeta{font:750 .73rem/1.5 var(--sans);text-transform:uppercase;letter-spacing:.12em;color:var(--blue)}
.eyebrow{margin-bottom:.8rem}.quiet,.guide p,.login-form>p:not(.eyebrow){color:var(--muted)}
.surface,.mode-card,.review,.history-strip{background:white;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}
.surface{padding:clamp(18px,3vw,34px);min-width:0}.surface>:last-child,.mast p:last-child{margin-bottom:0}
.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.mode-card{display:flex;flex-direction:column;color:inherit;text-decoration:none;overflow:hidden;transition:box-shadow .2s,transform .2s}
.mode-art{height:clamp(100px,12vw,145px);position:relative;overflow:hidden;isolation:isolate}
.mode-art::before,.login-intro::before{content:"";position:absolute;inset:0;z-index:-1;opacity:.42;background-image:repeating-linear-gradient(124deg,transparent 0 21px,#ffffff38 21px 22px,transparent 22px 43px);mask-image:linear-gradient(90deg,transparent,#000)}
.exam-art{background:#194c6c;display:flex;align-items:center;justify-content:flex-end;padding-right:15%}
.sheet-art{display:grid;gap:9px;transform:rotate(-13deg) translateY(13px);width:86px;padding:25px 12px;height:95px;background:#fff7d9;border-top:7px solid var(--gold);box-shadow:10px 9px 0 #0d2e4780}
.sheet-art i{display:block;border-bottom:3px solid #90a9ad;position:relative;margin-left:14px}.sheet-art i::before{content:"";position:absolute;left:-13px;bottom:0;border:1.5px solid #6b9198;width:7px;height:7px;border-radius:50%}
.quiz-art{background:#f1c46b;display:flex;align-items:center;justify-content:flex-end;padding-right:17%}.quiz-art::before{filter:invert(1);opacity:.18}
.quiz-art>span{font:italic 104px/.95 var(--serif);color:#67490f;transform:rotate(10deg)}
.mode-copy{padding:clamp(20px,3vw,32px);display:flex;flex-direction:column;flex:1}
.mode-copy .eyebrow{margin-bottom:.5rem}.mode-copy h2{margin-bottom:.35em}
.mode-copy>p:not(.eyebrow){max-width:41ch;color:var(--muted);margin-bottom:1.6rem}
.mode-copy strong,.text-link,.textbtn{color:var(--blue);font-weight:750}.mode-copy strong{margin-top:auto}.mode-copy strong span{margin-left:.5em}
.history-strip{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;margin-top:22px;text-decoration:none;color:var(--ink)}
.history-strip strong,.history-strip small{display:block}.history-strip small{margin-top:2px;color:var(--muted)}
.history-strip>span:last-child{font-size:1.5rem;color:var(--blue)}
.button,.quiz-page .btn,.quiz-page form:not(.gl-bar form):not(#answerForm) button,.btn-login{
    background:var(--blue);color:white;border:1px solid transparent;border-radius:9px;min-height:46px;padding:.7rem 1.12rem;display:inline-flex;
    align-items:center;justify-content:center;gap:8px;text-align:center;text-decoration:none;font-weight:720;font-size:.94rem;line-height:1.35;transition:background .15s,box-shadow .15s
}
.button.secondary,.quiz-page .btn.ghost{background:white;color:var(--blue);border-color:#b7cbd5}
.button.gold{background:var(--gold);color:var(--navy)}.full{width:100%}
.textbtn{border:0;background:none;text-decoration:underline;min-height:42px}.text-link{display:inline-flex;align-items:center;min-height:42px;text-decoration:underline}
label:not(.choice):not(.option-label){display:block;margin:18px 0 7px;font-size:.92rem;font-weight:680}
select,input:not([type=hidden]):not([type=radio]){width:100%;background:#fff;border:1px solid #a9bdc8;border-radius:8px;color:var(--ink);min-height:47px;padding:10px 13px;font-size:1rem}
select{padding-right:22px}.notice{padding:14px 16px;border-radius:8px;background:var(--pale)}
.notice.error{background:#fff4dc;color:#704a10;border:1px solid #e8cea0}
.login-page{min-height:100svh;display:grid;place-items:center;padding:clamp(16px,5vw,64px);background:linear-gradient(140deg,#e6eef1,var(--paper) 55%)}
.login-shell{max-width:960px;width:100%;display:grid;grid-template-columns:1fr 1fr;border-radius:22px;overflow:hidden;background:white;border:1px solid var(--line);box-shadow:0 24px 80px -45px #17364b99}
.login-intro{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:space-between;gap:55px;background:var(--navy);color:white;padding:clamp(27px,4vw,50px)}
.login-intro .gl-brand{align-self:flex-start}.login-intro .eyebrow{color:var(--gold)}.login-intro h1{font-size:clamp(3.4rem,6.2vw,5.2rem);margin-bottom:.2em}
.login-intro h1 span{color:var(--gold)}.login-intro p:not(.eyebrow){max-width:28ch;color:#d6e1e7;margin:0}
.login-facts{display:flex;gap:26px;border-top:1px solid #ffffff48;padding-top:16px}.login-facts span{font-size:.8rem;color:#d5e1e7}.login-facts b{display:block;color:white;font-size:1rem}
.login-form{padding:clamp(25px,4vw,52px);align-self:center}.login-form h2{font-size:clamp(2.2rem,4vw,3.4rem);margin-bottom:8px}
.login-form .button{width:100%;margin-top:25px;justify-content:space-between}
.workspace{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(265px,1fr);align-items:start;gap:22px}
.guide{border-top:4px solid var(--gold)}.guide h2{font-size:2.6rem}.course-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.course-list div{display:flex;gap:10px;justify-content:space-between;border-bottom:1px solid var(--line);padding:7px 0}
.course-list dd{margin:0;font-weight:740}.career-layout .quiet{font-size:.91rem;margin:16px 0}.career-layout h3{margin-top:20px}
.exam-heading h1{font-size:clamp(2.1rem,4vw,3.3rem);margin:0}.clock{white-space:nowrap;background:var(--navy);color:#fff;padding:9px 17px;border-radius:12px}
.clock span{font-size:.75rem;display:block;color:#cbdae4}.clock b{font-size:1.3rem;font-variant-numeric:tabular-nums}
.qmeta{display:flex;flex-wrap:wrap;gap:5px 18px;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:20px}
.question-text{font:650 clamp(1.07rem,1.6vw,1.3rem)/1.52 var(--sans);letter-spacing:normal;white-space:pre-line}
.passage,.choice,.review-options li{white-space:pre-line}.qimage,.qimg{max-height:65vh;object-fit:contain;margin:12px auto;display:block}
.options{border:0;display:grid;gap:9px;padding:0;margin:16px 0;min-width:0}
.choice,.option-label{position:relative;display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:11px 13px;min-height:48px;cursor:pointer;line-height:1.45}
.choice input,.option-label input{accent-color:var(--blue);width:17px;height:17px;flex:none;margin:0}
.letter,.option-letter{font-size:.87rem;font-weight:780;color:var(--blue)}
.choice:has(:checked),.option-label:has(:checked){background:var(--pale);border-color:var(--blue);box-shadow:inset 3px 0 var(--blue)}
.choice:focus-within,.option-label:focus-within{outline:2px solid #6d96a8;outline-offset:1px}
.step-buttons,.dialog-actions,.history-tools,.section-head,.pager{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.step-buttons{border-top:1px solid var(--line);padding-top:16px}.exam-side{position:sticky;top:14px}.exam-side h2{margin-bottom:.3em}
.completion{color:var(--muted)}.completion b{color:var(--ink);font-size:1.3rem}
progress{appearance:none;width:100%;height:7px;display:block;margin:10px 0 15px;border:0;border-radius:10px;background:#e4e9e9;accent-color:var(--good);overflow:hidden}
progress::-webkit-progress-bar{background:#e4e9e9}progress::-webkit-progress-value{background:var(--good)}progress::-moz-progress-bar{background:var(--good)}
.qgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(37px,1fr));gap:5px;max-height:min(35vh,300px);overflow:auto;padding:3px}
.qgrid button{min-height:38px;border:1px solid var(--line);border-radius:6px;color:var(--muted);background:#fff;font-size:.82rem;font-weight:690}
.qgrid .answered{color:var(--good);border-color:#9dcab9;background:#ddf1e8}.qgrid [aria-current=step]{outline:2px solid var(--navy);outline-offset:0}
.sync{color:var(--good);font-size:.85rem;line-height:1.5;margin:14px 0}.sync.attention{color:#805413}
dialog{width:min(480px,calc(100% - 28px));max-height:90svh;border:1px solid var(--line);border-radius:16px;padding:0;color:var(--ink);box-shadow:0 20px 100px #0e2d4540}
dialog::backdrop{background:#102d469c}.dialog-body{padding:clamp(19px,4vw,32px)}.dialog-actions{margin-top:22px}
.history-tools{margin:15px 0 21px}.tabs{display:flex;gap:3px;background:#e3e9ea;padding:4px;border-radius:10px}.tabs a{padding:8px 14px;text-decoration:none;font-weight:650;color:var(--muted)}.tabs a[aria-current]{background:#fff;color:var(--navy);border-radius:7px;box-shadow:0 2px 5px #1233}
.history-list{display:grid;gap:14px}.history-item{display:grid;grid-template-columns:1fr minmax(0,1.2fr);gap:12px 24px;align-items:center}
.history-item h2{font-size:1.5rem;margin:4px 0}.history-item p{margin:4px 0}.history-item .text-link{font-size:.88rem}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.metric{border:1px solid var(--line);padding:clamp(11px,2vw,22px);border-radius:12px;background:white}
.metric span{display:block;font-size:.83rem;font-weight:650}.metric b{display:block;font:500 clamp(1.6rem,3vw,2.6rem)/1.25 var(--serif);margin-top:.18em;font-variant-numeric:tabular-nums}
.metric.good{background:#e5f1e8;color:#1e6048}.metric.bad{background:#f9eae5;color:#85403c}.metric.empty{background:#e9eff2;color:#384e60}.metric.score{background:var(--navy);color:white}.history-item .metric{padding:8px 10px}.history-item .metric b{font-size:1.35rem}
.section-head{margin:35px 0 12px}.section-head h2{margin:0}.review{margin:12px 0;overflow:hidden}
.review summary{cursor:pointer;padding:18px 22px;display:list-item;list-style-position:inside}.review summary span{display:inline-block;margin-left:12px;color:var(--muted);font-size:.85rem}
.review article{padding:18px clamp(15px,3vw,30px);border-top:1px solid var(--line)}.review-options{list-style:none;display:grid;gap:5px;padding:0}
.review-options li{padding:9px 12px;background:#f5f7f7;border-radius:6px}.review-options b{margin-right:9px}.review-options small{font-weight:bold;margin-left:6px}
.review-options li.right,.option-label.correct,.step.correct{background:#dcefe4;color:#16583d}.review-options li.wrong,.option-label.wrong,.step.wrong{background:#f6deda;color:#783333}.pager{margin-top:22px}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Vistas del quiz individual y de salas. */
.quiz-page .site-wrap,.quiz-page .wrap,.quiz-page main{width:min(950px,calc(100% - 40px));margin:clamp(25px,6vw,68px) auto}
.quiz-page .card,.quiz-page .box,.quiz-page .inner,.quiz-page .c,.quiz-page .card-left,.quiz-page .panel-right{
    background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:clamp(20px,3.4vw,40px);min-width:0
}
.quiz-page .site-wrap,.quiz-page .wrap{max-width:720px}.quiz-page .card,.quiz-page .box,.quiz-page .inner,.quiz-page .c{border-top:4px solid var(--gold)}
.quiz-page .brand{margin-bottom:22px}.quiz-page .actions{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}
.quiz-page .hint,.quiz-page .small,.quiz-page .muted{color:var(--muted);font-size:.89rem}
.quiz-page .box button{margin-top:16px}.quiz-page .hint{margin-top:22px}
.quiz-page .container{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(240px,1fr);align-items:start;gap:18px}
.quiz-page .panel-right{padding:20px}.quiz-page .question-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);margin-bottom:18px;padding-bottom:12px}
.quiz-page .subject,.quiz-page .score-big{font-weight:750;color:var(--blue)}.quiz-page .score-big{font-size:1.55rem}
.quiz-page .timeline{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.quiz-page .step{display:grid;place-items:center;width:32px;height:32px;font-weight:680;border:1px solid var(--line);border-radius:7px}
.quiz-page .answers-list,.players,.player-item{font-size:.91rem}.players>div,.player-item{padding:7px 0;border-bottom:1px solid var(--line)}
.quiz-page .big-score{font:500 3.3rem var(--serif);color:var(--blue)}.quiz-page .big-score small{font:600 1rem var(--sans)}.quiz-page .score-box{margin:18px 0}
@media(hover:hover){.mode-card:hover{transform:translateY(-3px);box-shadow:0 16px 45px -24px #16385065}.choice:hover,.option-label:hover{border-color:#8aa9b6}.button:hover,.quiz-page .btn:hover{box-shadow:inset 0 0 0 99px #102d4610}.history-strip:hover{border-color:#9db5bf}}
@media(max-width:820px){.workspace,.quiz-page .container{grid-template-columns:minmax(0,1fr)}.exam-side{position:static}.qgrid{max-height:210px;grid-template-columns:repeat(auto-fill,minmax(40px,1fr))}.qgrid button{min-height:42px}.history-item{grid-template-columns:1fr}.login-intro{gap:35px}}
@media(max-width:640px){.gl-bar-inner,.gl-main,.quiz-page .wrap,.quiz-page .site-wrap,.quiz-page main{width:calc(100% - 28px)}.gl-bar-inner{min-height:60px;gap:8px}.gl-section{display:none}.gl-bar nav{gap:9px}.gl-brand{font-size:.98rem;gap:7px}.gl-brand img,.gl-monogram{width:34px;height:34px}.gl-exit{padding:6px 12px}.mast{margin-bottom:19px}.mode-grid,.login-shell{grid-template-columns:1fr}.mode-grid{gap:16px}.mode-art{height:86px}.mode-copy{padding:19px}.mode-copy>p:not(.eyebrow){margin-bottom:12px}.sheet-art{transform:rotate(-13deg) scale(.8) translateY(15px)}.quiz-art>span{font-size:78px}.history-strip{padding:15px}.login-page{display:block;padding:13px}.login-shell{max-width:460px;margin:auto}.login-intro{padding:23px;gap:18px}.login-intro h1{font-size:2.8rem}.login-intro h1 br{display:none}.login-intro h1 br::after{content:" "}.login-intro h1{word-spacing:0}.login-facts{display:none}.login-form{padding:23px}.exam-heading{align-items:center;gap:8px}.exam-heading h1{font-size:2rem}.clock{padding:7px 9px}.clock b{font-size:1.05rem}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.surface{padding:17px}.review summary span{display:block;margin:5px 0 0}.history-tools{align-items:start}.course-list{grid-template-columns:1fr}.quiz-page .question-header{flex-wrap:wrap}.dialog-actions>.button{flex:1 1 130px}}
@media(max-width:360px){.gl-brand{white-space:normal}.gl-bar nav a,.gl-exit{font-size:.8rem}.gl-bar-inner{gap:5px}.qmeta{letter-spacing:.05em}.exam-heading{align-items:start}.step-buttons .button{padding:.6rem .73rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
/* Identidad Gestiones Líder: azul, blanco y amarillo. Superficies de lectura claras. */
:root{--navy:#073c6d;--ink:#12314d;--muted:#496780;--blue:#006db3;--gold:#fcc111;--paper:#006db3;--line:#d9e7f2;--pale:#eaf5ff;--shadow:0 16px 50px -19px #00254d70;--serif:var(--sans);--mx:50%;--my:20%}
body,.login-page{background-color:#006db3;background-image:radial-gradient(ellipse at var(--mx) var(--my),#39a7e780 0,transparent 43%),linear-gradient(135deg,#006db3 35%,#07548e 100%);background-attachment:fixed;min-height:100vh;position:relative;isolation:isolate}
body::before{content:"";position:fixed;z-index:-1;inset:0;pointer-events:none;background-image:linear-gradient(#ffffff0c 1px,transparent 1px),linear-gradient(90deg,#ffffff0c 1px,transparent 1px);background-size:48px 48px;mask-image:linear-gradient(#000,transparent 94%)}
.gl-bar{position:sticky;top:0;z-index:30;background:#074b80f5;backdrop-filter:blur(18px);border-bottom:1px solid #ffffff35;box-shadow:0 6px 22px #00345938}.gl-bar-inner{width:min(1240px,calc(100% - 40px));min-height:74px}.gl-brand{font-weight:750;letter-spacing:-.045em}.gl-monogram{background:var(--gold);color:#063e6a;border:0;border-radius:13px;font:900 20px/1 var(--sans);letter-spacing:-.08em}.gl-user{display:inline-flex;align-items:center;gap:8px;padding:7px 11px;background:#ffffff19;border:1px solid #ffffff35;border-radius:12px;color:white;font-size:.9rem;font-weight:750;max-width:190px;overflow-wrap:anywhere}.gl-avatar{width:24px;height:24px;display:grid;place-items:center;background:var(--gold);color:#075184;border-radius:50%;font-size:12px;flex:none}.gl-exit{border-radius:12px}.gl-main{width:min(1240px,calc(100% - 40px))}
h1{font-weight:850;letter-spacing:-.055em}h2{font-weight:790;letter-spacing:-.04em}.mast,.exam-heading{color:white}.mast p:not(.eyebrow),.exam-heading p:not(.eyebrow){color:#e3f3ff}.mast .eyebrow,.exam-heading .eyebrow{color:var(--gold)}.gl-main>.back,.gl-main>.section-head,.gl-main>.section-head a,.gl-main>.quiet,.gl-main>.pager{color:white}.gl-main>.pager .button{color:var(--blue)}.gl-main>.section-head .eyebrow{color:var(--gold)}
.surface,.mode-card,.history-strip,.review,.quiz-page .card,.quiz-page .box,.quiz-page .inner,.quiz-page .c,.quiz-page .card-left,.quiz-page .panel-right{border-radius:22px;border:1px solid #ffffffb3;box-shadow:var(--shadow)}.surface{background:#fff}.mode-art{height:155px}.exam-art{background:linear-gradient(120deg,#075b9d,#008cd5)}.quiz-art{background:linear-gradient(120deg,#fcc111,#ffe18b)}.mode-copy h2{font-weight:850}.button,.quiz-page .btn,.quiz-page form:not(.gl-bar form):not(#answerForm) button,.btn-login{border-radius:12px;font-weight:780;transition:transform .18s,box-shadow .18s,background .18s}.button.gold{color:#12314d}.guide{border-top:5px solid var(--gold)}.clock{background:#ffffff;color:var(--blue);box-shadow:var(--shadow);border:2px solid var(--gold)}.clock span{color:var(--muted)}.exam-side{top:90px}.qgrid button{border-radius:9px}.login-shell{border-radius:28px;box-shadow:0 30px 80px #002a5a65}.login-intro{background:linear-gradient(145deg,#005c9b,#007bc2)}.login-intro::before,.mode-art::before{opacity:.65}.login-intro h1{font-weight:900}.login-form h2{font-weight:850}.login-intro .gl-brand{font-weight:750}.notice{color:var(--ink)}
.prospecto-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:22px 0}.prospecto-summary>div{background:var(--pale);padding:12px;border-radius:12px;border:1px solid var(--line)}.prospecto-summary span,.prospecto-summary b{display:block}.prospecto-summary span{font-size:.72rem;color:var(--muted)}.prospecto-summary b{font-size:clamp(.9rem,2vw,1.2rem);color:var(--blue);font-variant-numeric:tabular-nums}.score-table-wrap{overflow-x:auto}.score-table{border-collapse:collapse;width:100%;font-size:.84rem;white-space:nowrap}.score-table th,.score-table td{text-align:right;padding:9px 7px;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}.score-table th:first-child{text-align:left;white-space:normal;min-width:120px}.score-table thead{color:var(--blue);background:var(--pale)}.score-table tbody tr:hover{background:var(--pale)}
.edit-surface .tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}.area-tabs a{padding:9px 15px;border:1px solid var(--line);border-radius:10px;text-decoration:none;font-weight:750}.area-tabs a[aria-current]{background:var(--blue);color:white}.editor-total{font-size:.9rem;background:var(--pale);border-radius:12px;padding:12px}.editor-total b{color:var(--blue)}.editor-course{display:grid;grid-template-columns:minmax(105px,1fr) minmax(145px,1.4fr) minmax(110px,1.1fr) repeat(4,minmax(80px,.8fr));gap:8px;align-items:end;border:1px solid var(--line);border-radius:13px;padding:12px;margin:12px 0;background:#f9fcff}.editor-course label:not(.choice):not(.option-label){margin:0;font-size:.75rem;min-width:0}.editor-course label span{display:block;margin-bottom:5px}.editor-course input,.editor-course select{padding:8px!important;font-size:.88rem!important;min-height:42px!important}.editor-course .remove-course{grid-column:1/3;justify-self:start;color:#a32936;font-size:.8rem;min-height:28px}.bank-note{grid-column:3/-1;text-align:right;color:var(--good);font-weight:650}.bank-note.shortage{color:#a13a20}.edit-actions{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-top:20px}.mapping{margin-top:22px}.mapping-content{padding:16px}.map-form{display:flex;align-items:end;gap:12px;margin-bottom:14px}.map-form label{flex:1;margin:0!important}.map-form button{flex:none}
@media(hover:hover){.button:not(:disabled):hover,.quiz-page .btn:hover{transform:translateY(-2px);box-shadow:0 6px 16px #00528a30}.mode-card:hover{transform:translateY(-5px);box-shadow:0 20px 40px #00335b60}.history-strip:hover{border-color:var(--gold)}}
@media(max-width:950px){.editor-course{grid-template-columns:repeat(4,minmax(0,1fr))}.ed-subject_name{grid-column:span 2}.editor-course .remove-course{grid-column:1/3}.bank-note{grid-column:3/-1}}
@media(max-width:640px){.gl-bar-inner{width:calc(100% - 22px);gap:7px;flex-wrap:wrap;padding:8px 0;min-height:60px}.gl-bar nav{gap:8px;flex-wrap:wrap}.gl-brand{font-size:.94rem}.gl-user{font-size:.8rem;padding:5px 8px;max-width:120px}.gl-avatar{display:none}.gl-bar nav a{font-size:.78rem;min-height:32px}.gl-exit{min-height:34px;font-size:.78rem;padding:4px 8px}.gl-main{width:calc(100% - 26px)}.mode-art{height:105px}.exam-side{position:static}.prospecto-summary{grid-template-columns:1fr 1fr}.prospecto-summary>div:first-child{grid-column:1/-1}.editor-course{grid-template-columns:repeat(2,minmax(0,1fr))}.ed-subject_name{grid-column:span 1}.editor-course .remove-course,.bank-note{grid-column:1/-1;text-align:left}.map-form{align-items:stretch;flex-direction:column}.login-shell{border-radius:22px}.surface,.mode-card,.review,.history-strip{border-radius:17px}}
@media(prefers-reduced-motion:reduce){body{background-attachment:scroll}}
html{scroll-padding-top:100px}.gl-main>.history-tools>.text-link{color:white}.metric.score b{font-size:clamp(1.05rem,2.5vw,2rem);font-weight:800}.history-item .metric.score b{font-size:clamp(.95rem,1.7vw,1.35rem)}.quiz-page .card-left h1{font-size:clamp(1.4rem,3vw,2.4rem)}
/* GL NEXT — interfaz móvil primero, sin dependencias de terceros. */
:root{--blue:#006db3;--gold:#fcc111;--navy:#063965;--ink:#0b3154;--muted:#49657d;--line:#d9e8f5;--pale:#eaf6ff;--shadow:0 18px 48px -18px #00294f77;--sans:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
html{scroll-behavior:smooth;scroll-padding-top:92px}body,.login-page{background:#006db3;background-image:radial-gradient(ellipse at var(--mx,75%) var(--my,15%),#25a9f788,transparent 46%),radial-gradient(ellipse at 12% 80%,#00477999,transparent 50%),linear-gradient(145deg,#006db3 20%,#07578c 100%);background-attachment:fixed}body::before{background-size:36px 36px;mask-image:linear-gradient(#000,transparent 95%)}body::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(circle at 75% 20%,#ffffff13,transparent 32%);animation:ambient 12s ease-in-out infinite alternate}
.gl-icon{width:24px;height:24px;flex:none;vertical-align:middle}.gl-bar{background:#063c6bef;backdrop-filter:blur(24px);border-bottom:1px solid #ffffff24}.gl-bar-inner{width:min(1420px,calc(100% - 42px));gap:18px;min-height:76px}.gl-brand{font-size:1.05rem;font-weight:750;letter-spacing:-.05em}.gl-monogram{background:var(--gold);border-radius:14px;box-shadow:0 5px 22px #fcc11136}.gl-section{display:none}.gl-bar .gl-desktop-nav{margin-left:auto;gap:4px;white-space:nowrap}.gl-desktop-nav a{padding:7px 10px;border-radius:10px;color:#e5f4ff!important;font-size:.81rem!important;min-height:40px!important}.gl-desktop-nav a[aria-current]{background:#ffffff20;color:#fff!important;box-shadow:inset 0 -2px var(--gold)}.gl-account{display:flex;align-items:center;gap:7px;min-width:0}.gl-user{border-radius:30px;padding:5px 10px 5px 5px;max-width:170px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:inline-flex}.gl-avatar{width:29px;height:29px;display:grid;place-items:center}.gl-avatar .gl-icon{width:17px;height:17px}.gl-account-menu{position:relative}.gl-account-menu summary{display:grid;place-items:center;cursor:pointer;list-style:none;width:37px;height:37px;border:1px solid #ffffff45;border-radius:12px;color:#fff;font-weight:900;letter-spacing:2px}.gl-account-menu summary::-webkit-details-marker{display:none}.gl-account-menu[open] summary{background:#ffffff25}.gl-account-menu>div{position:absolute;right:0;top:46px;width:198px;padding:8px;border-radius:18px;background:#fff;box-shadow:0 14px 45px #002b5a60;color:var(--ink);z-index:50}.gl-account-menu a,.gl-account-menu .gl-exit{display:flex;align-items:center;gap:10px;min-height:43px;padding:8px 10px;color:var(--ink);text-decoration:none;width:100%;font-size:.9rem;text-align:left}.gl-account-menu a:hover,.gl-account-menu button:hover{background:var(--pale);border-radius:10px}.gl-account-menu .gl-icon{width:18px;height:18px}.gl-account-menu .gl-exit{color:#a23d42;border:0}.gl-tabbar{display:none}
.gl-main{width:min(1250px,calc(100% - 42px));padding-top:42px}.gl-main.gl-narrow{max-width:760px}.mast h1,.exam-heading h1{font-weight:880}.surface,.review,.history-strip,.quiz-page .card,.quiz-page .box,.quiz-page .inner,.quiz-page .c,.quiz-page .card-left,.quiz-page .panel-right{border-radius:25px;box-shadow:var(--shadow)}.button,.quiz-page .btn,.quiz-page form:not(.gl-bar form):not(#answerForm) button{border-radius:15px;min-height:49px;transition:transform .18s,box-shadow .18s,filter .18s;position:relative}.button:active,.app-mode:active,.quiz-page .btn:active{transform:scale(.98)}.button.gold{box-shadow:0 8px 20px #fcc11135}.button:hover{filter:brightness(1.04)}.choice,.option-label{border-radius:15px;min-height:57px;transition:background .18s,border .18s,transform .18s}.choice:has(:checked),.option-label:has(:checked){box-shadow:inset 4px 0 var(--blue),0 4px 15px #006db31a}.clock{border-radius:18px}.qgrid button{border-radius:12px}.metric,.prospecto-summary>div{border-radius:16px}input:not([type=hidden]):not([type=radio]),select{border-radius:13px;min-height:51px}.quiz-page .card,.quiz-page .box,.quiz-page .inner,.quiz-page .c{border-top:5px solid var(--gold)}
.dashboard{padding-top:30px}.dash-hero{min-height:280px;position:relative;overflow:hidden;isolation:isolate;display:flex;align-items:center;padding:40px 46px;border-radius:32px;border:1px solid #ffffff40;background:linear-gradient(110deg,#064371f2,#006db3aa 55%,#0b95d7aa);box-shadow:0 22px 55px -26px #002a57bb;color:#fff}.dash-hero::before{content:"";position:absolute;inset:0;z-index:-1;background:repeating-linear-gradient(120deg,transparent 0 40px,#ffffff0d 41px 42px);mask-image:linear-gradient(90deg,transparent,#000)}.dash-hero-copy{position:relative;z-index:2;max-width:75%}.dash-hero .eyebrow,.dash-section .eyebrow{color:var(--gold);letter-spacing:.16em}.dash-hero h1{font-size:clamp(2.2rem,5vw,4.1rem);font-weight:900;line-height:1.08;margin-bottom:15px;text-wrap:initial}.dash-hero h1 span{color:var(--gold)}.dash-hero p:not(.eyebrow){color:#e1f3ff;max-width:36ch}.live-dot{display:inline-block;width:8px;height:8px;background:var(--gold);border-radius:50%;margin-right:7px;box-shadow:0 0 0 4px #fcc11126;animation:dot 2.5s infinite}.hero-link{display:inline-flex;align-items:center;gap:9px;color:white;font-size:.91rem;font-weight:750;text-decoration:none;margin-top:7px}.hero-link .gl-icon{width:18px;height:18px}.orbit-art{position:absolute;width:270px;aspect-ratio:1;right:38px;top:50%;transform:translateY(-50%);display:grid;place-items:center;pointer-events:none;isolation:isolate}.orbit-ring{position:absolute;inset:14%;border:1px dashed #ffffff70;border-radius:50%;transform:rotate(-30deg) scaleY(.75);animation:orbit 12s linear infinite}.orbit-ring.ring2{inset:1%;border-style:solid;border-color:#ffffff30;animation-duration:18s;animation-direction:reverse}.orbit-core{width:43%;aspect-ratio:1;border-radius:30%;background:linear-gradient(145deg,#ffffff,#a4ddff);color:#006db3;display:grid;place-items:center;font-size:clamp(1.8rem,4vw,3.5rem);font-weight:950;letter-spacing:-.09em;box-shadow:0 12px 42px #002e6580,inset 0 0 0 2px #fff;transform:rotate(-12deg);animation:float 5s ease-in-out infinite}.orbit-sat{position:absolute;display:grid;place-items:center;width:48px;aspect-ratio:1;border-radius:15px;background:#fcc111;color:#063c6a;font-size:1.3rem;font-weight:900;box-shadow:0 9px 24px #002b5780;animation:float 5s ease-in-out infinite}.sat1{left:8%;top:15%}.sat2{right:0;bottom:23%;background:white;animation-delay:-1.5s}.sat3{left:13%;bottom:3%;width:35px;background:#71cfff;animation-delay:-3s}.dash-section{display:flex;align-items:end;justify-content:space-between;color:#fff;margin:35px 0 15px;gap:12px}.dash-section h2{margin:0;font-size:clamp(1.6rem,3vw,2.25rem)}.dash-section .eyebrow{margin:0 0 6px}.dash-section>span{font-size:.82rem;color:#d5efff;white-space:nowrap}.app-mode-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.app-mode{--accent:#006db3;--tile:#e8f5ff;position:relative;display:flex;flex-direction:column;overflow:hidden;padding:20px;border:1px solid #ffffffa0;border-radius:25px;background:#fff;color:var(--ink);text-decoration:none;box-shadow:var(--shadow);transition:transform .25s,box-shadow .25s;isolation:isolate;min-width:0}.app-mode::after{content:"";position:absolute;width:140px;aspect-ratio:1;right:-55px;top:40px;border:1px solid var(--accent);border-radius:35%;transform:rotate(30deg);opacity:.07;z-index:-1}.mode-quiz{--accent:#9a6500;--tile:#fff3c8}.mode-book{--accent:#006db3;--tile:#dff3ff}.mode-math{--accent:#075386;--tile:#e1edff}.mode-top{display:flex;align-items:center;justify-content:space-between;gap:5px}.mode-chip{color:var(--accent);background:var(--tile);font-size:.65rem;font-weight:850;letter-spacing:.03em;border-radius:20px;padding:6px 9px}.mode-number{font-size:.77rem;font-weight:800;color:#8aa5bc}.mode-symbol{width:83px;aspect-ratio:1;display:grid;place-items:center;border-radius:24px;margin:22px auto 24px;background:linear-gradient(145deg,var(--tile),#fff);color:var(--accent);position:relative;transform:rotate(-8deg);box-shadow:0 9px 18px #00477a15;transition:transform .3s}.mode-symbol .gl-icon{width:43px;height:43px;stroke-width:1.7}.mode-symbol i{width:15px;height:15px;border-radius:6px;background:var(--gold);position:absolute;top:-5px;right:-5px;transform:rotate(20deg)}.app-mode h2{font-size:clamp(1.25rem,1.8vw,1.6rem);font-weight:850;line-height:1.15;margin:0 0 8px;text-wrap:balance}.app-mode p{font-size:.87rem;color:var(--muted);margin:0 0 19px;line-height:1.45}.mode-action{border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:7px;margin-top:auto;padding-top:13px;color:var(--blue);font-size:.83rem}.mode-action>span{width:33px;height:33px;display:grid;place-items:center;background:var(--tile);border-radius:11px;flex:none}.mode-action .gl-icon{width:19px;height:19px}.history-strip{display:flex;align-items:center;justify-content:flex-start;gap:14px;border:1px solid #fff8;margin-top:16px;padding:16px 20px}.history-icon{display:grid;place-items:center;width:45px;height:45px;border-radius:14px;background:var(--pale);color:var(--blue);flex:none}.history-strip>svg:last-child{margin-left:auto;color:var(--blue)}
.login-page{padding:28px}.login-shell{max-width:1140px;grid-template-columns:1.18fr 1fr;border-radius:34px;border:1px solid #ffffff70;box-shadow:0 28px 100px #002e6370}.login-intro{padding:clamp(26px,4vw,52px);gap:26px;min-height:650px;background:linear-gradient(140deg,#063f70,#006db3 66%,#0789cb)}.login-hero{position:relative;isolation:isolate}.login-hero h1{font-size:clamp(3.5rem,5.8vw,5.7rem);line-height:.94;position:relative;z-index:1;letter-spacing:-.08em;margin:15px 0 20px}.login-hero>p{position:relative;z-index:1}.login-hero .orbit-art{width:210px;right:-3px;top:59%;opacity:.83;z-index:-1}.login-facts{display:grid;grid-template-columns:1fr 1fr;gap:10px;border-top:0;padding:0}.login-facts>span{display:grid;grid-template-columns:31px 1fr;column-gap:8px;align-items:center;border:1px solid #ffffff32;background:#ffffff0e;border-radius:14px;padding:11px 10px}.login-facts svg{grid-row:span 2;color:var(--gold);width:23px;height:23px}.login-facts b{font-size:.8rem;line-height:1.22}.login-facts small{font-size:.69rem;color:#d1eaff;line-height:1.3}.login-form{padding:clamp(24px,4vw,56px)}.login-form-mark{display:grid;place-items:center;background:var(--pale);color:var(--blue);border-radius:18px;width:55px;height:55px;margin-bottom:20px}.login-form h2{letter-spacing:-.06em}.login-form .eyebrow{font-size:.72rem}.login-form input{background:#f8fbff}.password-wrap{position:relative}.password-wrap input{padding-right:50px!important}.password-wrap button{position:absolute;right:6px;top:5px;width:41px;height:41px;border:0;background:transparent;color:var(--blue);border-radius:10px}.password-wrap button:hover{background:var(--pale)}.login-foot{font-size:.65rem!important;font-weight:750;letter-spacing:.08em;margin:27px 0 0!important;text-align:center}.login-form .button{min-height:54px}
/* Entrenamiento rápido */
.drill-main{max-width:970px}.drill-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;color:#fff;margin-bottom:18px}.drill-heading h1{font-size:clamp(2rem,4.5vw,3.5rem);margin:0}.drill-heading .eyebrow{color:var(--gold);margin-bottom:7px}.drill-heading .clock{display:flex;align-items:center;gap:10px;min-width:104px}.drill-heading .clock .gl-icon{width:23px;height:23px}.drill-heading .clock b{font-size:1.55rem}.drill-heading .clock.urgent{border-color:#d13d45;color:#a42a31}.drill-progress{display:flex;align-items:center;gap:12px;color:#fff;font-size:.84rem;font-weight:750;margin-bottom:17px}.drill-progress progress{flex:1;height:9px;margin:0;background:#ffffff44}.drill-progress progress::-webkit-progress-bar{background:#ffffff44}.drill-progress progress::-webkit-progress-value{background:var(--gold)}.drill-progress progress::-moz-progress-bar{background:var(--gold)}.drill-q{animation:question-in .35s ease both}.drill-q .qmeta{align-items:center}.drill-q .qmeta span:last-child{background:var(--pale);padding:5px 11px;border-radius:20px}.drill-q .question-text{margin:12px 0 18px}.drill-options{display:grid;gap:10px;margin:21px 0}.drill-option{display:flex;align-items:center;gap:13px;width:100%;text-align:left;min-height:58px;border:1px solid var(--line);background:#f7fbff;color:var(--ink);border-radius:17px;padding:11px 15px;font-weight:650;white-space:pre-line;transition:transform .15s,border .15s,background .15s}.drill-option .option-letter{width:35px;height:35px;display:grid;place-items:center;border:1px solid #c7deef;background:#fff;border-radius:11px;flex:none}.drill-option:hover:not(:disabled){border-color:var(--blue);background:var(--pale);transform:translateX(3px)}.drill-option.correct{background:#dff5e8;border-color:#7fc49d;color:#155e42}.drill-option.wrong{background:#fde8e6;border-color:#e7a49f;color:#8b3333}.drill-option:disabled{opacity:1;cursor:default}.drill-option.is-neutral{opacity:.66}.drill-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.drill-actions form{margin:0}.drill-feedback{padding:15px;border:1px solid var(--line);background:var(--pale);border-radius:16px;margin-bottom:15px;font-weight:750}.drill-feedback.good{background:#e0f6e9;color:#155e42;border-color:#a4d7b7}.drill-feedback.bad{background:#fff2db;color:#805300;border-color:#f0d5a3}.drill-start-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:15px}.drill-start-grid .surface{margin:0}.drill-topic-list{display:flex;flex-wrap:wrap;gap:7px;margin:15px 0}.drill-topic-list span{background:var(--pale);color:var(--blue);padding:7px 10px;border-radius:12px;font-size:.8rem;font-weight:750}.drill-start-grid .button{margin-top:18px}.drill-result{text-align:center}.result-medal{display:grid;place-items:center;width:88px;height:88px;background:var(--gold);color:#063e69;border-radius:28px;margin:0 auto 20px;box-shadow:0 10px 35px #fcc11166;animation:question-in .5s ease both}.result-medal svg{width:47px;height:47px}.drill-score{font-size:clamp(3rem,10vw,5rem);font-weight:900;line-height:1;color:var(--blue);letter-spacing:-.09em;margin:15px 0}.drill-result .metrics{grid-template-columns:repeat(3,minmax(0,1fr));margin:20px 0}.drill-result .button{margin:8px 4px}.drill-review{margin-top:18px}
@keyframes ambient{to{transform:translate(-5%,8%) scale(1.2)}}@keyframes dot{50%{box-shadow:0 0 0 7px #fcc1110d}}@keyframes orbit{to{transform:rotate(330deg) scaleY(.75)}}@keyframes float{0%,100%{translate:0 0}50%{translate:0 -9px}}@keyframes question-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(hover:hover){.app-mode:hover{transform:translateY(-7px);box-shadow:0 26px 48px -15px #002f62a0}.app-mode:hover .mode-symbol{transform:rotate(3deg) scale(1.08)}.app-mode:hover .mode-action>span{background:var(--gold);color:var(--navy)}.gl-desktop-nav a:hover{background:#ffffff18;text-decoration:none}}
@media(max-width:1100px){.gl-bar .gl-desktop-nav{display:none}.gl-account{margin-left:auto}.gl-tabbar{display:flex;position:fixed;z-index:35;bottom:0;left:0;right:0;background:#073f70f5;backdrop-filter:blur(24px);border-top:1px solid #ffffff30;padding:7px max(8px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));justify-content:space-evenly;gap:3px;box-shadow:0 -10px 30px #002b5a38}.gl-tabbar a{color:#d5eaff;text-decoration:none;display:flex;flex:1;max-width:160px;min-width:0;align-items:center;justify-content:center;flex-direction:column;gap:3px;min-height:52px;border-radius:15px;font-size:.7rem;font-weight:750;line-height:1.15}.gl-tabbar a svg{width:23px;height:23px;stroke-width:1.8}.gl-tabbar a[aria-current]{background:#ffffff16;color:var(--gold)}.gl-tabbar a[aria-current] svg{filter:drop-shadow(0 0 7px #fcc11150)}body:has(.gl-tabbar){padding-bottom:calc(82px + env(safe-area-inset-bottom))}.app-mode-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.app-mode{padding:23px}.mode-symbol{margin:17px 0}.dash-hero-copy{max-width:80%}}
@media(max-width:640px){html{scroll-padding-top:76px}.gl-bar-inner{width:calc(100% - 24px);min-height:63px;padding:8px 0;flex-wrap:nowrap;gap:7px}.gl-brand{font-size:.96rem;gap:7px}.gl-brand img,.gl-monogram{width:35px;height:35px}.gl-user{max-width:115px;padding:4px 8px 4px 4px;font-size:.81rem;gap:5px}.gl-avatar{display:grid;width:25px;height:25px}.gl-avatar .gl-icon{width:15px;height:15px}.gl-account-menu summary{width:32px;height:32px}.gl-tabbar a{font-size:.64rem;min-height:48px}.gl-main{width:calc(100% - 24px);padding:19px 0 22px}.dashboard{padding-top:16px}.dash-hero{min-height:232px;padding:23px 19px;border-radius:25px;align-items:start}.dash-hero-copy{max-width:100%}.dash-hero h1{font-size:clamp(1.85rem,6.7vw,2.8rem);max-width:100%;margin-bottom:12px}.dash-hero p:not(.eyebrow){max-width:65%;font-size:.87rem}.dash-hero .orbit-art{width:122px;right:9px;top:auto;bottom:-6px;transform:none;opacity:.9}.orbit-sat{width:28px;font-size:.8rem;border-radius:9px}.sat3{width:22px}.orbit-core{font-size:1.65rem}.hero-link{font-size:.78rem;margin-top:3px}.dash-section{margin:24px 0 12px;align-items:center}.dash-section h2{font-size:1.45rem}.dash-section .eyebrow{font-size:.62rem}.dash-section>span{font-size:.69rem}.app-mode-grid{gap:10px}.app-mode{padding:13px;border-radius:21px;min-height:238px}.mode-chip{font-size:.56rem;padding:5px 6px;line-height:1.2}.mode-number{font-size:.65rem}.mode-symbol{width:59px;border-radius:17px;margin:15px 0}.mode-symbol .gl-icon{width:31px;height:31px}.mode-symbol i{width:11px;height:11px}.app-mode h2{font-size:1.12rem;letter-spacing:-.04em}.app-mode p{font-size:.77rem;margin-bottom:12px}.mode-action{font-size:.7rem;padding-top:9px}.mode-action>span{width:26px;height:26px;border-radius:9px}.mode-action .gl-icon{width:16px;height:16px}.history-strip{padding:12px 13px;border-radius:19px;gap:10px}.history-strip small{font-size:.75rem}.history-icon{width:37px;height:37px}.history-icon svg{width:19px;height:19px}.surface,.review,.quiz-page .card,.quiz-page .box,.quiz-page .inner,.quiz-page .c,.quiz-page .card-left,.quiz-page .panel-right{border-radius:22px;padding:18px}.review{padding:0}.quiz-page .site-wrap,.quiz-page .wrap,.quiz-page main{width:calc(100% - 24px);margin:18px auto 24px}.quiz-page .container{gap:11px}.quiz-page .question-header{gap:8px}.quiz-page .btn,.button{min-height:49px}.exam-heading{gap:10px}.exam-heading h1{font-size:1.75rem}.clock b{font-size:1.1rem}.step-buttons .button{flex:1}.editor-course{padding:10px}.editor-course input,.editor-course select{font-size:16px!important}.login-page{padding:12px;display:block}.login-shell{display:flex;flex-direction:column;max-width:480px;border-radius:26px}.login-intro{min-height:0;padding:22px 19px 18px;gap:17px}.login-hero h1{font-size:clamp(2.6rem,11vw,3.7rem);margin:8px 0 13px;line-height:.96}.login-hero h1 br{display:block}.login-hero .orbit-art{width:132px;right:1px;top:64%}.login-hero p:not(.eyebrow){font-size:.8rem;max-width:65%}.login-hero .eyebrow{font-size:.65rem}.login-facts{display:grid;gap:7px}.login-facts>span{padding:8px 7px;grid-template-columns:21px 1fr;column-gap:5px;border-radius:11px}.login-facts svg{width:17px;height:17px}.login-facts b{font-size:.69rem}.login-facts small{font-size:.61rem}.login-form{padding:23px 20px}.login-form-mark{display:none}.login-form h2{font-size:2rem}.login-foot{margin:18px 0 0!important}.drill-heading{align-items:center}.drill-heading h1{font-size:1.8rem}.drill-heading .clock{min-width:80px;padding:7px 9px;gap:5px}.drill-heading .clock .gl-icon{width:17px;height:17px}.drill-heading .clock b{font-size:1.2rem}.drill-start-grid{grid-template-columns:1fr}.drill-options{gap:8px;margin:15px 0}.drill-option{padding:9px 11px;min-height:55px;font-size:.94rem}.drill-option .option-letter{width:31px;height:31px}.drill-actions{gap:8px}.drill-actions .button{min-height:47px}.drill-result .metric{padding:10px 5px}.drill-result .metric span{font-size:.72rem}.drill-result .metric b{font-size:1.65rem}}
@media(max-width:350px){.gl-brand>span:last-child{font-size:.84rem}.gl-user{max-width:84px}.app-mode{padding:10px}.mode-chip{font-size:.52rem}.mode-number{display:none}.dash-hero .orbit-art{width:100px}.login-facts b{font-size:.64rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}body{background-attachment:scroll}}
@media(max-width:640px){.login-hero .orbit-art{width:115px;right:2px;top:54%}.login-hero p:not(.eyebrow){max-width:65%;position:relative;z-index:2}.login-form{width:100%;align-self:stretch}.login-form .button{margin-top:20px}}

/* ES-TU-DIA · diseño compacto, iconográfico y táctil */
:root{--success-live:#008947;--error-live:#dc2344;--tile-bg:#fff;--mx:50%;--my:20%}
.estudia-brand{display:inline-flex!important;flex-direction:column;align-items:center;justify-content:center;gap:5px!important;line-height:1;color:#fff!important;text-decoration:none;flex:none;white-space:nowrap!important;letter-spacing:0!important}
.estudia-word{display:flex;align-items:center;justify-content:center;font-size:clamp(1.35rem,2.5vw,1.9rem);font-weight:950;letter-spacing:-.065em;line-height:1;white-space:nowrap;font-family:var(--sans)}
.estudia-word i{font-style:normal;color:var(--gold);display:inline-block;overflow:hidden;width:.42em;text-align:center;animation:estudia-hyphen 5.8s cubic-bezier(.65,0,.35,1) infinite;flex:none}
.estudia-sub{font-size:.51rem!important;font-weight:800;letter-spacing:.19em;white-space:nowrap;color:#e3f4ff}
@keyframes estudia-hyphen{0%,25%,85%,100%{width:.42em;opacity:1}43%,67%{width:0;opacity:0}}
.gl-bar .gl-desktop-nav a{display:flex;align-items:center;gap:5px;font-size:.77rem;white-space:nowrap}.gl-desktop-nav .gl-icon{width:17px;height:17px}.gl-section{display:none}.gl-bar-inner{gap:13px}.gl-tabbar a{transition:background .2s,transform .2s}.gl-tabbar a:active{transform:scale(.92)}
.estudia-dashboard{max-width:1060px}.estudia-welcome{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 20px;color:#fff}.estudia-welcome .eyebrow{color:var(--gold);font-size:.67rem;letter-spacing:.15em;margin:0 0 6px}.estudia-welcome h1{font-size:clamp(1.8rem,4vw,3.25rem);line-height:1.05;margin:0;text-wrap:balance}.welcome-emblem{display:grid;place-items:center;width:64px;aspect-ratio:1;border-radius:22px;background:#ffffff1b;color:var(--gold);border:1px solid #ffffff40;flex:none;transform:rotate(-8deg);box-shadow:0 10px 25px #02345a44}.welcome-emblem svg{width:36px;height:36px;animation:estudia-bob 4s ease-in-out infinite}
.estudia-modes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.estudia-tile{--accent:#006db3;--light:#ddf3ff;--deep:#00518e;--shine:#80dcff;position:relative;isolation:isolate;min-width:0;min-height:235px;display:flex;flex-direction:column;justify-content:space-between;gap:10px;padding:15px;background:#fff;color:#0c3357;text-decoration:none;border:1px solid #ffffffb0;border-radius:25px;box-shadow:0 15px 30px -14px #002c56a0;overflow:hidden;transition:transform .24s cubic-bezier(.2,.8,.2,1),box-shadow .24s;animation:estudia-enter .55s cubic-bezier(.2,.8,.2,1) both}.estudia-tile:nth-child(2){animation-delay:.07s}.estudia-tile:nth-child(3){animation-delay:.14s}.estudia-tile:nth-child(4){animation-delay:.21s}.estudia-tile.mode-quiz{--accent:#ffd03f;--light:#fff1b9;--deep:#b27600;--shine:#fff4a8}.estudia-tile.mode-book{--accent:#00a2c8;--light:#dbfaff;--deep:#006a9c;--shine:#a5fff2}.estudia-tile.mode-math{--accent:#234ed4;--light:#e5ebff;--deep:#14318d;--shine:#98b9ff}.tile-art{position:relative;isolation:isolate;display:grid;place-items:center;min-height:126px;border-radius:18px;background:radial-gradient(ellipse at 70% 15%,#fff9,transparent 48%),var(--light);overflow:hidden}.tile-art::before{content:"";position:absolute;inset:0;background-image:linear-gradient(90deg,#fff8 1px,transparent 1px),linear-gradient(#fff8 1px,transparent 1px);background-size:22px 22px;mask-image:radial-gradient(ellipse,#000,transparent 77%);z-index:-1}.tile-icon{position:relative;display:grid;place-items:center;width:79px;height:79px;transform:rotate(-9deg);border-radius:24px;color:#fff;background:linear-gradient(145deg,var(--shine),var(--accent) 42%,var(--deep));box-shadow:0 9px 0 var(--deep),0 15px 22px #00345e45,inset 0 2px 3px #ffffffa0;animation:estudia-bob 4.3s ease-in-out infinite}.mode-quiz .tile-icon{color:#624300}.tile-icon svg{width:49px;height:49px;stroke-width:2;filter:drop-shadow(0 2px 1px #0002)}.tile-orbit{position:absolute;width:132px;height:74px;border:1px dashed var(--accent);border-radius:50%;opacity:.4;transform:rotate(-32deg)}.tile-orb{position:absolute;width:19px;height:19px;border-radius:50%;top:12%;right:13%;background:linear-gradient(135deg,#fff,var(--accent));box-shadow:0 4px 8px #00436e30;animation:estudia-bob 3.6s ease-in-out infinite reverse}.tile-spark{position:absolute;bottom:12%;left:13%;font-size:1.5rem;color:var(--deep);animation:estudia-spark 3s ease-in-out infinite}.tile-info{display:flex;flex-direction:column;gap:4px;padding:0 26px 0 1px;min-width:0}.tile-info strong{font-size:clamp(1rem,1.8vw,1.25rem);font-weight:850;letter-spacing:-.045em;line-height:1.1}.tile-info small{font-size:.73rem;font-weight:650;color:#46617e;line-height:1.2}.tile-arrow{position:absolute;right:13px;bottom:13px;border-radius:50%;display:grid;place-items:center;width:27px;height:27px;background:var(--light);color:var(--deep)}.tile-arrow svg{width:15px;height:15px}.estudia-tile:active{transform:scale(.97)}
@keyframes estudia-enter{from{opacity:.15;transform:translateY(14px) scale(.97)}to{opacity:1;transform:none}}@keyframes estudia-bob{0%,100%{transform:translateY(0) rotate(-7deg)}50%{transform:translateY(-6px) rotate(1deg)}}@keyframes estudia-spark{0%,100%{opacity:.7;transform:scale(.85)}50%{opacity:1;transform:scale(1.15)}}
.estudia-history-link{padding:13px 15px!important;justify-content:flex-start;gap:12px;margin-top:13px;border-radius:20px!important}.estudia-history-link>.gl-icon:last-child{margin-left:auto;color:var(--blue)}.estudia-history-link strong{font-size:1rem}.estudia-history-link .history-icon{background:#e1f4ff;color:var(--blue)}
/* Portada pública: cuatro módulos y una única acción */
body.estudia-landing{display:grid;place-items:center;padding:24px 18px;min-height:100svh}.estudia-front{width:min(100%,980px);margin:auto;display:grid;gap:28px}.front-brand{display:flex;justify-content:center;padding:8px 0 6px}.front-brand .estudia-word{font-size:clamp(3.2rem,9vw,5.8rem);color:#fff;letter-spacing:-.08em}.front-brand .estudia-sub{font-size:.76rem!important;letter-spacing:.28em}.front-modes{min-width:0}.front-cta{display:flex;align-items:center;justify-content:center;gap:20px;color:#fff}.front-cta h1{font-size:clamp(1.6rem,4.5vw,2.5rem);margin:0}.login-launch{padding:14px 25px;min-width:180px;box-shadow:0 9px 0 #ba8600,0 16px 30px #00457c80;font-weight:850!important}.login-launch:active{transform:translateY(4px);box-shadow:0 4px 0 #ba8600}.estudia-login-dialog{border:1px solid #fff9;border-radius:28px;width:min(420px,calc(100% - 28px));max-height:calc(100svh - 28px);background:#fff;color:var(--ink);box-shadow:0 28px 100px #001d50a0;overflow:auto;margin:auto}.estudia-login-dialog[open]{animation:access-enter .28s cubic-bezier(.2,.85,.2,1)}.estudia-login-dialog::backdrop{background:#001d43ad;backdrop-filter:blur(10px)}.estudia-login-dialog[open]:not(:modal){position:fixed;inset:0;z-index:100;box-shadow:0 0 0 100vmax #00284eb8}.access-panel{position:relative;width:100%;padding:25px!important;align-self:stretch}.access-close{position:absolute;right:16px;top:13px;width:39px;height:39px;display:grid;place-items:center;background:#eaf5ff;color:var(--blue);font-size:1.7rem;line-height:1;text-decoration:none;border-radius:13px}.access-icon{width:58px;height:58px;border-radius:19px;display:grid;place-items:center;background:linear-gradient(150deg,#39b8f4,#006db3);box-shadow:0 8px 22px #006db347;color:white;margin:0 auto 14px}.access-icon svg{width:31px;height:31px}.access-panel h2{text-align:center;font-size:1.85rem;margin:0 0 20px;letter-spacing:-.05em}.access-panel label{margin:13px 0 5px!important}.access-panel input:not([type=hidden]){min-height:52px;background:#f4f9ff;border-color:#c8dcea;border-radius:14px}.access-panel .button{margin-top:21px;min-height:52px}.access-panel .password-wrap button{top:5px}.access-panel .notice{font-size:.85rem}@keyframes access-enter{from{opacity:0;transform:translateY(18px) scale(.94)}to{opacity:1;transform:none}}
/* Quiz y pantallas de configuración */
.quiz-page .quiz-start{max-width:760px;margin:24px auto 40px;padding:0}.quiz-modes{grid-template-columns:repeat(2,minmax(0,1fr))}.quiz-modes .tile-art{min-height:160px}.quiz-time-note{display:flex;align-items:center;justify-content:center;gap:8px;color:#fff;margin:20px 0 0;font-weight:700}.quiz-time-note svg{width:20px;height:20px}.setup-title{display:flex;align-items:center;gap:12px;margin-bottom:15px}.setup-title>.gl-icon{width:42px;height:42px;padding:9px;border-radius:14px;background:var(--pale);color:var(--blue);flex:none}.setup-title h2{font-size:1.45rem;margin:0}.drill-heading{margin-bottom:17px}.drill-start-grid .drill-topic-list span{font-size:.73rem;padding:5px 9px}.drill-start-grid .quiet{font-size:.85rem}
/* Aciertos y errores saturados, letras blancas y contraste legible */
.drill-option.correct,.drill-feedback.good,.review-options li.right,.quiz-page .option-label.correct,.quiz-page .step.correct{background:var(--success-live)!important;border-color:var(--success-live)!important;color:#fff!important;box-shadow:none!important}.drill-option.wrong,.drill-feedback.bad,.review-options li.wrong,.quiz-page .option-label.wrong,.quiz-page .step.wrong{background:var(--error-live)!important;border-color:var(--error-live)!important;color:#fff!important;box-shadow:none!important}.drill-option.correct .option-letter,.drill-option.wrong .option-letter,.quiz-page .option-label.correct .option-letter,.quiz-page .option-label.wrong .option-letter,.quiz-page .option-label.correct .letter,.quiz-page .option-label.wrong .letter{background:#ffffff24!important;color:#fff!important;border-color:#ffffff88!important}.quiz-page .option-label.correct input,.quiz-page .option-label.wrong input{accent-color:#fff}.review-options li.right small,.review-options li.wrong small{color:#fff}.drill-option.correct,.drill-option.wrong{animation:estudia-feedback .3s ease-out}.drill-option.is-neutral{opacity:.8}.qgrid .answered{background:#e0f3ff;color:#005e9a;border-color:#acd5ed}@keyframes estudia-feedback{0%{transform:scale(.98)}65%{transform:scale(1.01)}100%{transform:scale(1)}}
/* Historial: cuatro métricas en una única fila incluso a 320px */
.history-page .mast h1{font-size:clamp(1.9rem,4vw,3rem);margin:0}.history-page .history-list{gap:11px}.history-page .history-item{padding:16px;gap:10px 20px;border-radius:21px;grid-template-columns:minmax(0,1fr) minmax(300px,1.25fr)}.history-page .history-item h2{font-size:1.15rem;font-weight:850;line-height:1.15}.history-page .history-kicker{display:flex;align-items:center;gap:6px;font-size:.65rem;color:var(--blue);letter-spacing:.07em}.history-kicker svg{width:21px;height:21px;padding:3px;border-radius:6px;background:#e6f3ff}.history-page .history-item .quiet{font-size:.75rem}.history-metrics{display:grid!important;grid-template-columns:repeat(3,minmax(0,.85fr)) minmax(0,1.55fr)!important;gap:6px!important;align-items:stretch}.history-metrics .metric{min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;border:none;padding:9px 4px!important;border-radius:12px;overflow:visible}.metric.good{background:var(--success-live);color:#fff}.metric.bad{background:var(--error-live);color:#fff}.metric.empty{background:#e4f1ff;color:#104c7c}.metric.score{background:#006db3;color:#fff}.history-metrics .metric span{font-size:.66rem;white-space:nowrap;font-weight:700}.history-metrics .metric b,.history-item .history-metrics .metric b{font-size:clamp(.84rem,1.65vw,1.22rem);font-weight:850;white-space:nowrap;letter-spacing:-.035em;margin-top:3px;line-height:1.25;font-variant-numeric:tabular-nums}.history-metrics .metric.score b,.history-item .history-metrics .metric.score b{font-size:clamp(.72rem,1.45vw,1.04rem);letter-spacing:-.04em}.history-page .history-item .text-link{font-size:.78rem;min-height:33px;margin-top:4px}.history-page .history-item .metric.score{box-shadow:0 4px 12px #006db329}.history-page .history-tools .tabs{background:#ffffff22;border:1px solid #ffffff44}.history-page .history-tools .tabs a{color:#fff}.history-page .history-tools .tabs a[aria-current]{background:var(--gold);color:#12314d}.history-page .review summary{font-size:.86rem}.history-page .review summary span{font-size:.72rem}
@media(hover:hover){.estudia-tile:hover{transform:translateY(-5px);box-shadow:0 22px 35px -13px #002754b5}.estudia-tile:hover .tile-arrow{background:var(--gold);color:#183b54}.estudia-tile:hover .tile-icon{animation-play-state:paused;transform:translateY(-4px) rotate(0)}.history-page .history-item:hover{border-color:var(--gold)}}
@media(max-width:1100px){.estudia-modes{grid-template-columns:repeat(2,minmax(0,1fr))}.estudia-tile{min-height:215px}.estudia-dashboard{max-width:720px}.estudia-front{max-width:680px}.history-page .history-item{grid-template-columns:1fr}}
@media(max-width:640px){.gl-bar-inner{gap:6px}.estudia-brand{gap:4px!important}.estudia-word{font-size:1.36rem}.estudia-sub{font-size:.44rem!important;letter-spacing:.16em}.gl-user{max-width:105px}.estudia-dashboard{padding-top:17px}.estudia-welcome{margin-bottom:13px}.estudia-welcome h1{font-size:1.65rem}.estudia-welcome .eyebrow{font-size:.59rem}.welcome-emblem{width:43px;border-radius:15px}.welcome-emblem svg{width:25px;height:25px}.estudia-modes{gap:9px}.estudia-tile{padding:9px;min-height:169px;border-radius:19px;gap:7px}.tile-art{min-height:98px;border-radius:14px}.tile-icon{width:61px;height:61px;border-radius:18px;box-shadow:0 6px 0 var(--deep),0 10px 15px #00345e45,inset 0 2px 3px #fff9}.tile-icon svg{width:39px;height:39px}.tile-orbit{width:103px;height:52px}.tile-orb{width:13px;height:13px}.tile-spark{font-size:1.1rem}.tile-info{padding-right:18px;gap:4px}.tile-info strong{font-size:1rem}.tile-info small{font-size:.64rem}.tile-arrow{width:20px;height:20px;right:7px;bottom:9px}.tile-arrow svg{width:12px;height:12px}.estudia-history-link{margin-top:10px!important;padding:10px 12px!important}.estudia-history-link .history-icon{width:33px;height:33px}.estudia-history-link strong{font-size:.92rem}body.estudia-landing{padding:17px 12px;align-items:center}.estudia-front{gap:19px;max-width:440px}.front-brand .estudia-word{font-size:3.65rem}.front-brand .estudia-sub{font-size:.61rem!important}.front-cta{flex-direction:column;gap:10px}.front-cta h1{font-size:1.6rem}.login-launch{width:100%;min-height:49px}.access-panel{padding:23px 19px!important}.quiz-page .quiz-start{margin-top:16px}.quiz-modes .tile-art{min-height:112px}.quiz-modes .estudia-tile{min-height:185px}.history-page .history-item{padding:12px;gap:7px}.history-metrics{gap:4px!important}.history-metrics .metric{padding:8px 2px!important;border-radius:9px}.history-metrics .metric span{font-size:.59rem}.history-metrics .metric b,.history-item .history-metrics .metric b{font-size:.9rem}.history-metrics .metric.score b,.history-item .history-metrics .metric.score b{font-size:.75rem}.history-page .history-item h2{font-size:1.04rem}.history-page .history-item .quiet{font-size:.71rem}.drill-heading h1{font-size:1.75rem}.drill-heading .clock{min-width:75px}.setup-title{margin-bottom:12px}.setup-title h2{font-size:1.28rem}}
@media(max-width:350px){.estudia-word{font-size:1.2rem}.front-brand .estudia-word{font-size:3.2rem}.estudia-tile{min-height:155px}.tile-art{min-height:88px}.tile-info strong{font-size:.9rem}.tile-info small{font-size:.59rem}.tile-icon{width:53px;height:53px}.tile-icon svg{width:34px;height:34px}.history-metrics .metric span{font-size:.52rem}.history-metrics .metric.score b,.history-item .history-metrics .metric.score b{font-size:.66rem}.history-page .history-item{padding:10px}.gl-user{max-width:78px}}
/* ESTUDIA — iconografía editorial premium y revisión automática */
.estudia-tile,.estudia-tile.mode-quiz,.estudia-tile.mode-book,.estudia-tile.mode-math{--accent:#006db3;--light:#edf6fc;--deep:#00528b;--shine:#e7f5ff}
.tile-art{background:radial-gradient(ellipse at 50% 55%,#fff,#e9f4fb 85%);min-height:135px;border:1px solid #e2eff8}
.tile-art:before,.tile-orbit,.tile-orb,.tile-spark{display:none!important}
.tile-icon,.mode-quiz .tile-icon{width:116px;height:116px;max-width:100%;background:none;box-shadow:none;border-radius:0;transform:none;animation:none;transition:transform .3s cubic-bezier(.2,.8,.2,1)}
.gl-mode-art{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;filter:none;flex-shrink:0}
.setup-title>.gl-mode-art{width:54px;height:54px}
.tile-arrow{background:#e9f4fb;color:#006db3}
.auto-next{display:grid;gap:8px;margin-top:16px;padding:13px 15px;background:#eaf5fc;border:1px solid #cde4f5;border-radius:12px;color:#07578c;font-size:.85rem;font-weight:650;text-align:center}
.auto-next progress{width:100%;height:5px;border:0;border-radius:9px;overflow:hidden;appearance:none;background:#cce4f5;color:#006db3;accent-color:#006db3}
.auto-next progress::-webkit-progress-bar{background:#cce4f5}.auto-next progress::-webkit-progress-value{background:#006db3}.auto-next progress::-moz-progress-bar{background:#006db3}
.answer-tag{display:block;font-size:.7rem;font-weight:800;line-height:1.3;margin-top:4px;color:inherit;letter-spacing:.01em}
.drill-option.correct,.drill-option.wrong,.quiz-page .option-label.correct,.quiz-page .option-label.wrong{opacity:1!important}.quiz-page .option-label.correct .option-text,.quiz-page .option-label.wrong .option-text{color:white!important}
.drill-option.is-marked,.quiz-page .option-label.is-marked{outline:2px solid #fcc111;outline-offset:2px}.drill-feedback span{display:block;font-size:.79rem;margin-top:3px}
@media(hover:hover){.estudia-tile:hover .tile-icon{transform:translateY(-3px) scale(1.045)}}
@media(max-width:640px){.tile-art{min-height:100px}.tile-icon,.mode-quiz .tile-icon{width:91px;height:91px}.quiz-modes .tile-icon{width:100px;height:100px}.setup-title>.gl-mode-art{width:44px;height:44px}}
@media(max-width:350px){.tile-art{min-height:86px}.tile-icon,.mode-quiz .tile-icon{width:78px;height:78px}}
@media(prefers-reduced-motion:reduce){.tile-icon{transition:none!important}.estudia-tile:hover .tile-icon{transform:none!important}}
.history-kicker .gl-mode-art{width:27px;height:27px}
