/* ==========================================================================
   Barra de accesibilidad: mismo botón, colores y panel que el sitio UDP.
   ========================================================================== */
.pojo-sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

#pojo-a11y-toolbar { position: fixed; top: 136px; z-index: 9999; font-size: 16px !important; line-height: 1.4; width: 180px; font-family: var(--massi-font-text); }
#pojo-a11y-toolbar *, #pojo-a11y-toolbar ::before, #pojo-a11y-toolbar ::after { box-sizing: border-box; }
#pojo-a11y-toolbar.pojo-a11y-toolbar-right { right: -180px; transition: right 750ms cubic-bezier(.23, 1, .32, 1); }
#pojo-a11y-toolbar.pojo-a11y-toolbar-right.pojo-a11y-toolbar-open { right: 0; }

/* Botón (círculo amarillo; se expande al pasar el mouse) */
#pojo-a11y-toolbar .pojo-a11y-toolbar-toggle { position: absolute; right: 220px; top: 0; }
#pojo-a11y-toolbar .pojo-a11y-toolbar-toggle a {
	display: inline-flex; align-items: center; justify-content: flex-end; gap: 12px; width: 50px; height: 50px; padding: 0 12px;
	border-radius: 9999px; overflow: hidden; white-space: nowrap; text-decoration: none; line-height: 0; font-size: 32px;
	background-color: #fcd303; color: #1c1c1c; box-shadow: 0 4px 7px rgba(0, 0, 0, .25); transition: width .3s, box-shadow .3s;
}
#pojo-a11y-toolbar .pojo-a11y-toolbar-toggle a::before {
	content: attr(data-label); font: 600 14px/20px var(--massi-font-text); color: #1c1c1c; opacity: 0; transition: opacity .2s;
}
#pojo-a11y-toolbar .pojo-a11y-toolbar-toggle a svg { width: 26px; height: 26px; flex-shrink: 0; fill: #1c1c1c; max-width: inherit; }
#pojo-a11y-toolbar .pojo-a11y-toolbar-toggle a:hover, #pojo-a11y-toolbar .pojo-a11y-toolbar-toggle a:focus-visible { width: 210px; }
#pojo-a11y-toolbar .pojo-a11y-toolbar-toggle a:hover::before, #pojo-a11y-toolbar .pojo-a11y-toolbar-toggle a:focus-visible::before { opacity: 1; }
#pojo-a11y-toolbar .pojo-a11y-toolbar-toggle a:focus-visible { outline: 2px solid #1c1c1c; outline-offset: 2px; }

/* Panel */
#pojo-a11y-toolbar .pojo-a11y-toolbar-overlay { width: 180px; border: 1px solid #c23633; background: #fff; font-size: 100%; }
#pojo-a11y-toolbar .pojo-a11y-toolbar-title { display: block; margin: 0; padding: 7px 12px 0; font: 700 16px/2 var(--massi-font-text); color: #333; }
#pojo-a11y-toolbar ul.pojo-a11y-toolbar-items { list-style: none; margin: 0; padding: 7px 0; }
#pojo-a11y-toolbar ul.pojo-a11y-toolbar-items.pojo-a11y-links { border-top: 1px solid #c23633; }
#pojo-a11y-toolbar ul.pojo-a11y-toolbar-items li { margin: 0; padding: 0; }
#pojo-a11y-toolbar li.pojo-a11y-toolbar-item a { display: block; padding: 7px 12px; font-size: 80%; line-height: 1; color: #333; text-decoration: none; background: transparent; }
#pojo-a11y-toolbar li.pojo-a11y-toolbar-item a:hover, #pojo-a11y-toolbar li.pojo-a11y-toolbar-item a:focus-visible { background: #f2f2f2; outline: 0; }
#pojo-a11y-toolbar li.pojo-a11y-toolbar-item a.active { background: #c23633; color: #fff; font-weight: 700; }
#pojo-a11y-toolbar li.pojo-a11y-toolbar-item a svg { display: inline-block; width: 1.5em; padding-right: 6px; vertical-align: middle; text-align: center; }
#pojo-a11y-toolbar .pojo-a11y-toolbar-text { vertical-align: middle; }

@media (max-width: 767px) {
	/* En móvil el botón va abajo a la derecha (como en las correcciones) y el panel se abre encima */
	#pojo-a11y-toolbar { top: auto; bottom: 96px; }
	#pojo-a11y-toolbar .pojo-a11y-toolbar-toggle { right: 196px; top: auto; bottom: 0; }
	#pojo-a11y-toolbar .pojo-a11y-toolbar-overlay { position: absolute; right: 0; bottom: 0; max-height: calc(100vh - 140px); overflow: auto; }
}
@media (prefers-reduced-motion: reduce) { #pojo-a11y-toolbar.pojo-a11y-toolbar-right, #pojo-a11y-toolbar .pojo-a11y-toolbar-toggle a { transition: none; } }

/* ---------- Modos ---------- */
body.pojo-a11y-grayscale { filter: grayscale(1); }

body.pojo-a11y-high-contrast, body.pojo-a11y-high-contrast *:not(#pojo-a11y-toolbar):not(#pojo-a11y-toolbar *) { background-color: #000 !important; background-image: none !important; color: #fff !important; box-shadow: none !important; text-shadow: none !important; border-color: #fff !important; }
body.pojo-a11y-high-contrast a:not(#pojo-a11y-toolbar *) { color: #ffff00 !important; text-decoration: underline !important; }
body.pojo-a11y-high-contrast :is(h1, h2, h3, h4, h5, h6):not(#pojo-a11y-toolbar *) { color: #40c090 !important; }
body.pojo-a11y-high-contrast :is(button, input, select, textarea, .massi-btn):not(#pojo-a11y-toolbar *) { border: 1px solid #fff !important; }
body.pojo-a11y-high-contrast img:not(#pojo-a11y-toolbar *) { background-color: #808080 !important; }

body.pojo-a11y-negative-contrast, body.pojo-a11y-negative-contrast *:not(#pojo-a11y-toolbar):not(#pojo-a11y-toolbar *) { background-color: #000 !important; background-image: none !important; color: #fff !important; box-shadow: none !important; }
body.pojo-a11y-negative-contrast a:not(#pojo-a11y-toolbar *) { color: #ffff00 !important; }
body.pojo-a11y-negative-contrast :is(button, input, select, textarea, .massi-btn):not(#pojo-a11y-toolbar *) { border: 1px solid #fff !important; }

body.pojo-a11y-light-background, body.pojo-a11y-light-background *:not(#pojo-a11y-toolbar):not(#pojo-a11y-toolbar *) { background-color: #fff !important; background-image: none !important; color: #000 !important; box-shadow: none !important; }
body.pojo-a11y-light-background a:not(#pojo-a11y-toolbar *) { color: #0000cc !important; }

body.pojo-a11y-links-underline a:not(#pojo-a11y-toolbar *), body.pojo-a11y-links-underline a:not(#pojo-a11y-toolbar *) * { text-decoration: underline !important; }
body.pojo-a11y-readable-font, body.pojo-a11y-readable-font *:not(#pojo-a11y-toolbar):not(#pojo-a11y-toolbar *):not(svg):not(path) { font-family: Verdana, Arial, Helvetica, sans-serif !important; }

/* El tamaño de texto (120 % – 200 %) lo aplica a11y.js escalando cada elemento de forma proporcional. */
