/* Plantilla NAVIDAD — capa por encima del diseño base (rw.css). Solo se carga con la plantilla "Navidad" activa. */
body.rw-theme-navidad{
  --nv-red:#c62839;--nv-red-d:#9f1d2c;--nv-green:#1c6b3c;--nv-green-d:#134d2a;--nv-gold:#ffc400;--nv-snow:#f4f8fb;
  --rw-club:#c62839;--rw-green:#1c6b3c;
  background:linear-gradient(#fff,#fff);
}

/* ── Franja superior: rojo y verde con luces ── */
.rw-theme-navidad .rw-topbar{position:relative;background:linear-gradient(90deg,var(--nv-red-d),var(--nv-red) 30%,var(--nv-green) 70%,var(--nv-green-d));color:#fff;font-weight:600;padding:8px 0}
.rw-theme-navidad .rw-topbar .rw-wrap{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap}
.nv-cuenta{display:inline-flex;align-items:center;gap:7px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.45);border-radius:999px;padding:2px 12px 2px 8px;font-size:13px;white-space:nowrap}
.nv-cuenta b{font-size:16px;color:var(--nv-gold);font-variant-numeric:tabular-nums}
.nv-cuenta .nv-arbol{display:inline-block;animation:nv-bota 2.4s ease-in-out infinite}
@keyframes nv-bota{0%,100%{transform:translateY(0) rotate(-6deg)}50%{transform:translateY(-3px) rotate(6deg)}}
.nv-nieve-btn{border:1px solid rgba(255,255,255,.55);background:rgba(255,255,255,.14);color:#fff;border-radius:999px;width:28px;height:28px;display:inline-grid;place-items:center;cursor:pointer;font-size:15px;line-height:1;padding:0;transition:.15s}
.nv-nieve-btn:hover{background:rgba(255,255,255,.3)}
.nv-nieve-btn.apagada{opacity:.6;text-decoration:line-through}

/* ── Guirnalda de luces bajo la cabecera ── */
.rw-header{border-bottom:0;box-shadow:0 2px 10px rgba(0,0,0,.06)}
.rw-header::after{content:"";position:absolute;left:0;right:0;bottom:-4px;height:4px;background:repeating-linear-gradient(135deg,var(--nv-red) 0 12px,#fff 12px 24px);z-index:1}
.nv-luces{position:absolute;left:0;right:0;bottom:-20px;height:18px;display:flex;justify-content:space-around;pointer-events:none;z-index:2}
.nv-luces i{position:relative;width:9px;height:13px;border-radius:50% 50% 50% 50%/60% 60% 40% 40%;margin-top:2px;animation:nv-luz 1.8s ease-in-out infinite}
.nv-luces i::before{content:"";position:absolute;left:2px;top:-5px;width:5px;height:6px;background:#3a3a3a;border-radius:1px}
.nv-luces i:nth-child(4n+1){background:#ff3b4e;box-shadow:0 0 10px 2px rgba(255,59,78,.75)}
.nv-luces i:nth-child(4n+2){background:#ffc400;box-shadow:0 0 10px 2px rgba(255,196,0,.8);animation-delay:-.45s}
.nv-luces i:nth-child(4n+3){background:#3ddc84;box-shadow:0 0 10px 2px rgba(61,220,132,.75);animation-delay:-.9s}
.nv-luces i:nth-child(4n){background:#4aa8ff;box-shadow:0 0 10px 2px rgba(74,168,255,.8);animation-delay:-1.35s}
@keyframes nv-luz{0%,100%{opacity:1}50%{opacity:.35}}

/* ── Gorrito en el logo ── */
.rw-logo{position:relative}
.nv-gorrito{position:absolute;left:-10px;top:-14px;width:44px;height:36px;transform:rotate(-14deg);pointer-events:none;filter:drop-shadow(0 2px 2px rgba(0,0,0,.25));z-index:3}

/* ── Botones y acentos ── */
.rw-theme-navidad .rw-btn--yellow,.rw-theme-navidad .rw-btn:not(.rw-btn--ghost):not(.rw-btn--dark){box-shadow:0 2px 0 rgba(0,0,0,.12)}
.rw-theme-navidad .rw-catbtn{background:var(--nv-red);color:#fff;border-color:var(--nv-red)}
.rw-theme-navidad .rw-catbtn:hover{background:var(--nv-red-d)}
.rw-theme-navidad .rw-cart-count{background:var(--nv-red);color:#fff}
.rw-theme-navidad .rw-search__input:focus{border-color:var(--nv-green);box-shadow:0 0 0 4px rgba(28,107,60,.18)}
.rw-theme-navidad .rw-search__btn{background:var(--nv-green);color:#fff}
.rw-theme-navidad .rw-link{border-bottom-color:var(--nv-red)}
.rw-theme-navidad .rw-section__title,.rw-theme-navidad .rw-sec__title{position:relative}
.rw-theme-navidad .rw-section__title::before{content:"🎄 "}
.rw-theme-navidad .rw-sec__title{background:linear-gradient(90deg,#fdeeee,#eef7f0);border-left:6px solid var(--nv-red)}
.rw-theme-navidad .rw-sec__title::after{content:" ❄";color:#6aa7d8}

/* ── Tarjetas, precios, categorías ── */
.rw-theme-navidad .rw-card:hover{border-color:var(--nv-red);box-shadow:0 8px 26px rgba(198,40,57,.18)}
.rw-theme-navidad .rw-card__cat{color:var(--nv-green)}
.rw-theme-navidad .rw-fav{background:var(--nv-red);color:#fff}
.rw-theme-navidad .rw-cat:hover .rw-cat__img{border-color:var(--nv-red)}
.rw-theme-navidad .rw-badge{background:var(--nv-red);color:#fff}
.rw-theme-navidad .rw-pager .current{background:var(--nv-red);border-color:var(--nv-red);color:#fff}
.rw-theme-navidad .rw-sec__feature .rw-card{border:2px solid var(--nv-red);box-shadow:0 8px 30px rgba(198,40,57,.15)}
.rw-theme-navidad .rw-sec__feature .rw-card::before{content:"🎁 Regalo de Navidad";position:absolute;z-index:2;left:12px;top:12px;background:var(--nv-red);color:#fff;font-size:12px;font-weight:800;padding:4px 10px;border-radius:999px}

/* ── Carrito, pago y mini-carrito ── */
.rw-theme-navidad .rw-page--wc .rw-page__title::before{content:"🎅 "}
.rw-theme-navidad .rw-save{background:#fff8f0;border-color:var(--nv-red)}
.rw-theme-navidad .rw-save--socio{background:#f0fbf3;border-color:var(--nv-green)}
.rw-theme-navidad .rw-save__row.is-club,.rw-theme-navidad .rw-save__row.is-save{color:var(--nv-green)}
.rw-theme-navidad .rw-mini .rw-favs__head{background:linear-gradient(90deg,var(--nv-red),var(--nv-green));color:#fff}
.rw-theme-navidad .rw-mini .rw-favs__head button{color:#fff}
.rw-theme-navidad .rw-mini .rw-favs__head h3::before{content:"🎁 "}
.rw-theme-navidad .rw-favs .rw-favs__head{border-bottom:3px solid var(--nv-red)}
.rw-theme-navidad .rw-mini__sv{color:var(--nv-green)}
.rw-theme-navidad .rw-page--wc .wc-block-components-checkout-place-order-button::before{content:"🎄 "}

/* ── Pie: verde pino con nieve ── */
.rw-theme-navidad .rw-footer{position:relative;background:linear-gradient(#134d2a,#0e3a20);color:#d8e8dd;margin-top:72px}
.rw-theme-navidad .rw-footer::before{content:"";position:absolute;left:0;right:0;top:-18px;height:20px;background:radial-gradient(circle at 12px 0,#fff 0 11px,transparent 12px) 0 0/24px 20px repeat-x;filter:drop-shadow(0 -1px 0 #dbe7f0)}
.rw-theme-navidad .rw-footer__brand,.rw-theme-navidad .rw-footer a:hover{color:var(--nv-gold)}
.rw-theme-navidad .rw-perks{border-color:rgba(255,255,255,.15)}

/* ── Nieve ── */
#nv-nieve{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:98}

@media(max-width:760px){.nv-cuenta{font-size:12px}.nv-luces i:nth-child(2n){display:none}.nv-gorrito{width:36px;height:30px;left:-8px;top:-10px}}
@media(prefers-reduced-motion:reduce){.nv-luces i,.nv-cuenta .nv-arbol{animation:none}}

/* Pie navideño: texto claro sobre el verde (el pie base es claro) */
.rw-theme-navidad .rw-footer h4,.rw-theme-navidad .rw-footer strong{color:#fff!important}
.rw-theme-navidad .rw-footer a,.rw-theme-navidad .rw-footer li,.rw-theme-navidad .rw-footer p,.rw-theme-navidad .rw-footer__bar{color:#d8e8dd!important}
.rw-theme-navidad .rw-footer a:hover{color:var(--nv-gold)!important}
.rw-theme-navidad .rw-footer .rw-pay span{color:#fff!important;background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.35)}
.rw-theme-navidad .rw-footer__bar{border-top:1px solid rgba(255,255,255,.18)}

/* Navidad: botón "Mi MisanClub" */
.rw-theme-navidad .rw-action--me{border-color:var(--nv-red);background:#fff5f5}
.rw-theme-navidad .rw-action--me .rw-avatar{background:var(--nv-red);color:#fff}
.rw-theme-navidad .rw-action--me .rw-avatar::after{border-color:var(--nv-red)}

/* Móvil: franja superior de una sola línea (solo cuenta atrás + botón de nieve) */
@media(max-width:640px){
  .rw-theme-navidad .rw-topbar{padding:6px 0}
  .rw-theme-navidad .rw-topbar .rw-wrap{font-size:0;gap:10px;flex-wrap:nowrap;justify-content:center}
  .rw-theme-navidad .nv-cuenta{font-size:13px}
  .rw-theme-navidad .nv-nieve-btn{font-size:15px}
}

/* Navidad: Hazte socio */
.rw-theme-navidad .rw-hs-hero{background:linear-gradient(135deg,var(--nv-green-d),var(--nv-red-d))}
.rw-theme-navidad .rw-hs-hero h1 em,.rw-theme-navidad .rw-hs-hero .rw-hs-kicker{color:var(--nv-gold)}
.rw-theme-navidad .rw-hs-plan--pro{border-color:var(--nv-red);box-shadow:0 14px 44px rgba(198,40,57,.22)}
.rw-theme-navidad .rw-hs-ribbon{background:var(--nv-red);color:#fff}
.rw-theme-navidad .rw-hs-safe{border-color:var(--nv-red);background:#fff5f5}

/* Navidad: franja de ventajas clara dentro del pie (texto oscuro) y newsletter */
.rw-theme-navidad .rw-footer .rw-perks strong{color:var(--rw-ink)!important}
.rw-theme-navidad .rw-footer .rw-perks span{color:var(--rw-mut)!important}
.rw-theme-navidad .rw-nl{border-top:3px solid var(--nv-red)}
.rw-theme-navidad .rw-nl .rw-hs-kicker{color:var(--nv-red)}
