/* Solo aplica cuando js/navidad.js pone la clase .navidad */
.navidad .con-gorro { position: relative; display: block; flex: none; }
.navidad .con-gorro > img:first-child { display: block; }
.navidad .gorro { position: absolute; left: 46.9%; top: -10.9%; width: 75%; height: auto; pointer-events: none; }
.navidad .marca .gorro { width: 75%; height: auto; }
.navidad .marca__texto { margin-left: 5px; }

/* Serie de luces bajo la barra */
.navidad .luces { position: absolute; left: 0; right: 0; top: 100%; height: 22px; display: flex; gap: 26px; justify-content: center; overflow: hidden; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='22'%3E%3Cpath d='M0 0Q18 12 36 0' fill='none' stroke='%234E8C6C' stroke-width='1.6'/%3E%3C/svg%3E") repeat-x 50% 0; }
.navidad .foco { flex: none; width: 10px; height: 14px; margin-top: 6px; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; background: var(--c); box-shadow: 0 0 10px 2px var(--c); animation: titilar 2.4s ease-in-out infinite; }
.navidad .foco:nth-child(4n+1) { --c: #E0343F; }
.navidad .foco:nth-child(4n+2) { --c: #F4B63B; animation-delay: -.6s; }
.navidad .foco:nth-child(4n+3) { --c: #3BB273; animation-delay: -1.2s; }
.navidad .foco:nth-child(4n) { --c: #6EC1FF; animation-delay: -1.8s; }
.navidad .menu { z-index: 2; }
@keyframes titilar { 50% { opacity: .45; box-shadow: 0 0 3px 0 var(--c); } }

/* Nieve en la portada */
.navidad .nieve { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.navidad .copo { position: absolute; top: -10px; border-radius: 50%; background: #fff; opacity: .65; animation: nevar linear infinite; }
@keyframes nevar { from { top: -2%; transform: translateX(0); } 50% { transform: translateX(18px); } to { top: 102%; transform: translateX(-6px); } }
.navidad .monton { position: absolute; left: 0; right: 0; bottom: -1px; height: 34px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 34' preserveAspectRatio='none'%3E%3Cpath d='M0 20C90 2 190 30 300 20S500 4 620 18S850 32 960 16S1130 8 1200 18V34H0Z' fill='%23F6F4F0'/%3E%3C/svg%3E") 0 0 / 100% 100%; }

@media (prefers-reduced-motion: reduce) {
  .navidad .foco { animation: none; }
  .navidad .copo { animation: none; top: var(--quieto); }
}

/* Portada: la caja toma el tamaño que tenía la luna para que el gorro quede encima */
.navidad .hero__visual .con-gorro { width: min(60%, 300px); }
@media (min-width: 900px) { .navidad .hero__visual .con-gorro { width: min(66%, 340px); } }
.navidad .hero__visual .con-gorro > img:first-child { width: 100%; height: auto; }

/* El buscador del catálogo queda por debajo de las luces */
.navidad .herramientas { padding-top: 24px; }
