/* WSC Consent banner — edición Spanish Poppy Seeds (azul corporativo #0033A0, tipografía Lato) */
/* Región de anuncio para lectores de pantalla (visualmente oculta pero leída). */
.wsc-cmp__sr {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}
/* Con el banner abajo-fijo, el foco por teclado no debe quedar oculto tras él.
   Solo mientras el banner está visible (se retira al cerrarlo); navegadores sin
   :has() simplemente no reservan espacio (degradación aceptable). */
html:has(#wsc-cmp:not([hidden])) { scroll-padding-bottom: 340px; }
@media (max-width: 599px) { html:has(#wsc-cmp:not([hidden])) { scroll-padding-bottom: 90vh; } }

#wsc-cmp {
	--wscc-accent: #0033A0;
	--wscc-accent-dark: #00257a;
	--wscc-ink: #1a1a1a;
	--wscc-grey: #6b6b6b;
	--wscc-line: #ececec;
	position: fixed;
	z-index: 2147483600;
	left: 20px;
	bottom: 20px;
	width: min(408px, calc(100vw - 40px));
	font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}
#wsc-cmp[hidden] { display: none; }

#wsc-cmp .wsc-cmp__card {
	background: #fff;
	color: var(--wscc-ink);
	border: 1px solid var(--wscc-line);
	border-radius: 4px;
	box-shadow: 0 24px 64px rgba(0, 20, 60, .16), 0 4px 16px rgba(0, 20, 60, .08);
	padding: 22px 22px 18px;
	max-height: calc(100vh - 40px);
	max-height: calc(100dvh - 40px);
	overflow-y: auto;
	overscroll-behavior: contain;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .26s ease, transform .26s ease;
	outline: none;
}
#wsc-cmp .wsc-cmp__card.is-in { opacity: 1; transform: translateY(0); }

#wsc-cmp .wsc-cmp__title {
	margin: 0 0 8px;
	font-family: inherit;
	font-size: 18px;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -.02em;
	color: var(--wscc-ink);
}
#wsc-cmp .wsc-cmp__intro {
	margin: 0 0 14px;
	font-size: 13.5px;
	font-weight: 400;
	line-height: 1.55;
	color: #3d3d3d;
}
#wsc-cmp a { color: var(--wscc-accent); text-decoration: underline; text-underline-offset: 2px; }
#wsc-cmp a:hover { color: var(--wscc-accent-dark); }

/* ---- panel de preferencias ---- */
#wsc-cmp .wsc-cmp__panel { border-top: 1px solid var(--wscc-line); padding-top: 4px; margin-bottom: 14px; }
#wsc-cmp .wsc-cmp__panel-title {
	margin: 10px 0 2px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--wscc-ink);
}
#wsc-cmp .wsc-cmp__cat {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 11px 0;
	border-bottom: 1px solid var(--wscc-line);
}
#wsc-cmp .wsc-cmp__cat:last-of-type { border-bottom: 0; }
#wsc-cmp .wsc-cmp__cat-info { flex: 1 1 auto; min-width: 0; }
#wsc-cmp .wsc-cmp__cat-title {
	margin: 0 0 2px;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--wscc-ink);
}
#wsc-cmp .wsc-cmp__cat-desc {
	margin: 0;
	font-size: 12.5px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--wscc-grey);
}
#wsc-cmp .wsc-cmp__detail { font-size: 12px; white-space: nowrap; }
#wsc-cmp .wsc-cmp__always {
	flex: 0 0 auto;
	font-size: 11px;
	font-weight: 400;
	color: var(--wscc-accent);
	background: rgba(0, 51, 160, .08);
	border-radius: 4px;
	padding: 4px 10px;
	margin-top: 2px;
	white-space: nowrap;
}

/* ---- interruptores ---- */
#wsc-cmp .wsc-cmp__sw {
	flex: 0 0 auto;
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	margin-top: 2px;
	width: 46px;
	height: 27px;
	border-radius: 999px;
	background: linear-gradient(180deg, #e7e7e7, #f6f6f6 60%, #fdfdfd);
	/* anillo #767676: contraste >= 3:1 del componente (WCAG 1.4.11) */
	box-shadow: inset 0 0 0 1px #767676, inset 0 2px 4px rgba(0, 0, 0, .12);
	position: relative;
	cursor: pointer;
	transition: background .28s ease, box-shadow .28s ease;
	padding: 0;
}
#wsc-cmp .wsc-cmp__sw[aria-checked="true"] {
	background: linear-gradient(180deg, #0a44c2, #002a86);
	box-shadow: inset 0 1px 4px rgba(0, 0, 0, .30), inset 0 -1px 1px rgba(255, 255, 255, .12), 0 0 0 4px rgba(0, 51, 160, .10);
}
#wsc-cmp .wsc-cmp__knob {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 21px;
	height: 21px;
	border-radius: 999px;
	background: radial-gradient(circle at 35% 28%, #ffffff 0%, #f4f4f2 65%, #eceae6 100%);
	box-shadow: 0 2px 5px rgba(0, 0, 0, .28), 0 1px 1px rgba(0, 0, 0, .12), inset 0 1px 1px rgba(255, 255, 255, .95), inset 0 -1px 2px rgba(0, 0, 0, .06);
	transition: transform .32s cubic-bezier(.34, 1.45, .64, 1), width .16s ease;
}
#wsc-cmp .wsc-cmp__sw[aria-checked="true"] .wsc-cmp__knob { transform: translateX(19px); }
#wsc-cmp .wsc-cmp__sw:active .wsc-cmp__knob { width: 26px; }
#wsc-cmp .wsc-cmp__sw[aria-checked="true"]:active .wsc-cmp__knob { transform: translateX(14px); }

/* ---- botones: Aceptar = CTA sólido; Rechazar = bordeado (mismo tamaño/capa/clics) ---- */
#wsc-cmp .wsc-cmp__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin: 0 0 10px;
}
#wsc-cmp .wsc-cmp__btn {
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid var(--wscc-accent);
	border-radius: 4px;
	background: var(--wscc-accent);
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: -.01em;
	height: 44px;
	padding: 0 12px;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
#wsc-cmp .wsc-cmp__btn:hover { background: var(--wscc-accent-dark); border-color: var(--wscc-accent-dark); }
#wsc-cmp .wsc-cmp__btn--ghost {
	background: #fff;
	color: var(--wscc-accent);
}
#wsc-cmp .wsc-cmp__btn--ghost:hover {
	background: rgba(0, 51, 160, .06);
	color: var(--wscc-accent-dark);
}
#wsc-cmp .wsc-cmp__btn--save { width: 100%; margin: 0 0 10px; display: block; }
#wsc-cmp .wsc-cmp__btn[hidden], #wsc-cmp .wsc-cmp__config[hidden] { display: none; }

#wsc-cmp .wsc-cmp__config {
	appearance: none;
	-webkit-appearance: none;
	background: none;
	border: 0;
	padding: 2px 0;
	margin: 0 0 6px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 400;
	color: var(--wscc-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	display: block;
}
#wsc-cmp .wsc-cmp__config:hover { color: var(--wscc-accent); }

#wsc-cmp .wsc-cmp__meta,
#wsc-cmp .wsc-cmp__foot {
	margin: 8px 0 0;
	font-size: 12px;
	font-weight: 400;
	color: var(--wscc-grey); /* 5,3:1 sobre blanco — AA */
	line-height: 1.5;
}
#wsc-cmp .wsc-cmp__meta { margin: 6px 0 0; }

/* ---- crédito del desarrollador ---- */
#wsc-cmp .wsc-cmp__credit {
	margin: 10px 0 0;
	padding-top: 8px;
	border-top: 1px solid var(--wscc-line);
	font-size: 10.5px;
	font-weight: 400;
	line-height: 1.4;
}
#wsc-cmp .wsc-cmp__credit a {
	color: #767676; /* 4,54:1 sobre blanco — AA */
	text-decoration: none;
}
#wsc-cmp .wsc-cmp__credit a:hover { color: var(--wscc-accent); text-decoration: underline; }

/* ---- foco accesible ---- */
#wsc-cmp .wsc-cmp__btn:focus-visible,
#wsc-cmp .wsc-cmp__sw:focus-visible,
#wsc-cmp .wsc-cmp__config:focus-visible,
#wsc-cmp a:focus-visible {
	outline: 2px solid var(--wscc-accent);
	outline-offset: 2px;
	border-radius: 4px;
}
#wsc-cmp .wsc-cmp__btn:focus-visible { outline-offset: 3px; border-radius: 4px; }
#wsc-cmp .wsc-cmp__sw:focus-visible { border-radius: 999px; }

/* ---- móvil: hoja inferior ---- */
@media (max-width: 599px) {
	#wsc-cmp {
		left: 8px;
		right: 8px;
		bottom: 8px;
		width: auto;
	}
	#wsc-cmp .wsc-cmp__card { padding: 18px 16px 14px; border-radius: 4px; max-height: 86vh; max-height: 86dvh; }
	#wsc-cmp .wsc-cmp__title { font-size: 16.5px; }
}

/* ---- página de política: widget de estado + tablas de la declaración ---- */
.wsc-consent-status {
	border: 1px solid #ececec;
	border-radius: 4px;
	padding: 18px 20px;
	margin: 0 0 28px;
}
.wsc-consent-status__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 0; }
.wsc-consent-status button {
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid #0033A0;
	background: #0033A0;
	color: #fff;
	border-radius: 4px;
	font-family: inherit;
	font-size: 13.5px;
	padding: 9px 16px;
	cursor: pointer;
}
.wsc-consent-status button.wsc-withdraw-cookies { background: #fff; color: #0033A0; }
.wsc-consent-status button:hover { opacity: .88; }

/* La declaración se inyecta en una página construida con el maquetador del tema
   (sin estilos de tabla propios): tablas legibles autosuficientes. */
.wsc-consent-declaration { margin-top: 40px; }
.wsc-consent-declaration table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	margin: 8px 0 24px;
}
.wsc-consent-declaration th,
.wsc-consent-declaration td {
	border: 1px solid #e3e3e3;
	padding: 8px 10px;
	text-align: left;
	vertical-align: top;
}
.wsc-consent-declaration th { background: #f5f7fb; font-weight: 700; }
.wsc-consent-declaration code { font-size: 12px; word-break: break-all; }
.wsc-consent-declaration figure { margin: 0; overflow-x: auto; }
.wsc-consent-declaration h2, .wsc-consent-declaration h3 { margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
	#wsc-cmp .wsc-cmp__card, #wsc-cmp .wsc-cmp__knob, #wsc-cmp .wsc-cmp__sw { transition: none; }
}
