/* ==========================================================================
   RECARGAS HOMERO - TEMA NAVIDEÑO (EDICIÓN FESTIVA 2026)
   ========================================================================== */

:root {
  --xmas-red: #E50914;
  --xmas-red-glow: rgba(229, 9, 20, 0.45);
  --xmas-green: #00E676;
  --xmas-green-glow: rgba(0, 230, 118, 0.4);
  --xmas-gold: #FFD700;
  --xmas-gold-glow: rgba(255, 215, 0, 0.5);
  --xmas-blue: #00E5FF;
  --xmas-blue-glow: rgba(0, 229, 255, 0.45);
  --xmas-snow: #FFFFFF;
}

/* 1. LIENZO DE NIEVE (CANVAS) */
#christmas-snow-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9998;
}

/* 2. GORRO DE PAPÁ NOEL EN EL LOGO */
.nav-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-brand-logo-wrapper {
  position: relative;
  display: inline-block;
}

.santa-hat-icon {
  position: absolute;
  top: -14px;
  left: -8px;
  width: 38px;
  height: auto;
  pointer-events: none;
  z-index: 20;
  transform: rotate(-15deg);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
  animation: hatWiggle 6s ease-in-out infinite;
  transform-origin: bottom center;
}

@keyframes hatWiggle {
  0%, 90%, 100% { transform: rotate(-15deg); }
  93% { transform: rotate(-8deg) scale(1.05); }
  96% { transform: rotate(-20deg) scale(1.05); }
}

/* 3. GUIRNALDA DE LUCES NAVIDEÑAS (CHRISTMAS LIGHTS) */
.christmas-lights-strip {
  width: 100%;
  height: 16px;
  background: transparent;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  pointer-events: none;
  margin-top: 2px;
  margin-bottom: 4px;
  padding: 0 10px;
}

.christmas-lights-strip::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  width: 100%;
  height: 3px;
  border-bottom: 2px solid rgba(80, 60, 20, 0.6);
  border-radius: 50%;
  z-index: 1;
}

.c-bulb {
  position: relative;
  width: 8px;
  height: 11px;
  border-radius: 50% 50% 45% 45%;
  margin: 0 4px;
  z-index: 2;
  will-change: opacity;
  transform: translateZ(0);
}

.c-bulb::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 2px;
  width: 4px;
  height: 3px;
  background: #333;
  border-radius: 2px;
}

/* Bombillos multicolores optimizados (GPU Compositor puro, 0 repaints) */
.c-bulb-red {
  background: #ff2233;
  box-shadow: 0 0 8px #ff2233;
  animation: glowBulb 1.8s ease-in-out infinite alternate;
}

.c-bulb-green {
  background: #00e676;
  box-shadow: 0 0 8px #00e676;
  animation: glowBulb 1.8s ease-in-out infinite alternate 0.45s;
}

.c-bulb-gold {
  background: #ffd700;
  box-shadow: 0 0 8px #ffd700;
  animation: glowBulb 1.8s ease-in-out infinite alternate 0.9s;
}

.c-bulb-blue {
  background: #00e5ff;
  box-shadow: 0 0 8px #00e5ff;
  animation: glowBulb 1.8s ease-in-out infinite alternate 1.35s;
}

@keyframes glowBulb {
  0% { opacity: 0.35; }
  100% { opacity: 1; }
}



/* 5. ACUMULACIONES DE NIEVE (SNOW CAPS) EN TARJETAS */
.product-card {
  position: relative;
  overflow: visible !important;
}

.product-card::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 6px;
  right: 6px;
  height: 10px;
  background: radial-gradient(ellipse at center, #ffffff 60%, rgba(240, 248, 255, 0.95) 85%, transparent 100%);
  border-radius: 10px 10px 4px 4px;
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.4);
  z-index: 15;
  pointer-events: none;
  opacity: 0.92;
}

/* Pequeñas gotas de nieve colgantes */
.product-card::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 20px;
  width: 6px;
  height: 7px;
  background: #ffffff;
  border-radius: 0 0 50% 50%;
  box-shadow: 
    30px 0 0 -1px #ffffff,
    75px 0 0 1px #ffffff,
    130px 0 0 0 #ffffff,
    180px 0 0 -1px #ffffff;
  z-index: 15;
  pointer-events: none;
  opacity: 0.88;
}

/* Efecto hover festivo en tarjetas */
.product-card:hover {
  border-color: rgba(255, 215, 0, 0.8) !important;
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.25), 0 0 15px rgba(0, 230, 118, 0.15) !important;
}

/* 6. TOQUE NAVIDEÑO EN LA BARRA DE BÚSQUEDA */
.store-control-bar {
  position: relative;
}

.store-control-bar::before {
  content: "🎄";
  position: absolute;
  top: -14px;
  left: 14px;
  font-size: 1.25rem;
  z-index: 5;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* 7. BOTÓN FLOTANTE PARA ACTIVAR/PAUSAR LA NIEVE */
.snow-toggle-widget {
  position: fixed;
  bottom: 75px;
  left: 20px;
  z-index: 9997;
  background: rgba(20, 16, 6, 0.90);
  border: 1.5px solid rgba(255, 215, 0, 0.45);
  border-radius: 30px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFD700;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  user-select: none;
}

.snow-toggle-widget:hover {
  background: rgba(38, 30, 8, 0.95);
  border-color: #FFD700;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.35);
}

.snow-toggle-icon {
  font-size: 1.1rem;
  animation: spinSlow 8s linear infinite;
  display: inline-block;
}

.snow-toggle-widget.paused .snow-toggle-icon {
  animation: none;
  opacity: 0.6;
}

.snow-toggle-widget.paused {
  border-color: rgba(255,255,255,0.2);
  color: #aaa;
}

@keyframes spinSlow {
  100% { transform: rotate(360deg); }
}

/* 8. ADAPTACIONES MÓVILES */
@media (max-width: 768px) {
  .santa-hat-icon {
    width: 30px;
    top: -11px;
    left: -6px;
  }

  .snow-toggle-widget {
    bottom: 68px;
    left: 15px;
    padding: 5px 10px;
    font-size: 0.74rem;
  }
}
