/* Panel de accesibilidad: autónomo (sirve en el sitio público y en el admin) */
.a11y { --a11y-navy: #08193b; --a11y-navy-2: #0d2d62; --a11y-gold: #ffb500; --a11y-line: #d9dfe9; --a11y-ink: #0b1a33;
  position: fixed; left: 18px; bottom: 18px; z-index: 9990; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; }
.a11y__toggle {
  width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--a11y-gold); background: var(--a11y-navy); color: #fff;
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 26px -8px rgba(3, 10, 26, .55); transition: transform .2s ease, background .2s ease;
}
.a11y__toggle:hover { transform: scale(1.06); background: var(--a11y-navy-2); }
.a11y__toggle svg { width: 30px; height: 30px; }
.a11y__toggle:focus-visible, .a11y button:focus-visible, .a11y a:focus-visible { outline: 3px solid var(--a11y-gold); outline-offset: 3px; }
.a11y__panel {
  position: absolute; left: 0; bottom: 66px; width: min(340px, calc(100vw - 36px)); max-height: calc(100vh - 110px); overflow: auto;
  background: #fff; color: var(--a11y-ink); border: 1px solid var(--a11y-line); border-top: 4px solid var(--a11y-gold);
  box-shadow: 0 24px 60px -20px rgba(3, 10, 26, .6); padding: 1rem 1rem 1.1rem; font-size: 15px; line-height: 1.4;
}
.a11y__panel[hidden] { display: none !important; }
.a11y__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.a11y__head h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: .02em; color: var(--a11y-navy-2); font-family: inherit; text-transform: none; }
.a11y__close { width: 34px; height: 34px; border: 0; background: #eef2f8; color: var(--a11y-navy); cursor: pointer; display: grid; place-items: center; }
.a11y__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.a11y__size { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: .4rem; padding: .7rem .8rem; background: #f4f6fa; margin-bottom: .7rem; }
.a11y__size span { font-weight: 600; font-size: 14px; }
.a11y__size button { width: 40px; height: 36px; border: 1px solid var(--a11y-line); background: #fff; color: var(--a11y-navy); font-weight: 700; font-size: 15px; cursor: pointer; }
.a11y__size button:hover { border-color: var(--a11y-navy-2); }
.a11y__size output { min-width: 3.4em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; }
.a11y__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.a11y__opt {
  display: grid; justify-items: center; gap: .35rem; padding: .8rem .4rem; border: 1px solid var(--a11y-line); background: #fff;
  color: var(--a11y-ink); cursor: pointer; font-size: 13.5px; font-weight: 600; text-align: center; transition: border-color .2s, background .2s;
}
.a11y__opt svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.a11y__opt:hover { border-color: var(--a11y-navy-2); }
.a11y__opt[aria-pressed="true"] { background: var(--a11y-navy); border-color: var(--a11y-navy); color: #fff; }
.a11y__opt[aria-pressed="true"] svg { color: var(--a11y-gold); }
.a11y__foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--a11y-line); }
.a11y__reset { border: 0; background: none; color: var(--a11y-navy-2); font-weight: 700; cursor: pointer; padding: .3rem 0; text-decoration: underline; font-size: 14px; }
.a11y__foot a { color: var(--a11y-navy-2); font-size: 13.5px; }
/* En el admin la barra lateral ocupa la izquierda: el botón va a la derecha */
body.a11y-px .a11y { left: auto; right: 18px; }
body.a11y-px .a11y__panel { left: auto; right: 0; }
@media (max-width: 560px) { .a11y { left: 12px; bottom: 12px; } body.a11y-px .a11y { left: auto; right: 12px; } .a11y__toggle { width: 48px; height: 48px; } .a11y__panel { bottom: 60px; } }

/* ---------- Ajustes que aplica el panel (atributos en <html>) ---------- */
html[data-a11y-text="1"] { font-size: 112.5%; }
html[data-a11y-text="2"] { font-size: 125%; }
html[data-a11y-text="3"] { font-size: 137.5%; }
html[data-a11y-text="4"] { font-size: 150%; }
html[data-a11y-text="-1"] { font-size: 93.75%; }
html[data-a11y-text="1"] body.a11y-px { font-size: 16.9px; }
html[data-a11y-text="2"] body.a11y-px { font-size: 18.75px; }
html[data-a11y-text="3"] body.a11y-px { font-size: 20.6px; }
html[data-a11y-text="4"] body.a11y-px { font-size: 22.5px; }
html[data-a11y-text="-1"] body.a11y-px { font-size: 14px; }

html.a11y-contrast {
  --ink: #000; --ink-2: #000; --ink-3: #111; --line: #000; --gold-ink: #4d3200; --n-200: #fff; --n-300: #fff; --n-400: #f2f2f2; --line-dark: rgba(255, 255, 255, .7);
  --muted: #000; --text-muted: #000;
}
html.a11y-contrast body :is(p, li, span, small, label, td, th, dd, dt, figcaption) { text-shadow: none; }
html.a11y-contrast .page-hero__img img, html.a11y-contrast .hero__bg img, html.a11y-contrast .close__bg img { opacity: .18 !important; }
html.a11y-contrast :focus-visible { outline: 3px solid #ffb500 !important; outline-offset: 2px; }

html.a11y-links body a:not(.btn):not(.a11y a) { text-decoration: underline !important; text-underline-offset: .18em; text-decoration-thickness: .1em; }

html.a11y-readable body, html.a11y-readable body :is(h1, h2, h3, h4, h5, h6, p, li, a, button, span, label, input, select, textarea, small, strong, b) {
  font-family: Verdana, Tahoma, 'Segoe UI', sans-serif !important; letter-spacing: .01em !important; text-transform: none !important;
}

html.a11y-spacing body :is(p, li, dd, td, label, small, blockquote) { line-height: 1.9 !important; letter-spacing: .06em !important; word-spacing: .16em !important; }
html.a11y-spacing body p { margin-bottom: 1.4em !important; }

html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after {
  animation: none !important; transition: none !important; 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='40' height='40' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l14 7-6 2-2 6z' fill='%23000' stroke='%23fff' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, auto !important;
}
