/* STA Navidad: decoración sobria. Solo se anima transform y opacity. */

:root {
	--sta-nav-acento: #c9a24b;
	--sta-nav-fondo: #17231d;
	--sta-nav-texto: #f1ede4;
	--sta-nav-cable: #4b544d;
}

/* Nieve */
.sta-nav-nieve {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 99990;
}

/* Luces */
.sta-nav-luces {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 30px;
	overflow: hidden;
	pointer-events: none;
	z-index: 99991;
}

body.admin-bar .sta-nav-luces {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .sta-nav-luces {
		top: 46px;
	}
}

.sta-nav-luces svg {
	display: block;
}

.sta-nav-cable {
	fill: none;
	stroke: var(--sta-nav-cable);
	stroke-width: 1.4;
	stroke-linecap: round;
}

.sta-nav-casquillo {
	fill: var(--sta-nav-cable);
}

.sta-nav-foco {
	fill: var(--sta-nav-acento);
}

.sta-nav-brillo {
	fill: #fff;
	opacity: 0.45;
}

.sta-nav-bulbo {
	animation: sta-nav-parpadeo 3.8s ease-in-out infinite;
}

@keyframes sta-nav-parpadeo {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.5;
	}
}

/* Saludo */
.sta-nav-mensaje {
	position: fixed;
	left: 16px;
	bottom: 16px;
	box-sizing: border-box;
	width: 360px;
	max-width: calc(100vw - 32px);
	padding: 16px 48px 16px 20px;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	color: var(--sta-nav-texto);
	background: var(--sta-nav-fondo);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	box-shadow:
		0 18px 36px -18px rgba(23, 35, 29, 0.6),
		inset 0 1px 0 rgba(255, 255, 255, 0.07);
	z-index: 99992;
	opacity: 0;
	transform: translateY(14px);
	transition:
		opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
		transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.sta-nav-mensaje::before {
	content: "";
	position: absolute;
	left: 0;
	top: 16px;
	bottom: 16px;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background: var(--sta-nav-acento);
}

.sta-nav-mensaje.sta-nav-visible {
	opacity: 1;
	transform: translateY(0);
}

.sta-nav-titulo {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sta-nav-acento);
}

.sta-nav-texto {
	margin: 0;
	max-width: 65ch;
	color: var(--sta-nav-texto);
}

.sta-nav-enlace {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--sta-nav-acento);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease, transform 0.15s ease;
}

.sta-nav-enlace:hover {
	border-bottom-color: currentColor;
}

.sta-nav-enlace:active {
	transform: translateY(1px);
}

.sta-nav-cerrar {
	position: absolute;
	top: 10px;
	right: 10px;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	color: rgba(241, 237, 228, 0.7);
	background: transparent;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.sta-nav-cerrar:hover {
	color: var(--sta-nav-texto);
	background: rgba(255, 255, 255, 0.08);
}

.sta-nav-cerrar:active {
	transform: scale(0.94);
}

.sta-nav-cerrar:focus-visible,
.sta-nav-enlace:focus-visible {
	outline: 2px solid var(--sta-nav-acento);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.sta-nav-bulbo {
		animation: none;
	}

	.sta-nav-mensaje {
		transform: none;
		transition: none;
	}
}

@media print {
	.sta-nav-nieve,
	.sta-nav-luces,
	.sta-nav-mensaje {
		display: none !important;
	}
}
