/* Banner de consentimiento de cookies */
.consent {
	position: fixed;
	inset: auto 0 0;
	z-index: 1200;
	padding: 16px;
	pointer-events: none;
}

.consent[hidden] {
	display: none;
}

.consent [hidden] {
	display: none !important;
}

.consent__inner {
	position: relative;
	width: min(1100px, 100%);
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 24px;
	padding: 26px 28px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: 0 24px 70px rgba(7, 12, 24, 0.28);
	pointer-events: auto;
}

.consent__close {
	position: absolute;
	top: 10px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 50%;
	color: var(--muted);
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
}

.consent__close:hover {
	background: var(--paper);
	color: var(--ink);
}

.consent__close:focus-visible,
.consent__link:focus-visible,
.footer__consent:focus-visible {
	outline: 3px solid rgba(47, 107, 255, 0.35);
	outline-offset: 3px;
}

.consent__eyebrow {
	margin: 0 0 8px;
	font-family: var(--font-mono);
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--blue);
}

.consent h2 {
	margin: 0 0 8px;
	font-size: 1.35rem;
	line-height: 1.2;
	color: var(--ink);
}

.consent p {
	margin: 0;
	max-width: 680px;
	font-size: 0.86rem;
	line-height: 1.55;
	color: var(--muted);
}

.consent__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 10px !important;
	font-size: 0.78rem !important;
}

.consent__links a {
	color: var(--ink);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.consent__links a:hover {
	color: var(--blue);
}

.consent__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
}

.consent__actions .btn {
	white-space: nowrap;
}

.consent__link {
	padding: 6px 2px;
	background: transparent;
	border: 0;
	color: var(--ink);
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.consent__link:hover {
	color: var(--blue);
}

.consent__prefs {
	grid-column: 1 / -1;
	display: grid;
	gap: 0;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.consent__pref {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 13px 0;
	border-bottom: 1px solid var(--line);
	cursor: pointer;
}

.consent__pref:last-of-type {
	border-bottom: 0;
}

.consent__pref--fixed {
	cursor: default;
}

.consent__pref-copy {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.consent__pref-copy strong {
	font-size: 0.9rem;
	color: var(--ink);
}

.consent__pref-desc {
	font-size: 0.78rem;
	line-height: 1.45;
	color: var(--muted);
}

.consent__pref input[type="checkbox"] {
	flex: none;
	width: 20px;
	height: 20px;
	accent-color: var(--blue);
	cursor: pointer;
}

.consent__always {
	flex: none;
	font-family: var(--font-mono);
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted-2);
}

.consent__pref-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	padding-top: 16px;
}

/* Enlace del pie */
.footer__consent {
	padding: 0;
	background: transparent;
	border: 0;
	color: inherit;
	font: inherit;
	line-height: inherit;
	cursor: pointer;
}

.footer__consent:hover {
	color: var(--white);
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 860px) {
	.consent__inner {
		grid-template-columns: 1fr;
		align-items: start;
		gap: 18px;
		padding: 24px;
	}

	.consent__actions {
		justify-content: flex-start;
	}

	.consent__prefs {
		padding-top: 16px;
	}
}

@media (max-width: 560px) {
	.consent {
		padding: 8px;
	}

	.consent__inner {
		padding: 20px 18px;
		border-radius: var(--radius);
	}

	.consent h2 {
		font-size: 1.15rem;
	}

	.consent__actions {
		display: grid;
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.consent__actions .btn {
		width: 100%;
		justify-content: center;
	}

	.consent__actions .consent__link {
		justify-self: start;
	}

	.consent__pref {
		align-items: flex-start;
		gap: 14px;
	}

	.consent__pref-actions {
		display: grid;
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.consent__pref-actions .btn {
		width: 100%;
		justify-content: center;
	}

	.consent__pref-actions .consent__link {
		justify-self: start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.consent *,
	.consent *::before,
	.consent *::after {
		transition: none !important;
	}
}
