/**
 * Consentimiento: aviso propio, panel de categorías y fachas de contenido incrustado (RLT 1.9.44).
 *
 * «Aceptar» y «Rechazar» comparten exactamente el mismo botón a propósito. El CEPD y la CNIL han sancionado
 * banners donde rechazar costaba más clics o resaltaba menos que aceptar: si el rechazo no es igual de fácil,
 * el consentimiento no se considera libre y el banner deja de proteger de nada.
 */

.rlt-cc {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2147483000;
	padding: 14px;
	display: flex;
	justify-content: center;
	pointer-events: none;
	font-family: var(--rlc-font, 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
}

.rlt-cc[hidden] { display: none !important; }

.rlt-cc__panel {
	pointer-events: auto;
	width: min(760px, 100%);
	max-height: min(78vh, 660px);
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #fff;
	color: var(--rlc-ink, #0b2b2c);
	border-radius: var(--rlc-radius, 18px);
	box-shadow: 0 18px 48px rgba(11, 43, 44, .28), 0 2px 6px rgba(11, 43, 44, .12);
	padding: 20px 22px;
	animation: rlt-cc-in .28s cubic-bezier(.2, .7, .3, 1) both;
}

@keyframes rlt-cc-in {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.rlt-cc__panel { animation: none; }
}

.rlt-cc__title {
	margin: 0 0 6px;
	font-family: var(--rlc-serif, 'Fraunces', Georgia, serif);
	font-size: 1.18rem;
	line-height: 1.25;
	font-weight: 600;
}

.rlt-cc__text {
	margin: 0 0 14px;
	font-size: .92rem;
	line-height: 1.55;
	color: rgba(11, 43, 44, .82);
}

/*
 * (1.9.54) El coral de marca (--rlc-accent, #e7546a) sólo da 3,57:1 sobre el blanco del panel y el texto pide 4,5:1 (AA).
 * #cf3d57 es el mismo tono un punto más oscuro (OKLCH: mismo matiz y croma, luminosidad 0,65 → 0,58) y da 4,71:1.
 * Va fijo y no por la variable porque components.css define --rlc-accent en :root y lo volvería a aclarar.
 */
.rlt-cc__link {
	color: #cf3d57;
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: nowrap;
}

/* Al pasar o enfocar se oscurece a tinta (15:1), como los demás enlaces del plugin; el anillo es el de los botones. */
.rlt-cc__link:hover,
.rlt-cc__link:focus {
	color: var(--rlc-ink, #0b2b2c);
}

.rlt-cc__link:focus-visible {
	outline: 3px solid var(--rlc-accent, #e7546a);
	outline-offset: 2px;
	border-radius: 2px;
}

/* ── categorías ── */

.rlt-cc__cats {
	display: grid;
	gap: 10px;
	margin: 0 0 16px;
	padding: 14px 0 2px;
	border-top: 1px solid rgba(11, 43, 44, .12);
}

.rlt-cc__cats[hidden] { display: none; }

.rlt-cc__cat {
	display: grid;
	grid-template-columns: 20px 1fr;
	gap: 10px;
	align-items: start;
	cursor: pointer;
	font-size: .87rem;
	line-height: 1.45;
}

.rlt-cc__cat input {
	margin: 2px 0 0;
	width: 17px;
	height: 17px;
	accent-color: var(--rlc-ink, #0b2b2c);
	cursor: pointer;
}

.rlt-cc__cat input:disabled { cursor: default; opacity: .55; }
.rlt-cc__cat b  { display: block; font-weight: 600; }
.rlt-cc__cat em { display: block; font-style: normal; color: rgba(11, 43, 44, .66); }

/* ── botones ── */

.rlt-cc__btns {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.rlt-cc__btn {
	flex: 1 1 auto;
	min-width: 132px;
	min-height: 44px;                       /* objetivo táctil cómodo en móvil */
	padding: 11px 18px;
	border-radius: 999px;
	border: 1px solid transparent;
	font: inherit;
	font-size: .9rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.rlt-cc__btn:focus-visible {
	outline: 3px solid var(--rlc-accent, #e7546a);
	outline-offset: 2px;
}

.rlt-cc__btn[hidden] { display: none; }

/* Aceptar y rechazar: idénticos. No hay botón «bueno» y botón «malo». */
.rlt-cc__btn--main {
	background: var(--rlc-ink, #0b2b2c);
	color: #fff;
}

.rlt-cc__btn--main:hover { background: #0f3a3b; }

.rlt-cc__btn--ghost {
	flex: 0 1 auto;
	min-width: 0;
	background: transparent;
	color: rgba(11, 43, 44, .72);
	border-color: transparent;
	text-decoration: underline;
	text-underline-offset: 3px;
	font-weight: 500;
}

.rlt-cc__btn--ghost:hover { color: var(--rlc-ink, #0b2b2c); }

@media (max-width: 560px) {
	.rlt-cc { padding: 10px; }
	.rlt-cc__panel { padding: 18px 16px; }
	.rlt-cc__btn { flex: 1 1 100%; }
	.rlt-cc__btn--ghost { order: 3; }
}

/* ── enlace permanente de preferencias ── */

.rlt-cc-open {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: inherit;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rlt-cc-open:hover { opacity: .75; }

/* ── facha de contenido incrustado ── */

.rlt-gate {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 220px;
	padding: 24px 20px;
	border-radius: var(--rlc-radius, 18px);
	background:
		linear-gradient(135deg, rgba(11, 43, 44, .05), rgba(11, 43, 44, .12));
	border: 1px dashed rgba(11, 43, 44, .22);
	font-family: var(--rlc-font, 'Inter', system-ui, sans-serif);
	color: var(--rlc-ink, #0b2b2c);
	text-align: center;
}

.rlt-gate.is-on {
	display: block;
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
	border-radius: 0;
}

.rlt-gate.is-on iframe { max-width: 100%; border-radius: var(--rlc-radius, 18px); }

.rlt-gate__box { max-width: 420px; }

.rlt-gate__name {
	margin: 0 0 6px;
	font-family: var(--rlc-serif, 'Fraunces', Georgia, serif);
	font-size: 1.02rem;
	font-weight: 600;
}

.rlt-gate__text {
	margin: 0 0 14px;
	font-size: .85rem;
	line-height: 1.5;
	color: rgba(11, 43, 44, .7);
}

.rlt-gate__btn {
	min-height: 42px;
	padding: 10px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--rlc-ink, #0b2b2c);
	color: #fff;
	font: inherit;
	font-size: .88rem;
	font-weight: 600;
	cursor: pointer;
}

.rlt-gate__btn:hover { background: #0f3a3b; }

.rlt-gate__btn:focus-visible {
	outline: 3px solid var(--rlc-accent, #e7546a);
	outline-offset: 2px;
}

.rlt-gate__always {
	display: flex;
	gap: 7px;
	align-items: center;
	justify-content: center;
	margin: 12px 0 0;
	font-size: .78rem;
	color: rgba(11, 43, 44, .62);
	cursor: pointer;
}

.rlt-gate__always input { accent-color: var(--rlc-ink, #0b2b2c); cursor: pointer; }

/* ── tabla de la política de cookies ── */

.rlt-ckpol__wrap { overflow-x: auto; margin: 0 0 22px; }

.rlt-ckpol__table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	font-size: .88rem;
}

.rlt-ckpol__table th,
.rlt-ckpol__table td {
	padding: 10px 12px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid rgba(11, 43, 44, .12);
}

.rlt-ckpol__table th {
	font-weight: 600;
	background: rgba(11, 43, 44, .05);
	white-space: nowrap;
}

.rlt-ckpol__table code {
	font-size: .84em;
	word-break: break-word;
	background: rgba(11, 43, 44, .06);
	padding: 1px 5px;
	border-radius: 5px;
}

.rlt-ckpol__meta {
	margin-top: 18px;
	font-size: .8rem;
	color: rgba(11, 43, 44, .55);
}

/* ── enlace de preferencias en el pie de la landing (1.9.49): igual que los demás enlaces legales ── */

.rle-root .rle-footer__legal .rlt-cc-open { text-decoration-color: rgba(255, 255, 255, .35); }
.rle-root .rle-footer__legal .rlt-cc-open:hover { opacity: 1; text-decoration-color: currentColor; }
