/*
 * BOOSTIFY MARKET — EDICIÓN NAVIDEÑA
 * Capa temporal de tema. Se carga DESPUÉS de custom.css y solo actúa cuando
 * <html class="xm"> está presente (layouts/master.njk). Para volver al diseño
 * normal basta quitar esa clase o el <link> a este archivo.
 *
 * Estructura:
 *   1. Tokens (paleta navideña: verde pino, rojo y dorado)
 *   2. Atmósfera (fondo, niebla, vignette)
 *   3. Cielo (trineo + nieve)
 *   4. Superficies de página
 *   5. Navbar
 *   6. Hero
 *   7. Catálogo y tarjetas de producto
 *   8. Botones, formularios, modales
 *   9. Carrito / checkout / cuenta
 *  10. CTA, features, footer
 *  11. Animaciones
 *  12. Responsive y reduced-motion
 *
 * Todo el scope va bajo `html.xm` para ganar en especificidad a los <style>
 * inline de cada componente sin ensuciar el resto del CSS.
 */

/* ═══ 1. TOKENS ═══════════════════════════════════════════════════ */
:root {
  --xm-red: #ea2f3e;
  --xm-gold: #ffc63d;
  --xm-gold-2: #ffce47;
  --xm-ember: #eb3342;
  --xm-blood: #721c27;
  --xm-pine: #25ad63;
  --xm-pine-2: #2e8b5a;
  --xm-pine-deep: #10291c;
  --xm-night: #050c08;
  --xm-snow: #f6edd4;

  --xm-red-rgb: 234, 47, 62;
  --xm-pine-rgb: 37, 173, 99;

  /* Reutiliza los tokens de custom.css: todo lo que ya usaba --brand-grad se transforma solo */
  --brand-1: #25ad63;
  --brand-2: #21ca72;
  --brand-3: #ea2f3e;
  --brand-grad: linear-gradient(135deg, #2e8b5a 0%, #2e9363 48%, #c7212f 100%);
  --brand-grad-soft: linear-gradient(135deg, rgba(37, 173, 99, .18), rgba(var(--xm-red-rgb), .14));
  --xm-text-grad: linear-gradient(100deg, #67e6a2 0%, #ffd267 100%);

  --bg-page: var(--xm-night);
  --bg-panel: #0d1f15;
  --bg-card: #0d1f15;
  --bg-card-hover: #132a1e;
  --bg-surface: #0a1710;
  --bg-surface-2: #11251a;

  --border-subtle: rgba(37, 173, 99, .2);
  --border-mid: rgba(37, 173, 99, .38);
  --border-bright: rgba(var(--xm-red-rgb), .62);

  --shadow-soft: 0 6px 24px rgba(0, 0, 0, .42), 0 0 0 1px rgba(37, 173, 99, .06);
  --shadow-mid: 0 12px 38px rgba(0, 0, 0, .5), 0 0 26px rgba(var(--xm-red-rgb), .16);
  --shadow-glow: 0 14px 42px rgba(0, 0, 0, .55), 0 0 34px rgba(var(--xm-red-rgb), .28);

  /* Tokens de la capa "boost" de custom.css */
  --boost-bg: var(--xm-night);
  --boost-panel: #0d1d14;
  --boost-panel-2: #132a1e;
  --boost-line: rgba(32, 198, 110, .16);
  --boost-primary: #1fbe6a;
  --boost-primary-2: var(--xm-gold);
  --boost-shadow: 0 22px 54px rgba(0, 0, 0, .5);

  --cl-accent: #25ad63;
  --cl-accent-rgb: 37, 173, 99;
}

/* ═══ 2. ATMÓSFERA (detrás del contenido) ═════════════════════════ */
html.xm body::before {
  background:
    radial-gradient(ellipse 55% 38% at 12% -6%, rgba(39, 158, 95, .34) 0%, transparent 62%),
    radial-gradient(ellipse 42% 30% at 92% 4%, rgba(var(--xm-red-rgb), .13) 0%, transparent 62%),
    radial-gradient(ellipse 60% 36% at 50% 108%, rgba(var(--xm-red-rgb), .16) 0%, transparent 66%),
    radial-gradient(ellipse 45% 30% at 50% 50%, rgba(41, 115, 79, .14) 0%, transparent 70%),
    linear-gradient(180deg, #09150f 0%, var(--xm-night) 55%, #050d09 100%) !important;
}
html.xm body::after {
  background-image: radial-gradient(rgba(var(--xm-red-rgb), .05) 1px, transparent 1px) !important;
}

.xm-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

/* Niebla: una sola capa lenta (transform = animación solo de compositor) */
.xm-fog {
  position: absolute;
  left: -30%;
  bottom: 0;
  width: 160%;
  height: 26vh;
  opacity: .45;
  background:
    radial-gradient(ellipse 20% 55% at 14% 60%, rgba(58, 150, 101, .17), transparent 70%),
    radial-gradient(ellipse 24% 50% at 42% 45%, rgba(63, 126, 93, .14), transparent 70%),
    radial-gradient(ellipse 20% 60% at 70% 62%, rgba(54, 160, 106, .15), transparent 70%),
    radial-gradient(ellipse 22% 50% at 92% 48%, rgba(63, 126, 93, .14), transparent 70%);
  will-change: transform;
}
.xm-fog--a { animation: xm-fog-drift 90s linear infinite alternate; }

/* Guirnalda de luces (hero y footer). Dos capas de bombillas que parpadean alternadas */
.xm-lights {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 34px;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}
.xm-lights i {
  position: absolute;
  inset: 0;
  background-repeat: repeat-x;
  background-size: 160px 34px;
}
.xm-lights i:first-child {
  background-image:
    radial-gradient(circle 11px at 20px 14px, rgba(255, 70, 85, .5) 0, transparent 100%),
    radial-gradient(circle 4px at 20px 14px, #ff5666 0 3px, transparent 4px),
    radial-gradient(circle 11px at 60px 14px, rgba(255, 209, 102, .5) 0, transparent 100%),
    radial-gradient(circle 4px at 60px 14px, #ffd166 0 3px, transparent 4px),
    radial-gradient(circle 11px at 120px 16px, rgba(140, 215, 255, .45) 0, transparent 100%),
    radial-gradient(circle 4px at 120px 16px, #9fdcff 0 3px, transparent 4px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='34' viewBox='0 0 160 34'%3E%3Cpath d='M-2 4Q40 20 82 4Q120 20 162 4' fill='none' stroke='%23346b4d' stroke-width='1.6'/%3E%3C/svg%3E");
  animation: xm-twinkle 2.6s ease-in-out infinite;
}
.xm-lights i:last-child {
  background-image:
    radial-gradient(circle 11px at 40px 16px, rgba(60, 220, 130, .45) 0, transparent 100%),
    radial-gradient(circle 4px at 40px 16px, #4be08c 0 3px, transparent 4px),
    radial-gradient(circle 11px at 100px 14px, rgba(255, 70, 85, .5) 0, transparent 100%),
    radial-gradient(circle 4px at 100px 14px, #ff5666 0 3px, transparent 4px),
    radial-gradient(circle 11px at 140px 14px, rgba(255, 209, 102, .5) 0, transparent 100%),
    radial-gradient(circle 4px at 140px 14px, #ffd166 0 3px, transparent 4px);
  animation: xm-twinkle 2.6s ease-in-out -1.3s infinite;
}

.xm-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(2, 7, 4, .6) 100%);
}

/* ═══ 3. CIELO (por encima del contenido, sin interacción) ════════ */
.xm-sky {
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.xm-snow { position: absolute; inset: 0; opacity: .9; }

.xm-sleigh {
  position: absolute;
  top: 0;
  left: 0;
  width: 92px;
  height: 34px;
  color: #ffd166;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(255, 209, 102, .65));
  will-change: transform;
  animation: xm-sleigh-fly 72s linear 6s infinite;
}

/* ═══ 4. SUPERFICIES DE PÁGINA ════════════════════════════════════ */
html.xm body { background-color: var(--xm-night) !important; }

/* El fondo lo dibuja body::before; las secciones grandes se vuelven transparentes para que se vea */
html.xm .flex-wrapper,
html.xm .boost-products,
html.xm .boost-why,
html.xm .about-features,
html.xm .rp-why-us {
  background: transparent !important;
}

/* Carrusel de productos: el desvanecido de bordes sigue usando pseudo-elementos (barato de componer),
   pero degradando hacia el negro de la edición en vez del color sólido anterior */
html.xm .boost-products__road::before { background: linear-gradient(90deg, rgba(5, 12, 8, .96), transparent); }
html.xm .boost-products__road::after { background: linear-gradient(270deg, rgba(5, 12, 8, .96), transparent); }

html.xm .editor a:hover,
html.xm .boost-legal__card a:hover { color: var(--xm-gold); }
html.xm ::selection { background: rgba(var(--xm-red-rgb), .45); color: #fff; }
html.xm :focus-visible { outline-color: var(--xm-red) !important; }
html.xm { scrollbar-color: var(--xm-red) var(--bg-surface); }
html.xm ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #279e5f, #c7212f); }

html.xm .boost-kicker { color: var(--xm-gold) !important; }
html.xm .rp-section-badge {
  color: var(--xm-gold) !important;
  border-color: rgba(var(--xm-red-rgb), .32) !important;
  background: rgba(var(--xm-red-rgb), .08) !important;
}

/* ═══ 5. NAVBAR ═══════════════════════════════════════════════════ */
html.xm .boostnav__bar {
  background: rgba(8, 20, 14, .84) !important;
  border-color: rgba(var(--xm-pine-rgb), .3);
  box-shadow: 0 12px 40px rgba(2, 7, 4, .65), 0 1px 0 rgba(var(--xm-red-rgb), .22), inset 0 1px 0 rgba(255, 255, 255, .03);
}
html.xm .boostnav__brand span::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: .45rem;
  border-radius: 50%;
  background: var(--xm-red);
  box-shadow: 0 0 10px 2px rgba(var(--xm-red-rgb), .75);
  animation: xm-flicker 3.4s ease-in-out infinite;
  vertical-align: middle;
}
html.xm .boostnav__link:hover {
  background: rgba(var(--xm-red-rgb), .13) !important;
  color: #fff1cf !important;
}
html.xm .boostnav__link.is-active {
  background: linear-gradient(135deg, #ffd267, #ea2f3e) !important;
  color: #1a0406 !important;
  box-shadow: 0 4px 18px rgba(var(--xm-red-rgb), .38);
}
html.xm .boostnav__icon-btn {
  border-color: rgba(var(--xm-pine-rgb), .5) !important;
  background: rgba(var(--xm-pine-rgb), .1) !important;
}
html.xm .boostnav__icon-btn:hover {
  background: rgba(var(--xm-red-rgb), .18) !important;
  border-color: rgba(var(--xm-red-rgb), .85) !important;
  box-shadow: 0 0 16px rgba(var(--xm-red-rgb), .35);
}
html.xm .boostnav__cart-count {
  background: linear-gradient(135deg, #ffc63d, #eb3342);
  color: #1a0406;
}
html.xm .boostnav .navbar-toggler { border-color: rgba(var(--xm-red-rgb), .45) !important; }

/* ═══ 6. HERO ═════════════════════════════════════════════════════ */
/* hero.jpg se conserva; se tiñe de violeta/ámbar para integrarlo a la noche */
html.xm .boost-hero {
  background:
    radial-gradient(ellipse 60% 45% at 50% 108%, rgba(var(--xm-red-rgb), .28), transparent 70%),
    linear-gradient(180deg, rgba(8, 25, 16, .38) 0%, rgba(8, 25, 16, .62) 58%, var(--xm-night) 100%),
    linear-gradient(90deg, rgba(18, 62, 40, .72), rgba(6, 14, 10, .1), rgba(18, 62, 40, .72)),
    var(--boost-hero-image) center / cover no-repeat !important;
}
html.xm .boost-hero::before {
  background-image: radial-gradient(rgba(255, 231, 170, .85) .75px, transparent .85px);
  opacity: .32;
}
html.xm .boost-hero__aurora {
  background: radial-gradient(closest-side, rgba(var(--xm-red-rgb), .26), rgba(39, 158, 95, .14) 55%, transparent) !important;
}
html.xm .boost-eyebrow {
  border-color: rgba(var(--xm-red-rgb), .45);
  background: rgba(22, 6, 7, .62);
  color: #ffe9b3;
  box-shadow: 0 0 22px rgba(var(--xm-red-rgb), .18);
}
html.xm .boost-eyebrow span {
  background: var(--xm-red);
  box-shadow: 0 0 0 4px rgba(var(--xm-red-rgb), .16), 0 0 12px var(--xm-red);
  animation: xm-flicker 3s ease-in-out infinite;
}
html.xm .boost-eyebrow .xm-tag-icon { width: 15px; height: 15px; color: var(--xm-gold); flex: 0 0 auto; }
html.xm .boost-hero h1 {
  text-shadow: 0 2px 30px #040705, 0 0 46px rgba(var(--xm-pine-rgb), .3);
}
html.xm .boost-hero h1 span {
  background: linear-gradient(105deg, #23d578 0%, #d5f8e6 38%, #ffcf5e 72%, #ea2f3e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 16px rgba(4, 7, 5, .75));
}
html.xm .btn.boost-cta {
  background: linear-gradient(130deg, #ea2f3e 0%, #ffce47 100%) !important;
  color: #1a0406 !important;
  box-shadow: 0 10px 34px rgba(var(--xm-red-rgb), .38), 0 0 0 1px rgba(255, 222, 140, .25) inset;
}
html.xm .btn.boost-cta:hover {
  box-shadow: 0 14px 44px rgba(var(--xm-red-rgb), .55) !important;
  filter: brightness(1.06);
}
html.xm .boost-text-link { border-color: rgba(var(--xm-pine-rgb), .38); }
html.xm .boost-text-link:hover { border-color: rgba(var(--xm-red-rgb), .6); }
html.xm .boost-hero__trust b {
  background: var(--xm-red);
  box-shadow: 0 0 9px var(--xm-red);
}

/* Decoración propia del hero */
.xm-hero-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.xm-hero-moon {
  position: absolute;
  top: clamp(110px, 20%, 190px);
  right: clamp(24px, 11vw, 190px);
  width: clamp(64px, 8.5vw, 132px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 32%, rgba(150, 160, 170, .3) 0 9%, transparent 10%),
    radial-gradient(circle at 63% 58%, rgba(150, 160, 170, .24) 0 12%, transparent 13%),
    radial-gradient(circle at 44% 72%, rgba(150, 160, 170, .2) 0 6%, transparent 7%),
    radial-gradient(circle at 38% 36%, #ffffff 0%, #eaf4ff 55%, #c3d8ec 100%);
  box-shadow: 0 0 46px 6px rgba(200, 225, 255, .3), 0 0 150px 34px rgba(255, 209, 102, .12);
  opacity: .8;
}
.xm-hero-trees {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(56px, 8vw, 112px);
  color: var(--xm-night);
}
.xm-hero-deco .xm-lights { top: 72px; }
.xm-hero-gift {
  position: absolute;
  bottom: .9rem;
  width: clamp(44px, 6vw, 82px);
  height: auto;
  filter: drop-shadow(0 0 14px rgba(255, 209, 102, .3));
}
.xm-hero-gift--l { left: clamp(10px, 7vw, 120px); color: #d62839; }
.xm-hero-gift--r { right: clamp(10px, 7vw, 120px); width: clamp(34px, 4.6vw, 62px); color: #1f8a52; }
.xm-hero-ornament {
  position: absolute;
  top: 0;
  left: clamp(18px, 12vw, 190px);
  transform-origin: top center;
  animation: xm-ornament-sway 7s ease-in-out infinite;
}
.xm-hero-ornament::before {
  content: '';
  display: block;
  width: 1px;
  height: clamp(70px, 14vh, 150px);
  margin: 0 auto;
  background: linear-gradient(180deg, transparent, rgba(255, 224, 150, .7));
}
.xm-hero-ornament svg {
  display: block;
  width: 34px;
  height: 44px;
  margin: -2px auto 0;
  color: #d62839;
  filter: drop-shadow(0 0 10px rgba(255, 86, 102, .55));
}

/* ═══ 7. CATÁLOGO Y TARJETAS DE PRODUCTO ══════════════════════════ */
html.xm .pcard,
html.xm .products .card {
  position: relative;
  background: linear-gradient(180deg, #11251a 0%, #0c1d14 100%) !important;
  border: 1px solid rgba(var(--xm-pine-rgb), .28) !important;
  box-shadow: var(--shadow-soft);
}
html.xm .pcard:hover,
html.xm .products .card:hover {
  border-color: rgba(var(--xm-red-rgb), .7) !important;
  box-shadow: var(--shadow-glow) !important;
}
/* Copo de nieve sutil en la esquina superior derecha de cada tarjeta */
html.xm .pcard::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  z-index: 3;
  pointer-events: none;
  opacity: .22;
  transition: opacity .3s ease, transform .6s ease;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 54'%3E%3Cg fill='none' stroke='%23eafff3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg%3E%3Cpath d='M27 4V50M21 10l6 6 6-6M21 44l6-6 6 6'/%3E%3C/g%3E%3Cg transform='rotate(60 27 27)'%3E%3Cpath d='M27 4V50M21 10l6 6 6-6M21 44l6-6 6 6'/%3E%3C/g%3E%3Cg transform='rotate(120 27 27)'%3E%3Cpath d='M27 4V50M21 10l6 6 6-6M21 44l6-6 6 6'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}
html.xm .pcard:hover::after { opacity: .55; transform: rotate(60deg); }
html.xm .pcard-img::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(var(--xm-red-rgb), .1));
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
}
html.xm .pcard:hover .pcard-img::after { opacity: 1; }
html.xm .pcard-body { background: transparent; }
html.xm .pcard-title-link:hover .pcard-title { color: var(--xm-gold); }
html.xm .pcard-price {
  background: var(--xm-text-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html.xm .pcard-price-old { -webkit-text-fill-color: var(--text-dim); }
html.xm .pcard-price-label { color: rgba(255, 218, 130, .6); }
html.xm .pcard-stock-pill,
html.xm .pcard-badge { background: rgba(6, 16, 11, .78); border-color: rgba(var(--xm-red-rgb), .22); }

/* Filtros del catálogo */
html.xm .boost-filter-card { border-color: rgba(var(--xm-pine-rgb), .24) !important; }
html.xm .boost-filter-pill:hover { background: rgba(var(--xm-red-rgb), .12); color: #fff1cf; }
html.xm .boost-filter-pill.is-active {
  background: linear-gradient(135deg, #2e8b5a 0%, #b21c29 100%) !important;
}
html.xm .boost-filter-pill__count { background: rgba(var(--xm-red-rgb), .14); }

/* ═══ 8. BOTONES, FORMULARIOS, MODALES ════════════════════════════ */
html.xm .btn-primary {
  background: var(--brand-grad) !important;
  box-shadow: 0 4px 20px rgba(var(--xm-pine-rgb), .3);
}
html.xm .btn-primary:hover:not(:disabled) {
  box-shadow: 0 10px 32px rgba(var(--xm-red-rgb), .42) !important;
}
html.xm .btn-outline-primary {
  --bs-btn-color: #89ecb7 !important;
  --bs-btn-border-color: rgba(var(--xm-pine-rgb), .5) !important;
}
html.xm .btn-outline-primary:hover {
  background: linear-gradient(135deg, #2e8b5a 0%, #b21c29 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 8px 26px rgba(var(--xm-red-rgb), .3);
}

html.xm .form-control:focus,
html.xm .form-select:focus,
html.xm .form-check-input:focus {
  border-color: var(--xm-red) !important;
  box-shadow: 0 0 0 .22rem rgba(var(--xm-red-rgb), .22) !important;
}
html.xm .form-check-input:checked {
  background-color: var(--xm-red);
  border-color: var(--xm-red);
}
html.xm .rp-otp-digit:focus {
  border-color: var(--xm-red) !important;
  box-shadow: 0 0 0 3px rgba(var(--xm-red-rgb), .22) !important;
}

html.xm .modal-backdrop { background: #020905; }
html.xm .modal-content {
  background: linear-gradient(180deg, #0e2217 0%, #09150f 100%) !important;
  border-color: rgba(var(--xm-pine-rgb), .34) !important;
  box-shadow: 0 26px 80px rgba(0, 0, 0, .7), 0 0 44px rgba(var(--xm-red-rgb), .1) !important;
  position: relative;
}
html.xm .modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--xm-red), transparent);
  opacity: .8;
  pointer-events: none;
}

/* ═══ 9. CARRITO / CHECKOUT / CUENTA / PÁGINAS ════════════════════ */
html.xm .card,
html.xm .bg-gray,
html.xm .cart .product,
html.xm .cart .form,
html.xm .editor,
html.xm .boost-legal__card {
  background: var(--boost-panel) !important;
  border-color: rgba(var(--xm-pine-rgb), .24) !important;
}
html.xm .boost-order-summary { border-color: rgba(var(--xm-red-rgb), .26) !important; }
html.xm .boost-order-summary:hover { box-shadow: 0 0 30px rgba(var(--xm-red-rgb), .12); }
html.xm .boost-checkout__heading h1 { text-shadow: 0 0 28px rgba(var(--xm-pine-rgb), .35); }
html.xm .editor a { color: var(--xm-gold); }

/* ═══ 10. CTA, FEATURES, FOOTER ═══════════════════════════════════ */
html.xm .rp-ctab-card {
  background: linear-gradient(145deg, #122b1e, #07120c) !important;
  border-color: rgba(var(--xm-red-rgb), .26) !important;
  box-shadow: 0 18px 56px rgba(0, 0, 0, .5), 0 0 40px rgba(var(--xm-red-rgb), .1) !important;
}
html.xm .rp-ctab-glow {
  background: radial-gradient(closest-side, rgba(var(--xm-red-rgb), .26), transparent) !important;
}
html.xm .rp-ctab-badge {
  color: #ffe9b3 !important;
  border-color: rgba(var(--xm-red-rgb), .38) !important;
  background: rgba(var(--xm-red-rgb), .1) !important;
}
html.xm .rp-ctab-badge svg { color: var(--xm-gold) !important; }
html.xm .rp-ctab-btn-primary {
  background: linear-gradient(130deg, #ea2f3e, #ffce47) !important;
  color: #1a0406 !important;
  box-shadow: 0 8px 28px rgba(var(--xm-red-rgb), .32) !important;
}
html.xm .rp-ctab-btn-secondary { border-color: rgba(var(--xm-pine-rgb), .45) !important; }

html.xm .rp-why-card:hover,
html.xm .boost-why__card:hover {
  border-color: rgba(var(--xm-red-rgb), .5);
  box-shadow: var(--shadow-mid);
}
html.xm .rp-why-icon { color: var(--xm-gold); }

html.xm .boost-footer {
  position: relative;
  background: linear-gradient(180deg, rgba(4, 12, 8, .78), #030805) !important;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(var(--xm-red-rgb), .6), rgba(var(--xm-pine-rgb), .6), transparent) 1;
}
html.xm .boost-footer { padding-top: 2.4rem; }
html.xm .boost-footer .xm-lights { top: -1px; }
html.xm .boost-footer__name i { color: var(--xm-gold); }
html.xm .boost-footer__links a:hover { color: var(--xm-gold); }
html.xm .boost-footer__discord {
  background: rgba(var(--xm-pine-rgb), .16);
  border-color: rgba(var(--xm-pine-rgb), .34);
}
html.xm .boost-footer__discord:hover { border-color: rgba(var(--xm-red-rgb), .6); }
html.xm .boost-footer__bottom span:last-child::before { content: '\1F384\00a0'; }

/* ═══ 11. ANIMACIONES (solo transform/opacity) ════════════════════ */
@keyframes xm-fog-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-18%, 0, 0); } }

@keyframes xm-flicker {
  0%, 100% { opacity: 1; }
  45% { opacity: .78; }
  50% { opacity: .5; }
  55% { opacity: .9; }
}
@keyframes xm-twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}
@keyframes xm-ornament-sway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}
/* Trineo: cruza la pantalla despacio, de izquierda a derecha */
@keyframes xm-sleigh-fly {
  0%   { opacity: 0; transform: translate3d(-12vw, 30vh, 0) rotate(-4deg); }
  5%   { opacity: .95; }
  30%  { transform: translate3d(28vw, 18vh, 0) rotate(-6deg); }
  55%  { transform: translate3d(58vw, 22vh, 0) rotate(3deg); }
  80%  { transform: translate3d(88vw, 12vh, 0) rotate(-5deg); }
  94%  { opacity: .95; }
  100% { opacity: 0; transform: translate3d(112vw, 16vh, 0) rotate(-3deg); }
}

/* ═══ 12. RESPONSIVE Y REDUCED-MOTION ═════════════════════════════ */
@media (max-width: 767.98px) {
  .xm-fog { display: none; }
  .xm-sleigh { width: 68px; height: 25px; }
  .xm-lights { height: 28px; }
  .xm-hero-deco .xm-lights { top: 62px; }
  .xm-hero-gift--r { display: none; }
  .xm-hero-gift--l { left: 8px; bottom: .4rem; width: 38px; }
  .xm-hero-ornament { left: 14px; }
  .xm-hero-ornament svg { width: 26px; height: 34px; }
  html.xm .pcard::after { width: 24px; height: 24px; }
  html.xm .boost-footer__bottom span:last-child::before { content: ''; }
}
/* Modo lite (lo activa christmas.js si el equipo va justo, o reduced-motion / poca RAM) */
html.xm-lite .xm-fog,
html.xm-lite .xm-sleigh,
html.xm-lite .xm-hero-ornament,
html.xm-lite .xm-lights i,
html.xm-lite .boostnav__brand span::after,
html.xm-lite .boost-eyebrow span { animation: none !important; }
html.xm-lite .xm-sleigh,
html.xm-lite .xm-snow,
html.xm-lite .xm-fog { display: none; }

@media (prefers-reduced-motion: reduce) {
  .xm-fog, .xm-sleigh, .xm-hero-ornament, .xm-lights i,
  html.xm .boostnav__brand span::after,
  html.xm .boost-eyebrow span { animation: none !important; }
  .xm-sleigh, .xm-snow { display: none; }
}
