.a11y-root{
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  color:#0B1F3F;
}

.a11y-toggle{
  position:fixed;z-index:1000;
  left:calc(16px + env(safe-area-inset-left,0px));
  bottom:calc(16px + env(safe-area-inset-bottom,0px));
  width:56px;height:56px;border-radius:50%;
  border:2px solid #fff;background:#2458A0;color:#fff;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 18px rgba(11,31,63,.35);
}
.a11y-toggle:hover{background:#0B1F3F;}
.a11y-toggle:focus-visible{outline:3px solid #0B1F3F;outline-offset:3px;}
.a11y-toggle svg{width:30px;height:30px;}

.a11y-panel{
  position:fixed;z-index:1001;
  left:calc(16px + env(safe-area-inset-left,0px));
  bottom:calc(84px + env(safe-area-inset-bottom,0px));
  width:min(340px,calc(100vw - 32px));
  max-height:calc(100vh - 110px);
  max-height:calc(100dvh - 110px);
  overflow:auto;overscroll-behavior:contain;
  background:#fff;border:1px solid #B7C2CE;border-radius:14px;
  box-shadow:0 18px 50px rgba(11,31,63,.3);
  padding:16px;
}
.a11y-panel[hidden]{display:none;}

.a11y-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;}
.a11y-head h2{
  font-family:'Space Grotesk','Inter',system-ui,sans-serif;
  font-size:1.125rem;font-weight:700;margin:0;color:#0B1F3F;
}
.a11y-close{
  width:44px;height:44px;border:1px solid #B7C2CE;border-radius:8px;background:#fff;
  color:#0B1F3F;cursor:pointer;display:flex;align-items:center;justify-content:center;
}
.a11y-close svg{width:18px;height:18px;}

.a11y-size{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  border:1px solid #EDF1F5;background:#F6F8FB;border-radius:10px;padding:8px 10px;margin-bottom:10px;
}
.a11y-size span.lbl{font-size:.875rem;font-weight:600;}
.a11y-size .ctrl{display:flex;align-items:center;gap:6px;}
.a11y-size output{min-width:3.5em;text-align:center;font-weight:600;font-size:.875rem;}
.a11y-size button{
  min-width:44px;height:44px;border-radius:8px;border:1px solid #B7C2CE;background:#fff;
  color:#0B1F3F;font-weight:700;font-size:1rem;cursor:pointer;
}
.a11y-size button:disabled{opacity:.4;cursor:not-allowed;}

.a11y-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.a11y-opt{
  position:relative;min-height:64px;padding:10px 8px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
  border:1px solid #B7C2CE;border-radius:10px;background:#fff;color:#0B1F3F;
  font:inherit;font-size:.8125rem;font-weight:600;line-height:1.2;text-align:center;cursor:pointer;
}
.a11y-opt svg{width:22px;height:22px;flex:none;}
.a11y-opt:hover{border-color:#2458A0;}
.a11y-opt[aria-pressed="true"]{border:2px solid #2458A0;background:#E8F0FB;}
.a11y-opt[aria-pressed="true"]::after{
  content:"✓";position:absolute;top:4px;right:8px;font-size:.875rem;color:#2458A0;
}
.a11y-opt:focus-visible,.a11y-size button:focus-visible,.a11y-close:focus-visible,.a11y-reset:focus-visible{
  outline:3px solid #2458A0;outline-offset:2px;
}

.a11y-reset{
  width:100%;margin-top:12px;min-height:44px;border-radius:8px;
  border:1px solid #0B1F3F;background:#0B1F3F;color:#fff;font:inherit;font-weight:600;cursor:pointer;
}
.a11y-note{margin:10px 0 0;font-size:.75rem;color:#14315C;line-height:1.4;}

.a11y-guia{
  position:fixed;left:0;right:0;height:14px;z-index:999;pointer-events:none;
  background:rgba(255,213,0,.35);border-top:2px solid #0B1F3F;border-bottom:2px solid #0B1F3F;
  transform:translateY(-50%);display:none;
}
html.a11y-guia-on .a11y-guia{display:block;}

.a11y-leyendo{outline:3px dashed #2458A0!important;outline-offset:4px;border-radius:4px;}

html.a11y-fs-1{font-size:112.5%;}
html.a11y-fs-2{font-size:125%;}
html.a11y-fs-3{font-size:137.5%;}
html.a11y-fs-4{font-size:150%;}

html.a11y-contraste body,
html.a11y-contraste body *:not(.a11y-root, .a11y-root *, img, picture, svg, svg *){
  background-color:#000!important;background-image:none!important;
  color:#fff!important;border-color:#fff!important;box-shadow:none!important;text-shadow:none!important;
}
html.a11y-contraste body a:not(.a11y-root *){color:#FFEB3B!important;}
html.a11y-contraste .btn{border:2px solid #FFEB3B!important;}

html.a11y-contraste .hero-art{background-color:#fff!important;}

html.a11y-contraste .svc .num{color:#fff!important;}

html.a11y-grises body > *:not(.a11y-root){filter:grayscale(1);}

html.a11y-enlaces body a:not(.a11y-root *){text-decoration:underline!important;text-underline-offset:3px;}

html.a11y-legible body *:not(.a11y-root, .a11y-root *, svg, svg *){
  font-family:Verdana,Tahoma,'Segoe UI',Arial,sans-serif!important;
}

html.a11y-espaciado body :is(p,li,a,summary,h1,h2,h3,span,strong):not(.a11y-root *){
  line-height:1.5!important;letter-spacing:.12em!important;word-spacing:.16em!important;
}
html.a11y-espaciado body p:not(.a11y-root *){margin-bottom:2em!important;}

html.a11y-sin-animacion *,html.a11y-sin-animacion *::before,html.a11y-sin-animacion *::after{
  animation:none!important;transition:none!important;scroll-behavior:auto!important;
}
html.a11y-sin-animacion{scroll-behavior:auto!important;}

html.a11y-cursor,html.a11y-cursor *{
  cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M6 3l30 26-13 2 8 15-6 3-8-15-11 9z' fill='%23000' stroke='%23fff' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3,auto!important;
}

@media print{.a11y-root,.a11y-guia{display:none!important;}}
