/*
 * Estilos del gestor de cookies (independientes del tema, prefijo .vhc-).
 * @package VictorHdezCookies
 */
.vhc-banner[hidden],
.vhc-modal[hidden],
.vhc-flotante[hidden] {
	display: none !important;
}

:root {
	--vhc-navy: #143a5a;
	--vhc-accion: #2563eb;
	--vhc-accion-h: #1e50c0;
	--vhc-tinta: #0f172a;
	--vhc-suave: #475569;
	--vhc-borde: #e2e8f0;
	--vhc-radio: 12px;
}

/* ---------- Botones ---------- */
.vhc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1.1rem;
	border-radius: 6px;
	border: 2px solid transparent;
	font: 600 0.95rem/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	cursor: pointer;
	text-decoration: none;
}

.vhc-btn--pri {
	background: var(--vhc-accion);
	color: #fff;
}

.vhc-btn--pri:hover {
	background: var(--vhc-accion-h);
}

.vhc-btn--sec {
	background: #fff;
	color: var(--vhc-navy);
	border-color: var(--vhc-borde);
}

.vhc-btn--sec:hover {
	border-color: var(--vhc-navy);
}

.vhc-btn:focus-visible,
.vhc-link:focus-visible,
.vhc-flotante:focus-visible,
.vhc-switch input:focus-visible {
	outline: 3px solid var(--vhc-accion);
	outline-offset: 2px;
}

.vhc-link {
	background: none;
	border: 0;
	padding: 0;
	color: var(--vhc-accion);
	text-decoration: underline;
	cursor: pointer;
	font: inherit;
}

/* ---------- Banner ---------- */
.vhc-banner {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 99998;
	background: #fff;
	color: var(--vhc-tinta);
	border-top: 1px solid var(--vhc-borde);
	box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.14);
}

.vhc-banner__inner {
	max-width: 1100px;
	margin-inline: auto;
	padding: 1.1rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.vhc-banner__titulo {
	margin: 0 0 0.25rem;
	font-size: 1.1rem;
	color: var(--vhc-navy);
}

.vhc-banner__texto p {
	margin: 0;
	font-size: 0.92rem;
	color: var(--vhc-suave);
	max-width: 70ch;
}

.vhc-banner__acciones {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

@media (min-width: 800px) {
	.vhc-banner__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
	.vhc-banner__acciones {
		flex-shrink: 0;
	}
}

/* ---------- Modal ---------- */
.vhc-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.vhc-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
}

.vhc-modal__dialog {
	position: relative;
	background: #fff;
	color: var(--vhc-tinta);
	border-radius: var(--vhc-radio);
	max-width: 560px;
	width: 100%;
	max-height: 85vh;
	overflow-y: auto;
	padding: 1.5rem;
	box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.vhc-modal__dialog h2 {
	margin-top: 0;
	color: var(--vhc-navy);
}

.vhc-modal__cerrar {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	width: 2.25rem;
	height: 2.25rem;
	border: 0;
	background: none;
	font-size: 1.6rem;
	line-height: 1;
	color: var(--vhc-suave);
	cursor: pointer;
	border-radius: 6px;
}

.vhc-cat {
	padding: 0.9rem 0;
	border-top: 1px solid var(--vhc-borde);
}

.vhc-cat p {
	margin: 0.35rem 0 0;
	font-size: 0.9rem;
	color: var(--vhc-suave);
}

.vhc-cat__cab {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.vhc-cat__siempre {
	font-size: 0.8rem;
	color: var(--vhc-suave);
}

.vhc-switch {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	cursor: pointer;
}

.vhc-switch input {
	width: 1.15rem;
	height: 1.15rem;
	accent-color: var(--vhc-accion);
}

.vhc-modal__acciones {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 1.25rem;
}

.vhc-modal__pie {
	margin: 1rem 0 0;
	font-size: 0.9rem;
}

/* ---------- Botón flotante ---------- */
.vhc-flotante {
	position: fixed;
	left: 1rem;
	bottom: 1rem;
	z-index: 99997;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 0.8rem;
	background: #fff;
	color: var(--vhc-navy);
	border: 1px solid var(--vhc-borde);
	border-radius: 999px;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
	font: 600 0.85rem/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	cursor: pointer;
}

.vhc-flotante:hover {
	border-color: var(--vhc-navy);
}
