/* Módulo de consentimiento de cookies.
   Se separa del CSS principal para mantener la parte legal/técnica
   encapsulada y fácil de actualizar. */

.cookie-consent {
	position: fixed;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	z-index: 10020;
	display: none;
}

.cookie-consent.is-visible {
	display: block;
}

.cookie-consent__panel {
	max-width: 1080px;
	margin: 0 auto;
	padding: 1rem 1.1rem;
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(13, 28, 50, 0.92);
	box-shadow: 0 18px 45px rgba(10, 22, 42, 0.28);
	backdrop-filter: blur(16px);
	color: #eef3fb;
}

.cookie-consent__main {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) auto;
	gap: 1rem 1.25rem;
	align-items: center;
}

.cookie-consent__copy h2 {
	margin: 0 0 0.35rem;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #ffffff;
}

.cookie-consent__copy p {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.6;
	color: rgba(238, 243, 251, 0.9);
}

.cookie-consent__copy a {
	color: #ffffff;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.cookie-consent__copy a:hover,
.cookie-consent__copy a:focus-visible {
	border-bottom-color: rgba(255, 255, 255, 0.82);
}

.cookie-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	justify-content: flex-end;
}

.cookie-consent__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 156px;
	min-height: 48px;
	padding: 0.8rem 1.2rem;
	border-radius: 999px;
	border: 1px solid transparent;
	font-size: 0.93rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(8, 18, 33, 0.22);
}

.cookie-consent__button:focus-visible,
.cookie-consent__copy a:focus-visible,
.cookie-consent__switch input:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

.cookie-consent__button--primary {
	background: #ffffff;
	border-color: #ffffff;
	color: #173052;
}

.cookie-consent__button--secondary {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.42);
	color: #ffffff;
}

.cookie-consent__button--ghost {
	background: rgba(255, 255, 255, 0.09);
	border-color: rgba(255, 255, 255, 0.14);
	color: #ffffff;
}

.cookie-consent__settings {
	display: none;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.cookie-consent__settings.is-open {
	display: block;
}

.cookie-consent__settings-intro {
	margin: 0 0 0.9rem;
	font-size: 0.88rem;
	color: rgba(238, 243, 251, 0.82);
}

.cookie-consent__options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.8rem;
}

.cookie-consent__option {
	padding: 0.95rem 1rem;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-consent__option-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.9rem;
}

.cookie-consent__option h3 {
	margin: 0;
	font-size: 0.94rem;
	color: #ffffff;
}

.cookie-consent__option p {
	margin: 0.55rem 0 0;
	font-size: 0.84rem;
	line-height: 1.55;
	color: rgba(238, 243, 251, 0.82);
}

.cookie-consent__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.32rem 0.7rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
	font-size: 0.76rem;
	font-weight: 700;
	white-space: nowrap;
}

.cookie-consent__switch {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 0.82rem;
	color: #ffffff;
}

.cookie-consent__switch input {
	width: 18px;
	height: 18px;
	accent-color: #ffffff;
}

.cookie-consent__save {
	margin-top: 1rem;
	display: flex;
	justify-content: flex-end;
}

@media screen and (max-width: 840px) {
	.cookie-consent__main {
		grid-template-columns: 1fr;
	}

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

	.cookie-consent__options {
		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 540px) {
	.cookie-consent {
		left: 0.75rem;
		right: 0.75rem;
		bottom: 0.75rem;
	}

	.cookie-consent__panel {
		padding: 0.95rem;
		border-radius: 18px;
	}

	.cookie-consent__button {
		width: 100%;
		min-width: 0;
	}
}
