/* ============ Q'Tortilla · Navidad ============
   Decoración de temporada. Para quitarla basta con borrar en index.html
   las líneas de navidad.css y navidad.js. */
:root {
  --xmas-red: #d62839;
  --xmas-green: #1f8a4c;
  --xmas-gold: var(--yellow, #f5c518);
  --xmas-snow: #ffffff;
}

/* ---- guirnalda de luces bajo el menú superior ---- */
.xmas-lights {
  position: absolute; left: 0; right: 0; top: 100%;
  height: 26px; pointer-events: none; overflow: hidden;
  display: flex; justify-content: space-around;
}
.xmas-lights::before {            /* el cable */
  content: ""; position: absolute; left: -2%; right: -2%; top: -14px; height: 22px;
  border-bottom: 2px solid rgba(40, 70, 45, .9);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.xmas-lights i {
  position: relative; top: 6px;
  width: 9px; height: 14px; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: var(--c); box-shadow: 0 2px 10px 2px var(--c);
  animation: xmas-blink 1.6s ease-in-out infinite;
  animation-delay: var(--d);
}
.xmas-lights i::before {          /* casquillo */
  content: ""; position: absolute; left: 1px; top: -4px; width: 7px; height: 5px;
  background: #3b3b3b; border-radius: 2px;
}
.xmas-lights i:nth-child(odd) { top: 9px; }
@keyframes xmas-blink {
  0%, 100% { opacity: 1; filter: brightness(1.15); }
  50% { opacity: .35; box-shadow: none; filter: brightness(.7); }
}

/* ---- gorro navideño en el logo ---- */
.brand { position: relative; }
.xmas-hat {
  position: absolute; left: -9px; top: -15px;
  width: 38px; height: 34px; transform: rotate(-22deg);
  pointer-events: none; filter: drop-shadow(0 3px 4px rgba(0,0,0,.5));
}

/* gorro grande sobre el aro de la Q de la portada */
.hero-logo-wrap .xmas-hat--hero {
  left: 25%; top: -15%; width: 41%; height: auto; aspect-ratio: 64 / 56;
  transform: rotate(-14deg); transform-origin: 41% 81%;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.6));
}

/* ---- nieve ---- */
.xmas-snow {
  position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden;
}
.xmas-snow span {
  position: absolute; top: -12px; left: var(--x);
  width: var(--s); height: var(--s); border-radius: 50%;
  background: var(--xmas-snow); opacity: var(--o);
  filter: blur(var(--b));
  animation: xmas-fall var(--t) linear infinite, xmas-drift calc(var(--t) / 3) ease-in-out infinite alternate;
  animation-delay: var(--d), var(--d);
}
@keyframes xmas-fall { to { top: 105vh; } }
@keyframes xmas-drift { from { margin-left: -18px; } to { margin-left: 18px; } }

@media (max-width: 720px) {
  .xmas-hat { width: 32px; height: 29px; left: -8px; top: -13px; }
}

@media (prefers-reduced-motion: reduce) {
  .xmas-snow { display: none; }
}
