/* {Legal}isimo · herramienta de accesibilidad */
.dlg-acc {
	--dlg-acc-boton: #0652fe;
	--dlg-acc-icono: #ffffff;
	--dlg-acc-boton-hover: #000d7d;
	--dlg-acc-icono-hover: #ffffff;
	--dlg-acc-cabecera: #0652fe;
	--dlg-acc-cabecera-texto: #ffffff;
	--dlg-acc-activa: #0652fe;
	--dlg-acc-activa-texto: #ffffff;
	--dlg-acc-opcion-hover: #0652fe;
	--dlg-acc-x: 16px;
	--dlg-acc-y: 16px;
	--dlg-acc-tam: 52px;
	position: fixed;
	z-index: 2147482998;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.4;
	color: #12162b;
}
.dlg-acc *, .dlg-acc *::before, .dlg-acc *::after { box-sizing: border-box; }
.dlg-acc :is(h2, h3, button, output, p, a, span) { font-family: inherit; letter-spacing: normal; text-transform: none; text-shadow: none; }
/* Los temas suelen dar estilo a todos los botones: aquí se anula para que nada se descuadre. */
.dlg-acc button {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	min-width: 0;
	min-height: 0;
	max-width: none;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: none;
	transform: none;
}
.dlg-acc--grande { --dlg-acc-tam: 64px; }

/* Posición: lado horizontal + vertical, con la distancia a los bordes configurada. */
.dlg-acc--h-derecha { right: var(--dlg-acc-x); }
.dlg-acc--h-izquierda { left: var(--dlg-acc-x); }
.dlg-acc--v-abajo { bottom: var(--dlg-acc-y); }
.dlg-acc--v-arriba { top: var(--dlg-acc-y); }
.dlg-acc--v-centro { top: calc(50% + var(--dlg-acc-y)); transform: translateY(-50%); }
/* Si el botón de cookies está en la misma esquina, el de accesibilidad se separa. */
body:has(.dlg-ck-flotante--abajo-derecha:not([hidden])) .dlg-acc--v-abajo.dlg-acc--h-derecha,
body:has(.dlg-ck-flotante--abajo-izquierda:not([hidden])) .dlg-acc--v-abajo.dlg-acc--h-izquierda { bottom: calc(var(--dlg-acc-y) + 64px); }
body:has(.dlg-ck-flotante--arriba-derecha:not([hidden])) .dlg-acc--v-arriba.dlg-acc--h-derecha,
body:has(.dlg-ck-flotante--arriba-izquierda:not([hidden])) .dlg-acc--v-arriba.dlg-acc--h-izquierda { top: calc(var(--dlg-acc-y) + 64px); }

.dlg-acc .dlg-acc__boton {
	position: relative;
	width: var(--dlg-acc-tam);
	height: var(--dlg-acc-tam);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--dlg-acc-boton);
	color: var(--dlg-acc-icono);
	box-shadow: 0 6px 20px rgba(10, 15, 40, .3);
	cursor: pointer;
	transition: background-color .15s, color .15s;
}
.dlg-acc .dlg-acc__boton:hover,
.dlg-acc .dlg-acc__boton[aria-expanded="true"] { background: var(--dlg-acc-boton-hover); color: var(--dlg-acc-icono-hover); }
.dlg-acc__boton svg { width: 60%; height: 60%; }
.dlg-acc--activo .dlg-acc__boton::after {
	content: "";
	position: absolute;
	top: -3px;
	right: -3px;
	width: 14px;
	height: 14px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #1f9d55;
}
.dlg-acc button:focus-visible,
.dlg-acc a:focus-visible {
	outline: 3px solid #12162b;
	outline-offset: 2px;
	box-shadow: 0 0 0 6px #fff;
}

/* Panel: se abre hacia el interior de la pantalla. */
.dlg-acc__panel {
	position: absolute;
	width: min(400px, calc(100vw - 32px));
	max-height: min(78vh, 680px);
	display: flex;
	flex-direction: column;
	border-radius: 16px;
	background: #fff;
	color: #12162b;
	box-shadow: 0 24px 64px rgba(10, 15, 40, .35), 0 0 0 1px rgba(10, 15, 40, .08);
	overflow: hidden;
}
.dlg-acc__panel[hidden] { display: none; }
.dlg-acc--v-abajo .dlg-acc__panel { bottom: calc(var(--dlg-acc-tam) + 12px); }
.dlg-acc--v-arriba .dlg-acc__panel { top: calc(var(--dlg-acc-tam) + 12px); }
.dlg-acc--v-centro .dlg-acc__panel { top: 50%; transform: translateY(-50%); }
.dlg-acc--h-derecha .dlg-acc__panel { right: 0; }
.dlg-acc--h-izquierda .dlg-acc__panel { left: 0; }
.dlg-acc--v-centro.dlg-acc--h-derecha .dlg-acc__panel { right: calc(var(--dlg-acc-tam) + 12px); }
.dlg-acc--v-centro.dlg-acc--h-izquierda .dlg-acc__panel { left: calc(var(--dlg-acc-tam) + 12px); }

.dlg-acc__cabecera {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	background: var(--dlg-acc-cabecera);
	color: var(--dlg-acc-cabecera-texto);
}
.dlg-acc .dlg-acc__titulo {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	color: inherit;
}
.dlg-acc .dlg-acc__cerrar {
	flex: none;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .18);
	color: inherit;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
.dlg-acc .dlg-acc__cerrar:hover { background: rgba(255, 255, 255, .32); color: inherit; }
.dlg-acc__cuerpo { padding: 6px 16px 12px; overflow-y: auto; }
.dlg-acc .dlg-acc__grupo h3 {
	margin: 14px 0 8px;
	padding: 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #4a5068;
}
.dlg-acc__rejilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dlg-acc .dlg-acc__opcion {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 84px;
	padding: 10px 6px;
	border: 2px solid #e2e6f3;
	border-radius: 12px;
	background: #f6f7fb;
	color: #12162b;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
}
.dlg-acc .dlg-acc__opcion:hover { border-color: var(--dlg-acc-opcion-hover); background: #f6f7fb; color: #12162b; }
.dlg-acc .dlg-acc__opcion[aria-pressed="true"],
.dlg-acc .dlg-acc__opcion[aria-pressed="true"]:hover { border-color: var(--dlg-acc-activa); background: var(--dlg-acc-activa); color: var(--dlg-acc-activa-texto); }
.dlg-acc__perfiles { display: flex; flex-wrap: wrap; gap: 6px; }
.dlg-acc .dlg-acc__perfil {
	padding: 8px 12px;
	border: 2px solid #e2e6f3;
	border-radius: 999px;
	background: #fff;
	color: #12162b;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}
.dlg-acc .dlg-acc__perfil:hover { border-color: var(--dlg-acc-opcion-hover); background: #fff; color: #12162b; }
.dlg-acc .dlg-acc__perfil[aria-pressed="true"],
.dlg-acc .dlg-acc__perfil[aria-pressed="true"]:hover { border-color: var(--dlg-acc-activa); background: var(--dlg-acc-activa); color: var(--dlg-acc-activa-texto); }

/* Tamaño del texto y alineación: etiqueta a la izquierda, botones cuadrados centrados. */
.dlg-acc__tamano,
.dlg-acc__alinear {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	padding: 8px 10px;
	border-radius: 12px;
	background: #f6f7fb;
	font-weight: 600;
}
.dlg-acc__tamano > span,
.dlg-acc__alinear > span { flex: 1; font-size: 14px; line-height: 1.25; }
.dlg-acc__alinear { margin-top: 8px; }
.dlg-acc__alinear-botones { display: flex; gap: 6px; }
.dlg-acc .dlg-acc__paso {
	flex: none;
	width: 40px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 2px solid #e2e6f3;
	border-radius: 8px;
	background: #fff;
	color: #12162b;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	vertical-align: middle;
	cursor: pointer;
}
.dlg-acc .dlg-acc__paso span { display: block; line-height: 1; }
.dlg-acc .dlg-acc__paso svg { width: 18px; height: 18px; }
.dlg-acc .dlg-acc__paso:hover { border-color: var(--dlg-acc-opcion-hover); background: #fff; color: #12162b; }
.dlg-acc .dlg-acc__paso[aria-pressed="true"] { border-color: var(--dlg-acc-activa); background: var(--dlg-acc-activa); color: var(--dlg-acc-activa-texto); }
.dlg-acc .dlg-acc__paso:disabled { opacity: .4; cursor: default; border-color: #e2e6f3; }
.dlg-acc__tamano output { min-width: 48px; text-align: center; font-variant-numeric: tabular-nums; }

.dlg-acc__pie {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 16px;
	border-top: 1px solid #e2e6f3;
}
.dlg-acc .dlg-acc__pie a { color: var(--dlg-acc-activa); font-weight: 600; text-decoration: underline; }
.dlg-acc .dlg-acc__restablecer {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 2px solid #12162b;
	border-radius: 999px;
	background: #fff;
	color: #12162b;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}
.dlg-acc .dlg-acc__restablecer:hover { background: #12162b; color: #fff; }
.dlg-acc__restablecer svg { width: 18px; height: 18px; }
.dlg-acc__nota { flex-basis: 100%; margin: 0; font-size: 12px; color: #4a5068; }

@media (max-width: 600px) {
	.dlg-acc--sin-movil { display: none !important; }
	.dlg-acc--h-derecha { right: min(var(--dlg-acc-x), 16px); }
	.dlg-acc--h-izquierda { left: min(var(--dlg-acc-x), 16px); }
	.dlg-acc__panel { position: fixed; left: 8px !important; right: 8px !important; bottom: 76px; top: auto !important; transform: none !important; width: auto; }
	.dlg-acc--v-arriba .dlg-acc__panel { top: 76px !important; bottom: auto; }
}

/* ===================== Ajustes aplicados a la página ===================== */
/* Todo excluye la propia herramienta (.dlg-acc). */

html.dlg-acc-espaciado body *:not(.dlg-acc):not(.dlg-acc *):not(.dlg-acc-capa):not(.dlg-acc-capa *) {
	line-height: 1.5 !important;
	letter-spacing: .12em !important;
	word-spacing: .16em !important;
}
html.dlg-acc-espaciado body p:not(.dlg-acc *) { margin-bottom: 2em !important; }

html.dlg-acc-fuente body *:not(.dlg-acc):not(.dlg-acc *):not(.dlg-acc-capa):not(.dlg-acc-capa *):not(i):not([class*="icon"]):not([class*="fa-"]) {
	font-family: Verdana, Tahoma, "Trebuchet MS", Arial, sans-serif !important;
}

html.dlg-acc-a-izquierda body *:not(.dlg-acc):not(.dlg-acc *):not(.dlg-acc-capa):not(.dlg-acc-capa *) { text-align: left !important; }
html.dlg-acc-a-centro body *:not(.dlg-acc):not(.dlg-acc *):not(.dlg-acc-capa):not(.dlg-acc-capa *) { text-align: center !important; }
html.dlg-acc-a-derecha body *:not(.dlg-acc):not(.dlg-acc *):not(.dlg-acc-capa):not(.dlg-acc-capa *) { text-align: right !important; }
html.dlg-acc-a-justificado body *:not(.dlg-acc):not(.dlg-acc *):not(.dlg-acc-capa):not(.dlg-acc-capa *) { text-align: justify !important; }

html.dlg-acc-enlaces body a:not(.dlg-acc *) {
	text-decoration: underline !important;
	text-decoration-thickness: 2px !important;
	outline: 2px solid #ffbf00 !important;
	outline-offset: 1px;
	background-color: #fff6c8 !important;
	color: #0b2a8a !important;
}

html.dlg-acc-titulos body :is(h1, h2, h3, h4, h5, h6):not(.dlg-acc *) {
	outline: 3px solid var(--dlg-acc-resaltado, #0652fe) !important;
	outline-offset: 4px;
	border-radius: 2px;
}

html.dlg-acc-foco body *:focus:not(.dlg-acc *) {
	outline: 4px solid #ffbf00 !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 8px #12162b !important;
}

html.dlg-acc-cursor,
html.dlg-acc-cursor body * {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l7.5 19 2.6-7.6 7.6-2.6z' fill='%23000' stroke='%23fff' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, auto !important;
}
html.dlg-acc-cursor body :is(a, button, [role="button"], label, select, summary) {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l7.5 19 2.6-7.6 7.6-2.6z' fill='%230652fe' stroke='%23fff' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, pointer !important;
}

html.dlg-acc-animaciones *,
html.dlg-acc-animaciones *::before,
html.dlg-acc-animaciones *::after {
	animation: none !important;
	transition: none !important;
	scroll-behavior: auto !important;
}

html.dlg-acc-imagenes body :is(img, picture, svg[role="img"], figure video):not(.dlg-acc *) { visibility: hidden !important; }
html.dlg-acc-imagenes body *:not(.dlg-acc):not(.dlg-acc *):not(.dlg-acc-capa):not(.dlg-acc-capa *) { background-image: none !important; }

/* Contraste y colores */
html.dlg-acc-c-oscuro body,
html.dlg-acc-c-oscuro body *:not(.dlg-acc):not(.dlg-acc *):not(.dlg-acc-capa):not(.dlg-acc-capa *):not(img):not(video):not(svg):not(svg *) {
	background-color: #121212 !important;
	color: #f2f2f2 !important;
	border-color: #555 !important;
}
html.dlg-acc-c-oscuro body a:not(.dlg-acc *) { color: #8ab4ff !important; }

html.dlg-acc-c-claro body,
html.dlg-acc-c-claro body *:not(.dlg-acc):not(.dlg-acc *):not(.dlg-acc-capa):not(.dlg-acc-capa *):not(img):not(video):not(svg):not(svg *) {
	background-color: #ffffff !important;
	color: #111111 !important;
	border-color: #999 !important;
}
html.dlg-acc-c-claro body a:not(.dlg-acc *) { color: #0033cc !important; }

html.dlg-acc-c-alto body,
html.dlg-acc-c-alto body *:not(.dlg-acc):not(.dlg-acc *):not(.dlg-acc-capa):not(.dlg-acc-capa *):not(img):not(video):not(svg):not(svg *) {
	background-color: #000 !important;
	color: #fff !important;
	border-color: #fff !important;
}
html.dlg-acc-c-alto body a:not(.dlg-acc *) { color: #ffff00 !important; text-decoration: underline !important; }
html.dlg-acc-c-alto body :is(button, input, select, textarea):not(.dlg-acc *) { border: 2px solid #fff !important; }

html.dlg-acc-c-grises body > *:not(.dlg-acc):not(.dlg-acc-capa) { filter: grayscale(1) !important; }
html.dlg-acc-c-saturacion body > *:not(.dlg-acc):not(.dlg-acc-capa) { filter: saturate(.35) !important; }

/* Guía y máscara de lectura. Sus clases no coinciden nunca con las que se ponen
   en <html> (dlg-acc-guia, dlg-acc-mascara): si coincidieran, la página entera
   quedaría fija y sin poder pulsarse. */
.dlg-acc-capa { position: fixed; left: 0; right: 0; pointer-events: none; }
.dlg-acc-capa--guia {
	height: 12px;
	z-index: 2147482990;
	border-top: 3px solid #12162b;
	border-bottom: 3px solid #12162b;
	background: rgba(255, 213, 0, .45);
}
.dlg-acc-capa--mascara { top: 0; bottom: 0; z-index: 2147482989; }
.dlg-acc-capa__arriba,
.dlg-acc-capa__abajo { position: fixed; left: 0; right: 0; background: rgba(0, 0, 0, .6); pointer-events: none; }
.dlg-acc-capa__arriba { top: 0; }
.dlg-acc-capa__abajo { bottom: 0; }

@media print {
	.dlg-acc, .dlg-acc-capa { display: none !important; }
}
