[hidden]{display:none!important}
:root{--navy:#0d2345;--navy2:#143458;--blue:#154c8e;--teal:#008f9c;--tealLight:#e8f7f7;--text:#152940;--muted:#617185;--border:#dfe7ef;--bg:#f5f8fc;--white:#fff;--shadow:0 15px 45px rgba(21,48,79,.075);--radius:18px;--bad:#a52b3c;--good:#15765c}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--bg);color:var(--text);font:16px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}main{flex:1}.shell{width:min(1150px,calc(100% - 40px));margin:0 auto}.topbar{background:var(--navy);color:#fff;min-height:82px}.topbar-inner{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:16px 0}.brand{display:flex;align-items:center;gap:12px}.brand-mark{height:44px;width:44px;border:2px solid #9fd8d9;border-radius:12px;display:grid;place-items:center;font:700 27px Georgia,serif;color:#c0eeec;background:rgba(255,255,255,.04)}.brand-main{display:block;font-weight:800;letter-spacing:.07em;font-size:12px}.brand-sub{display:block;font-size:11px;color:#bdd1e4;letter-spacing:.035em}.topbar-tag{color:#dbf0f2;border:1px solid #406585;border-radius:100px;padding:6px 13px;font-size:11px;font-weight:800;letter-spacing:.09em;white-space:nowrap}.content{padding:55px 0 70px}.welcome-layout{display:grid;grid-template-columns:1fr .93fr;gap:64px;align-items:center;min-height:600px}.eyebrow{font-size:12px;font-weight:800;letter-spacing:.11em;text-transform:uppercase;color:var(--teal);display:flex;align-items:center;gap:8px}.dot{display:inline-block;width:7px;height:7px;background:#07aab6;border-radius:50%}h1{font-size:clamp(38px,5.6vw,64px);letter-spacing:-.046em;line-height:1.09;margin:22px 0;font-weight:780;color:var(--navy)}h1 em{font-style:normal;color:var(--teal)}.lead{color:#495f74;max-width:520px;font-size:18px;line-height:1.75}.features{display:flex;gap:14px;flex-wrap:wrap;margin:30px 0 28px}.features span{display:flex;align-items:center;gap:8px;padding:9px 12px;background:white;border:1px solid var(--border);font-size:13px;font-weight:700;color:var(--navy);border-radius:10px}.features svg{width:17px;height:17px;fill:none;stroke:var(--teal);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.note{background:#eef5fb;border-left:3px solid var(--teal);color:#50647a;border-radius:0 10px 10px 0;padding:17px 18px;font-size:13px;line-height:1.7}.note strong{color:#1a4a70}.card{background:var(--white);border:1px solid #e3ebf3;border-radius:var(--radius);box-shadow:var(--shadow)}.register-card{padding:36px 39px 38px}.circle-number{font-size:14px;font-weight:800;letter-spacing:.05em;color:var(--teal);margin-bottom:12px}.circle-number span{font-size:12px;font-weight:500;color:#8190a0}.register-card h2{font-size:25px;line-height:1.23;color:var(--navy);margin:0 0 10px;letter-spacing:-.025em}.muted{color:var(--muted)}.register-card .muted{font-size:13px;margin:0 0 20px}label{display:block;font-size:13px;font-weight:750;color:#33465b;margin:19px 0 7px}input{width:100%;background:#fbfdff;border:1px solid #d5e0eb;border-radius:10px;min-height:48px;padding:10px 13px;color:var(--text);outline:none}input:focus{border-color:#168da1;box-shadow:0 0 0 4px #dcf7f6}input::placeholder{color:#94a3b1}.btn{border:0;border-radius:10px;padding:11px 18px;min-height:44px;font-weight:750;font-size:14px;transition:transform .1s,background .15s;text-decoration:none;display:inline-flex;justify-content:center;align-items:center;gap:11px}.btn:not(:disabled):active{transform:scale(.985)}.btn.primary{background:var(--navy);color:white}.btn.primary:hover:not(:disabled){background:#164e78}.btn.secondary{background:#f0f5f8;color:#203e57;border:1px solid #d9e3ec}.btn.secondary:hover:not(:disabled){background:#e3edf5}.btn.wide{width:100%;margin-top:13px}.mode-message{font-size:12px;margin:19px 0 8px;color:var(--muted);background:#f5f8fb;padding:10px 12px;border-radius:8px}.mode-message.pilot{color:#845d20;background:#fff7e7}.error-message{font-size:13px;color:var(--bad);margin:11px 0}.footer{border-top:1px solid #e1e8ef;padding:20px 0;color:#748599;font-size:12px}.footer-inner{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}.exam-meta{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.exam-title{font-size:clamp(32px,4vw,45px);margin:9px 0 1px}.student-inline{font-size:13px;color:var(--muted);margin:7px 0}.meta-counters{display:flex;gap:12px}.counter{background:#fff;border:1px solid var(--border);padding:11px 17px;border-radius:11px;min-width:126px}.counter>span{display:block;color:var(--muted);font-size:11px}.counter>strong{display:block;color:var(--navy);font-size:20px;letter-spacing:-.025em}.counter.danger strong{color:var(--bad)}.progress-track{height:7px;background:#e5edf3;border-radius:20px;margin:27px 0 11px;overflow:hidden}.progress-track span{height:100%;width:4%;display:block;background:linear-gradient(90deg,#008f9c,#2c65a4);transition:width .25s}.progress-label{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted);font-weight:700;margin-bottom:19px}.exam-layout{display:grid;grid-template-columns:minmax(280px,.9fr) minmax(0,1.1fr);gap:20px;align-items:start}.exam-layout.no-passage{grid-template-columns:minmax(0,1fr)}.passage{padding:28px;position:sticky;top:16px;max-height:80vh;overflow-y:auto}.passage h3{color:var(--navy);font-size:21px;line-height:1.25;margin:0 0 12px}.passage p{font-size:15px;line-height:1.84;color:#35485b;margin:0 0 17px}.passage .caption{font-size:11px;color:var(--muted);overflow-wrap:anywhere;margin-top:8px}.passage img{display:block;max-height:340px;max-width:100%;width:auto;margin:auto;object-fit:contain;border-radius:6px}.passage .passage-note{font-size:12px;color:#627487;font-weight:700}.question{padding:34px 36px}.question-kicker{font-size:12px;font-weight:900;color:var(--teal);letter-spacing:.12em}.question h2{margin:13px 0 25px;font-size:clamp(20px,2.4vw,26px);line-height:1.38;color:var(--navy);letter-spacing:-.02em;font-weight:740}.options{display:flex;flex-direction:column;gap:12px}.option{width:100%;min-height:59px;background:#fff;text-align:left;border:1.5px solid #dce5ed;border-radius:12px;display:flex;align-items:center;gap:13px;padding:12px 14px;color:#31485b;line-height:1.45}.option:hover:not(:disabled){background:#f5fbfe;border-color:#99bcc9}.option .letter{background:#f0f4f8;border:1px solid #d9e4ed;flex:0 0 32px;width:32px;height:32px;display:grid;place-items:center;font-size:13px;font-weight:800;border-radius:8px;color:#3e6477;text-transform:uppercase}.option.selected{background:#eefafb;border-color:#0695a2;box-shadow:0 0 0 1px #0695a2}.option.selected .letter{background:var(--teal);color:#fff;border-color:var(--teal)}.option.invalid{opacity:.5}.save-feedback{font-size:12px;color:var(--good);min-height:22px;margin:16px 0 0}.question-footer{display:flex;justify-content:space-between;gap:13px;margin-top:9px;padding-top:18px;border-top:1px solid #eaf0f4}.footnote{font-size:12px;color:#718295;text-align:center;margin:20px 0}.finish-wrap{display:flex;align-items:center;justify-content:center;min-height:520px}.result-card{width:min(640px,100%);padding:43px;text-align:center}.result-card .eyebrow{justify-content:center}.result-card h1{font-size:36px}.result-icon{background:#e8f8f4;color:var(--good);display:grid;place-items:center;width:55px;height:55px;border-radius:50%;font-size:25px;margin:0 auto 18px}.result-grade{margin:28px auto;padding:23px;background:#f4f9fa;border:1px solid #e0ecf1;border-radius:14px;display:grid;gap:2px;max-width:270px}.result-grade span{font-size:12px;color:var(--muted)}.result-grade strong{font-size:54px;color:var(--navy);line-height:1.15}.result-card .note{text-align:left}.overlay{position:fixed;inset:0;z-index:20;background:rgba(7,21,39,.77);display:flex;align-items:center;justify-content:center;padding:18px}.overlay[hidden]{display:none}.lock-card{padding:34px;max-width:450px;width:100%;text-align:center}.lock-card label{text-align:left}.lock-card h2{font-size:27px;color:var(--navy)}.lock-card p{font-size:14px;color:#4f6379}.lock-icon{width:50px;height:50px;border-radius:50%;background:#fee9ed;color:var(--bad);font-size:27px;font-weight:850;display:grid;place-items:center;margin:0 auto}.admin-content{padding:45px 0 60px}.login-card{max-width:500px;margin:50px auto;padding:38px}.login-card h1{font-size:42px}.login-card .muted{font-size:14px}.admin-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.level-tabs{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0 24px}.level-tab{border:1px solid #d7e4ed;background:white;border-radius:10px;padding:11px 19px;font-weight:750;color:#597187}.level-tab.active{background:var(--navy);color:white;border-color:var(--navy)}.level-tab small{font-size:10px;margin-left:7px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:19px}.stat{padding:18px 22px}.stat span{display:block;color:#586f84;font-size:12px;font-weight:750}.stat strong{display:block;color:var(--navy);font-size:30px;margin:2px 0}.stat small{display:block;color:#8b9bab;font-size:12px}.admin-table-wrap{padding:22px}.table-header{display:flex;justify-content:space-between;align-items:center;gap:15px}.table-header h2{margin:0;color:var(--navy);font-size:20px}.table-header p{margin:2px 0;color:var(--muted);font-size:12px}.search-form{display:flex;gap:9px;margin:19px 0}.search-form input{max-width:500px}.table-scroll{overflow:auto;width:100%}table{border-collapse:collapse;width:100%;min-width:670px;font-size:13px}th{font-size:11px;text-transform:uppercase;letter-spacing:.065em;color:#657c8d;background:#f4f7fa;font-weight:850;text-align:left}td,th{border-bottom:1px solid #edf1f4;padding:13px 11px;vertical-align:top}td{color:#455d71}td strong{color:var(--navy)}.pill{display:inline-block;border-radius:30px;background:#eff3f6;color:#546b81;padding:4px 9px;font-size:11px;font-weight:750;white-space:nowrap}.pill.ok{background:#e6f7f0;color:#197254}.pill.locked{background:#fdebef;color:#a52b3c}.table-link{border:0;color:#006e89;background:transparent;font-weight:800;text-decoration:underline;padding:0;cursor:pointer}.table-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:17px;font-size:12px;color:var(--muted)}.table-pager>div{display:flex;gap:6px}.btn.small{font-size:12px;min-height:35px;padding:6px 12px}.detail-panel{padding:25px;margin-top:23px}.detail-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.detail-heading h2{font-size:23px;color:var(--navy);margin:3px 0}.detail-heading .muted{font-size:12px;margin:3px 0}.detail-summary{display:flex;gap:18px;padding:14px 15px;border-radius:10px;background:#f4f8fb;margin:20px 0;font-size:13px;flex-wrap:wrap}.detail-summary strong{color:var(--navy)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}@media(max-width:850px){.welcome-layout{grid-template-columns:1fr;gap:24px;min-height:initial}.welcome-copy{max-width:660px}.content{padding:35px 0 45px}.exam-layout,.exam-layout.no-passage{grid-template-columns:1fr}.passage{position:static;max-height:none}.exam-meta{align-items:stretch;flex-direction:column}.meta-counters{flex-wrap:wrap}.question{padding:24px}.stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:560px){.shell{width:min(100% - 26px,1150px)}.topbar-tag{font-size:9px;padding:5px 8px}.brand-main{font-size:10px}.brand-sub{font-size:9px}.brand-mark{width:35px;height:35px;font-size:22px}.topbar{min-height:68px}.welcome-copy h1{font-size:41px}.lead{font-size:15px}.register-card{padding:26px 23px}.features{gap:8px}.features span{font-size:12px}.counter{flex:1;padding:8px 11px;min-width:100px}.counter strong{font-size:19px}.passage,.question{padding:20px}.question h2{font-size:21px}.question-footer .btn{padding:9px 11px;font-size:12px}.stats{grid-template-columns:1fr}.admin-heading{flex-direction:column}.table-header{align-items:flex-start;flex-direction:column}.result-card{padding:28px 20px}.result-card h1{font-size:30px}.footer-inner{font-size:11px}}

/* Protección disuasoria durante el examen; no sustituye la vigilancia presencial. */
body.exam-protected, body.exam-protected *:not(input) {user-select:none;-webkit-user-select:none;}
.exception-entry{margin-top:18px;border-top:1px solid var(--border);padding-top:13px}
.exception-entry .btn.secondary{font-size:12px;min-height:45px}
.exception-form{margin-top:13px;background:#f6fafb;border:1px solid #d8e7e9;border-radius:12px;padding:16px}
.exception-form .muted{font-size:12px;line-height:1.6;margin:0}
.question-footer{justify-content:flex-end}

.brand-logo{width:104px;height:48px;object-fit:contain;background:#fff;padding:5px 8px;border-radius:10px;}
@media(max-width:560px){.brand-logo{width:76px;height:39px;padding:4px}}

/* V3: transparencia del resultado y disuasión, sin afirmar que bloqueamos capturas del sistema. */
.result-metrics {display:grid;grid-template-columns:1fr 1fr;gap:14px;text-align:left;margin:23px 0}
.metric {border:1px solid var(--border);border-radius:14px;padding:18px;background:#fff}
.metric-top {display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:13px;color:var(--muted)}
.metric-top strong {color:var(--text)}
.metric-percent {font-size:28px;font-weight:850;color:var(--good);line-height:1.35;margin-top:8px}
.metric.wrong .metric-percent {color:var(--bad)}
.metric-track {height:9px;background:#edf2f6;overflow:hidden;border-radius:99px;margin-top:12px}
.metric-track span {display:block;height:100%;background:var(--good);border-radius:99px}
.metric.wrong .metric-track span {background:var(--bad)}
.result-explainer {background:#f3f8fc;border:1px solid #deebf1;border-radius:12px;padding:18px;text-align:left;font-size:14px;line-height:1.55;margin:0 0 20px}
.result-explainer strong {color:var(--navy)}
.result-explainer p {margin:9px 0 5px}
.result-explainer p:empty {display:none}
.result-explainer small {color:var(--muted)}
/* Marca discreta e individual: disuade compartir material, pero no evita capturas. */
body.exam-protected #question-card,body.exam-protected #passage {position:relative;isolation:isolate}
body.exam-protected #question-card::before,body.exam-protected #passage::before {
  content:attr(data-watermark);position:absolute;left:12%;right:12%;top:44%;z-index:4;
  color:rgba(11,73,112,.10);font-size:clamp(16px,2.2vw,29px);font-weight:900;
  text-transform:uppercase;letter-spacing:.025em;transform:rotate(-20deg);
  white-space:nowrap;overflow:hidden;text-align:center;pointer-events:none;
}
@media(max-width:560px){.result-metrics{gap:8px}.metric{padding:12px}.metric-percent{font-size:24px}}

/* V4 · navegación por nivel y PDF individual */
.level-tab:not(:disabled){cursor:pointer}.level-tab:focus-visible{outline:3px solid #56b3bd;outline-offset:2px}
.course-notice{background:#fff7e7;border:1px solid #ead7a0;color:#76591f;padding:14px 18px;border-radius:12px;font-size:13px;line-height:1.65;margin:12px 0 22px}
.table-actions,.detail-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.table-actions .pdf{color:#08635f}
.btn:disabled,.table-link:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:560px){.detail-heading{align-items:flex-start;flex-direction:column}.table-actions{gap:10px}}

/* Descarga masiva V5 · estilos aislados */
.admin-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center;justify-content:flex-end}
.bulk-panel{margin:14px 0;padding:16px;border-radius:12px;border:1px solid #c9e5e7;background:#f2fbfc}
.bulk-panel[hidden],.bulk-notice[hidden]{display:none}
.bulk-top{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#123a54;font-size:14px}
.bulk-progress-track{height:10px;background:#d8e9f0;border-radius:20px;overflow:hidden;margin:12px 0}
.bulk-progress-track span{display:block;width:0;height:100%;background:#008f9c;transition:width .22s}
.bulk-note{font-size:12px;color:#526879;margin:0;line-height:1.5}
.bulk-notice{border-left:3px solid #008f9c;padding:10px 14px;background:#f2fbfa;font-size:13px;color:#164b53;margin:14px 0}
@media(max-width:650px){.admin-actions{width:100%;justify-content:stretch}.admin-actions .btn{flex:1 1 170px}.bulk-top{align-items:flex-start;flex-direction:column}}

/* V6: descarga confirmable en cualquier Chrome de escritorio */
.bulk-ready{margin:15px 0;padding:15px 17px;border:1px solid #96d3b6;background:#edfaf3;border-radius:13px}
.bulk-ready[hidden],#bulk-error[hidden]{display:none!important}
.bulk-ready .bulk-notice{border:0;background:transparent;padding:0;margin:0 0 12px;color:#124a3c;font-size:14px}
.bulk-ready-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;min-height:44px;background:#125d48!important;color:white!important}
.bulk-ready-help{font-size:12px;color:#45665b;margin:10px 0 0;line-height:1.5}
#bulk-error{margin:12px 0;padding:12px 14px;border:1px solid #eab1a8;background:#fff5f3;color:#8b2b28;border-radius:8px}
.bulk-ready-help kbd{padding:2px 6px;border:1px solid #a7c8bb;border-radius:4px;background:#fff}

/* Comunicación Oral y Escrita II: respuesta de escritura, mismo sistema visual V6 */
.writing-entry{margin-top:6px}
.writing-entry[hidden]{display:none}
.writing-entry label{margin:0 0 10px;font-weight:750;color:var(--navy)}
.writing-entry textarea{display:block;width:100%;min-height:150px;resize:vertical;border:1.5px solid #d6e4ec;border-radius:13px;padding:15px;color:var(--text);background:#fbfdff;font:inherit;line-height:1.6;outline:0}
.writing-entry textarea:focus{border-color:var(--teal);box-shadow:0 0 0 4px #e8f7f7}
.writing-entry textarea:disabled{opacity:.6}
.writing-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0;flex-wrap:wrap}
.writing-controls small{color:var(--muted)}
.rubric-notice{background:#f2f8fa;border:1px solid #dce9ec;padding:10px 12px;border-radius:8px;font-size:12px;line-height:1.6;color:#50647a}
.result-writing{font-weight:750;color:var(--navy);font-size:14px}
