/* Módulo de accesibilidad. Las reglas de ajustes cuelgan de html.acc-… y el panel queda a salvo con #acc-root. */

/* ---------- Botón y panel ---------- */
#acc-root{ position:static; }
#acc-root .acc-btn{
  position:fixed; bottom:var(--acc-bot, 18px); left:18px; z-index:160; width:56px; height:56px; padding:0; border-radius:50%;
  background:#2a1e3d !important; color:#fff !important; border:3px solid #d9b45a !important; cursor:pointer;
  display:flex; align-items:center; justify-content:center; box-shadow:0 6px 20px rgba(0,0,0,.5);
}
#acc-root.acc-pos-der .acc-btn{ left:auto; right:92px; }
#acc-root .acc-btn:hover{ transform:scale(1.07); }
#acc-root .acc-btn:focus-visible, #acc-root .acc-op:focus-visible, #acc-root .acc-x:focus-visible, #acc-root .acc-reset:focus-visible{ outline:3px solid #fff !important; outline-offset:2px !important; box-shadow:0 0 0 6px #000 !important; }
#acc-root .acc-panel{
  position:fixed; bottom:calc(var(--acc-bot, 18px) + 66px); left:18px; z-index:300; width:min(420px, calc(100vw - 24px)); max-height:min(80vh, 680px);
  display:flex; flex-direction:column; background:#17121f !important; color:#f5f0e6 !important; border:2px solid #d9b45a !important;
  box-shadow:0 18px 50px rgba(0,0,0,.65); border-radius:10px; overflow:hidden;
}
#acc-root.acc-pos-der .acc-panel{ left:auto; right:18px; }
#acc-root .acc-panel[hidden]{ display:none; }
#acc-root .acc-cab{ display:flex; align-items:center; justify-content:space-between; padding:12px 16px; border-bottom:1px solid #d9b45a; flex:none; }
#acc-root .acc-tit{ margin:0; font-size:19px; text-transform:none; }
#acc-root .acc-x{ width:40px; height:40px; font-size:28px; line-height:1; background:transparent !important; color:#f5f0e6 !important; border:2px solid #d9b45a !important; border-radius:6px; cursor:pointer; padding:0; }
#acc-root .acc-cuerpo{ overflow-y:auto; padding:4px 14px 14px; flex:1 1 auto; }
#acc-root .acc-grupo{ margin:16px 0 8px; font-size:13px; letter-spacing:.08em !important; text-transform:uppercase; color:#d9b45a !important; }
#acc-root .acc-rej{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
#acc-root .acc-op{
  display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:3px; min-height:62px; padding:8px 10px; text-align:left !important;
  background:#241b33 !important; color:#f5f0e6 !important; border:2px solid #4a3a63 !important; border-radius:8px; cursor:pointer; font-size:14px; line-height:1.25;
}
#acc-root .acc-op:hover{ border-color:#d9b45a !important; }
#acc-root .acc-op .acc-n{ font-weight:600; }
#acc-root .acc-op .acc-v{ font-size:12.5px; opacity:.85; }
#acc-root .acc-op.on{ background:#d9b45a !important; color:#1a1a1a !important; border-color:#d9b45a !important; }
#acc-root .acc-pie{ margin-top:16px; }
#acc-root .acc-reset{ width:100%; min-height:48px; font-size:15px; font-weight:700; background:#7a1f2b !important; color:#fff !important; border:2px solid #d9b45a !important; border-radius:8px; cursor:pointer; }
#acc-root .acc-nota{ margin:10px 0 0; font-size:12.5px; line-height:1.4; color:#cfc6b8 !important; }
#acc-root .acc-vivo{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
@media (max-width:520px){
  #acc-root .acc-btn{ width:50px; height:50px; left:12px; bottom:var(--acc-bot, 12px); }
  #acc-root.acc-pos-der .acc-btn{ right:76px; }
  #acc-root .acc-panel{ left:8px; right:8px; width:auto; bottom:calc(var(--acc-bot, 12px) + 62px); max-height:calc(100vh - var(--acc-bot, 12px) - 80px); }
  #acc-root.acc-pos-der .acc-panel{ left:8px; right:8px; }
}
@media print{ #acc-root, .acc-reg, .acc-mask{ display:none !important; } }

/* El panel nunca hereda los ajustes (así siempre se puede deshacer lo elegido) */
#acc-root, #acc-root *{
  font-family:system-ui, -apple-system, "Segoe UI", Arial, sans-serif !important; letter-spacing:normal !important; word-spacing:normal !important;
  text-align:left !important; text-shadow:none !important; filter:none !important; zoom:1 !important; max-width:none !important;
  line-height:1.25 !important; font-weight:400 !important; font-style:normal !important; text-decoration:none !important; outline-offset:2px;
}
#acc-root .acc-op .acc-n, #acc-root .acc-reset, #acc-root .acc-tit, #acc-root .acc-grupo{ font-weight:700 !important; }
#acc-root .acc-op .acc-n{ font-weight:600 !important; }
#acc-root .acc-cab, #acc-root .acc-cuerpo, #acc-root .acc-pie, #acc-root .acc-rej, #acc-root .acc-tit, #acc-root .acc-grupo, #acc-root .acc-nota, #acc-root .acc-op *{ background:transparent !important; box-shadow:none !important; }
#acc-root .acc-op *{ color:inherit !important; border:0 !important; }
#acc-root .acc-cab{ border-color:#d9b45a !important; }
#acc-root .acc-op{ box-shadow:none !important; }
#acc-root .acc-panel, #acc-root .acc-btn{ box-shadow:0 12px 40px rgba(0,0,0,.6) !important; }
#acc-root .acc-vivo{ background:transparent !important; }
#acc-root svg, #acc-root svg *{ background:transparent !important; }
#acc-root .acc-tit{ color:#f5f0e6 !important; }

/* ---------- Texto ---------- */
html.acc-fuente-1{ font-size:112.5% !important; }
html.acc-fuente-2{ font-size:125% !important; }
html.acc-fuente-3{ font-size:150% !important; }
html.acc-fuente-4{ font-size:175% !important; }
html.acc-zoom-1 body > *:not(#acc-root):not(.acc-reg):not(.acc-mask){ zoom:1.1; }
html.acc-zoom-2 body > *:not(#acc-root):not(.acc-reg):not(.acc-mask){ zoom:1.25; }
html.acc-zoom-3 body > *:not(#acc-root):not(.acc-reg):not(.acc-mask){ zoom:1.5; }
html.acc-legible *, html.acc-legible *::before, html.acc-legible *::after{ font-family:Verdana, Tahoma, "Segoe UI", Arial, sans-serif !important; font-style:normal !important; }
html.acc-dislexia *, html.acc-dislexia *::before, html.acc-dislexia *::after{ font-family:Lexend, "Atkinson Hyperlegible", "Comic Sans MS", "Comic Neue", "Trebuchet MS", Verdana, sans-serif !important; font-style:normal !important; letter-spacing:.04em; word-spacing:.12em; }
html.acc-altura-1 body *{ line-height:1.6 !important; }
html.acc-altura-2 body *{ line-height:1.9 !important; }
html.acc-altura-3 body *{ line-height:2.3 !important; }
html.acc-letras-1 body *{ letter-spacing:.05em !important; }
html.acc-letras-2 body *{ letter-spacing:.1em !important; }
html.acc-letras-3 body *{ letter-spacing:.16em !important; }
html.acc-palabras-1 body *{ word-spacing:.12em !important; }
html.acc-palabras-2 body *{ word-spacing:.25em !important; }
html.acc-palabras-3 body *{ word-spacing:.45em !important; }
html.acc-grosor-1 body *{ font-weight:600 !important; }
html.acc-grosor-2 body *{ font-weight:700 !important; }
html.acc-grosor-3 body *{ font-weight:900 !important; }
html.acc-alinear-1 body *{ text-align:left !important; }
html.acc-alinear-2 body *{ text-align:center !important; }
html.acc-alinear-3 body *{ text-align:right !important; }
html.acc-alinear-4 body *{ text-align:justify !important; }
html.acc-ancho main p, html.acc-ancho main li, html.acc-ancho main blockquote, html.acc-ancho main dd{ max-width:62ch !important; }

/* ---------- Color ---------- */
html.acc-claro, html.acc-claro *{
  background-color:#fff !important; background-image:none !important; color:#111 !important; border-color:#555 !important; box-shadow:none !important; text-shadow:none !important; }
html.acc-claro *::before, html.acc-claro *::after, html.acc-claro [aria-hidden="true"]:empty{ background:transparent !important; box-shadow:none !important; border-color:inherit; }
html.acc-claro a, html.acc-claro a *{ color:#0b3d91 !important; text-decoration:underline !important; }
html.acc-alto, html.acc-alto *{
  background-color:#000 !important; background-image:none !important; color:#ff0 !important; border-color:#ff0 !important; box-shadow:none !important; text-shadow:none !important; }
html.acc-alto *::before, html.acc-alto *::after, html.acc-alto [aria-hidden="true"]:empty{ background:transparent !important; box-shadow:none !important; border-color:inherit; }
html.acc-alto a, html.acc-alto a *{ color:#0ff !important; text-decoration:underline !important; }
html.acc-oscuro, html.acc-oscuro *{
  background-color:#121212 !important; background-image:none !important; color:#e8e8e8 !important; border-color:#555 !important; box-shadow:none !important; text-shadow:none !important; }
html.acc-oscuro *::before, html.acc-oscuro *::after, html.acc-oscuro [aria-hidden="true"]:empty{ background:transparent !important; box-shadow:none !important; border-color:inherit; }
html.acc-oscuro a, html.acc-oscuro a *{ color:#8ab4f8 !important; text-decoration:underline !important; }
html.acc-mono{ filter:grayscale(1); }

/* ---------- Lectura ---------- */
.acc-reg{ display:none; position:fixed; left:0; right:0; top:-100px; height:6px; background:#ffeb3b; border-top:2px solid #000; border-bottom:2px solid #000; z-index:250; pointer-events:none; }
.acc-mask{ display:none; position:fixed; left:0; width:100%; top:-300px; height:110px; box-shadow:0 0 0 200vmax rgba(0,0,0,.74); z-index:249; pointer-events:none; }
html.acc-linea .acc-reg{ display:block; }
html.acc-mascara .acc-mask{ display:block; }

/* ---------- Contenido ---------- */
html.acc-imagenes img, html.acc-imagenes picture, html.acc-imagenes video, html.acc-imagenes canvas, html.acc-imagenes iframe{ display:none !important; }
html.acc-imagenes *, html.acc-imagenes *::before, html.acc-imagenes *::after{ background-image:none !important; }
html.acc-enlaces a:not(#acc-root a){ background:#ffeb3b !important; color:#000 !important; text-decoration:underline !important; text-decoration-thickness:2px !important; outline:2px solid #000 !important; outline-offset:1px; }
html.acc-titulos h1, html.acc-titulos h2, html.acc-titulos h3, html.acc-titulos h4, html.acc-titulos h5, html.acc-titulos h6{ background:#ffeb3b !important; color:#000 !important; padding:.1em .35em !important; outline:2px solid #000 !important; }
html.acc-contenido main p, html.acc-contenido main li, html.acc-contenido main blockquote, html.acc-contenido main td, html.acc-contenido main th, html.acc-contenido main label, html.acc-contenido main button, html.acc-contenido main input, html.acc-contenido main select, html.acc-contenido main textarea{
  outline:2px solid #ffeb3b !important; outline-offset:2px; background-color:rgba(255,235,59,.16) !important; }
html.acc-foco *:focus, html.acc-foco *:focus-visible{ outline:4px solid #ffeb3b !important; outline-offset:3px !important; box-shadow:0 0 0 8px #000 !important; }
html.acc-cursor, html.acc-cursor body, html.acc-cursor *{ cursor:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24'><path d='M4 2l15 11-7 1.5 4 7-3 1.5-4-7-5 5z' fill='black' stroke='white' stroke-width='1.5' stroke-linejoin='round'/></svg>") 4 2, auto !important; }
html.acc-cursor a, html.acc-cursor a *, html.acc-cursor button, html.acc-cursor button *, html.acc-cursor [role=button], html.acc-cursor select, html.acc-cursor summary, html.acc-cursor label, html.acc-cursor input[type=submit], html.acc-cursor input[type=checkbox], html.acc-cursor input[type=radio]{
  cursor:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24'><path d='M4 2l15 11-7 1.5 4 7-3 1.5-4-7-5 5z' fill='yellow' stroke='black' stroke-width='1.5' stroke-linejoin='round'/></svg>") 4 2, pointer !important; }
html.acc-cursor input[type=text], html.acc-cursor input[type=email], html.acc-cursor input[type=search], html.acc-cursor input[type=password], html.acc-cursor input[type=tel], html.acc-cursor textarea{ cursor:text !important; }
html.acc-animaciones *, html.acc-animaciones *::before, html.acc-animaciones *::after{ animation:none !important; transition:none !important; scroll-behavior:auto !important; }
html.acc-distrae .wa-float, html.acc-distrae .popup-aviso, html.acc-distrae .ads, html.acc-distrae marquee, html.acc-distrae .foot-extra{ display:none !important; }
