/* ==========================================================================
   FuturePOS · capa de Navidad para la landing
   Se activa con la clase .navidad en <html>. No toca colores, textos de
   producto ni CTA de site.css: solo añade adornos y un bloque de temporada.
   ========================================================================== */

:root {
  --xmas-red: #E5484D;
  --xmas-red-text: #FCA5A5;
  --xmas-green: #34D399;
  --xmas-gold: #F5B83D;
  --xmas-snow: #E9EDF5;
  --xmas-cable: #3A4354;
}

html:not(.navidad) .solo-navidad { display: none !important; }
html.navidad .sin-navidad { display: none !important; }

/* ===== Logo con gorro en la isla ===== */
.nav { position: relative; }
.nav-logo { gap: var(--s-75); }
.nav-logo .gorro { height: 30px; width: auto; margin-top: -8px; }

/* ===== Guirnalda bajo la isla ===== */
.luces {
  position: absolute;
  left: 32px;
  width: calc(100% - 64px);
  top: calc(100% - 2px);
  height: 20px;
  overflow: visible;
  pointer-events: none;
}
.luces .cable { fill: none; stroke: var(--xmas-cable); stroke-width: 1.2; }
.luces .casq { fill: var(--xmas-cable); }
.luces .foco { filter: drop-shadow(0 0 4px var(--c)); }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; }
.hero > .wrap { position: relative; z-index: 1; }
.nieve {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-75); }
.badge-fiestas {
  color: var(--xmas-red-text);
  border-color: color-mix(in srgb, var(--xmas-red) 40%, transparent);
  background: color-mix(in srgb, var(--xmas-red) 12%, var(--surface));
}
.badge-fiestas svg { width: 9px; height: 18px; }

.hero-visual .frame { position: relative; }
.copete {
  position: absolute;
  left: 18px;
  width: calc(100% - 36px);
  top: -9px;
  height: 18px;
  pointer-events: none;
}
.copete path { fill: var(--xmas-snow); }
.baston-colgado {
  position: absolute;
  left: 45%;
  top: -6px;
  width: 22px;
  height: 46px;
  transform: rotate(10deg);
  transform-origin: top center;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
}

/* ===== CTA final con nieve ===== */
.cta-final { position: relative; overflow: hidden; }
.cta-final > *:not(.nieve):not(.monton) { position: relative; z-index: 1; }
.cta-final .gorro-cta { width: 64px; height: auto; border-radius: 0; margin-top: -18px; }
.monton {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  width: 100%;
  pointer-events: none;
}
.monton path { fill: var(--xmas-snow); opacity: 0.9; }

/* ===== Footer ===== */
.footer-brand .lock-gorro { height: 56px; width: auto; align-self: flex-start; }
.felices { display: inline-flex; align-items: center; gap: var(--s-75); color: var(--xmas-red-text); }
.felices svg { width: 8px; height: 16px; }

@media (prefers-reduced-motion: no-preference) {
  .luces .foco { animation: brillo 2.4s ease-in-out infinite; }
  .luces .foco:nth-child(3n) { animation-delay: -0.8s; }
  .luces .foco:nth-child(3n + 1) { animation-delay: -1.6s; }
}
@keyframes brillo { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

@media (max-width: 1080px) {
  .luces { left: 24px; width: calc(100% - 48px); }
}
@media (max-width: 640px) {
  .nav-logo .gorro { height: 26px; }
  .baston-colgado { left: 45%; width: 16px; height: 34px; }
  .copete { left: 10px; width: calc(100% - 20px); top: -7px; height: 14px; }
}
