/* Verde y Sano – banner de cookies. Hereda la tipografía del tema (Poppins). */
.vys-cc {
	--vys-green: #048967;
	--vys-green-dark: #036a50;
	--vys-text: #222;
	--vys-muted: #595959;
	--vys-line: #e5e5e5;
	--vys-bg: #fff;
	position: fixed;
	inset: auto 0 0 0;
	z-index: 100000;
	display: flex;
	justify-content: center;
	padding: 16px;
	pointer-events: none;
	font-family: inherit;
	color: var(--vys-text);
}
.vys-cc[hidden],
.vys-cc__layer[hidden] { display: none !important; }

.vys-cc--panel {
	inset: 0;
	align-items: center;
	background: rgba(0, 0, 0, .45);
	pointer-events: auto;
}

.vys-cc__layer {
	pointer-events: auto;
	width: 100%;
	max-width: 960px;
	background: var(--vys-bg);
	border-top: 3px solid var(--vys-green);
	box-shadow: 0 6px 30px rgba(0, 0, 0, .18);
	padding: 20px 24px;
	font-size: 14px;
	line-height: 1.6;
}
.vys-cc__layer--panel {
	max-width: 640px;
	max-height: calc(100vh - 32px);
	display: flex;
	flex-direction: column;
	padding: 0;
}

.vys-cc__title {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--vys-text);
}
.vys-cc__text { margin: 0 0 16px; color: var(--vys-muted); }
.vys-cc__text a,
.vys-cc__details a { color: var(--vys-green-dark); text-decoration: underline; }

.vys-cc__actions {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}
.vys-cc__layer--panel .vys-cc__actions { padding: 16px 24px; border-top: 1px solid var(--vys-line); }

/* Los tres botones son idénticos: misma jerarquía visual, sin patrones oscuros. */
.vys-cc__btn {
	appearance: none;
	min-height: 44px;
	padding: 10px 14px;
	border: 1px solid var(--vys-green-dark);
	border-radius: 0;
	background: var(--vys-green-dark);
	color: #fff;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .15s;
}
.vys-cc__btn:hover { background: #024e3b; border-color: #024e3b; }
.vys-cc__btn:focus-visible,
.vys-cc__close:focus-visible,
.vys-cc__switch input:focus-visible + .vys-cc__slider,
.vys-cc__details summary:focus-visible {
	outline: 3px solid #1b1b1b;
	outline-offset: 2px;
}

.vys-cc__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 24px;
	border-bottom: 1px solid var(--vys-line);
}
.vys-cc__head .vys-cc__title { margin: 0; }
.vys-cc__close {
	appearance: none;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	color: var(--vys-text);
	cursor: pointer;
}
.vys-cc__body { overflow-y: auto; padding: 8px 24px; }

.vys-cc__cat { padding: 14px 0; border-bottom: 1px solid var(--vys-line); }
.vys-cc__cat:last-child { border-bottom: 0; }
.vys-cc__cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vys-cc__cat-title { margin: 0; font-size: 14px; font-weight: 600; text-transform: none; }
.vys-cc__cat-desc { margin: 4px 0 0; color: var(--vys-muted); }
.vys-cc__always { font-size: 12px; font-weight: 600; color: var(--vys-green-dark); white-space: nowrap; }

.vys-cc__details { margin-top: 6px; }
.vys-cc__details summary { cursor: pointer; color: var(--vys-green-dark); font-weight: 500; }
.vys-cc__details ul { margin: 8px 0 0 18px; padding: 0; color: var(--vys-muted); font-size: 13px; }
.vys-cc__details code { font-size: 12px; background: #f4f4f4; padding: 0 4px; }

.vys-cc__switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.vys-cc__switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.vys-cc__slider { position: absolute; inset: 0; background: #8a8a8a; border-radius: 26px; transition: background-color .15s; }
.vys-cc__slider::before {
	content: "";
	position: absolute;
	left: 3px;
	top: 3px;
	width: 20px;
	height: 20px;
	background: #fff;
	border-radius: 50%;
	transition: transform .15s;
}
.vys-cc__switch input:checked + .vys-cc__slider { background: var(--vys-green); }
.vys-cc__switch input:checked + .vys-cc__slider::before { transform: translateX(20px); }

/* Contenido embebido bloqueado hasta el consentimiento. */
.vys-embed { position: relative; background: #f4f4f4; }
.vys-embed.is-loaded .vys-embed__placeholder { display: none; }

@media (max-width: 640px) {
	.vys-cc { padding: 0; }
	.vys-cc__layer { padding: 16px; }
	.vys-cc__layer--panel { max-height: 100vh; height: 100%; }
	.vys-cc--panel { align-items: stretch; }
	.vys-cc__actions { grid-template-columns: 1fr; }
	.vys-cc__head, .vys-cc__body, .vys-cc__layer--panel .vys-cc__actions { padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.vys-cc__btn, .vys-cc__slider, .vys-cc__slider::before { transition: none; }
}
