/* ===== KREACTIVO.COM — CAPA NAVIDEÑA 2026 ===== */
/* Agregar a index.html antes de </head>:          */
/*   <link rel="stylesheet" href="christmas.css">  */
/* ================================================ */

:root {
  --xmas-red:    #CC2200;
  --xmas-gold:   #D4A820;
  --xmas-green:  #1A6B2F;
  --xmas-snow:   #EEF4F8;
  --xmas-dark:   #151514;
}

/* ---- Reemplazar acento naranja por rojo navideño ---- */
.eyebrow.orange,
.live-dot,
.tag-orange {
  color: var(--xmas-red) !important;
}

.live-dot {
  background: var(--xmas-red) !important;
  box-shadow: 0 0 8px var(--xmas-red) !important;
}

/* Botones / CTAs primarios */
.btn-primary,
.cta-primary,
[class*="btn"][class*="primary"] {
  background: linear-gradient(135deg, var(--xmas-red) 0%, #991800 100%) !important;
  border-color: var(--xmas-red) !important;
}

/* Links de acento */
a.accent,
.accent-link,
.nav-cta {
  color: var(--xmas-gold) !important;
}

/* ---- Luces navideñas en el header ---- */
#xmas-lights {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 36px;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.xmas-wire {
  position: absolute;
  top: 6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    #2a2a2a 0px,
    #2a2a2a 38px,
    transparent 38px,
    transparent 40px
  );
}

.xmas-bulb-wrap {
  position: absolute;
  top: 0;
  display: flex;
  gap: 0;
}

.xmas-bulb {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: 40px;
  margin-top: 2px;
}

.xmas-stem {
  width: 2px;
  height: 10px;
  background: #333;
}

.xmas-globe {
  width: 14px;
  height: 18px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  position: relative;
  animation: xmasBlink 1.6s ease-in-out infinite alternate;
}

.xmas-globe::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 3px;
  width: 4px;
  height: 5px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
}

/* Colores cíclicos para los focos */
.xmas-bulb:nth-child(5n+1) .xmas-globe { background: #CC2200; box-shadow: 0 0 10px #CC2200, 0 0 20px #CC220066; }
.xmas-bulb:nth-child(5n+2) .xmas-globe { background: #D4A820; box-shadow: 0 0 10px #D4A820, 0 0 20px #D4A82066; animation-delay: .3s; }
.xmas-bulb:nth-child(5n+3) .xmas-globe { background: #1A6B2F; box-shadow: 0 0 10px #1A9040, 0 0 20px #1A904066; animation-delay: .6s; }
.xmas-bulb:nth-child(5n+4) .xmas-globe { background: #2255CC; box-shadow: 0 0 10px #2255CC, 0 0 20px #2255CC66; animation-delay: .9s; }
.xmas-bulb:nth-child(5n+5) .xmas-globe { background: #CC2200; box-shadow: 0 0 10px #EE5500, 0 0 20px #EE550066; animation-delay: .15s; }

@keyframes xmasBlink {
  0%   { opacity: 1; }
  85%  { opacity: 1; }
  90%  { opacity: 0.3; }
  100% { opacity: 1; }
}

/* Empujar contenido para no quedar bajo las luces */
body {
  padding-top: 36px !important;
}

/* ---- Canvas de nieve (creado por christmas.js) ---- */
#xmas-snow-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.75;
}

/* ---- Widget countdown ---- */
#xmas-countdown {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 9998;
  background: rgba(10, 10, 10, 0.88);
  border: 1px solid var(--xmas-red);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(204,34,0,0.3);
  font-family: 'Cabinet Grotesk', 'Satoshi', system-ui, sans-serif;
  cursor: default;
  user-select: none;
  transition: transform .2s, opacity .2s;
  min-width: 140px;
}

#xmas-countdown:hover {
  transform: translateY(-2px);
}

#xmas-countdown-label {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--xmas-gold);
  font-weight: 600;
  line-height: 1;
}

#xmas-countdown-tree {
  font-size: 22px;
  line-height: 1;
}

#xmas-countdown-digits {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.xmas-cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.xmas-cd-num {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
  text-align: center;
}

.xmas-cd-lbl {
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.xmas-cd-sep {
  font-size: 20px;
  font-weight: 300;
  color: rgba(255,255,255,0.3);
  margin-bottom: 4px;
  line-height: 1.2;
}

#xmas-countdown-msg {
  font-size: 11px;
  color: var(--xmas-red);
  font-weight: 600;
  letter-spacing: .05em;
  display: none;
}

/* ---- Countdown compacto en mobile ---- */
@media (max-width: 768px) {
  #xmas-countdown {
    bottom: 80px; /* encima del mini-player */
    right: 12px;
    padding: 7px 12px;
    gap: 0;
    min-width: unset;
    flex-direction: row;
    align-items: center;
    border-radius: 100px;
  }

  #xmas-countdown-label,
  #xmas-countdown-tree {
    display: none;
  }

  #xmas-countdown-digits {
    gap: 4px;
    align-items: center;
  }

  .xmas-cd-unit {
    flex-direction: row;
    gap: 2px;
    align-items: baseline;
  }

  .xmas-cd-num {
    font-size: 15px;
    min-width: unset;
  }

  .xmas-cd-lbl {
    font-size: 9px;
    text-transform: lowercase;
  }

  .xmas-cd-sep {
    font-size: 13px;
    margin-bottom: 0;
  }

  /* Mostrar solo días en mobile para que sea un chip chico */
  #xmas-countdown-digits .xmas-cd-unit:not(:first-child),
  #xmas-countdown-digits .xmas-cd-sep {
    display: none;
  }

  /* Agregar árbol inline antes del número */
  #xmas-countdown::before {
    content: '🎄';
    font-size: 14px;
    margin-right: 6px;
  }
}

/* ---- Brillo navideño sutil en hero ---- */
.hero-section,
[class*="hero"] {
  position: relative;
}

.hero-section::before,
[class*="hero"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    rgba(204, 34, 0, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* ---- Badge Felices Fiestas ---- */
#xmas-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--xmas-red), #991800);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 8px;
}
