/*
 * Ecomaderas · detalles navideños (inc/navidad.php)
 * Solo se carga en temporada. Colores cálidos que conviven con la marca: rojo, dorado, verde bosque y blanco cálido.
 */
:root {
	--eco-nav-rojo: #c8322b;
	--eco-nav-dorado: #f2b84b;
	--eco-nav-verde: #4caf50;
	--eco-nav-blanco: #fff3d1;
	--eco-nav-cable: #24361a;
}

/* ---------- Guirnalda de luces bajo el menú ---------- */
.eco-guirnalda {
	position: absolute; left: 0; right: 0; top: 100%; height: 26px; z-index: 6;
	display: flex; pointer-events: none; overflow: hidden;
}
.eco-guirnalda span { position: relative; flex: 1 1 0; min-width: 0; }
/* Tramo de cable que cuelga entre dos luces */
.eco-guirnalda span::before {
	content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 12px;
	border-bottom: 2px solid var(--eco-nav-cable); border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.eco-guirnalda i {
	position: absolute; left: 50%; top: 5px; width: 8px; height: 12px; margin-left: -4px;
	border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
	background: var(--eco-nav-rojo); color: var(--eco-nav-rojo);
	box-shadow: 0 0 8px 1px currentColor;
	animation: eco-titilar 2.4s ease-in-out infinite;
}
.eco-guirnalda i::before {
	content: ""; position: absolute; left: 1px; right: 1px; top: -3px; height: 4px; border-radius: 1px; background: #3a4a2c;
}
.eco-guirnalda span:nth-child(4n+2) i { background: var(--eco-nav-dorado); color: var(--eco-nav-dorado); animation-delay: -.6s; }
.eco-guirnalda span:nth-child(4n+3) i { background: var(--eco-nav-verde); color: var(--eco-nav-verde); animation-delay: -1.2s; }
.eco-guirnalda span:nth-child(4n+4) i { background: var(--eco-nav-blanco); color: var(--eco-nav-blanco); animation-delay: -1.8s; }
.eco-guirnalda span:nth-child(3n) i { animation-duration: 3.1s; }
@keyframes eco-titilar {
	0%, 100% { opacity: 1; box-shadow: 0 0 9px 2px currentColor; }
	50% { opacity: .45; box-shadow: 0 0 2px 0 currentColor; }
}

/* ---------- Nieve ---------- */
.eco-nieve { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 9980; pointer-events: none; }

/* ---------- Pinos sobre el pie ---------- */
body #bottom { position: relative; margin-top: 48px; }
body #bottom::before {
	content: ""; position: absolute; left: 0; right: 0; top: -48px; height: 48px; pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='48' viewBox='0 0 240 48'%3E%3Cg fill='%231b3409'%3E%3Cpath d='M30 8l10 14h-5l9 12h-7l10 14H13l10-14h-7l9-12h-5z'/%3E%3Cpath d='M78 20l8 11h-4l7 9h-5l8 8H64l8-8h-5l7-9h-4z'/%3E%3Cpath d='M120 2l11 15h-5l10 13h-7l11 18h-40l11-18h-7l10-13h-5z'/%3E%3Cpath d='M168 16l9 12h-4l8 10h-6l9 10h-32l9-10h-6l8-10h-4z'/%3E%3Cpath d='M212 10l10 13h-5l9 12h-7l10 13h-34l10-13h-7l9-12h-5z'/%3E%3Crect y='46' width='240' height='2'/%3E%3C/g%3E%3Cg%3E%3Ccircle cx='26' cy='30' r='1.6' fill='%23e05a4f'/%3E%3Ccircle cx='36' cy='40' r='1.6' fill='%23f2b84b'/%3E%3Ccircle cx='80' cy='36' r='1.5' fill='%23f2b84b'/%3E%3Ccircle cx='118' cy='24' r='1.6' fill='%23f2b84b'/%3E%3Ccircle cx='126' cy='38' r='1.6' fill='%23e05a4f'/%3E%3Ccircle cx='112' cy='42' r='1.6' fill='%23fff3d1'/%3E%3Ccircle cx='170' cy='34' r='1.5' fill='%23fff3d1'/%3E%3Ccircle cx='214' cy='30' r='1.6' fill='%23e05a4f'/%3E%3Ccircle cx='206' cy='42' r='1.6' fill='%23f2b84b'/%3E%3C/g%3E%3C/svg%3E") repeat-x left bottom / 240px 48px;
}

/* ---------- Saludo de fin de año ---------- */
.eco-saludo {
	position: fixed; left: 24px; bottom: 28px; z-index: 9991; box-sizing: border-box;
	display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start;
	max-width: 360px; padding: 16px 16px 16px 18px; border-radius: 18px;
	background: #fff; border: 1px solid var(--eco-linea, #e3dccb); border-top: 4px solid var(--eco-nav-rojo);
	box-shadow: 0 22px 45px -18px rgba(27, 52, 9, .45);
	transform: translateY(24px); opacity: 0; transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .5s ease;
}
.eco-saludo.eco-visible { transform: none; opacity: 1; }
.eco-saludo svg { width: 38px; height: 38px; }
.eco-saludo strong { display: block; margin: 2px 0 4px; font: 700 18px/1.2 var(--eco-titulos, sans-serif); color: var(--eco-bosque, #1b3409); }
.eco-saludo p { margin: 0 !important; font: 400 14.5px/1.5 var(--eco-cuerpo, sans-serif) !important; color: var(--eco-texto, #4b5443) !important; }
.eco-saludo button {
	display: grid; place-items: center; width: 30px; height: 30px; margin: -4px -4px 0 0; padding: 0; border: 0; border-radius: 50%;
	background: transparent; color: var(--eco-texto, #4b5443); font-size: 22px; line-height: 1; cursor: pointer; transition: background .2s;
}
.eco-saludo button:hover { background: var(--eco-crema, #f7f3e8); }

@media (max-width: 767px) {
	.eco-guirnalda { height: 22px; }
	.eco-guirnalda span:nth-child(n+19) { display: none; }
	body #bottom { margin-top: 36px; }
	body #bottom::before { top: -36px; height: 36px; background-size: 180px 36px; }
	.eco-saludo { left: 10px; right: 72px; bottom: calc(96px + env(safe-area-inset-bottom)); max-width: none; gap: 10px; padding: 14px; }
	.eco-saludo svg { width: 30px; height: 30px; }
	.eco-saludo strong { font-size: 16px; }
	.eco-saludo p { font-size: 13.5px !important; }
}

/* Sin movimiento: luces encendidas fijas, sin nieve ni deslizamientos */
@media (prefers-reduced-motion: reduce) {
	.eco-guirnalda i { animation: none; }
	.eco-nieve { display: none; }
	.eco-saludo { transform: none; }
}
