/* =========================================================
   A11Y — panel de accesibilidad y modos de visualización
   ========================================================= */
#a11yBtn{position:fixed;right:max(1rem,env(safe-area-inset-right));bottom:max(1rem,env(safe-area-inset-bottom));z-index:900;width:56px;height:56px;border-radius:50%;border:3px solid #fff;background:var(--teal);color:#fff;font-size:1.5rem;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.3)}
#a11y{position:fixed;right:max(1rem,env(safe-area-inset-right));bottom:5.5rem;z-index:900;width:min(360px,calc(100vw - 2rem));max-height:calc(100dvh - 7.5rem);overflow:auto;background:var(--white);color:var(--ink-2);border:1px solid var(--line);border-radius:var(--r-md);box-shadow:var(--shadow-lg);padding:1rem;display:none}
#a11y.open{display:block}
#a11y h2{font-size:1.1rem;margin-bottom:.5rem}
#a11y h3{font-size:.74rem;text-transform:uppercase;letter-spacing:.08em;color:var(--ink-3);margin:1rem 0 .4rem}
.g{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
.g button{min-height:48px;padding:.4rem;border:2px solid var(--line);border-radius:10px;background:var(--paper);cursor:pointer;font:inherit;font-size:.85rem;color:var(--ink-2)}
.g button[aria-pressed=true]{background:var(--teal);color:#fff;border-color:var(--teal)}
.reset{margin-top:.8rem;width:100%;min-height:44px;border-radius:10px;border:2px solid var(--teal);background:#fff;cursor:pointer;font:inherit}
#struct{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:1000;display:none;align-items:center;justify-content:center;padding:1rem}
#struct.open{display:flex}
#struct>div{background:var(--white);color:var(--ink-2);max-width:480px;width:100%;max-height:80dvh;overflow:auto;border-radius:var(--r-md);padding:1.2rem}
#struct a{display:block;padding:.3rem 0}
#struct .l3{padding-left:1rem;font-size:.92rem}
#mask-t,#mask-b{position:fixed;left:0;right:0;background:rgba(0,0,0,.72);z-index:850;display:none;pointer-events:none}
#mask-t{top:0}
body.mask #mask-t,body.mask #mask-b{display:block}

/* Modos */
html.big1{font-size:118%}
html.big2{font-size:135%}
html.big3{font-size:155%}
html.lh1 body{line-height:1.9}
html.lh2 body{line-height:2.3}
html.lh3 body{line-height:2.8}
html.al-left main,html.al-left footer{text-align:left}
html.al-center main,html.al-center footer{text-align:center}
html.al-right main,html.al-right footer{text-align:right}
html.al-justify main,html.al-justify footer{text-align:justify}
html.legible body,html.legible button{font-family:Verdana,Tahoma,sans-serif;letter-spacing:.03em;word-spacing:.12em}
html.contrast{--paper:#000;--paper-2:#000;--paper-3:#111;--white:#000;--ink:#fff;--ink-2:#fff;--ink-3:#eee;--line:#fff;--line-2:#fff;--teal:#ffd400;--teal-dark:#ffd400;--amber:#ffd400}
html.gray body{filter:grayscale(1)}
html.noimg img,html.noimg .pic{visibility:hidden}
html.still *,html.still *::before{animation:none!important;transition:none!important;scroll-behavior:auto!important}
html.links a{text-decoration:underline!important;text-underline-offset:3px;background:#ffef9e;color:#000!important;outline:2px solid #000}
html.focus *:focus,html.focus a:hover,html.focus button:hover{outline:4px solid #ff6a00!important;outline-offset:3px}