/* Cookie consent banner + modal (Colina Rojo) */

.cr-cookie {
	position: fixed;
	left: 0;
	bottom: 0;
	width: 100%;
	z-index: 999999;
	background: rgba(10, 40, 80, 0.98);
	color: #fff;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
	padding: 24px 0;
	line-height: 1.6;
}

.cr-cookie[hidden] {
	display: none !important;
}

.cr-cookie__container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
}

.cr-cookie__text {
	flex: 1;
	font-size: 14px;
}

.cr-cookie__text p {
	margin: 0 0 8px;
}
.cr-cookie__text p:last-child {
	margin-bottom: 0;
}

.cr-cookie__muted {
	color: rgba(255, 255, 255, 0.8);
}

.cr-cookie a {
	color: #fff;
	text-decoration: underline;
	font-weight: 700;
}

.cr-cookie__actions {
	display: flex;
	gap: 12px;
	flex-shrink: 0;
}

#colinarojo-cookie-banner .cr-cookie__actions .cr-cookie__btn {
	background: transparent;
	border: 2px solid #fff;
	color: #fff;
	border-radius: 50px;
	padding: 10px 22px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	white-space: nowrap;
	text-align: center;
}

.cr-cookie__btn:hover,
.cr-cookie__btn:focus-visible {
	background: #fff;
	color: #0a2850;
	outline: none;
}

.cr-cookie__btn--primary {
	background: #0a2850;
	border-color: #0a2850;
	color: #fff;
}
.cr-cookie__btn--primary:hover,
.cr-cookie__btn--primary:focus-visible {
	background: #0c3162;
	color: #fff;
}

.cr-cookie__btn--secondary {
	border-color: rgba(255, 255, 255, 0.5);
	color: rgba(255, 255, 255, 0.92);
}
.cr-cookie__btn--secondary:hover,
.cr-cookie__btn--secondary:focus-visible {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

/* Modal */
.cr-cookie-modal {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.cr-cookie-modal[hidden] {
	display: none !important;
}
.cr-cookie-modal__panel {
	background: #fff;
	color: #333;
	width: 100%;
	max-width: 520px;
	border-radius: 14px;
	padding: 22px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.cr-cookie-modal__title {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 800;
	color: #0a2850;
}
.cr-cookie-modal__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0;
	border-bottom: 1px solid #eee;
	gap: 12px;
}
.cr-cookie-modal__row:last-of-type {
	border-bottom: none;
}
.cr-cookie-modal__row-text strong {
	display: block;
	color: #0a2850;
	font-size: 14px;
}
.cr-cookie-modal__row-desc {
	font-size: 12px;
	color: #666;
	margin-top: 2px;
}
.cr-cookie-modal__footer {
	margin-top: 18px;
	display: flex;
	gap: 10px;
}
.cr-cookie-modal__footer .cr-cookie__btn {
	flex: 1;
}

/* Switch */
.cr-cookie-switch {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	flex-shrink: 0;
}
.cr-cookie-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}
.cr-cookie-switch__slider {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background-color: #ccc;
	transition: 0.25s;
	border-radius: 24px;
}
.cr-cookie-switch__slider:before {
	content: "";
	position: absolute;
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background: #fff;
	transition: 0.25s;
	border-radius: 50%;
}
.cr-cookie-switch input:checked + .cr-cookie-switch__slider {
	background-color: #0a2850;
}
.cr-cookie-switch input:checked + .cr-cookie-switch__slider:before {
	transform: translateX(20px);
}
.cr-cookie-switch input:disabled + .cr-cookie-switch__slider {
	opacity: 0.6;
	cursor: not-allowed;
}

@media (max-width: 992px) {
	.cr-cookie__container {
		flex-direction: column;
		gap: 18px;
		text-align: center;
	}
	.cr-cookie__actions {
		width: 100%;
		flex-direction: column;
	}
	.cr-cookie__btn {
		width: 100%;
	}
}

