/* Conserje Orihuela v5.6 - accesibilidad y claridad. Solo presentación. */
.skip-link{position:fixed;left:14px;top:8px;z-index:9999;transform:translateY(-180%);background:#30243e;color:#fff;border-radius:8px;padding:12px 16px;text-decoration:none;font-weight:750;box-shadow:0 7px 18px #0002}
.skip-link:focus{transform:translateY(0);outline:3px solid #f8d9ee;outline-offset:2px}
:focus-visible{outline:3px solid #b28bbf;outline-offset:3px}
/* Texto blanco sobre el violeta pastel original era 4,1:1: elevar contraste. */
.btn:not(.danger):not(.secondary):not(.challenge):not(.practical),button:not(.danger),.identity-login-card button{background:#70548e!important;color:#fff!important}
.btn:not(.danger):not(.secondary):not(.challenge):not(.practical):hover,button:not(.danger):hover{background:#5b4178!important}
.nav-toggle{display:none;background:#6f5c80!important;color:#fff;border:1px solid #a691b8;border-radius:10px;padding:9px 13px;line-height:1.3;min-height:44px;min-width:85px;font:inherit;font-weight:750;cursor:pointer}
.nav-toggle span{font-size:1.1rem}
.nav-test-main{display:block}
.nav-test-options a{padding:10px 12px;min-height:38px}
.test-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.test-menu-card{min-height:280px}
.test-menu-card .btn{min-height:45px;display:flex;align-items:center;justify-content:center}
.identity-tests-head{min-height:175px}
.identity-tests-head .lead{max-width:700px}
/* Texto claro y márgenes en zonas densas */
main p{line-height:1.58}
.topic,.study-topic,.quiz-question{overflow-wrap:anywhere}
.quiz-question .opt{border:1px solid #e8e3ed;min-height:48px;display:flex;align-items:flex-start;gap:6px;cursor:pointer;padding:13px 14px}
.quiz-question .opt input{flex-shrink:0;margin-top:3px;accent-color:#70548e;width:17px;height:17px}
.quiz-question .opt:focus-within{outline:2px solid #957bb5;outline-offset:1px}
.quiz-question h3{line-height:1.45}
.quiz-question .instant-result{line-height:1.58}
.correction-v55-opt{overflow-wrap:anywhere}
.chart-fallback{margin-top:13px;border:1px solid #dfd5e8;border-radius:10px;padding:12px 14px;background:#fcfaff}
.chart-fallback summary{font-weight:700;cursor:pointer;min-height:24px;color:#554069}
.chart-fallback summary:focus-visible{outline:2px solid #957bb5}
.table-scroll{overflow-x:auto;margin-top:12px}
.table-scroll table{width:100%;border-collapse:collapse;min-width:400px}
.table-scroll th,.table-scroll td{text-align:left;padding:9px;border-bottom:1px solid #e4dce9}
.table-scroll th{font-weight:700}
/* Los enlaces no dependen solo del tono: subrayado cuando ganan foco. */
main a:not(.btn):hover,main a:not(.btn):focus-visible{text-decoration:underline;text-underline-offset:3px}
@media(max-width:820px){
 .nav{display:flex;flex-direction:row!important;flex-wrap:wrap;justify-content:space-between!important;align-items:center!important;gap:10px!important;padding:10px 13px!important}
 .identity-brand{min-width:0;flex:1;width:auto}
 .nav-toggle{display:inline-flex;gap:8px;align-items:center;justify-content:center;flex:0 0 auto}
 .nav nav{width:100%;display:flex;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:0!important;padding:8px 0 5px;border-top:1px solid #82738a}
 .has-js .nav:not(.is-open) nav{display:none!important}
 .nav nav > a,.nav .nav-test-main{display:block;font-size:.93rem!important;padding:12px 13px!important;min-height:44px;border-radius:8px}
 .nav-test-menu{width:100%}
 .nav-test-options{display:flex!important;position:static!important;transform:none!important;flex-direction:column;min-width:0!important;width:100%;padding:4px 10px 6px 21px;box-shadow:none;border:0;border-left:2px solid #c3a4cd;background:transparent!important}
 .nav-test-options a{display:block;padding:10px 13px;white-space:normal;line-height:1.4;min-height:40px}
 .test-menu-grid{grid-template-columns:1fr}
 .test-menu-card{min-height:0}
 .identity-tests-head{min-height:0;display:block;padding:20px 20px!important}
 .identity-tests-head .identity-tests-portrait{display:none}
 .identity-tests-head h1{margin:5px 0 8px}
 .identity-tests-head .lead{margin:0}
}
@media(max-width:480px){
 .identity-brand-img{width:44px;height:44px}
 .identity-brand-copy strong{font-size:.75rem}
 main.wrap{padding-top:16px}
 .test-menu-card{padding:18px}
 .test-menu-card h2{font-size:1.25rem}
 .test-menu-count{font-size:1.55rem}
 .quiz-head h1{font-size:1.75rem}
 .quiz-question{padding:15px}
 .quiz-question .opt{padding:12px 9px}
 .answer-line{overflow-wrap:anywhere}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
/* En login v5.3 existe estilo inline con !important: esta regla más específica lo supera. */
.identity-login-card form button{background:#70548e!important;color:#fff!important}
.identity-login-card form button:hover{background:#5b4178!important}
