/* ==========================================================================
   Temática NAVIDAD · se carga después de main.css cuando está activa (panel → Temática).
   Nieve clara con verde pino y rojo Navidad. Solo cambia colores y suma adornos: nada se mueve de lugar.
   Va en fondo claro a propósito: el rojo se usa como letra sobre el fondo y como fondo con letra blanca, y sobre un
   fondo oscuro un solo rojo no llega a 4,5:1 en los dos casos. Las fotos de producto siguen sobre placa clara.
   Contrastes (WCAG): texto 13,7:1 · gris 5,8:1 · rojo sobre el fondo 6,2:1 · blanco sobre el rojo 6,8:1 ·
   verde «Ahorras» 4,9:1 · en el pie, gris 7,4:1 y blanco sobre su rojo 5,7:1.
   ========================================================================== */

:root[data-theme="navidad"] {
  --bg: #f4f3ee;
  --bg-rgb: 244, 243, 238;
  --bg-alt: #e9ebe4;
  --surface: #ffffff;
  --surface-2: #e8ebe4;
  /* --ink pasa a verde pino: es el texto y el fondo de las bandas oscuras (pie, beneficios, disco). */
  --ink: #132a20;
  --ink-rgb: 19, 42, 32;
  --text: var(--ink);
  --muted: #556259;
  --red: #b3191f;
  --red-deep: #8f1218;
  --red-glow: rgba(179, 25, 31, 0.28);
  --pine: #1d5a3c;
  --snow: #ffffff;
  --gold-leaf: #e3b75a;
  --tile: #ffffff;
  --ok: #1a7a3e;
  --shadow: 0 10px 24px -14px rgba(19, 42, 32, 0.35);
}

/* Fondo: copos de nieve muy tenues en vez del bulldog. */
:root[data-theme="navidad"] body {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cg fill='none' stroke='%23132a20' stroke-opacity='.07' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M70 50v40M53 60l34 20M53 80l34-20M70 50l-5 5M70 50l5 5M70 90l-5-5M70 90l5-5'/%3E%3Cpath d='M240 200v28M228 207l24 14M228 221l24-14'/%3E%3Cpath d='M260 60v16M253 64l14 8M253 72l14-8'/%3E%3Cpath d='M110 250v20M101 255l18 10M101 265l18-10'/%3E%3C/g%3E%3Cg fill='%23132a20' fill-opacity='.06'%3E%3Ccircle cx='180' cy='120' r='2'/%3E%3Ccircle cx='30' cy='190' r='1.6'/%3E%3Ccircle cx='300' cy='290' r='1.8'/%3E%3Ccircle cx='160' cy='20' r='1.4'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 320px 320px,
    var(--bg);
}

:root[data-theme="navidad"] .site-header.is-scrolled { box-shadow: 0 12px 24px -20px rgba(19, 42, 32, 0.45); }

/* Barra de anuncio: pino parejo (blanco encima 8,1:1). El degradado rojo → pino se veía café donde se mezclaban. */
:root[data-theme="navidad"] .announce { background: var(--pine); }

/* Botones: el hover se oscurece (el de main.css aclara y queda justo de contraste). */
:root[data-theme="navidad"] .btn--primary:hover { --btn-bg: #a3161c; }

/* Hero: el disco gira en pino y rojo; la tarjeta del producto sigue blanca. */
:root[data-theme="navidad"] .hero__stage[data-plate="2"] .hero__plate { --plate: var(--red); --plate-ink: #ffffff; }

/* Bandas oscuras: su rojo propio y grises que se leen sobre el pino. */
:root[data-theme="navidad"] .wholesale,
:root[data-theme="navidad"] .site-footer { --red: #c8202a; --muted: #a9b8ae; --surface: #1c3a2c; --surface-2: #24463a; }
:root[data-theme="navidad"] .site-footer__grid a:hover,
:root[data-theme="navidad"] .newsletter__msg.is-error { color: #ffb4ae; }
:root[data-theme="navidad"] .offer-band { background: linear-gradient(120deg, var(--red-deep), var(--red) 50%, var(--pine)); }

/* Tarjeta de Strong Puntos: pino con brillo dorado. */
:root[data-theme="navidad"] .points-pass {
  background: radial-gradient(circle at 100% 0, rgba(227, 183, 90, 0.45), transparent 55%), linear-gradient(135deg, var(--pine), var(--ink) 60%);
}

/* Tarjetas: borde verde al pasar el mouse. */
:root[data-theme="navidad"] .p-card:hover,
:root[data-theme="navidad"] .cat-card:hover { border-color: rgba(29, 90, 60, 0.45); }

/* Secciones alternas: nieve suave arriba y un brillo verde y rojo hacia adentro. */
:root[data-theme="navidad"] .section--alt {
  background:
    radial-gradient(60% 31% at 12% 22%, rgba(29, 90, 60, 0.07), transparent 70%),
    radial-gradient(50% 31% at 88% 78%, rgba(179, 25, 31, 0.05), transparent 70%),
    var(--bg-alt);
}
:root[data-theme="navidad"] .points-band {
  background:
    radial-gradient(40% 70% at 80% 50%, rgba(227, 183, 90, 0.16), transparent 70%),
    radial-gradient(60% 31% at 12% 22%, rgba(29, 90, 60, 0.08), transparent 70%),
    var(--bg-alt);
}

/* Encabezados de sección: una estrella antes del texto chico («Los más pedidos»…). */
:root[data-theme="navidad"] .eyebrow::before {
  content: ""; display: inline-block; width: 1.1em; height: 1.1em; margin-right: 0.5em; vertical-align: -0.18em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5l2.9 6.6 7.1.6-5.4 4.7 1.6 7-6.2-3.7-6.2 3.7 1.6-7L2 8.7l7.1-.6z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5l2.9 6.6 7.1.6-5.4 4.7 1.6 7-6.2-3.7-6.2 3.7 1.6-7L2 8.7l7.1-.6z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Tarjetas de producto: una ramita de acebo en la esquina de la foto (las etiquetas van a la izquierda). */
:root[data-theme="navidad"] .p-card__media::after {
  content: ""; position: absolute; top: 8px; right: 8px; width: 34px; height: 30px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 42'%3E%3Cpath d='M24 22C18 14 10 12 2 14c4 2 4 6 2 8 4-1 6 2 6 5 3-3 7-3 10-1-1-2 0-3 4-4z' fill='%231d5a3c'/%3E%3Cpath d='M24 22c6-8 14-10 22-8-4 2-4 6-2 8-4-1-6 2-6 5-3-3-7-3-10-1 1-2 0-3-4-4z' fill='%23267a50'/%3E%3Ccircle cx='20' cy='27' r='4.5' fill='%23c8202a'/%3E%3Ccircle cx='28' cy='27' r='4.5' fill='%23b3191f'/%3E%3Ccircle cx='24' cy='33' r='4.5' fill='%23d93a3a'/%3E%3Ccircle cx='22.6' cy='31.6' r='1.2' fill='%23fff' fill-opacity='.6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Adornos (partials/themes/navidad/*.html) ---------- */
/* Capa de la primera pantalla: esferas colgando en los bordes. Al bajar se va con la página. */
.nv-fx { position: absolute; top: 0; left: 0; right: 0; height: 100svh; z-index: 40; pointer-events: none; overflow: hidden; }
.nv-hang { position: absolute; top: calc(var(--header-h) + 36px); width: 26px; height: var(--len, 90px); transform-origin: 50% 0; animation: nv-swing var(--t, 5s) ease-in-out infinite; }
.nv-hang::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 26px; border-left: 1px solid rgba(19, 42, 32, 0.4); }
.nv-hang svg { position: absolute; left: 0; bottom: 0; width: 26px; height: 30px; filter: drop-shadow(0 4px 6px rgba(19, 42, 32, 0.25)); }
.nv-hang--1 { left: 6px; --len: 96px; --t: 5.5s; }
/* La esfera larga del borde derecho quedaba sobre las fotos del mosaico de la portada: no se muestra. */
.nv-hang--2 { display: none; }
.nv-hang--3 { right: 40px; --len: 64px; --t: 4.5s; animation-delay: -1s; }
@keyframes nv-swing { 0%, 100% { rotate: -4deg; } 50% { rotate: 4deg; } }

/* Portada: guirnalda de luces, nieve que cae detrás del texto, estrella, monito de nieve con barra y regalos. */
.nv-hero { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.nv-lights {
  position: absolute; top: 0; left: 0; right: 0; height: 34px; display: grid; grid-auto-flow: column; grid-auto-columns: 64px; overflow: hidden;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='34'%3E%3Cpath d='M0 4Q32 26 64 4' fill='none' stroke='%23132a20' stroke-opacity='.55' stroke-width='1.5'/%3E%3C/svg%3E") 0 0 / 64px 34px repeat-x;
}
.nv-lights i {
  justify-self: center; position: relative; width: 10px; height: 15px; margin-top: 15px; border-radius: 50% 50% 46% 46% / 40% 40% 60% 60%;
  color: #e0312b; background: currentColor; box-shadow: 0 0 10px 2px currentColor; animation: nv-twinkle 2.4s ease-in-out infinite;
}
.nv-lights i::before { content: ""; position: absolute; top: -4px; left: 2px; width: 6px; height: 5px; border-radius: 2px; background: #2c3b33; }
.nv-lights i:nth-child(4n + 2) { color: #f2b632; animation-delay: -0.6s; }
.nv-lights i:nth-child(4n + 3) { color: #2f9e5b; animation-delay: -1.2s; }
.nv-lights i:nth-child(4n + 4) { color: #3b82c4; animation-delay: -1.8s; }
/* Solo opacidad: animar el box-shadow repintaba las 32 luces en cada cuadro (PageSpeed, 05-12). */
@keyframes nv-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* Nieve: blanca con un borde muy suave para que se vea sobre el fondo claro. */
.nv-snow { position: absolute; inset: 0; }
.nv-snow svg {
  position: absolute; top: -24px; left: var(--x); width: var(--s, 12px); height: var(--s, 12px); color: #fff; opacity: 0.9;
  filter: drop-shadow(0 0 1px rgba(19, 42, 32, 0.45)); animation: nv-fall var(--t, 14s) linear var(--d, 0s) infinite;
}
.nv-snow svg:nth-child(1) { --x: 6%; --t: 13s; --d: -2s; }
.nv-snow svg:nth-child(2) { --x: 18%; --s: 9px; --t: 17s; --d: -9s; }
.nv-snow svg:nth-child(3) { --x: 29%; --s: 14px; --t: 15s; --d: -5s; }
.nv-snow svg:nth-child(4) { --x: 41%; --s: 8px; --t: 19s; --d: -12s; }
.nv-snow svg:nth-child(5) { --x: 52%; --t: 14s; --d: -7s; }
.nv-snow svg:nth-child(6) { --x: 63%; --s: 10px; --t: 18s; --d: -1s; }
.nv-snow svg:nth-child(7) { --x: 72%; --s: 15px; --t: 16s; --d: -11s; }
.nv-snow svg:nth-child(8) { --x: 81%; --s: 9px; --t: 20s; --d: -4s; }
.nv-snow svg:nth-child(9) { --x: 90%; --t: 15s; --d: -8s; }
.nv-snow svg:nth-child(10) { --x: 96%; --s: 8px; --t: 18s; --d: -14s; }
.nv-snow svg:nth-child(11) { --x: 35%; --s: 7px; --t: 21s; --d: -16s; }
.nv-snow svg:nth-child(12) { --x: 58%; --s: 7px; --t: 22s; --d: -3s; }
@keyframes nv-fall {
  from { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(18px, 50vh) rotate(160deg); }
  to { transform: translate(-6px, 105vh) rotate(320deg); }
}

.nv-lifter { position: absolute; top: 9%; right: 7%; width: 84px; height: 98px; filter: drop-shadow(0 6px 10px rgba(19, 42, 32, 0.25)); }
.nv-press { animation: nv-press 1.8s ease-in-out infinite; }
@keyframes nv-press { 0%, 100% { transform: translateY(6px); } 45%, 60% { transform: translateY(-6px); } }
.nv-patch { position: absolute; left: 4%; bottom: 14px; display: flex; align-items: flex-end; gap: 6px; }
.nv-patch svg { display: block; }
.nv-patch__tree { width: 70px; height: 92px; }
.nv-patch__gift { width: 50px; height: 50px; }
.nv-patch__gift--small { width: 36px; height: 36px; }
.nv-drift { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 40px; fill: #fff; filter: drop-shadow(0 -2px 3px rgba(19, 42, 32, 0.08)); }
@media (min-width: 960px) {
  .nv-lifter { top: 7%; right: auto; left: calc(50% - 150px); width: 116px; height: 135px; }
  .nv-patch { left: max(16px, calc(50% - 600px)); bottom: 18px; }
  .nv-patch__tree { width: 92px; height: 120px; }
  .nv-patch__gift { width: 62px; height: 62px; }
  .nv-patch__gift--small { width: 44px; height: 44px; }
}
/* Celular: el monito de nieve hace su press arriba a la derecha (el título va a la izquierda). */
@media (max-width: 959px) {
  .nv-lifter { top: calc(9% + 8px); right: calc(3% + 10px); width: 70px; height: 82px; }
  .nv-patch { display: none; }
  .nv-drift { height: 26px; }
  /* Guirnalda más chica y pegada arriba: así no llega al título. */
  .nv-lights { height: 20px; grid-auto-columns: 44px; background-size: 44px 20px; }
  .nv-lights i { width: 7px; height: 10px; margin-top: 7px; box-shadow: 0 0 5px 1px currentColor; }
  .nv-lights i::before { top: -3px; left: 1.5px; width: 4px; height: 3px; }
}

/* Pie: los regalos que deja el gimnasio, sobre la nieve. */
:root[data-theme="navidad"] .site-footer { padding-top: 0; }
.nv-yard { position: relative; margin-bottom: 56px; padding-top: 40px; background: linear-gradient(180deg, var(--bg) 0%, #e6ebe6 100%); }
.nv-yard__row { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: clamp(10px, 3vw, 34px); }
.nv-gift {
  position: relative; display: grid; align-content: center; justify-items: center; gap: 4px; text-align: center;
  width: var(--w, 128px); height: var(--h, 110px); padding: 18px 10px 34px; margin-bottom: -14px; border-radius: 6px;
  /* Cinta vertical: un degradado al centro, sin tapar el texto (va con fondo propio). */
  background: linear-gradient(90deg, transparent calc(50% - 7px), var(--ribbon, #e3b75a) calc(50% - 7px), var(--ribbon, #e3b75a) calc(50% + 7px), transparent calc(50% + 7px)), var(--box, #b3191f);
  box-shadow: inset -8px -6px 0 rgba(0, 0, 0, 0.14), 0 10px 16px -12px rgba(19, 42, 32, 0.6);
  color: #fff; transform: rotate(var(--r, 0deg)); transform-origin: 50% 100%;
}
/* Tapa y moño. */
.nv-gift::before { content: ""; position: absolute; left: -5px; right: -5px; top: 0; height: 14px; border-radius: 4px; background: var(--box, #b3191f); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18); }
.nv-gift::after {
  content: ""; position: absolute; top: -18px; left: 50%; width: 40px; height: 20px; translate: -50% 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 20'%3E%3Cpath d='M20 18C14 6 4 2 2 8s8 10 18 10zM20 18C26 6 36 2 38 8s-8 10-18 10z' fill='%23e3b75a' stroke='%23a9822c' stroke-width='1.2'/%3E%3Ccircle cx='20' cy='17' r='3.4' fill='%23c9a040'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* El texto va en una etiqueta clara sobre la caja: se lee igual sobre cualquier color de regalo. Abajo queda aire
   para la loma de nieve, que tapa el borde de la caja y no la etiqueta. */
.nv-gift b, .nv-gift small { position: relative; z-index: 1; padding: 2px 6px; border-radius: 4px; background: #fff; color: var(--ink); }
.nv-gift b { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; line-height: 1.05; letter-spacing: 0.04em; text-transform: uppercase; }
.nv-gift small { font-size: 0.68rem; font-weight: 800; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.04em; color: #2c3b33; }
.nv-gift--1 { --w: 118px; --h: 124px; --r: -3deg; }
.nv-gift--2 { --w: 150px; --h: 150px; --r: 1deg; --box: var(--pine); --ribbon: #c8202a; }
.nv-gift--3 { --w: 126px; --h: 134px; --r: -1.5deg; --box: #e3b75a; --ribbon: var(--pine); }
.nv-gift--4 { --w: 112px; --h: 120px; --r: 3deg; --box: #c8202a; --ribbon: #fff; }
.nv-yard__tree { position: relative; z-index: 2; width: 78px; height: 104px; margin-bottom: -14px; }
/* Loma de nieve donde quedan los regalos; abajo empieza el pie en pino. */
.nv-yard__ground { display: block; position: relative; z-index: 1; width: 100%; height: 46px; margin-top: -14px; }
@media (max-width: 767px) {
  .nv-gift--4, .nv-yard__tree, .nv-hang { display: none; }
  /* Aire entre la guirnalda (20 px) y el título: sin esto las luces tocaban «SUPERA». */
  :root[data-theme="navidad"] .hero:not(.hero--gym) { padding-top: 34px; }
  .nv-gift--1 { --w: 98px; --h: 112px; }
  .nv-gift--2 { --w: 118px; --h: 128px; }
  .nv-gift--3 { --w: 100px; --h: 116px; }
  .nv-gift { padding: 16px 6px 30px; }
  .nv-gift b { font-size: 0.95rem; }
  .nv-gift small { font-size: 0.58rem; }
  :root[data-theme="navidad"] .p-card__media::after { width: 26px; height: 23px; top: 6px; right: 6px; }
}

/* Quien pide menos movimiento ve los adornos quietos: sin nieve cayendo ni luces que parpadean. */
@media (prefers-reduced-motion: reduce) {
  .nv-hang, .nv-press, .nv-lights i, .nv-snow svg { animation: none; }
  .nv-snow svg { top: var(--y, 30%); }
  .nv-snow svg:nth-child(odd) { --y: 22%; }
  .nv-snow svg:nth-child(3n) { --y: 48%; }
  .nv-snow svg:nth-child(4n) { --y: 70%; }
}
