/* ==========================================================
   NAVIDAD (diciembre)
   Todo depende de la clase html.navidad, que un script en el <head>
   pone solo hasta el 1-ene-2027. Después de esa fecha no se ve nada.
   Para quitarlo del todo: borrar el <script> y el <link> NAVIDAD del
   <head>, los bloques marcados "NAVIDAD" en index.html y js/navidad.js.
   ========================================================== */
:root {
  --xm-red: #d6283a;
  --xm-green: #15803d;
  --xm-gold: #e0b84f;
}

/* Fuera de temporada, nada navideño se muestra */
html:not(.navidad) [data-navidad] {
  display: none !important;
}

/* ── Saludo en el hero ─────────────────────────────────── */
.xmas-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.xmas-badge svg {
  width: 26px;
  height: 26px;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--xm-red), #9f1239);
  color: #fff;
  flex-shrink: 0;
}

/* ── Luces al pie del hero (las dibuja js/navidad.js) ──── */
.xmas-lights {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  pointer-events: none;
  z-index: 2;
}
.xmas-lights svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.xmas-lights__wire {
  fill: none;
  stroke: rgba(203, 213, 225, 0.55);
  stroke-width: 1.4;
}
.xmas-bulb__cap { fill: #475569; }
.xmas-bulb__glass { fill: var(--bulb); }
.xmas-bulb__glow { fill: var(--bulb); opacity: 0.35; filter: blur(4px); }
.xmas-bulb--red { --bulb: #ff4d5e; }
.xmas-bulb--green { --bulb: #34d27b; }
.xmas-bulb--gold { --bulb: #ffd166; }
.xmas-bulb--blue { --bulb: #60a5fa; }
.xmas-bulb {
  animation: xm-blink 2.6s ease-in-out infinite;
}
@keyframes xm-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ── Nieve en el hero ──────────────────────────────────── */
.xmas-snow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ── Sección "Temporada navideña" ──────────────────────── */
.xmas {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 360px at 0% 0%, rgba(214, 40, 58, 0.07), transparent 70%),
    radial-gradient(700px 360px at 100% 100%, rgba(21, 128, 61, 0.07), transparent 70%),
    #fff;
  border-bottom: 1px solid #e5e7eb;
}
.xmas .container {
  padding-top: 80px;
  padding-bottom: 80px;
}
.xmas .eyebrow {
  color: var(--xm-red);
}
.xmas__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}
.xmas__head > div:first-child {
  max-width: 640px;
}
.xmas__head p {
  margin-top: 12px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.6;
}

/* Esferas colgantes */
.xmas__ornaments {
  display: flex;
  gap: 22px;
  margin-top: -80px;
  flex-shrink: 0;
}
.xmas__ornament {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin-top: 90px;
  transform-origin: 50% -90px;
  animation: xm-swing 4.5s ease-in-out infinite;
  box-shadow: inset -6px -8px 12px rgba(0, 0, 0, 0.18), inset 6px 6px 10px rgba(255, 255, 255, 0.35);
}
.xmas__ornament::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 1px;
  height: 90px;
  background: #cbd5e1;
}
.xmas__ornament::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 10px;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: #94a3b8;
}
.xmas__ornament--red { background: var(--xm-red); margin-top: 60px; transform-origin: 50% -60px; }
.xmas__ornament--red::before { height: 60px; }
.xmas__ornament--gold { background: var(--xm-gold); width: 40px; height: 40px; animation-delay: -1.5s; }
.xmas__ornament--green { background: var(--xm-green); margin-top: 40px; transform-origin: 50% -40px; animation-delay: -3s; }
.xmas__ornament--green::before { height: 40px; }
@keyframes xm-swing {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}

/* Tarjetas */
.xmas__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.xmas__card {
  position: relative;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 26px 22px 24px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.xmas__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}
.xmas__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--xm-red);
}
.xmas__card:nth-child(even)::before {
  background: var(--xm-green);
}
.xmas__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 16px;
  color: var(--xm-red);
  background: rgba(214, 40, 58, 0.09);
}
.xmas__card:nth-child(even) .xmas__icon {
  color: var(--xm-green);
  background: rgba(21, 128, 61, 0.09);
}
.xmas__icon svg {
  width: 24px;
  height: 24px;
}
.xmas__card h3 {
  font-size: 18px;
  color: #111827;
  margin-bottom: 8px;
}
.xmas__card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #4b5563;
}

/* Llamado a la acción */
.xmas__cta {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 30px;
  border-radius: 16px;
  background: var(--grad-dark);
  color: #e5e7eb;
}
.xmas__cta p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  max-width: 560px;
}
.xmas__cta strong {
  color: #fff;
}
.xmas__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.xmas__btn-wa {
  border-color: rgba(255, 255, 255, 0.3);
}
.xmas__btn-wa:hover {
  border-color: #fff;
}

@media (max-width: 1024px) {
  .xmas__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .xmas__cta {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 640px) {
  .xmas .container {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .xmas__ornaments {
    display: none;
  }
  .xmas__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .xmas__cta {
    padding: 22px 20px;
  }
  .xmas__actions,
  .xmas__actions .btn {
    width: 100%;
  }
  .xmas-lights {
    height: 54px;
  }
}

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

/* ── Video navideño del hero + subtítulos ──────────────── */
/* En escritorio el degradado deja ver la escena a la derecha;
   el texto del hero (izquierda) sigue sobre fondo oscuro. */
@media (min-width: 901px) {
  html.navidad .hero__overlay {
    background: linear-gradient(90deg,
      rgba(17, 24, 39, 0.88) 0%,
      rgba(17, 24, 39, 0.70) 38%,
      rgba(17, 24, 39, 0.25) 70%,
      rgba(17, 24, 39, 0.10) 100%);
  }
}

.hero-cc {
  position: absolute;
  z-index: 3;
  right: 108px; /* deja libre los botones flotantes de Instagram/WhatsApp */
  bottom: 92px;
  width: min(500px, 40%);
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.hero-cc__text {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: clamp(16px, 1.45vw, 21px);
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.hero-cc__text.is-on {
  opacity: 1;
  transform: none;
}
.hero-cc__who {
  display: block;
  margin-bottom: 2px;
  color: var(--xm-gold);
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-cc__fx {
  font-style: italic;
  font-weight: 500;
  color: #e5e7eb;
}

/* En tablet/móvil el texto ocupa todo el ancho: subtítulo centrado abajo */
@media (max-width: 900px) {
  .hero-cc {
    left: 16px;
    right: 84px; /* botones flotantes a la derecha */
    width: auto;
    bottom: 72px;
  }
  .hero-cc__text {
    font-size: 15px;
    padding: 8px 14px;
  }
}

/* Si el video no se muestra (movimiento reducido), tampoco los subtítulos */
@media (prefers-reduced-motion: reduce) {
  .hero-cc { display: none; }
}
