/* ========================================================
   🎄 TECHFIX COLOMBIA - AMBIENTE VISUAL NAVIDEÑO 2026
   Especial de Luces Navideñas RGB & Aguinaldos Tech
   Optimizado para máxima fluidez en Móvil, Tablet y PC.
   100% responsivo, no bloqueante (pointer-events: none)
   ======================================================== */

:root {
  --navidad-red: #ef4444;
  --navidad-green: #10b981;
  --navidad-gold: #fbbf24;
  --navidad-ice: #00d4ff;
  --navidad-snow: #ffffff;
}

/* ── 1. RESPLANDOR AMBIENTAL NAVIDEÑO ── */
.navidad-ambient-glow {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 1500px;
  height: 380px;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(239, 68, 68, 0.14) 0%,
    rgba(16, 185, 129, 0.09) 35%,
    rgba(251, 191, 36, 0.06) 60%,
    transparent 80%
  );
  pointer-events: none;
  z-index: 25;
  filter: blur(45px);
}

/* ── 2. GUIRNALDAS DE LUCES NAVIDEÑAS RGB (FAIRY LIGHTS MULTI-UBICACIÓN) ── */

.navidad-lights-string {
  position: relative;
  width: 100%;
  display: block;
}

.navidad-bulbs-row {
  display: flex;
  width: 100%;
  justify-content: space-around;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

/* A. Guirnalda Superior de la Pantalla (Top Bar) */
.navidad-lights-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 32px;
  z-index: 60;
  pointer-events: none;
  overflow: visible;
  padding: 0 10px;
}

/* B. Guirnalda en el Header Flotante */
.navidad-header-lights {
  position: absolute;
  bottom: -15px;
  left: 28px;
  right: 28px;
  height: 22px;
  display: block;
  pointer-events: none;
  z-index: 40;
}

/* C. Guirnalda sobre el Carrusel de Ofertas Relámpago */
.navidad-carousel-lights {
  position: absolute;
  top: -3px;
  left: 20px;
  right: 20px;
  height: 24px;
  display: block;
  pointer-events: none;
  z-index: 35;
}

/* D. Guirnalda sobre Secciones Clave (Catálogo / Trust Bar) */
.navidad-section-lights {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto 12px auto;
  height: 24px;
  display: block;
  pointer-events: none;
  position: relative;
  z-index: 15;
}

/* E. Esquinas Superiores con Guirnaldas en Caída Diagonal */
.navidad-corner-lights {
  position: fixed;
  top: 0;
  z-index: 58;
  pointer-events: none;
  width: 140px;
  height: 100px;
}

.navidad-corner-lights.left {
  left: 0;
}

.navidad-corner-lights.right {
  right: 0;
  transform: scaleX(-1);
}

/* Estructura común del cable de luces */
.navidad-light-wire {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 16px;
  stroke: rgba(255, 255, 255, 0.26);
  stroke-width: 1.2;
  fill: none;
}

/* Cada bombillo individual con oscilación suave y luz cálida */
.navidad-bulb-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  top: -2px;
  transform-origin: top center;
  animation: bulbSway 4s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes bulbSway {
  0% { transform: rotate(-3deg); }
  100% { transform: rotate(3deg); }
}

.navidad-bulb-socket {
  width: 5px;
  height: 5px;
  background: #1f2937;
  border-radius: 2px 2px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.navidad-bulb-glass {
  width: 10px;
  height: 16px;
  border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  position: relative;
  transition: all 0.3s ease;
  will-change: filter, transform;
}

/* Versión Mini para Header y componentes compactos */
.navidad-mini-lights .navidad-bulb-socket {
  width: 3.5px;
  height: 3.5px;
}

.navidad-mini-lights .navidad-bulb-glass {
  width: 7.5px;
  height: 12px;
}

/* Colores de bombillos con pulsos RGB navideños */
.navidad-bulb-red .navidad-bulb-glass {
  background: radial-gradient(circle at 40% 35%, #fca5a5, #ef4444);
  box-shadow: 0 0 12px #ef4444, 0 0 24px rgba(239, 68, 68, 0.5);
  animation: bulbGlowRed 2.4s ease-in-out infinite alternate;
}

.navidad-bulb-green .navidad-bulb-glass {
  background: radial-gradient(circle at 40% 35%, #a7f3d0, #10b981);
  box-shadow: 0 0 12px #10b981, 0 0 24px rgba(16, 185, 129, 0.5);
  animation: bulbGlowGreen 2.8s ease-in-out infinite alternate;
  animation-delay: 0.6s;
}

.navidad-bulb-gold .navidad-bulb-glass {
  background: radial-gradient(circle at 40% 35%, #fef08a, #fbbf24);
  box-shadow: 0 0 12px #fbbf24, 0 0 24px rgba(251, 191, 36, 0.5);
  animation: bulbGlowGold 2.2s ease-in-out infinite alternate;
  animation-delay: 1.1s;
}

.navidad-bulb-ice .navidad-bulb-glass {
  background: radial-gradient(circle at 40% 35%, #bae6fd, #00d4ff);
  box-shadow: 0 0 12px #00d4ff, 0 0 24px rgba(0, 212, 255, 0.5);
  animation: bulbGlowIce 2.6s ease-in-out infinite alternate;
  animation-delay: 1.7s;
}

@keyframes bulbGlowRed {
  0% { opacity: 0.65; filter: brightness(0.9); transform: scale(0.96); }
  100% { opacity: 1; filter: brightness(1.35); transform: scale(1.08); box-shadow: 0 0 18px #ef4444, 0 0 34px rgba(239, 68, 68, 0.75); }
}

@keyframes bulbGlowGreen {
  0% { opacity: 0.65; filter: brightness(0.9); transform: scale(0.96); }
  100% { opacity: 1; filter: brightness(1.35); transform: scale(1.08); box-shadow: 0 0 18px #10b981, 0 0 34px rgba(16, 185, 129, 0.75); }
}

@keyframes bulbGlowGold {
  0% { opacity: 0.65; filter: brightness(0.9); transform: scale(0.96); }
  100% { opacity: 1; filter: brightness(1.35); transform: scale(1.08); box-shadow: 0 0 18px #fbbf24, 0 0 34px rgba(251, 191, 36, 0.75); }
}

@keyframes bulbGlowIce {
  0% { opacity: 0.65; filter: brightness(0.9); transform: scale(0.96); }
  100% { opacity: 1; filter: brightness(1.35); transform: scale(1.08); box-shadow: 0 0 18px #00d4ff, 0 0 34px rgba(0, 212, 255, 0.75); }
}

/* ── 3. GORRITO DE SANTA SOBRE EL LOGO DE TECHFIX ── */
.navidad-santa-hat {
  position: absolute;
  top: -15px;
  left: -8px;
  width: 32px;
  height: 32px;
  z-index: 20;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
  animation: santaHatTilt 4.5s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes santaHatTilt {
  0% { transform: rotate(-8deg) scale(1); }
  50% { transform: rotate(2deg) scale(1.04); }
  100% { transform: rotate(-10deg) scale(1); }
}

/* Distintivo de Navidad junto a la marca */
.navidad-nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding: 2px 8px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(16, 185, 129, 0.25));
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
  user-select: none;
  cursor: default;
  animation: navidadBadgePulse 3s ease-in-out infinite;
}

@keyframes navidadBadgePulse {
  0%, 100% { transform: scale(1); border-color: rgba(251, 191, 36, 0.4); }
  50% { transform: scale(1.04); border-color: rgba(239, 68, 68, 0.7); }
}

/* ── 4. NEVADA SUAVE (SNOWFALL PARTICLES) ── */
.navidad-snow-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 30;
  user-select: none;
}

.navidad-flake {
  position: absolute;
  top: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(200, 235, 255, 0.6) 70%, transparent 100%);
  pointer-events: none;
  will-change: transform;
  animation-name: snowfall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.navidad-flake.crystal {
  border-radius: 0;
  background: none;
  color: rgba(255, 255, 255, 0.75);
  font-family: serif;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
}

@keyframes snowfall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: var(--flake-opacity, 0.8);
  }
  90% {
    opacity: var(--flake-opacity, 0.8);
  }
  100% {
    transform: translate3d(var(--sway-x, 40px), 105vh, 0) rotate(360deg);
    opacity: 0;
  }
}

/* ── 5. DETALLE NAVIDEÑO EN EL CHATBOT ASISTENTE & WHATSAPP ── */
.navidad-bot-hat {
  position: absolute;
  top: -12px;
  right: -6px;
  width: 28px;
  height: 28px;
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
  animation: botHatBob 3s ease-in-out infinite alternate;
}

@keyframes botHatBob {
  0% { transform: translateY(0) rotate(5deg); }
  100% { transform: translateY(-3px) rotate(-8deg); }
}

.navidad-gift-badge {
  position: absolute;
  bottom: -4px;
  left: -4px;
  width: 22px;
  height: 22px;
  background: #ef4444;
  border: 1px solid #fbbf24;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.6);
  z-index: 10;
  animation: giftWiggle 4s ease-in-out infinite;
}

@keyframes giftWiggle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  85% { transform: scale(1) rotate(0deg); }
  90% { transform: scale(1.15) rotate(-12deg); }
  95% { transform: scale(1.15) rotate(12deg); }
}

.whatsapp-btn::after {
  content: '🎅';
  position: absolute;
  top: -8px;
  right: -4px;
  font-size: 16px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
  animation: santaHatTilt 4s ease-in-out infinite alternate;
  pointer-events: none;
}

/* ── 6. BOTÓN FLOTANTE DISCRETO PARA CONTROLAR LA NIEVE ── */
.navidad-snow-toggle {
  position: fixed;
  bottom: 32px;
  left: 32px;
  z-index: 95;
  background: rgba(15, 15, 20, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.navidad-snow-toggle:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fff;
  transform: translateY(-2px);
}

/* ── 7. ADAPTACIONES MÓVILES PERFECTAS (CELULARES Y TABLETS) ── */
@media (max-width: 768px) {
  /* Guirnalda superior en móvil */
  .navidad-lights-top {
    height: 22px;
    padding: 0 4px;
  }
  
  .navidad-header-lights {
    bottom: -11px;
    left: 14px;
    right: 14px;
  }

  .navidad-carousel-lights {
    left: 10px;
    right: 10px;
  }

  .navidad-bulb-glass {
    width: 7.5px;
    height: 12px;
  }
  .navidad-bulb-socket {
    width: 4px;
    height: 3.5px;
  }

  .navidad-corner-lights {
    width: 90px;
    height: 70px;
  }

  /* Gorrito ajustado al logo en celular */
  .navidad-santa-hat {
    width: 24px;
    height: 24px;
    top: -11px;
    left: -5px;
  }

  .navidad-nav-badge {
    font-size: 8px;
    padding: 1px 6px;
  }

  /* Reducción de resplandor para fluidez */
  .navidad-ambient-glow {
    height: 220px;
    top: -70px;
    filter: blur(28px);
  }

  /* Botón de control de nieve arriba del bottom nav móvil */
  .navidad-snow-toggle {
    bottom: calc(90px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    padding: 5px 9px;
    font-size: 9px;
  }

  /* Gorrito en el chatbot en móvil */
  .navidad-bot-hat {
    width: 22px;
    height: 22px;
    top: -9px;
    right: -4px;
  }
  .navidad-gift-badge {
    width: 18px;
    height: 18px;
    font-size: 9px;
  }
}
