:root{--bg:#eef3fa;--surface:#fff;--surface-soft:#f7f9fd;--text:#15213a;--muted:#647089;--primary:#3157d5;--accent:#6d4ce8;--border:#dce4f0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:var(--bg);line-height:1.55}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at top left,#f8faff 0,#edf2f9 42%,#eaf0f8 100%);min-height:100vh}.container{width:min(1120px,calc(100% - 32px));margin:32px auto}.narrow{max-width:760px}.site-header,.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px max(24px,calc((100% - 1120px)/2));background:#0f1b32;color:#fff;box-shadow:0 4px 18px rgba(14,26,48,.16)}.site-header a,.topbar a{color:#fff;text-decoration:none}.brand{display:inline-flex;align-items:center;min-width:0}.brand img{display:block;width:min(360px,58vw);height:58px;object-fit:contain;object-position:left center}.topbar nav{display:flex;gap:18px;flex-wrap:wrap}.hero{background:linear-gradient(135deg,#17294f,#3157d5 62%,#6d4ce8);color:#fff;border-radius:24px;padding:34px;box-shadow:0 24px 60px rgba(32,58,112,.18);margin-bottom:24px}.hero h1{font-size:clamp(2rem,5vw,3.25rem);line-height:1.08;margin:0 0 10px}.hero p{margin:0;color:rgba(255,255,255,.82)}.mode-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:24px}.mode-button{border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.11);color:#fff;padding:18px;border-radius:16px;text-align:left;cursor:pointer}.mode-button strong{display:block;font-size:1.05rem}.mode-button span{display:block;color:rgba(255,255,255,.72);font-size:.9rem;margin-top:3px}.mode-button.active{background:#fff;color:var(--text);box-shadow:0 14px 35px rgba(5,17,45,.2)}.mode-button.active span{color:var(--muted)}.panel,.card,.question,.result-group,.auth-card{background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:24px;box-shadow:0 14px 35px rgba(30,48,80,.07)}.auth-card{width:min(480px,calc(100% - 28px));margin:8vh auto}.section-title{display:flex;justify-content:space-between;align-items:end;gap:18px;margin:28px 0 16px}.section-title h2{margin:0;font-size:1.55rem}.section-title p{margin:0;color:var(--muted)}.group-block{margin:26px 0}.group-heading{display:flex;align-items:center;gap:10px;margin-bottom:12px}.group-heading h2{margin:0}.group-count{background:#e8edff;color:#2949b1;padding:4px 9px;border-radius:999px;font-size:.8rem;font-weight:800}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:16px}.card{cursor:pointer;transition:.2s}.card:hover{transform:translateY(-3px);border-color:#a9b9ef;box-shadow:0 20px 42px rgba(30,48,80,.12)}.card h3,.card h2{margin-top:0}.meta{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.pill{background:#f0f3f9;color:#556176;padding:5px 9px;border-radius:999px;font-size:.82rem;font-weight:700}label{display:block;font-weight:700;margin:14px 0}input,textarea,select{display:block;width:100%;margin-top:7px;padding:12px;border:1px solid #bcc8da;border-radius:10px;font:inherit;background:#fff}button,.button{border:0;border-radius:10px;background:linear-gradient(135deg,var(--primary),var(--accent));color:#fff;padding:12px 18px;font-weight:800;cursor:pointer;text-decoration:none;display:inline-block}button.secondary,.button.secondary{background:#e8edf6;color:var(--text)}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.alert{padding:13px 15px;border-radius:10px;margin:15px 0}.error{background:#fff0f0;color:#8d1e1e}.success{background:#eaf9ef;color:#186232}.reserve-toggle{display:flex;align-items:center;gap:12px;margin:0;padding:14px 16px;background:var(--surface-soft);border:1px solid var(--border);border-radius:14px}.reserve-toggle input{width:20px;height:20px;margin:0;flex:0 0 auto}.reserve-toggle span{font-weight:750}.custom-box{display:grid;grid-template-columns:1fr 180px auto;gap:14px;align-items:end}.custom-box label{margin:0}.annulled{background:#fff7ea;border:1px solid #f2cf94;padding:13px;border-radius:11px;margin:14px 0}.annulled ul{margin:6px 0 0}.amazon-banner{width:min(1120px,calc(100% - 32px));margin:22px auto 0;background:#fff;border:1px solid var(--border);border-radius:18px;padding:16px;display:grid;grid-template-columns:120px minmax(0,1fr) auto;align-items:center;gap:22px;box-shadow:0 12px 30px rgba(30,48,80,.07);overflow:visible}.amazon-banner .promo-image{display:block;width:100%;max-width:120px;height:auto!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;object-position:center;border-radius:12px;background:#fff}.amazon-copy{min-width:0}.amazon-copy strong{display:block}.amazon-copy p{margin:4px 0;color:var(--muted)}.amazon-label{font-size:.75rem;text-transform:uppercase;letter-spacing:.06em;color:#6a7488}.question h2{font-size:1.25rem}.answer{display:block;border:1px solid #cfd8e7;border-radius:12px;padding:14px;margin:10px 0;cursor:pointer;font-weight:550}.answer:hover{border-color:#879ee9;background:#f8faff}.answer input{display:inline;width:auto;margin-right:8px}.progress{height:10px;background:#e2e8f2;border-radius:20px;overflow:hidden;margin-bottom:18px}.progress span{display:block;height:100%;background:linear-gradient(90deg,var(--primary),var(--accent))}.case-context{white-space:pre-wrap;background:#f7f9fc;border-left:4px solid var(--primary);padding:18px;border-radius:8px}.result-group{margin:15px 0}.result-group summary{font-weight:800;cursor:pointer}.review-item{border-top:1px solid #e3e7ee;padding:15px 0}.correct-text{color:#1d7a4a}.site-footer{text-align:center;padding:28px 18px;color:var(--muted)}.affiliate-note{font-size:.85rem}.tracking-pixel{position:absolute!important;width:1px!important;height:1px!important;opacity:0;pointer-events:none}[hidden]{display:none!important}@media(max-width:760px){.mode-switch{grid-template-columns:1fr}.custom-box{grid-template-columns:1fr}.amazon-banner{grid-template-columns:84px minmax(0,1fr);align-items:center;padding:10px;gap:12px}.amazon-banner .promo-image{grid-column:1;grid-row:1/3;width:84px;max-width:84px;height:auto!important;max-height:112px!important;aspect-ratio:auto!important;object-fit:contain!important;border-radius:10px;background:#fff}.amazon-copy{grid-column:2;grid-row:1;padding:0;min-width:0}.amazon-copy strong{font-size:.98rem;line-height:1.25}.amazon-copy p{font-size:.86rem;line-height:1.35;margin:5px 0 0}.amazon-label{font-size:.7rem}.amazon-banner .button{grid-column:2;grid-row:2;width:auto;justify-self:start;text-align:center;padding:9px 14px;font-size:.88rem}.site-header,.topbar{align-items:flex-start;flex-direction:column}.hero{padding:25px}.section-title{align-items:flex-start;flex-direction:column}}

/* Identidad visual Tests PS84 v1.2.4 */
.site-header{min-height:84px;background:linear-gradient(110deg,#0a132a,#111f43 55%,#192552)}
.admin-brand{display:inline-flex;align-items:center}
.admin-brand img{display:block;width:260px;height:48px;object-fit:contain;object-position:left center}
.topbar{min-height:72px;background:linear-gradient(110deg,#0a132a,#111f43 55%,#192552)}
.hero{position:relative;overflow:hidden}
.hero:after{content:"";position:absolute;width:240px;height:240px;border-radius:50%;right:-85px;top:-95px;background:radial-gradient(circle,rgba(91,216,255,.28),rgba(113,85,247,0) 68%);pointer-events:none}

/* Respuestas visuales: el radio sigue siendo accesible, pero no se muestra */
.answer{position:relative;display:grid;grid-template-columns:42px minmax(0,1fr) 32px;align-items:center;gap:13px;min-height:62px;margin:12px 0;padding:13px 15px;border:2px solid #d3dced;border-radius:15px;background:#fff;cursor:pointer;font-weight:650;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease,transform .18s ease}
.answer:hover{transform:translateY(-1px);border-color:#8299ed;background:#f8faff;box-shadow:0 9px 24px rgba(49,87,213,.10)}
.answer-input{position:absolute!important;inline-size:1px!important;block-size:1px!important;opacity:0!important;pointer-events:none;margin:0!important}
.answer-key{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#edf1f8;color:#46546d;font-size:.9rem;font-weight:900;transition:.18s ease}
.answer-text{min-width:0}
.answer-check{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#dfe6f2;color:transparent;font-weight:950;transition:.18s ease}
.answer:has(.answer-input:checked){border-color:#5a63e8;background:linear-gradient(135deg,#eef7ff,#f3efff);box-shadow:0 12px 30px rgba(83,86,218,.16)}
.answer:has(.answer-input:checked) .answer-key{background:linear-gradient(135deg,#3157d5,#8153ed);color:#fff;box-shadow:0 5px 13px rgba(76,81,218,.24)}
.answer:has(.answer-input:checked) .answer-check{background:#21a769;color:#fff}
.answer:focus-within{outline:3px solid rgba(70,119,239,.25);outline-offset:2px}

/* Listados completos de preguntas */
.question-full{padding:0;overflow:hidden}
.question-number{margin:0;padding:13px 18px;background:linear-gradient(135deg,#edf4ff,#f5efff);border-bottom:1px solid var(--border);font-size:1rem}
.question-full .review-item{border-top:0;padding:18px}
.question-full .review-item h3{margin-top:0;font-size:1.06rem}
.section-context{margin:14px 0 20px}
.section-context>strong{display:block;margin-bottom:8px}
.result-group>h2{margin:0 0 12px;font-size:1.2rem}
.result-group+.result-group{margin-top:18px}

@media(max-width:760px){
 .brand img{width:min(320px,78vw);height:52px}
 .admin-brand img{width:235px;height:43px}
 .answer{grid-template-columns:36px minmax(0,1fr) 28px;padding:12px;gap:10px}
 .answer-key{width:34px;height:34px}
}

/* Portada oficial más intuitiva */
.official-filter{padding:26px}
.corps-selector{max-width:520px;margin:0}
.corps-selector select{font-size:1rem;font-weight:750;padding:14px 46px 14px 15px;background-color:#fff;cursor:pointer}
.official-list{margin-top:26px;padding-top:22px;border-top:1px solid var(--border)}
.official-list .group-heading{justify-content:space-between}
.official-list .cards{margin-top:14px}
.official-list .card button{margin-top:auto}
.official-list .card{display:flex;flex-direction:column}
.reserve-note{display:inline-flex;align-items:center;gap:7px;margin:0 0 16px;padding:7px 10px;border-radius:9px;background:#f3f5fa;color:#69758c;font-size:.84rem;font-weight:650}
.reserve-note:before{content:"R";display:grid;place-items:center;width:20px;height:20px;border-radius:6px;background:#e2e7f2;color:#4e5d78;font-size:.72rem;font-weight:900}
@media(max-width:760px){
 .official-filter{padding:20px}
 .official-list .group-heading{align-items:flex-start}
}

/* Convocatorias divididas por partes */
.exam-part-list{display:grid;gap:18px;margin-top:16px}
.exam-entry{background:#fff;border:1px solid var(--border);border-radius:16px;padding:20px;box-shadow:var(--shadow)}
.exam-entry-head h3{margin:9px 0 15px}
.part-buttons{display:grid;gap:9px}
.part-button{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left;background:#f7f8fc;color:var(--text);border:1px solid #dfe4ee;padding:14px 16px}
.part-button:hover{background:#eef2ff;border-color:#bfc9e8;transform:translateY(-1px)}
.part-button span:first-child{display:grid;gap:3px}
.part-button small{font-weight:600;color:var(--muted)}
.topic-picker{grid-column:1/-1;border:1px solid var(--border);border-radius:14px;padding:16px;background:#fafbfe}
.topic-picker-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.topic-picker p{margin:5px 0 13px;color:var(--muted);font-size:.92rem}
.text-button{width:auto;padding:5px 8px;background:transparent;color:var(--primary);box-shadow:none;border:0;font-size:.88rem}
.topic-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:9px}
.topic-option{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:9px;padding:10px 12px;border:1px solid #dfe4ee;border-radius:10px;background:#fff;cursor:pointer}
.topic-option input{width:18px;height:18px;margin:0}
.topic-option span{font-weight:700}
.topic-option small{color:var(--muted)}
.question-topic-form{display:flex;align-items:end;gap:10px;margin:12px 0;padding:10px;border-radius:10px;background:#f5f7fb}
.question-topic-form label{flex:1;margin:0}
.question-topic-form button{width:auto;white-space:nowrap}
@media(max-width:650px){
 .exam-entry{padding:16px}
 .topic-options{grid-template-columns:1fr}
 .question-topic-form{display:grid}
 .question-topic-form button{width:100%}
}

/* Lectura y consulta de supuestos */
.case-intro{max-width:1180px}
.case-context-formatted{font-size:1.02rem;line-height:1.78}
.case-context-formatted p{margin:0 0 1.15em}
.case-context-formatted p:last-child{margin-bottom:0}
.case-context-formatted .case-lead{font-size:1.08em;font-weight:560}
.case-context-formatted strong{font-weight:800;color:#142b58}
.case-reference{max-width:980px;margin:0 auto 18px;border:1px solid var(--border);border-radius:14px;background:#fff;box-shadow:var(--shadow)}
.case-reference summary{cursor:pointer;list-style:none;padding:15px 18px;font-weight:800;color:var(--primary);display:flex;align-items:center;justify-content:space-between}
.case-reference summary::-webkit-details-marker{display:none}
.case-reference summary:after{content:"+";display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#eef2ff;font-size:1.2rem}
.case-reference[open] summary:after{content:"−"}
.case-reference[open] summary{border-bottom:1px solid var(--border)}
.case-reference .case-context{margin:0;border:0;border-radius:0;background:#f8faff;padding:22px 24px}
@media(max-width:760px){
 .case-context-formatted{font-size:.97rem;line-height:1.68}
 .case-reference .case-context{padding:18px}
}

/* Corrección de visibilidad del texto de las respuestas */
.answer{color:var(--text)!important}
.answer .answer-text{
  display:block!important;
  min-width:0;
  color:var(--text)!important;
  opacity:1!important;
  visibility:visible!important;
  font-size:1rem;
  font-weight:600;
  line-height:1.5;
  white-space:normal;
  overflow-wrap:anywhere;
}
.answer-input:checked + .answer-key + .answer-text{
  color:var(--text)!important;
}
.answer:hover .answer-text{
  color:var(--text)!important;
}

/* Estadísticas v1.3.0 */
.mode-switch{grid-template-columns:repeat(3,minmax(0,1fr))}.statistics-filter .section-title{margin-top:0}.statistics-rule,.statistics-footnote{color:var(--muted);font-size:.9rem}.statistics-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:30px 0 18px}.statistics-head h2{margin:0}.statistics-head p{margin:4px 0 0;color:var(--muted)}.top-topic{background:#edf0ff;color:#2949b1;border-radius:999px;padding:9px 13px;font-size:.88rem}.stat-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.stat-cards article{background:linear-gradient(145deg,#f8faff,#eef2ff);border:1px solid var(--border);border-radius:15px;padding:18px}.stat-cards span{display:block;color:var(--muted);font-size:.84rem;font-weight:700}.stat-cards strong{display:block;font-size:1.8rem;line-height:1.1;margin-top:5px}.stats-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:18px 0}.stat-panel{background:var(--surface-soft);border:1px solid var(--border);border-radius:16px;padding:20px}.stat-panel-wide{margin:18px 0}.stat-title{display:flex;align-items:end;justify-content:space-between;gap:14px;margin-bottom:18px}.stat-title h3{margin:0;font-size:1.15rem}.stat-title span{color:var(--muted);font-size:.82rem}.stat-bar-row{margin:13px 0}.stat-bar-label{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:end;font-size:.92rem}.stat-bar-label span{min-width:0;line-height:1.35;overflow-wrap:anywhere}.stat-bar-label strong{white-space:nowrap}.stat-bar-label small{color:var(--muted);font-weight:600}.stat-bar-track{display:block!important;width:100%!important;height:9px!important;border-radius:999px!important;overflow:hidden!important;margin-top:6px!important}.syllabus-block-list{display:grid;gap:10px}.syllabus-block{background:#fff;border:1px solid var(--border);border-radius:14px;overflow:hidden}.syllabus-block summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;padding:15px 17px;cursor:pointer;list-style:none}.syllabus-block summary::-webkit-details-marker{display:none}.syllabus-block summary::before{content:'›';grid-column:1;grid-row:1;align-self:center;width:18px;font-size:1.35rem;font-weight:800;color:var(--primary);transition:transform .18s ease}.syllabus-block[open] summary::before{transform:rotate(90deg)}.syllabus-block-name{grid-column:1;grid-row:1;padding-left:25px;min-width:0}.syllabus-block-name strong,.syllabus-block-name small{display:block}.syllabus-block-name small{color:var(--muted);margin-top:2px}.syllabus-block-total{grid-column:2;grid-row:1;text-align:right;white-space:nowrap}.syllabus-block-total b,.syllabus-block-total small{display:block}.syllabus-block-total b{font-size:1.15rem}.syllabus-block-total small{color:var(--muted);font-size:.75rem}.syllabus-block-topics{border-top:1px solid var(--border);padding:5px 14px 11px}.syllabus-topic-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:11px 3px;border-bottom:1px solid var(--border)}.syllabus-topic-row:last-child{border-bottom:0}.syllabus-code{background:#e8edff;color:#2949b1;border-radius:8px;padding:5px 7px;font-weight:800;font-size:.8rem}.syllabus-topic-copy{min-width:0}.syllabus-topic-copy strong{display:block;line-height:1.35}.syllabus-topic-row>b{font-size:1.05rem;white-space:nowrap}.stats-table-wrap{overflow:auto;border:1px solid var(--border);border-radius:12px;background:#fff}.stats-table{width:100%;border-collapse:collapse;min-width:760px}.stats-table th,.stats-table td{border-bottom:1px solid var(--border);padding:11px 12px;text-align:center}.stats-table thead th{background:#f0f4fa;position:sticky;top:0;z-index:1}.stats-table tbody th{text-align:left;min-width:210px}.stats-table th small{display:block;max-width:170px;color:var(--muted);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stats-table tr:last-child th,.stats-table tr:last-child td{border-bottom:0}@media(max-width:820px){.mode-switch{grid-template-columns:1fr}.stat-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-grid{grid-template-columns:1fr}.statistics-head{align-items:flex-start;flex-direction:column}.top-topic{border-radius:10px}}@media(max-width:480px){.stat-cards{grid-template-columns:1fr 1fr}.stat-cards article{padding:14px}.stat-cards strong{font-size:1.45rem}.stat-panel{padding:15px}.stat-title{align-items:flex-start;flex-direction:column;gap:2px}}
@media(max-width:600px){.syllabus-block summary{padding:13px 12px;gap:10px}.syllabus-block-name{padding-left:22px}.syllabus-topic-row{grid-template-columns:auto minmax(0,1fr) auto;gap:8px}.syllabus-code{font-size:.72rem;padding:4px 6px}}
.ranking-list{display:grid}.ranking-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--border)}.ranking-row:last-child{border-bottom:0}.ranking-position{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#e8edff;color:#2949b1;font-weight:800;font-size:.82rem}.ranking-label{min-width:0;line-height:1.35;overflow-wrap:anywhere}.ranking-value{display:flex;align-items:baseline;gap:6px;white-space:nowrap;font-size:1.05rem}.ranking-value small{color:var(--muted);font-weight:600;font-size:.82rem}@media(max-width:520px){.ranking-row{grid-template-columns:30px minmax(0,1fr) auto;gap:8px}.ranking-position{width:25px;height:25px}.ranking-value{gap:4px}}

.stat-panel-primary{background:linear-gradient(180deg,#f8faff 0%,var(--surface-soft) 100%)}
.stats-grid-balanced{align-items:start}
.stats-grid-balanced>.stat-panel{height:auto}
.statistics-footnote{margin-top:18px}
@media(min-width:821px){
  .stat-panel-primary .stat-bar-row{margin:11px 0}
}

@media(max-width:980px) and (min-width:821px){
  .amazon-banner{grid-template-columns:110px minmax(0,1fr);gap:16px}
  .amazon-banner .promo-image{width:100%;max-width:110px;height:auto!important;aspect-ratio:auto!important}
  .amazon-banner .button{grid-column:1/-1;width:100%;text-align:center}
}

@media(max-width:390px){
  .amazon-banner{grid-template-columns:72px minmax(0,1fr);gap:10px;padding:9px}
  .amazon-banner .promo-image{width:72px;max-width:72px;max-height:96px!important}
  .amazon-copy strong{font-size:.92rem}
  .amazon-copy p{font-size:.8rem}
  .amazon-banner .button{padding:8px 12px;font-size:.82rem}
}

/* Progreso local y consentimiento */
.resume-card{width:min(1120px,100%);margin:0 auto 20px;padding:18px 20px;border:1px solid #cfd8f5;border-radius:16px;background:linear-gradient(135deg,#f4f7ff,#fff);display:flex;align-items:center;justify-content:space-between;gap:22px;box-shadow:var(--shadow)}
.resume-card h2{margin:4px 0;font-size:1.2rem}.resume-card p{margin:0;color:var(--muted)}.resume-label{font-size:.76rem;text-transform:uppercase;letter-spacing:.06em;font-weight:800;color:var(--primary)}.resume-actions{display:flex;gap:9px;flex-wrap:wrap}.resume-actions button{white-space:nowrap}
.consent-overlay{position:fixed;inset:0;z-index:9999;background:rgba(12,22,45,.62);display:grid;place-items:center;padding:20px;backdrop-filter:blur(3px)}
.consent-dialog{width:min(560px,100%);max-height:calc(100vh - 40px);overflow:auto;background:#fff;border-radius:18px;padding:24px;box-shadow:0 24px 70px rgba(0,0,0,.3)}
.consent-dialog h2{margin:0 0 12px}.consent-dialog p{line-height:1.55}.consent-detail{color:var(--muted);font-size:.92rem}.consent-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:20px}.consent-links{font-size:.84rem;text-align:center;margin:18px 0 0}.danger-button{background:#a72323!important}
.legal-links{display:flex;justify-content:center;align-items:center;gap:14px;flex-wrap:wrap;margin-top:10px;font-size:.88rem}.legal-links a,.legal-links button{color:inherit;text-decoration:underline;background:none;border:0;padding:0;font:inherit;cursor:pointer;width:auto}.legal-links button:hover,.legal-links a:hover{color:var(--primary)}
@media(max-width:650px){.resume-card{align-items:flex-start;flex-direction:column;padding:16px}.resume-actions{width:100%}.resume-actions button{flex:1}.consent-dialog{padding:20px}.consent-actions{display:grid}.consent-actions button{width:100%}}

.legal-page{max-width:940px}.legal-document{line-height:1.7}.legal-document h1{margin-top:0}.legal-document h2{margin-top:1.7em;font-size:1.25rem}.legal-document code{font-size:.84rem;overflow-wrap:anywhere}.legal-table-wrap{overflow:auto}.legal-table{width:100%;border-collapse:collapse;min-width:680px}.legal-table th,.legal-table td{text-align:left;vertical-align:top;border:1px solid var(--border);padding:11px}.legal-table th{background:var(--surface-soft)}


/* =========================================================
   TESTS PS84 v1.4.0 · RENOVACIÓN VISUAL — FASE 1
   ========================================================= */
:root{
  color-scheme:dark;
  --bg:#050c1c;--bg-elevated:#08142a;--surface:#0d1b36;--surface-soft:#101f3c;
  --surface-hover:#152849;--surface-strong:#172b50;--text:#f5f7ff;--muted:#9ba9c2;
  --primary:#5865f2;--primary-bright:#6d73ff;--accent:#8b5cf6;--cyan:#2dd4bf;
  --success:#31c980;--warning:#f5b942;--danger:#ff6577;--border:#213556;
  --border-light:#2b4268;--shadow:0 18px 48px rgba(0,0,0,.28);
  --shadow-soft:0 10px 30px rgba(0,0,0,.18);
  background:var(--bg);color:var(--text);
}
html{background:var(--bg);scroll-behavior:smooth}
body.app-body,body.legal-body{
  color:var(--text);
  background:
    radial-gradient(circle at 22% -10%,rgba(77,98,255,.20),transparent 34rem),
    radial-gradient(circle at 92% 8%,rgba(139,92,246,.13),transparent 30rem),
    linear-gradient(180deg,#061027 0%,#050c1c 55%,#071226 100%);
}
body.app-body{padding-bottom:0}
a{color:#9eb0ff}
button,.button{
  min-height:46px;border-radius:12px;background:linear-gradient(135deg,var(--primary),var(--accent));
  box-shadow:0 9px 24px rgba(81,75,230,.22);
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease,border-color .18s ease;
}
button:hover,.button:hover{transform:translateY(-1px);filter:brightness(1.08);box-shadow:0 12px 30px rgba(81,75,230,.3)}
button:active,.button:active{transform:translateY(0)}
button:disabled{opacity:.42;cursor:not-allowed;transform:none!important;box-shadow:none!important}
button.secondary,.button.secondary{color:var(--text);background:#172844;border:1px solid var(--border-light);box-shadow:none}
input,textarea,select{color:var(--text);background:#09162d;border:1px solid var(--border-light);border-radius:12px;min-height:48px}
input:focus,textarea:focus,select:focus{outline:3px solid rgba(91,108,255,.2);border-color:#6d7cff}
select option{background:#0a1730;color:var(--text)}
.panel,.card,.question,.result-group,.auth-card{
  color:var(--text);background:linear-gradient(145deg,rgba(16,32,61,.97),rgba(10,23,47,.97));
  border-color:var(--border);box-shadow:var(--shadow-soft);
}
.meta,.section-title p,.statistics-rule,.statistics-footnote,.affiliate-note{color:var(--muted)}
.pill{color:#c8d2e8;background:#172844;border:1px solid #294066}
.empty-state{color:var(--muted);background:rgba(8,21,44,.56);border:1px dashed var(--border-light)}
.alert.error,.error{background:#351524;color:#ffc5cd;border:1px solid #6d2939}
.alert.success,.success{background:#0e3328;color:#a7f3d0;border:1px solid #1e654c}
.text-button{min-height:auto;color:#9eb0ff;background:none!important;border:0!important;box-shadow:none!important;padding:4px 0}
.ui-icon,.shell-nav svg,.mobile-nav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.site-header{background:rgba(5,13,30,.96);color:var(--text);border-right:1px solid var(--border);box-shadow:16px 0 50px rgba(0,0,0,.16)}
.sidebar-brand p{color:var(--muted);font-size:.86rem;line-height:1.5;margin:10px 0 0}
.shell-nav{display:grid;gap:8px;width:100%}
.shell-nav button{
  display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;align-items:center;width:100%;
  padding:12px 13px;text-align:left;color:#b7c2d7;background:transparent;border:1px solid transparent;box-shadow:none;
}
.shell-nav button span,.shell-nav button strong,.shell-nav button small{display:block}
.shell-nav button strong{color:inherit;font-size:.94rem}
.shell-nav button small{color:#74839f;font-size:.75rem;margin-top:1px;font-weight:600}
.shell-nav button.active{color:#fff;background:linear-gradient(135deg,rgba(78,94,240,.92),rgba(116,73,231,.92));border-color:rgba(255,255,255,.08);box-shadow:0 12px 28px rgba(61,54,215,.24)}
.shell-nav button.active small{color:#d7dcff}
.sidebar-meta{margin-top:auto;padding:15px;border:1px solid var(--border);border-radius:15px;background:#09162c}
.sidebar-meta>span{color:var(--cyan);font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.sidebar-meta p{color:var(--muted);font-size:.78rem;line-height:1.45;margin:7px 0 12px}
.sidebar-meta a{font-size:.82rem;text-decoration:none;font-weight:800}
.mobile-nav{display:none}

.hero.dashboard-hero{
  padding:30px;background:radial-gradient(circle at 83% 10%,rgba(45,212,191,.16),transparent 20rem),linear-gradient(135deg,#0d2145 0%,#192b64 58%,#5134a5 100%);
  border:1px solid rgba(139,161,255,.24);box-shadow:0 24px 70px rgba(0,0,0,.27);
}
.dashboard-hero:after{background:radial-gradient(circle,rgba(124,146,255,.24),transparent 68%)}
.hero-copy{position:relative;z-index:1;max-width:760px}
.hero-eyebrow{display:inline-flex;align-items:center;gap:8px;color:#bff9ea;font-size:.76rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.hero-eyebrow .ui-icon{width:17px;height:17px}
.dashboard-hero h1{font-size:clamp(2rem,4vw,3rem);margin-top:12px}
.dashboard-hero>.hero-copy>p{max-width:720px;font-size:1rem;line-height:1.65}
.mode-switch{position:relative;z-index:1;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.mode-button{
  display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:center;min-height:92px;
  padding:14px;color:#d8dff2;background:rgba(7,18,43,.48);border:1px solid rgba(181,194,255,.16);box-shadow:none;backdrop-filter:blur(8px);
}
.mode-button:hover{background:rgba(15,34,70,.78);border-color:rgba(174,189,255,.42)}
.mode-button.active{color:#fff;background:linear-gradient(135deg,rgba(74,92,237,.96),rgba(117,72,224,.96));border-color:transparent;box-shadow:0 15px 36px rgba(30,17,114,.34)}
.mode-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:rgba(255,255,255,.1)}
.mode-icon .ui-icon{width:23px;height:23px}
.mode-copy{min-width:0}.mode-copy strong{font-size:.94rem}.mode-copy>span{color:#aab7d1;font-size:.78rem;line-height:1.35}
.mode-button.active .mode-copy>span{color:#e0e4ff}
.mode-button>b{font-size:1.35rem}

.feature-panel{padding:25px;overflow:hidden}
.section-title{margin:0 0 22px;align-items:center}
.section-title h2{font-size:1.55rem;margin:3px 0 2px}
.section-kicker{color:#8ea2ff;font-size:.72rem;text-transform:uppercase;letter-spacing:.09em;font-weight:900}
.section-icon{display:grid;place-items:center;flex:0 0 auto;width:52px;height:52px;border-radius:16px;color:#b9c7ff;background:linear-gradient(145deg,#172d58,#182242);border:1px solid var(--border-light)}
.section-icon .ui-icon{width:25px;height:25px}
.corps-selector{max-width:none;margin:0}
.corps-selector>span,.custom-box label>span{display:block;color:#c7d0e4;font-size:.82rem;margin-bottom:6px}
.official-list{margin-top:22px}
.visual-empty{display:flex;align-items:center;gap:15px;padding:20px;text-align:left}
.visual-empty>span{display:grid;place-items:center;flex:0 0 auto;width:46px;height:46px;border-radius:14px;color:#9eb0ff;background:#122446;font-size:.84rem;font-weight:900}
.visual-empty strong,.visual-empty p{display:block;margin:0}.visual-empty p{font-size:.85rem;margin-top:3px}
.visual-empty.compact{padding:14px}.visual-empty.compact>span{width:38px;height:38px}
.group-heading{justify-content:space-between;margin:28px 0 14px}
.group-heading>div{min-width:0}.group-heading h2{font-size:1.18rem;margin:4px 0 0;overflow-wrap:anywhere}
.group-count{color:#bfcbff;background:#17284c;border:1px solid #2b4270}
.exam-part-list{display:grid;gap:13px}
.exam-entry{display:grid;grid-template-columns:92px minmax(0,1fr);gap:18px;padding:16px;background:linear-gradient(145deg,#10203d,#0b182f);border:1px solid var(--border);border-radius:17px;box-shadow:none}
.exam-year{display:grid;place-items:center;align-content:center;min-height:108px;border-radius:14px;background:linear-gradient(160deg,#263b7b,#452e91);border:1px solid rgba(176,184,255,.16)}
.exam-year strong{font-size:1.35rem}.exam-year span{color:#c8d0ff;font-size:.72rem;text-transform:uppercase;letter-spacing:.07em}
.exam-entry-content{min-width:0}.exam-entry-head h3{font-size:1rem;line-height:1.4;margin:2px 0 12px}
.part-buttons{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:8px}
.part-button{min-height:62px;color:var(--text);background:#0a1730;border:1px solid var(--border);box-shadow:none;border-radius:12px;padding:11px 12px}
.part-button:hover{background:#132647;border-color:#526ca6}
.part-button small{color:var(--muted)}
.part-arrow{display:grid!important;place-items:center!important;width:30px;height:30px;border-radius:9px;background:#1a2d52;color:#aebcff}
.custom-box{grid-template-columns:minmax(0,1fr) 190px;gap:16px}
.custom-box .topic-picker,.custom-box .primary-wide{grid-column:1/-1}
.topic-picker{background:#09162d;border-color:var(--border);border-radius:15px;padding:17px}
.topic-picker p{color:var(--muted)}
.topic-options{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px}
.topic-option{color:#dce3f2;background:#0e1d38;border:1px solid var(--border);border-radius:11px;padding:11px}
.topic-option:hover{border-color:#526ca6;background:#142747}
.topic-option input{accent-color:var(--primary)}
.topic-option small{color:var(--muted)}
.primary-wide{width:100%;font-size:1rem}

.resume-card{display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;width:100%;padding:17px 18px;background:linear-gradient(135deg,#12264c,#221f55);border-color:#314876;box-shadow:var(--shadow-soft)}
.resume-icon{display:grid;place-items:center;width:50px;height:50px;border-radius:15px;color:#d7ddff;background:linear-gradient(145deg,#4658da,#7649d9)}
.resume-icon .ui-icon{width:25px;height:25px}
.resume-content h2{font-size:1.05rem;margin:3px 0}.resume-content p{font-size:.82rem}
.resume-label{color:#9fb2ff}.resume-progress{height:5px;margin-top:10px;background:#263554;border-radius:99px;overflow:hidden}
.resume-progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--cyan),var(--primary-bright))}
.resume-actions{justify-content:flex-end}.resume-actions button{min-height:42px;padding:9px 14px}

.amazon-banner{color:var(--text);background:linear-gradient(145deg,#0f1e39,#0a172d);border-color:var(--border);box-shadow:var(--shadow-soft)}
.amazon-banner .promo-image{background:#fff}
.amazon-copy p{color:var(--muted)}.amazon-label{color:#90a4d7}
.amazon-banner .button{white-space:nowrap}

.statistics-head p,.stat-title span,.stat-bar-label small,.syllabus-block-name small,.syllabus-block-total small,.ranking-value small{color:var(--muted)}
.top-topic{color:#c9d2ff;background:#17294d;border:1px solid var(--border-light)}
.stat-cards article,.stat-panel,.stat-panel-primary{color:var(--text);background:linear-gradient(145deg,#10203c,#0b182f);border-color:var(--border)}
.stat-cards span{color:var(--muted)}
.syllabus-block,.stats-table-wrap{color:var(--text);background:#0b182f;border-color:var(--border)}
.syllabus-block summary,.syllabus-block-topics,.syllabus-topic-row,.stats-table th,.stats-table td{border-color:var(--border)}
.syllabus-code,.ranking-position{color:#cbd5ff;background:#1a2e59}
.stats-table thead th{background:#132441}.stats-table tbody tr:hover{background:#11213c}

.is-testing{padding-bottom:0}
.is-testing .site-header,.is-testing .mobile-nav,.is-testing .site-footer,.is-testing #amazon-slot{display:none!important}
.is-testing #app{max-width:900px;margin:0 auto;padding:0 20px 48px}
.test-shell{width:100%;margin:0 auto}
.test-topbar{position:sticky;top:0;z-index:50;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;min-height:76px;margin:0 -20px 14px;padding:12px 20px;background:rgba(5,13,29,.9);border-bottom:1px solid var(--border);backdrop-filter:blur(18px)}
.test-exit{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:8px 10px;color:#c6d0e3;background:transparent;border:1px solid var(--border);box-shadow:none}
.test-context{min-width:0;text-align:center}.test-context span,.test-context strong{display:block}
.test-context span{color:#8393b1;font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;font-weight:900}
.test-context strong{font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.test-count{display:grid;place-items:center;min-width:52px;height:38px;padding:0 9px;border-radius:11px;color:#d8ddff;background:#17284c;border:1px solid #304775;font-weight:900;font-size:.82rem}
.test-progress-info{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:.78rem;font-weight:750}
.progress.test-progress{height:7px;margin:8px 0 17px;background:#1b2b47}
.test-progress span{border-radius:999px;background:linear-gradient(90deg,var(--cyan),var(--primary-bright),var(--accent))}
.test-question{padding:28px;border-radius:22px;background:linear-gradient(155deg,#101f3b,#09162d);border-color:#263a5c;box-shadow:var(--shadow)}
.question-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.question-kicker{color:#8fa6ff;font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;font-weight:900}
.question-topic{max-width:55%;color:#91a0bb;font-size:.72rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.test-question h1{font-size:clamp(1.17rem,2.5vw,1.46rem);line-height:1.55;margin:0 0 22px;font-weight:760;letter-spacing:-.01em}
.answer-list{display:grid;gap:10px}
.answer{grid-template-columns:40px minmax(0,1fr) 28px;min-height:66px;margin:0;padding:13px 14px;color:var(--text)!important;background:#0c1931;border:1px solid #29405f;border-radius:14px;box-shadow:none;transform:none}
.answer:hover{transform:none;background:#112442;border-color:#536ea7;box-shadow:none}
.answer .answer-text{color:#eef2fa!important;font-size:.96rem;line-height:1.5;font-weight:580}
.answer-key{color:#b6c1d5;background:#182944;border:1px solid #2b4164}
.answer-check{background:#172842}
.answer:has(.answer-input:checked){background:linear-gradient(135deg,rgba(44,97,86,.65),rgba(25,65,76,.72));border-color:#38c789;box-shadow:0 0 0 3px rgba(49,201,128,.09)}
.answer:has(.answer-input:checked) .answer-key{background:#23a66d;color:#fff;box-shadow:none}
.answer:has(.answer-input:checked) .answer-check{background:#23a66d;color:#fff}
.question-tools{display:flex;justify-content:flex-end;margin-top:12px}
.question-tools .text-button{color:#96a7c5;font-size:.82rem}
.test-actions{justify-content:space-between;margin-top:20px}
.test-actions button{min-width:142px}
.reserve-note{color:#ffd99b;background:#352b16;border:1px solid #685126;padding:11px 13px;border-radius:11px}
.case-reference{background:#0b182f;border-color:var(--border);box-shadow:none}
.case-reference summary{color:#b8c5ff}
.case-reference summary:after{background:#17294b}
.case-reference .case-context,.case-context{color:#dce3f2;background:#09162d;border-color:var(--primary)}
.case-start .case-intro{margin-top:20px}.case-intro h1{line-height:1.25}
.case-context-formatted{color:#cbd5e6}

.result-hero{display:grid;grid-template-columns:130px minmax(0,1fr);align-items:center;gap:25px;margin:30px 0 18px;padding:24px;border:1px solid var(--border);border-radius:22px;background:linear-gradient(145deg,#12264b,#1e1f54);box-shadow:var(--shadow)}
.result-hero h1{margin:4px 0;font-size:1.8rem}.result-hero p{margin:0;color:#b3bfd4}
.score-ring{display:grid;place-items:center;width:116px;height:116px;border-radius:50%;background:conic-gradient(var(--success) calc(var(--score)*1%),#263654 0);box-shadow:0 12px 30px rgba(0,0,0,.2)}
.score-ring:before{content:"";grid-area:1/1;width:88px;height:88px;border-radius:50%;background:#102142}
.score-ring>div{grid-area:1/1;z-index:1;text-align:center}.score-ring strong,.score-ring span{display:block}
.score-ring strong{font-size:1.55rem}.score-ring span{color:var(--muted);font-size:.68rem;text-transform:uppercase}
.result-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:16px}
.result-summary article{padding:16px;border:1px solid var(--border);border-radius:15px;background:#0c1a33}
.result-summary span,.result-summary strong{display:block}.result-summary span{color:var(--muted);font-size:.76rem}.result-summary strong{font-size:1.6rem}
.result-summary .correct strong{color:var(--success)}.result-summary .wrong strong{color:var(--danger)}.result-summary .blank strong{color:var(--warning)}
.result-group{padding:0;overflow:hidden}
.result-group summary{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;list-style:none}
.result-group summary::-webkit-details-marker{display:none}.result-group summary b{display:grid;place-items:center;min-width:32px;height:28px;border-radius:9px;background:#1b2e50}
.result-group .review-item{padding:17px 18px;border-color:var(--border);background:#0a172d}
.review-item p{color:#bcc7da}.review-item .meta{color:#8393ae}.correct-text{color:#77e6ae!important}
.result-actions{justify-content:flex-end;margin-bottom:25px}

.consent-overlay{background:rgba(1,5,15,.78)}
.consent-dialog{color:var(--text);background:linear-gradient(145deg,#10203c,#09162d);border:1px solid var(--border)}
.consent-links a{color:#a8b7ff}
.legal-body .site-header{position:static;width:auto;min-height:76px;flex-direction:row;border-right:0;border-bottom:1px solid var(--border);box-shadow:none}
.legal-body .site-header .brand img{width:220px;height:48px}
.legal-document{background:linear-gradient(145deg,#10203c,#09162d)}
.legal-table th{background:#152744}.legal-table td,.legal-table th{border-color:var(--border)}
.site-footer{color:var(--muted)}
.legal-links a,.legal-links button{color:#9eacd0}

@media(min-width:1100px){
  .app-body .site-header{position:fixed;inset:0 auto 0 0;z-index:100;width:250px;min-height:100vh;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:28px;padding:25px 20px}
  .app-body .brand img{width:205px;height:47px}
  .app-body #app{width:auto;max-width:1180px;margin:30px 30px 40px 280px}
  .app-body #amazon-slot .amazon-banner{width:auto;max-width:1180px;margin:24px 30px 0 280px}
  .app-body .site-footer{margin-left:250px}
  .is-testing #app{margin:0 auto!important;max-width:900px!important}
}
@media(max-width:1099px){
  .app-body .site-header{position:sticky;top:0;z-index:100;min-height:68px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:10px 18px;border-right:0;border-bottom:1px solid var(--border);box-shadow:0 10px 30px rgba(0,0,0,.2);backdrop-filter:blur(16px)}
  .app-body .sidebar-brand p,.app-body .shell-nav,.app-body .sidebar-meta{display:none}
  .app-body .brand img{width:190px;height:43px}
  .app-body #app{margin-top:20px}
}
@media(max-width:760px){
  body.app-body{padding-bottom:74px}
  .container{width:calc(100% - 24px);margin:16px 12px}
  .app-body .site-header{padding:8px 13px;min-height:61px}
  .app-body .brand img{width:165px;height:38px}
  .mobile-nav{position:fixed;left:8px;right:8px;bottom:8px;z-index:150;display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:5px;background:rgba(8,19,39,.94);border:1px solid var(--border);border-radius:17px;box-shadow:0 16px 45px rgba(0,0,0,.45);backdrop-filter:blur(18px)}
  .mobile-nav button{display:grid;place-items:center;align-content:center;gap:2px;min-height:54px;padding:5px;color:#8190aa;background:transparent;border:0;box-shadow:none;border-radius:12px}
  .mobile-nav button svg{width:20px;height:20px}.mobile-nav button span{font-size:.65rem;font-weight:800}
  .mobile-nav button.active{color:#fff;background:linear-gradient(135deg,#4555dc,#7447d4)}
  .dashboard-hero{padding:21px!important;border-radius:20px}
  .dashboard-hero h1{font-size:1.85rem;line-height:1.15}
  .dashboard-hero>.hero-copy>p{font-size:.9rem;line-height:1.5}
  .hero-eyebrow{font-size:.65rem}
  .mode-switch{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:18px}
  .mode-button{display:flex;flex-direction:column;justify-content:center;gap:6px;min-height:84px;padding:9px 5px;text-align:center}
  .mode-icon{width:35px;height:35px;border-radius:11px}.mode-icon .ui-icon{width:19px;height:19px}
  .mode-copy strong{font-size:.72rem;line-height:1.15}.mode-copy>span,.mode-button>b{display:none!important}
  .feature-panel{padding:18px;border-radius:18px}
  .section-title{align-items:flex-start;flex-direction:row;gap:12px}.section-title h2{font-size:1.25rem}
  .section-title p{font-size:.84rem;line-height:1.45}.section-icon{width:43px;height:43px;border-radius:13px}.section-icon .ui-icon{width:21px;height:21px}
  .exam-entry{grid-template-columns:68px minmax(0,1fr);gap:12px;padding:11px}
  .exam-year{min-height:88px}.exam-year strong{font-size:1rem}.exam-year span{font-size:.6rem}
  .exam-entry-head h3{font-size:.9rem}
  .part-buttons{grid-template-columns:1fr}.part-button{min-height:58px}
  .custom-box{grid-template-columns:1fr}.custom-box .topic-picker,.custom-box .primary-wide{grid-column:auto}
  .topic-options{grid-template-columns:1fr}
  .resume-card{grid-template-columns:43px minmax(0,1fr);gap:12px;padding:14px}
  .resume-icon{width:43px;height:43px}.resume-actions{grid-column:1/-1;width:100%;display:grid;grid-template-columns:1fr 1fr}
  .resume-actions button{width:100%}
  .amazon-banner{color:var(--text);background:linear-gradient(145deg,#0f1e39,#0a172d)}
  .is-testing{padding-bottom:0}
  .is-testing #app{width:100%;margin:0;padding:0 12px 96px}
  .test-topbar{min-height:64px;margin:0 -12px 12px;padding:9px 12px;gap:8px}
  .test-exit{min-width:42px;padding:7px}.test-exit span:last-child{display:none}
  .test-context strong{font-size:.78rem}.test-count{min-width:47px;height:34px;font-size:.74rem}
  .test-question{padding:18px 15px;border-radius:18px}
  .test-question h1{font-size:1.08rem;line-height:1.55;margin-bottom:18px}
  .question-heading{align-items:flex-start}.question-topic{font-size:.65rem}
  .answer-list{gap:8px}
  .answer{grid-template-columns:34px minmax(0,1fr) 25px;min-height:61px;padding:11px;gap:9px;border-radius:13px}
  .answer-key{width:32px;height:32px;border-radius:9px}
  .answer .answer-text{font-size:.91rem!important;line-height:1.45}
  .answer-check{width:24px;height:24px}
  .test-actions{position:fixed;left:0;right:0;bottom:0;z-index:80;display:grid;grid-template-columns:1fr 1.25fr;gap:9px;margin:0;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:rgba(6,15,31,.94);border-top:1px solid var(--border);backdrop-filter:blur(16px)}
  .test-actions button{width:100%;min-width:0;min-height:48px;padding:10px}
  .case-start .case-intro{padding:18px}
  .result-hero{grid-template-columns:90px minmax(0,1fr);gap:15px;padding:18px;margin-top:18px}
  .score-ring{width:84px;height:84px}.score-ring:before{width:64px;height:64px}.score-ring strong{font-size:1.15rem}
  .result-hero h1{font-size:1.3rem}.result-hero p{font-size:.82rem}
  .result-summary article{padding:12px}.result-summary strong{font-size:1.3rem}
  .result-actions{display:grid;grid-template-columns:1fr 1fr}.result-actions button{width:100%}
}
@media(max-width:390px){
  .dashboard-hero{padding:18px!important}.dashboard-hero h1{font-size:1.62rem}
  .mode-button{min-height:78px}.mode-copy strong{font-size:.66rem}
  .exam-entry{grid-template-columns:58px minmax(0,1fr)}.exam-year{min-height:78px}
  .test-question{padding:16px 12px}.answer{padding:10px 9px}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}


/* =========================================================
   TESTS PS84 v1.4.1 · VARIANTE CLARA
   Mantiene la estructura de la fase 1 con una apariencia
   luminosa, descansada y optimizada para móvil.
   ========================================================= */
:root{
  color-scheme:light;
  --bg:#f4f7fc;
  --bg-elevated:#edf2fa;
  --surface:#ffffff;
  --surface-soft:#f7f9fd;
  --surface-hover:#eef3fb;
  --surface-strong:#e7edf8;
  --text:#12213d;
  --muted:#687790;
  --primary:#4e5fe7;
  --primary-bright:#6474f1;
  --accent:#7d4de0;
  --cyan:#14a992;
  --success:#159765;
  --warning:#d99816;
  --danger:#d94a5d;
  --border:#dbe3ef;
  --border-light:#cbd6e7;
  --shadow:0 18px 45px rgba(38,55,90,.10);
  --shadow-soft:0 8px 26px rgba(38,55,90,.08);
  background:var(--bg);
  color:var(--text);
}
html{background:var(--bg)}
body.app-body,body.legal-body{
  color:var(--text);
  background:
    radial-gradient(circle at 20% -10%,rgba(92,111,240,.14),transparent 34rem),
    radial-gradient(circle at 92% 5%,rgba(139,92,246,.10),transparent 30rem),
    linear-gradient(180deg,#f6f9fe 0%,#eef3fa 58%,#f7f9fd 100%);
}
a{color:#4258d7}
button.secondary,.button.secondary{
  color:var(--text);
  background:#f5f7fb;
  border-color:#cfd9e8;
}
input,textarea,select{
  color:var(--text);
  background:#fff;
  border-color:#cbd6e7;
}
input:focus,textarea:focus,select:focus{
  outline:3px solid rgba(78,95,231,.14);
  border-color:#6575ea;
}
select option{background:#fff;color:var(--text)}
.panel,.card,.question,.result-group,.auth-card{
  color:var(--text);
  background:linear-gradient(145deg,#fff,#f9fbff);
  border-color:var(--border);
  box-shadow:var(--shadow-soft);
}
.pill{
  color:#4f5e78;
  background:#eef2f8;
  border-color:#d4ddea;
}
.empty-state{
  color:var(--muted);
  background:#f8fafd;
  border-color:#cdd8e8;
}
.alert.error,.error{
  background:#fff0f2;
  color:#a92f41;
  border-color:#efbdc5;
}
.alert.success,.success{
  background:#eaf8f2;
  color:#166d4e;
  border-color:#b6e3d1;
}
.text-button{color:#465bd8}

/* Navegación */
.site-header{
  background:rgba(255,255,255,.96);
  color:var(--text);
  border-color:#dfe6f1;
  box-shadow:16px 0 42px rgba(53,69,103,.08);
}
.sidebar-brand p{color:var(--muted)}
.shell-nav button{
  color:#52617a;
  background:transparent;
}
.shell-nav button small{color:#8a97ab}
.shell-nav button:hover{
  color:#263858;
  background:#f3f6fb;
  border-color:#dfe6f1;
}
.shell-nav button.active{
  color:#fff;
  background:linear-gradient(135deg,#5365e8,#774bdc);
  border-color:transparent;
  box-shadow:0 12px 28px rgba(74,81,208,.20);
}
.shell-nav button.active small{color:#e7eaff}
.sidebar-meta{
  background:#f7f9fd;
  border-color:#dbe3ef;
}
.sidebar-meta>span{color:#118773}
.sidebar-meta p{color:var(--muted)}
.sidebar-meta a{color:#4258d7}

/* Hero */
.hero.dashboard-hero{
  color:#fff;
  background:
    radial-gradient(circle at 84% 8%,rgba(45,212,191,.18),transparent 20rem),
    linear-gradient(135deg,#5265e8 0%,#5963d8 48%,#7c4eda 100%);
  border-color:rgba(91,103,226,.18);
  box-shadow:0 24px 60px rgba(71,75,173,.20);
}
.hero-eyebrow{color:#dffbf5}
.dashboard-hero>.hero-copy>p{color:#e6eaff}
.mode-button{
  color:#253657;
  background:rgba(255,255,255,.88);
  border-color:rgba(255,255,255,.50);
  box-shadow:0 8px 22px rgba(46,52,111,.12);
}
.mode-button:hover{
  color:#1d2c48;
  background:#fff;
  border-color:#fff;
}
.mode-button.active{
  color:#fff;
  background:linear-gradient(135deg,#3648cb,#6e43ca);
  box-shadow:0 14px 30px rgba(40,39,130,.25);
}
.mode-icon{
  color:#5264dc;
  background:#eef1ff;
}
.mode-button.active .mode-icon{
  color:#fff;
  background:rgba(255,255,255,.16);
}
.mode-copy>span{color:#71809a}
.mode-button.active .mode-copy>span{color:#eef0ff}

/* Paneles */
.section-kicker{color:#5367db}
.section-icon{
  color:#5367db;
  background:linear-gradient(145deg,#eef2ff,#f7f4ff);
  border-color:#d9e0f5;
}
.corps-selector>span,.custom-box label>span{color:#52617a}
.visual-empty>span{
  color:#5367db;
  background:#edf1ff;
}
.group-count{
  color:#5666c9;
  background:#eef1ff;
  border-color:#d7def4;
}
.exam-entry{
  background:linear-gradient(145deg,#fff,#f7f9fd);
  border-color:#dce4ef;
}
.exam-year{
  color:#fff;
  background:linear-gradient(160deg,#6273eb,#7b4fdc);
  border-color:transparent;
}
.exam-year span{color:#edf0ff}
.part-button{
  color:var(--text);
  background:#f8fafd;
  border-color:#d8e0ec;
}
.part-button:hover{
  background:#eef3fb;
  border-color:#aebfe1;
}
.part-button small{color:var(--muted)}
.part-arrow{
  color:#5365d9;
  background:#e9eefb;
}
.topic-picker{
  background:#f8fafd;
  border-color:#dbe3ef;
}
.topic-picker p{color:var(--muted)}
.topic-option{
  color:#263858;
  background:#fff;
  border-color:#dbe3ef;
}
.topic-option:hover{
  background:#f2f5fb;
  border-color:#b8c6df;
}
.topic-option small{color:var(--muted)}

/* Progreso guardado */
.resume-card{
  background:linear-gradient(135deg,#f0f4ff,#f8f4ff);
  border-color:#d5def4;
  box-shadow:var(--shadow-soft);
}
.resume-icon{
  color:#fff;
  background:linear-gradient(145deg,#5669e8,#804ee0);
}
.resume-label{color:#5265d8}
.resume-progress{background:#dce4f0}

/* Promoción */
.amazon-banner{
  color:var(--text);
  background:linear-gradient(145deg,#fff,#f7f9fd);
  border-color:#dbe3ef;
  box-shadow:var(--shadow-soft);
}
.amazon-copy p{color:var(--muted)}
.amazon-label{color:#697b9b}

/* Estadísticas */
.top-topic{
  color:#5364c9;
  background:#eef1ff;
  border-color:#d8dff4;
}
.stat-cards article,.stat-panel,.stat-panel-primary{
  color:var(--text);
  background:linear-gradient(145deg,#fff,#f8fafd);
  border-color:#dbe3ef;
}
.syllabus-block,.stats-table-wrap{
  color:var(--text);
  background:#fff;
  border-color:#dbe3ef;
}
.syllabus-block summary,.syllabus-block-topics,.syllabus-topic-row,.stats-table th,.stats-table td{
  border-color:#e0e7f1;
}
.syllabus-code,.ranking-position{
  color:#5364c9;
  background:#eef1ff;
}
.stats-table thead th{background:#f2f5fa}
.stats-table tbody tr:hover{background:#f7f9fd}

/* Pantalla de test clara */
.test-topbar{
  background:rgba(247,249,253,.94);
  border-color:#dce4ef;
  box-shadow:0 8px 26px rgba(43,58,91,.06);
}
.test-exit{
  color:#4c5d77;
  background:#fff;
  border-color:#d4deeb;
}
.test-exit:hover{
  color:#253657;
  background:#eef2f8;
}
.test-context span{color:#7c8aa0}
.test-context strong{color:#1d2c48}
.test-count{
  color:#5365d7;
  background:#edf1ff;
  border-color:#d4dcf4;
}
.progress.test-progress{background:#dce4f0}
.test-question{
  color:var(--text);
  background:linear-gradient(155deg,#fff,#f9fbff);
  border-color:#d8e1ed;
  box-shadow:0 20px 52px rgba(42,58,95,.10);
}
.question-kicker{color:#5367db}
.question-topic{color:#75839a}
.answer{
  color:var(--text)!important;
  background:#fff;
  border-color:#d8e0ec;
}
.answer:hover{
  background:#f4f7fb;
  border-color:#aebee0;
}
.answer .answer-text{color:#1d2c48!important}
.answer-key{
  color:#52617a;
  background:#eef2f7;
  border-color:#d5deea;
}
.answer-check{
  color:#78869d;
  background:#edf1f6;
}
.answer:has(.answer-input:checked){
  background:linear-gradient(135deg,#e8f8f2,#effaf6);
  border-color:#31b77d;
  box-shadow:0 0 0 3px rgba(49,183,125,.10);
}
.answer:has(.answer-input:checked) .answer-key,
.answer:has(.answer-input:checked) .answer-check{
  color:#fff;
  background:#1fa36e;
}
.question-tools .text-button{color:#66758c}
.reserve-note{
  color:#8b5c00;
  background:#fff8e8;
  border-color:#ecd59b;
}
.case-reference{
  background:#fff;
  border-color:#dbe3ef;
}
.case-reference summary{color:#5364c9}
.case-reference summary:after{background:#edf1ff}
.case-reference .case-context,.case-context{
  color:#243653;
  background:#f8fafd;
  border-color:#6474ed;
}
.case-context-formatted{color:#43536d}

/* Resultados */
.result-hero{
  background:linear-gradient(145deg,#f1f4ff,#f7f3ff);
  border-color:#d9e0f3;
  box-shadow:var(--shadow);
}
.result-hero p{color:#687790}
.score-ring{
  background:conic-gradient(var(--success) calc(var(--score)*1%),#dce4ef 0);
}
.score-ring:before{background:#fff}
.result-summary article{
  background:#fff;
  border-color:#dbe3ef;
}
.result-group .review-item{
  background:#fff;
  border-color:#e1e7f0;
}
.review-item p{color:#52617a}
.review-item .meta{color:#7c899d}
.correct-text{color:#16835a!important}
.result-group summary b{
  color:#5364c9;
  background:#eef1ff;
}

/* Consentimiento y legales */
.consent-overlay{background:rgba(32,44,70,.46)}
.consent-dialog{
  color:var(--text);
  background:linear-gradient(145deg,#fff,#f8fafd);
  border-color:#dbe3ef;
  box-shadow:0 24px 70px rgba(32,44,70,.22);
}
.consent-links a{color:#4258d7}
.legal-document{background:linear-gradient(145deg,#fff,#f8fafd)}
.legal-table th{background:#f1f4f9}
.legal-table td,.legal-table th{border-color:#dbe3ef}
.site-footer{color:#75829a}
.legal-links a,.legal-links button{color:#596985}

/* Tablet y móvil */
@media(max-width:1099px){
  .app-body .site-header{
    background:rgba(255,255,255,.94);
    border-color:#dfe6f1;
    box-shadow:0 10px 30px rgba(46,61,94,.09);
  }
}
@media(max-width:760px){
  .mobile-nav{
    background:rgba(255,255,255,.96);
    border-color:#dbe3ef;
    box-shadow:0 16px 42px rgba(37,51,84,.18);
  }
  .mobile-nav button{
    color:#7b899f;
    background:transparent;
  }
  .mobile-nav button.active{
    color:#fff;
    background:linear-gradient(135deg,#5365e8,#784bdc);
  }
  .amazon-banner{
    color:var(--text);
    background:linear-gradient(145deg,#fff,#f7f9fd);
  }
  .test-actions{
    background:rgba(250,251,253,.96);
    border-color:#dce4ef;
    box-shadow:0 -10px 28px rgba(45,60,91,.08);
  }
}


/* =========================================================
   TESTS PS84 v1.4.2 · CONTRASTE CLARO CORREGIDO
   ========================================================= */

/* Texto general */
:root{
  --text:#0f1d34;
  --muted:#52627a;
  --border:#cfd9e7;
  --border-light:#bcc9dc;
}

/* Menú lateral */
.shell-nav button{
  color:#2f405e;
}
.shell-nav button strong{
  color:#243552;
}
.shell-nav button small{
  color:#63728a;
}
.shell-nav button:hover{
  color:#17253d;
  background:#edf2f8;
  border-color:#cfd8e6;
}
.shell-nav button:hover strong{
  color:#17253d;
}
.shell-nav button:hover small{
  color:#4f5e74;
}
.shell-nav button.active{
  color:#fff;
}
.shell-nav button.active strong{
  color:#fff!important;
}
.shell-nav button.active small{
  color:#f3f4ff!important;
}
.sidebar-meta{
  background:#f4f7fb;
  border-color:#cfd9e7;
}
.sidebar-meta>span{
  color:#08745f;
}
.sidebar-meta p{
  color:#53637a;
}
.sidebar-meta a{
  color:#304ecf;
}

/* Hero */
.hero.dashboard-hero{
  color:#fff;
  background:
    radial-gradient(circle at 84% 8%,rgba(33,190,162,.20),transparent 20rem),
    linear-gradient(135deg,#4d5fe3 0%,#5a58d7 50%,#7545d1 100%);
}
.hero-eyebrow,
.dashboard-hero h1,
.dashboard-hero>.hero-copy>p{
  color:#fff!important;
}
.hero-eyebrow{
  text-shadow:0 1px 1px rgba(28,29,92,.18);
}

/* Tarjetas del hero */
.mode-button{
  color:#13223b!important;
  background:#ffffff!important;
  border-color:rgba(255,255,255,.82)!important;
}
.mode-button .mode-copy strong{
  color:#162541!important;
}
.mode-button .mode-copy>span{
  color:#52627a!important;
}
.mode-button .mode-icon{
  color:#4055d8!important;
  background:#e9edff!important;
}
.mode-button>b{
  color:#2d4163!important;
}
.mode-button:hover{
  color:#0f1d34!important;
  background:#f7f9ff!important;
  border-color:#fff!important;
}
.mode-button.active{
  color:#fff!important;
  background:linear-gradient(135deg,#3147c8,#693bc2)!important;
  border-color:transparent!important;
}
.mode-button.active .mode-copy strong{
  color:#fff!important;
}
.mode-button.active .mode-copy>span{
  color:#f2f4ff!important;
}
.mode-button.active .mode-icon{
  color:#fff!important;
  background:rgba(255,255,255,.18)!important;
}
.mode-button.active>b{
  color:#fff!important;
}

/* Progreso guardado */
.resume-card{
  background:linear-gradient(135deg,#eef3ff,#f7f2ff);
  border-color:#cbd5ef;
}
.resume-label{
  color:#334fcf!important;
}
.resume-content h2{
  color:#152440!important;
}
.resume-content p{
  color:#52627a!important;
}
.resume-actions .secondary{
  color:#17253d!important;
  background:#fff!important;
  border-color:#c8d3e2!important;
}

/* Paneles */
.section-kicker{
  color:#354fd0!important;
}
.section-title h2,
.group-heading h2,
.exam-entry-head h3{
  color:#13223b!important;
}
.section-title p{
  color:#52627a!important;
}
.corps-selector>span,
.custom-box label>span{
  color:#35445e!important;
}
input,textarea,select{
  color:#14233d!important;
  background:#fff!important;
}
select option{
  color:#14233d!important;
  background:#fff!important;
}
.visual-empty strong{
  color:#1f3150!important;
}
.visual-empty p{
  color:#5c6b82!important;
}

/* Promoción */
.amazon-banner{
  color:#13223b!important;
}
.amazon-copy strong{
  color:#13223b!important;
}
.amazon-copy p{
  color:#52627a!important;
}
.amazon-label{
  color:#506189!important;
}

/* Test */
.test-context strong{
  color:#14233d!important;
}
.test-progress-info{
  color:#4f6078!important;
}
.question-kicker{
  color:#334fcf!important;
}
.question-topic{
  color:#5f6e83!important;
}
.test-question h1{
  color:#101f36!important;
}
.answer{
  background:#fff!important;
  border-color:#cbd5e2!important;
}
.answer .answer-text{
  color:#17253d!important;
}
.answer-key{
  color:#33445f!important;
  background:#eef2f7!important;
  border-color:#cbd5e2!important;
}
.answer:hover{
  background:#f2f6fb!important;
  border-color:#9eafd0!important;
}
.answer:has(.answer-input:checked){
  background:#e8f8f1!important;
  border-color:#1ea86d!important;
}
.question-tools .text-button{
  color:#4e5d73!important;
}

/* Resultados */
.result-hero h1{
  color:#152440!important;
}
.result-hero p{
  color:#52627a!important;
}
.result-summary span{
  color:#52627a!important;
}
.result-group summary{
  color:#17253d!important;
}
.review-item strong{
  color:#152440!important;
}
.review-item p{
  color:#4f6078!important;
}

/* Consentimiento y legales */
.consent-dialog h2,
.legal-document h1,
.legal-document h2{
  color:#12213b!important;
}
.consent-dialog p,
.legal-document p,
.legal-document li{
  color:#4e5e76!important;
}
.legal-links a,
.legal-links button{
  color:#394bb8!important;
}

/* Móvil */
@media(max-width:760px){
  .mobile-nav button{
    color:#53627a!important;
  }
  .mobile-nav button.active{
    color:#fff!important;
  }
  .mode-button .mode-copy strong{
    color:#182842!important;
  }
  .mode-button.active .mode-copy strong{
    color:#fff!important;
  }
}


/* =========================================================
   TESTS PS84 v1.4.3 · ENLACES LEGALES DEL PIE
   ========================================================= */
.site-footer .legal-links{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}
.site-footer .legal-links a,
.site-footer .legal-links button{
  display:inline;
  width:auto!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  color:#394bb8!important;
  background:none!important;
  background-image:none!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  font:inherit!important;
  font-weight:400!important;
  line-height:inherit!important;
  text-decoration:underline!important;
  text-underline-offset:2px;
  cursor:pointer;
  transform:none!important;
  filter:none!important;
}
.site-footer .legal-links a:hover,
.site-footer .legal-links button:hover{
  color:#263b9f!important;
  background:none!important;
  box-shadow:none!important;
  transform:none!important;
  filter:none!important;
  text-decoration-thickness:2px!important;
}
.site-footer .legal-links a:focus-visible,
.site-footer .legal-links button:focus-visible{
  outline:2px solid #5365e8!important;
  outline-offset:4px!important;
  border-radius:2px!important;
}


/* =========================================================
   TESTS PS84 v1.4.4 · CABECERA HORIZONTAL Y AJUSTES
   ========================================================= */

/* La barra lateral se elimina: la navegación principal ya está
   integrada en las tres tarjetas del hero. */
.app-body .site-header.top-header{
  position:sticky!important;
  inset:auto!important;
  top:0!important;
  z-index:120;
  width:100%!important;
  min-height:74px!important;
  margin:0!important;
  padding:0!important;
  display:block!important;
  background:rgba(255,255,255,.96)!important;
  border:0!important;
  border-bottom:1px solid #dce4ef!important;
  box-shadow:0 8px 28px rgba(40,55,88,.08)!important;
  backdrop-filter:blur(16px);
}
.header-inner{
  width:min(1180px,calc(100% - 40px));
  min-height:74px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.brand-horizontal{
  display:flex!important;
  align-items:center;
  gap:13px;
  min-width:0;
  color:#12213b!important;
  text-decoration:none!important;
}
.brand-horizontal img{
  display:block;
  width:46px!important;
  height:46px!important;
  object-fit:contain;
  flex:0 0 auto;
}
.brand-horizontal>span{
  display:grid;
  gap:1px;
  min-width:0;
}
.brand-horizontal strong{
  display:block;
  color:#182842;
  font-size:1rem;
  line-height:1.1;
  font-weight:900;
}
.brand-horizontal small{
  display:block;
  color:#607089;
  font-size:.76rem;
  line-height:1.25;
  font-weight:650;
  white-space:nowrap;
}
.header-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:18px;
  flex-wrap:wrap;
}
.header-privacy-note{
  color:#08745f;
  font-size:.73rem;
  line-height:1.2;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.header-site-link{
  color:#324bc5!important;
  font-size:.82rem;
  font-weight:800;
  text-decoration:none!important;
}
.header-site-link:hover{
  color:#20389d!important;
  text-decoration:underline!important;
}

/* El contenido vuelve a ocupar y centrarse en toda la ventana. */
.app-body #app{
  width:min(1180px,calc(100% - 40px))!important;
  max-width:none!important;
  margin:28px auto 42px!important;
}
.app-body #amazon-slot .amazon-banner{
  width:min(1180px,calc(100% - 40px))!important;
  max-width:none!important;
  margin:20px auto 0!important;
}
.app-body .site-footer{
  width:min(1180px,calc(100% - 40px));
  margin:0 auto!important;
  padding-left:0!important;
  padding-right:0!important;
  box-sizing:border-box;
}
.site-footer .affiliate-note{
  max-width:100%;
  margin-left:auto!important;
  margin-right:auto!important;
  text-align:center;
}
.site-footer .legal-links{
  width:100%;
  justify-content:center!important;
}

/* Ocultar restos visuales del antiguo sidebar, aunque existan reglas previas. */
.sidebar-brand,.shell-nav,.sidebar-meta{
  display:none!important;
}

/* Iconos de las tarjetas principales: más grandes y perfectamente centrados. */
.mode-button{
  grid-template-columns:56px minmax(0,1fr) 22px!important;
  min-height:96px!important;
  gap:14px!important;
  padding:16px!important;
  align-items:center!important;
}
.mode-icon{
  display:grid!important;
  place-items:center!important;
  width:56px!important;
  height:56px!important;
  min-width:56px!important;
  border-radius:16px!important;
  line-height:0!important;
}
.mode-icon .ui-icon{
  display:block!important;
  width:28px!important;
  height:28px!important;
  margin:auto!important;
}
.mode-copy{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:flex-start!important;
  min-height:56px;
  text-align:left!important;
}
.mode-copy strong{
  display:block!important;
  font-size:1rem!important;
  line-height:1.2!important;
  margin:0 0 4px!important;
}
.mode-copy>span{
  display:block!important;
  font-size:.8rem!important;
  line-height:1.35!important;
}
.mode-button>b{
  display:grid!important;
  place-items:center!important;
  width:22px;
  height:22px;
  margin:0!important;
  line-height:1!important;
  font-size:1.4rem!important;
}

/* El icono de sección también se centra y crece ligeramente. */
.section-icon{
  width:56px!important;
  height:56px!important;
  display:grid!important;
  place-items:center!important;
}
.section-icon .ui-icon{
  width:27px!important;
  height:27px!important;
}

/* El hero gana algo de aire al desaparecer la barra lateral. */
.hero.dashboard-hero{
  padding:32px!important;
}
.dashboard-hero h1{
  max-width:850px;
}

/* En la realización del test, la cabecera general sigue oculta. */
.is-testing .site-header{
  display:none!important;
}
.is-testing #app{
  width:100%!important;
  max-width:900px!important;
  margin:0 auto!important;
}

/* Tablet */
@media(max-width:900px){
  .header-inner{
    width:calc(100% - 28px);
    min-height:68px;
  }
  .brand-horizontal img{
    width:42px!important;
    height:42px!important;
  }
  .brand-horizontal small{
    max-width:360px;
    white-space:normal;
  }
  .header-privacy-note{
    display:none;
  }
  .app-body #app,
  .app-body #amazon-slot .amazon-banner,
  .app-body .site-footer{
    width:calc(100% - 28px)!important;
  }
}

/* Móvil */
@media(max-width:760px){
  .app-body .site-header.top-header{
    min-height:61px!important;
  }
  .header-inner{
    width:calc(100% - 22px);
    min-height:61px;
    gap:12px;
  }
  .brand-horizontal{
    gap:9px;
  }
  .brand-horizontal img{
    width:38px!important;
    height:38px!important;
  }
  .brand-horizontal strong{
    font-size:.9rem;
  }
  .brand-horizontal small{
    max-width:210px;
    font-size:.64rem;
    line-height:1.2;
  }
  .header-site-link{
    display:none;
  }
  .app-body #app{
    width:calc(100% - 24px)!important;
    margin:16px 12px 30px!important;
  }
  .app-body #amazon-slot .amazon-banner{
    width:calc(100% - 24px)!important;
    margin:12px 12px 0!important;
  }
  .app-body .site-footer{
    width:calc(100% - 24px)!important;
  }
  .hero.dashboard-hero{
    padding:21px!important;
  }
  .mode-button{
    grid-template-columns:1fr!important;
    min-height:88px!important;
    padding:10px 6px!important;
    gap:7px!important;
    justify-items:center!important;
  }
  .mode-icon{
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    border-radius:13px!important;
  }
  .mode-icon .ui-icon{
    width:22px!important;
    height:22px!important;
  }
  .mode-copy{
    min-height:0!important;
    align-items:center!important;
    text-align:center!important;
  }
  .mode-copy strong{
    font-size:.72rem!important;
    margin:0!important;
  }
  .mode-copy>span,
  .mode-button>b{
    display:none!important;
  }
  .section-icon{
    width:46px!important;
    height:46px!important;
  }
  .section-icon .ui-icon{
    width:23px!important;
    height:23px!important;
  }
}

/* Pantallas muy estrechas */
@media(max-width:390px){
  .brand-horizontal small{
    display:none;
  }
  .mode-button{
    min-height:82px!important;
  }
}


/* =========================================================
   TESTS PS84 v1.4.5 · LOGOTIPO VISIBLE
   ========================================================= */
.brand-horizontal img{
  display:block!important;
  width:52px!important;
  height:52px!important;
  min-width:52px!important;
  object-fit:contain!important;
  flex:0 0 52px!important;
  border-radius:14px;
  filter:drop-shadow(0 5px 10px rgba(60,75,160,.16));
}
.brand-horizontal{
  gap:14px!important;
}
.brand-horizontal strong{
  font-size:1.08rem!important;
}
.brand-horizontal small{
  font-size:.78rem!important;
}
@media(max-width:760px){
  .brand-horizontal img{
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    flex-basis:42px!important;
    border-radius:12px;
  }
  .brand-horizontal{
    gap:10px!important;
  }
  .brand-horizontal strong{
    font-size:.94rem!important;
  }
  .brand-horizontal small{
    font-size:.65rem!important;
  }
}


/* =========================================================
   TESTS PS84 v1.4.6 · ISOTIPO TRANSPARENTE
   ========================================================= */
.brand-horizontal img{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  filter:none!important;
  padding:0!important;
}


/* =========================================================
   TESTS PS84 v1.4.7 · PROGRESO INFERIOR EN MÓVIL
   ========================================================= */
.mobile-progress-dock{
  position:static;
}

@media(max-width:760px){
  .is-testing #app{
    padding-bottom:158px!important;
  }

  .mobile-progress-dock{
    position:fixed;
    left:0;
    right:0;
    bottom:68px;
    z-index:79;
    padding:8px 12px 7px;
    background:rgba(250,251,253,.97);
    border-top:1px solid #dce4ef;
    box-shadow:0 -8px 22px rgba(45,60,91,.07);
    backdrop-filter:blur(16px);
  }

  .mobile-progress-dock .test-progress-info{
    margin:0 0 6px;
    color:#40516c!important;
    font-size:.74rem;
    font-weight:800;
  }

  .mobile-progress-dock .progress.test-progress{
    position:static;
    height:6px;
    margin:0;
    background:#dce4f0;
  }

  .test-actions{
    z-index:80;
  }
}

@media(max-width:390px){
  .mobile-progress-dock{
    bottom:66px;
    padding-left:10px;
    padding-right:10px;
  }

  .mobile-progress-dock .test-progress-info{
    font-size:.69rem;
  }
}


/* =========================================================
   TESTS PS84 v1.4.8 · CORRECCIÓN EXPLÍCITA
   ========================================================= */
.correct-exam-button{
  background:linear-gradient(135deg,#159765,#18b57a)!important;
  box-shadow:0 9px 24px rgba(21,151,101,.22)!important;
}
.correct-exam-button:hover{
  box-shadow:0 12px 30px rgba(21,151,101,.30)!important;
}

/* FASE 2: historial y estadísticas personales locales */
.local-dashboard,.local-summary-empty,.local-history-panel{margin-bottom:20px}.local-summary-empty{display:grid;grid-template-columns:54px minmax(0,1fr);align-items:center;gap:16px;padding:19px 21px}.local-summary-empty h2{margin:3px 0;font-size:1.15rem}.local-summary-empty p{margin:0;color:var(--muted)}.local-summary-icon{display:grid;place-items:center;width:52px;height:52px;color:#fff;background:linear-gradient(145deg,#5365e8,#7b4ddc);border-radius:15px}.local-summary-icon .ui-icon{width:25px;height:25px}.local-dashboard{padding:22px}.local-dashboard-head,.local-history-head,.local-subhead{display:flex;align-items:center;justify-content:space-between;gap:16px}.local-dashboard-head{margin-bottom:17px}.local-dashboard-head h2{margin:3px 0;font-size:1.4rem}.local-dashboard-head p{margin:0;color:var(--muted)}.local-stat-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.local-stat-cards article{min-width:0;padding:15px;background:#f7f9fd;border:1px solid var(--border);border-radius:14px}.local-stat-cards span,.local-stat-cards strong{display:block}.local-stat-cards span{color:var(--muted);font-size:.76rem;font-weight:750}.local-stat-cards strong{margin-top:5px;color:#172640;font-size:1.38rem;line-height:1.2;overflow-wrap:anywhere}.local-dashboard-grid,.local-history-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:14px}.local-dashboard-grid>section,.local-data-card{min-width:0;padding:17px;background:#fff;border:1px solid var(--border);border-radius:15px}.local-data-wide{grid-column:1/-1}.local-subhead{align-items:flex-start;margin-bottom:14px}.local-subhead h3{margin:0;color:#172640;font-size:1rem}.local-subhead span{color:var(--muted);font-size:.74rem}.history-trend{display:flex;align-items:flex-end;justify-content:space-between;gap:7px;min-height:175px;padding-top:23px}.trend-column{display:grid;grid-template-rows:19px 120px 18px;align-items:end;justify-items:center;flex:1;min-width:0}.trend-value{color:#435471;font-size:.65rem;font-weight:850}.trend-track{position:relative;width:min(26px,70%);height:116px;overflow:hidden;background:#e8edf5;border-radius:9px 9px 4px 4px}.trend-track i{position:absolute;left:0;right:0;bottom:0;display:block;background:linear-gradient(180deg,#7e55e4,#5368ea);border-radius:9px 9px 4px 4px}.trend-column small{color:#728198;font-size:.61rem}.local-performance-list{display:grid;gap:11px}.local-performance-row{display:grid;grid-template-columns:minmax(0,1fr) 138px;align-items:center;gap:14px}.local-performance-row>div:first-child{min-width:0}.local-performance-row strong,.local-performance-row span{display:block}.local-performance-row strong{color:#1b2b47;font-size:.86rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.local-performance-row>div:first-child span{margin-top:2px;color:var(--muted);font-size:.71rem}.local-performance-score{display:grid;grid-template-columns:37px minmax(0,1fr);align-items:center;gap:8px}.local-performance-score b{color:#344bc4;font-size:.77rem}.local-performance-score>span{height:7px;overflow:hidden;background:#e3e9f3;border-radius:99px}.local-performance-score i{display:block;height:100%;background:linear-gradient(90deg,#5368ea,#7e50dc);border-radius:inherit}.local-history-list{display:grid;gap:9px}.local-history-item{display:grid;grid-template-columns:66px minmax(0,1fr) auto;align-items:center;gap:13px;padding:12px;background:#f9fbfe;border:1px solid #dce4ef;border-radius:13px}.history-score{display:grid;place-items:center;align-content:center;width:62px;height:62px;border-radius:17px}.history-score strong,.history-score span{display:block}.history-score strong{font-size:1rem}.history-score span{font-size:.58rem;text-transform:uppercase;letter-spacing:.04em}.history-score.good{color:#0d714d;background:#e3f7ef}.history-score.medium{color:#9a6500;background:#fff3d8}.history-score.low{color:#a33446;background:#ffecef}.history-main{min-width:0}.history-kind{color:#455bd2;font-size:.65rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.history-main h3{margin:3px 0 2px;color:#172640;font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-main>p{margin:0 0 6px;color:#5c6b82;font-size:.75rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-meta{display:flex;gap:8px 13px;flex-wrap:wrap;color:#6b7a91;font-size:.67rem}.history-delete{color:#a63b4a!important;font-size:.72rem!important}.history-limit-note{margin:11px 0 0;color:var(--muted);font-size:.74rem;text-align:center}.local-history-head{align-items:flex-end;margin-bottom:15px}.history-clear-button{flex:0 0 auto}.local-consent-callout{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px;background:#f6f8fd;border:1px solid var(--border);border-radius:15px}.local-consent-callout strong{color:#172640}.local-consent-callout p{margin:3px 0 0;color:var(--muted);font-size:.83rem}.result-summary{grid-template-columns:repeat(4,1fr)!important}.result-summary .duration strong{color:#5365d8;font-size:1.05rem}.result-storage-note{margin:0 0 15px;padding:11px 13px;color:#126a4b;background:#e9f8f2;border:1px solid #b9e5d2;border-radius:11px;font-size:.82rem;font-weight:750}.result-storage-note.neutral{color:#59687e;background:#f3f6fa;border-color:#d7e0eb}
@media(max-width:850px){.local-stat-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.local-dashboard-grid,.local-history-grid{grid-template-columns:1fr}.local-data-wide{grid-column:auto}}
@media(max-width:760px){.local-dashboard,.local-history-panel{padding:17px}.local-dashboard-head,.local-history-head{align-items:flex-start;flex-direction:column}.local-dashboard-head button,.history-clear-button{width:100%}.local-stat-cards{gap:7px}.local-stat-cards article{padding:12px}.local-stat-cards strong{font-size:1.08rem}.history-trend{min-height:150px}.trend-column{grid-template-rows:18px 98px 17px}.trend-track{height:95px}.local-performance-row{grid-template-columns:minmax(0,1fr) 112px;gap:9px}.local-history-item{grid-template-columns:55px minmax(0,1fr);gap:10px}.history-score{width:52px;height:52px;border-radius:14px}.history-delete{grid-column:2;justify-self:start}.history-meta{gap:5px 9px}.local-consent-callout{align-items:flex-start;flex-direction:column}.local-consent-callout button{width:100%}.result-summary{grid-template-columns:repeat(2,1fr)!important}}
@media(max-width:390px){.local-stat-cards{grid-template-columns:1fr 1fr}.local-performance-row{grid-template-columns:1fr}.local-performance-score{grid-template-columns:42px minmax(0,1fr)}}
