/*
 * Luces navideñas (decoración opcional).
 * Este archivo solo se carga si en "Personalización del Sitio → Decoración"
 * está activado el interruptor. Son dos tiras de foquitos que se prenden de
 * a turnos: la A (rojo y verde) y la B (ámbar y azul). El cable va en las dos
 * para que no parpadee. Solo anima opacidad (liviano, no frena el celular).
 */
.mc-luces-on {
	--mc-luces-a: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27240%27 height=%2724%27 viewBox=%270 0 240 24%27%3E%3Cpath d=%27M0 2Q60 22 120 2M120 2Q180 22 240 2%27 fill=%27none%27 stroke=%27%232f6b4a%27 stroke-width=%271.2%27 stroke-linecap=%27round%27/%3E%3Ccircle cx=%2730%27 cy=%2716.1%27 r=%277%27 fill=%27%23ff4545%27 opacity=%27.22%27/%3E%3Crect x=%2728.5%27 y=%279.5%27 width=%273%27 height=%273%27 rx=%27.6%27 fill=%27%231b2a22%27/%3E%3Cellipse cx=%2730%27 cy=%2716.1%27 rx=%273%27 ry=%274.2%27 fill=%27%23ff4545%27/%3E%3Cellipse cx=%2729%27 cy=%2714.700000000000001%27 rx=%27.9%27 ry=%271.3%27 fill=%27%23fff%27 opacity=%27.6%27/%3E%3Ccircle cx=%27150%27 cy=%2716.1%27 r=%277%27 fill=%27%2335d07f%27 opacity=%27.22%27/%3E%3Crect x=%27148.5%27 y=%279.5%27 width=%273%27 height=%273%27 rx=%27.6%27 fill=%27%231b2a22%27/%3E%3Cellipse cx=%27150%27 cy=%2716.1%27 rx=%273%27 ry=%274.2%27 fill=%27%2335d07f%27/%3E%3Cellipse cx=%27149%27 cy=%2714.700000000000001%27 rx=%27.9%27 ry=%271.3%27 fill=%27%23fff%27 opacity=%27.6%27/%3E%3C/svg%3E");
	--mc-luces-b: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27240%27 height=%2724%27 viewBox=%270 0 240 24%27%3E%3Cpath d=%27M0 2Q60 22 120 2M120 2Q180 22 240 2%27 fill=%27none%27 stroke=%27%232f6b4a%27 stroke-width=%271.2%27 stroke-linecap=%27round%27/%3E%3Ccircle cx=%2790%27 cy=%2716.1%27 r=%277%27 fill=%27%23ffc83d%27 opacity=%27.22%27/%3E%3Crect x=%2788.5%27 y=%279.5%27 width=%273%27 height=%273%27 rx=%27.6%27 fill=%27%231b2a22%27/%3E%3Cellipse cx=%2790%27 cy=%2716.1%27 rx=%273%27 ry=%274.2%27 fill=%27%23ffc83d%27/%3E%3Cellipse cx=%2789%27 cy=%2714.700000000000001%27 rx=%27.9%27 ry=%271.3%27 fill=%27%23fff%27 opacity=%27.6%27/%3E%3Ccircle cx=%27210%27 cy=%2716.1%27 r=%277%27 fill=%27%2344a8ff%27 opacity=%27.22%27/%3E%3Crect x=%27208.5%27 y=%279.5%27 width=%273%27 height=%273%27 rx=%27.6%27 fill=%27%231b2a22%27/%3E%3Cellipse cx=%27210%27 cy=%2716.1%27 rx=%273%27 ry=%274.2%27 fill=%27%2344a8ff%27/%3E%3Cellipse cx=%27209%27 cy=%2714.700000000000001%27 rx=%27.9%27 ry=%271.3%27 fill=%27%23fff%27 opacity=%27.6%27/%3E%3C/svg%3E");
}

:where(.mc-luces-on) :where(.panel-box) {
	position: relative;
}

.mc-luces-on .sub-header-bar::before,
.mc-luces-on .sub-header-bar::after,
.mc-luces-on .panel-box:not(.mc-home-juegos)::before,
.mc-luces-on .panel-box:not(.mc-home-juegos)::after {
	content: "";
	position: absolute;
	left: 10px;
	right: 10px;
	height: 24px;
	pointer-events: none;
	z-index: 5;
	background-repeat: repeat-x;
	background-position: left top;
	background-size: 240px 24px;
}

.mc-luces-on .panel-box:not(.mc-home-juegos)::before,
.mc-luces-on .panel-box:not(.mc-home-juegos)::after {
	top: 1px;
}

/* La barra del eslogan es fija: la guirnalda cuelga justo debajo y queda siempre a la vista. */
.mc-luces-on .sub-header-bar::before,
.mc-luces-on .sub-header-bar::after {
	top: 100%;
	z-index: 1;
}

.mc-luces-on .sub-header-bar::before,
.mc-luces-on .panel-box:not(.mc-home-juegos)::before {
	background-image: var(--mc-luces-a);
	animation: mcLucesA 2.6s ease-in-out infinite;
}

.mc-luces-on .sub-header-bar::after,
.mc-luces-on .panel-box:not(.mc-home-juegos)::after {
	background-image: var(--mc-luces-b);
	animation: mcLucesB 2.6s ease-in-out infinite;
}

@keyframes mcLucesA {
	0%, 40%   { opacity: 1; }
	50%, 90%  { opacity: .22; }
	100%      { opacity: 1; }
}

@keyframes mcLucesB {
	0%, 40%   { opacity: .22; }
	50%, 90%  { opacity: 1; }
	100%      { opacity: .22; }
}

/* Interruptor "Parpadeo" apagado: todas prendidas y quietas. */
.mc-luces-on.mc-luces-quietas .sub-header-bar::before,
.mc-luces-on.mc-luces-quietas .sub-header-bar::after,
.mc-luces-on.mc-luces-quietas .panel-box:not(.mc-home-juegos)::before,
.mc-luces-on.mc-luces-quietas .panel-box:not(.mc-home-juegos)::after {
	animation: none;
	opacity: 1;
}

/* Quien pidió menos movimiento en su dispositivo: también quietas. */
@media (prefers-reduced-motion: reduce) {
	.mc-luces-on .sub-header-bar::before,
	.mc-luces-on .sub-header-bar::after,
	.mc-luces-on .panel-box:not(.mc-home-juegos)::before,
	.mc-luces-on .panel-box:not(.mc-home-juegos)::after {
		animation: none;
		opacity: 1;
	}
}

/* Celular: tiras más chicas para no tapar los títulos. */
@media (max-width: 600px) {
	.mc-luces-on .sub-header-bar::before,
	.mc-luces-on .sub-header-bar::after,
	.mc-luces-on .panel-box:not(.mc-home-juegos)::before,
	.mc-luces-on .panel-box:not(.mc-home-juegos)::after {
		height: 18px;
		background-size: 180px 18px;
	}
}
