/* navidad.css — temporada navideña (2-dic-2026, v=f): elegante pero festiva.
   Lo carga t_medicion() (inc/tienda.php) solo del 1-dic-2026 al 6-ene-2027.
   - Guirnalda de luces cálidas bajo la cabecera (dorado y blanco cálido, parpadeo suave).
   - Banner de temporada en la portada: rojo navideño, adornos, nieve y destellos.
   - Nieve que cae en toda la portada (capa fija, no tapa clics).
   - Palabra destacada de los títulos en dorado; campañas en rojo, verde y dorado; franja más grande.
   Productos, precios y botones no cambian. */

:root{--nv-oro:#F2C46B;--nv-oro-claro:#FFE3A3;--nv-rojo:#B3202F;--nv-rojo-2:#7A0F1E;--nv-verde:#1E6B4A;--nv-verde-2:#0F3B2E}

/* ---------- Guirnalda de luces cálidas bajo la cabecera ---------- */
.nav-tienda::before,.nav-tienda::after{content:"";position:absolute;left:0;right:0;bottom:-12px;height:16px;pointer-events:none;z-index:3;background-repeat:repeat-x;background-size:96px 16px}
.nav-tienda::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='16'%3E%3Cpath d='M0 2 Q24 11 48 2 T96 2' fill='none' stroke='%23ffffff' stroke-opacity='.28' stroke-width='1'/%3E%3Crect x='22' y='6.5' width='4' height='3' rx='.8' fill='%23C9A24A'/%3E%3Cellipse cx='24' cy='12' rx='3.2' ry='3.8' fill='%23FFD27A'/%3E%3Cellipse cx='23' cy='11' rx='1' ry='1.4' fill='%23fff' fill-opacity='.7'/%3E%3C/svg%3E");
  filter:drop-shadow(0 0 4px rgba(255,200,100,.85));animation:nv-luz 2.6s ease-in-out infinite alternate}
.nav-tienda::after{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='16'%3E%3Crect x='70' y='6.5' width='4' height='3' rx='.8' fill='%23C9A24A'/%3E%3Cellipse cx='72' cy='12' rx='3.2' ry='3.8' fill='%23FFF4DA'/%3E%3Cellipse cx='71' cy='11' rx='1' ry='1.4' fill='%23fff' fill-opacity='.8'/%3E%3C/svg%3E");
  filter:drop-shadow(0 0 4px rgba(255,240,210,.9));animation:nv-luz 2.6s ease-in-out -1.3s infinite alternate}
@keyframes nv-luz{from{opacity:.55}to{opacity:1}}

/* ---------- Títulos: la palabra destacada en dorado ---------- */
.inicio-titulo em,.section-title em{color:var(--nv-oro)}
.eyebrow .num{color:var(--nv-oro)}

/* ---------- Banner de temporada (portada) ---------- */
.nv-banner{position:relative;overflow:hidden;isolation:isolate;margin:1.4rem 0 .4rem;border-radius:18px;
  border:1px solid rgba(255,227,163,.35);color:#FFF8EC;
  background:
    radial-gradient(60% 90% at 100% 0%,rgba(255,210,122,.22) 0%,rgba(255,210,122,0) 60%),
    radial-gradient(70% 120% at 0% 100%,rgba(30,107,74,.55) 0%,rgba(30,107,74,0) 60%),
    linear-gradient(135deg,var(--nv-rojo) 0%,#951A28 45%,var(--nv-rojo-2) 100%);
  box-shadow:0 26px 60px -30px rgba(122,15,30,.9),inset 0 1px 0 rgba(255,227,163,.18)}
.nv-banner::before{content:"";position:absolute;left:0;right:0;top:0;height:16px;z-index:1;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='16'%3E%3Cpath d='M0 1 Q18 10 36 1 T72 1' fill='none' stroke='%23FFE3A3' stroke-opacity='.45' stroke-width='1'/%3E%3Ccircle cx='18' cy='11' r='2.6' fill='%23FFD27A'/%3E%3Ccircle cx='54' cy='11' r='2.6' fill='%23FFF4DA'/%3E%3C/svg%3E") repeat-x 0 0/72px 16px;
  filter:drop-shadow(0 0 3px rgba(255,215,140,.9));animation:nv-luz 2.2s ease-in-out infinite alternate}
.nv-nieve{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
.nv-cielo{position:fixed;inset:0;width:100vw;height:100vh;z-index:45;pointer-events:none}
.nv-banner-in{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:center;gap:1rem;padding:clamp(1.6rem,3.2vw,2.4rem) clamp(1.2rem,3.4vw,2.6rem)}
.nv-banner-eyebrow{display:inline-flex;align-items:center;gap:.5rem;padding:.3rem .75rem;border-radius:999px;background:rgba(15,59,46,.55);border:1px solid rgba(255,227,163,.35);
  font-family:var(--mono,system-ui);font-size:.7rem;letter-spacing:.18em;text-transform:uppercase;color:var(--nv-oro-claro)}
.nv-banner-eyebrow svg{width:15px;height:15px}
.nv-banner h2{margin:.85rem 0 0;font-family:var(--display,inherit);font-weight:800;font-size:clamp(1.65rem,3.4vw,2.5rem);line-height:1.06;letter-spacing:-.01em;color:#FFFDF8;text-shadow:0 2px 18px rgba(60,0,10,.35)}
.nv-banner h2 em{font-style:normal;color:var(--nv-oro-claro)}
.nv-banner p{margin:.75rem 0 0;max-width:46ch;color:rgba(255,248,236,.86);font-size:1rem;line-height:1.5}
.nv-banner-acc{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1.25rem}
.nv-bt{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:46px;padding:0 1.3rem;border-radius:12px;font-weight:700;font-size:.95rem;text-decoration:none;transition:transform .2s ease,background-color .2s ease,border-color .2s ease}
.nv-bt:hover{transform:translateY(-1px)}
.nv-bt-oro{background:linear-gradient(180deg,#FFE7AE,var(--nv-oro));color:#3A1606;box-shadow:0 10px 26px -12px rgba(255,200,100,.95)}
.nv-bt-linea{border:1px solid rgba(255,227,163,.6);color:#FFF8EC;background:rgba(255,255,255,.06)}
.nv-bt-linea:hover{border-color:#FFE3A3;background:rgba(255,255,255,.1)}
.nv-bt:focus-visible{outline:2px solid #FFE3A3;outline-offset:3px}
.nv-banner-art{justify-self:end;width:100%;max-width:330px;height:auto}
.nv-banner-art .nv-b{transform-origin:50% 0;animation:nv-vaiven 5s ease-in-out infinite alternate}
.nv-banner-art .nv-b2{animation-duration:6.5s;animation-delay:-2s}
.nv-banner-art .nv-b3{animation-duration:4.6s;animation-delay:-3.5s}
.nv-banner-art .nv-brillo{animation:nv-brillo 2.4s ease-in-out infinite}
.nv-banner-art .nv-brillo:nth-of-type(2){animation-delay:-.8s}
.nv-banner-art .nv-brillo:nth-of-type(3){animation-delay:-1.6s}
@keyframes nv-vaiven{from{transform:rotate(-3deg)}to{transform:rotate(3deg)}}
@keyframes nv-brillo{0%,100%{opacity:.25;transform:scale(.8)}50%{opacity:1;transform:scale(1.15)}}
.nv-brillo{transform-box:fill-box;transform-origin:center}
@media (max-width:719px){
  .nv-banner-in{grid-template-columns:1fr;gap:.2rem}
  .nv-banner-art{position:absolute;right:-26px;top:4px;width:165px;opacity:.6;z-index:-1}
  .nv-banner p{max-width:30ch}
  .nv-bt{flex:1 1 auto}
}

/* ---------- Ideas de regalo (portada) ---------- */
.nv-guia{margin:1.6rem 0 .6rem;scroll-margin-top:170px}
@media (max-width:959px){.nv-guia{scroll-margin-top:150px}}
.nv-guia-cab{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.3rem 1rem}
.nv-guia-cab h2{margin:0;font-family:var(--display,inherit);font-weight:800;font-size:clamp(1.4rem,2.6vw,1.9rem)}
.nv-guia-cab h2 em{font-style:normal;color:var(--nv-oro)}
.nv-guia-cab p{margin:0;color:var(--muted,#8D9AAE);font-size:.9rem}
.nv-guia-cab p b{color:#FFE3A3}
.nv-guia-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-top:1rem}
@media (min-width:900px){.nv-guia-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}}
.nv-g{position:relative;display:flex;flex-direction:column;gap:.35rem;padding:1rem 1rem 1.05rem;border-radius:14px;text-decoration:none;color:inherit;
  background:linear-gradient(180deg,rgba(179,32,47,.16),rgba(179,32,47,.04) 60%),var(--surface,#11161F);
  border:1px solid rgba(242,196,107,.22);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.nv-g:hover{transform:translateY(-2px);border-color:rgba(255,227,163,.6);box-shadow:0 14px 30px -18px rgba(179,32,47,.8)}
.nv-g:focus-visible{outline:2px solid #FFE3A3;outline-offset:3px}
.nv-g-ico{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;color:#FFE3A3;background:linear-gradient(135deg,#B3202F,#7A0F1E);box-shadow:inset 0 0 0 1px rgba(255,227,163,.3)}
.nv-g-ico svg{width:22px;height:22px}
.nv-g-t{margin-top:.35rem;font-weight:800;font-size:1.02rem}
.nv-g-d{color:var(--muted,#8D9AAE);font-size:.84rem;line-height:1.4}
.nv-g-ir{margin-top:auto;padding-top:.35rem;color:var(--nv-oro);font-weight:700;font-size:.85rem}
@media (max-width:539px){.nv-g{padding:.85rem .85rem .9rem}.nv-g-d{font-size:.8rem}}

/* ---------- Campañas (tema «Rojo» = Navidad mientras dure): rojo, verde y dorado ---------- */
html body .mc-t-rojo{
  --mc-bg:radial-gradient(110% 130% at 100% 0%,#B3202F 0%,#7A0F1E 55%,#0F3B2E 100%);
  --mc-bgf:linear-gradient(90deg,#7A0F1E 0%,#A81D2C 35%,#A81D2C 65%,#7A0F1E 100%);
  --mc-tx:#FFF8EC;--mc-ac:#FFD27A;--mc-actx:#3A1606;--mc-glow:rgba(255,210,122,.4);
}

/* Franja de campaña más grande mientras dure la temporada */
html body .mc-franja-in{min-height:56px;padding-block:.8rem .6rem;font-size:1.05rem;gap:1rem}
html body .mc-franja .mc-chip{font-size:.78rem;padding:.42rem .7rem;border-radius:7px;background:rgba(255,227,163,.12);color:var(--mc-ac);box-shadow:inset 0 0 0 1px rgba(255,210,122,.55)}
html body .mc-franja-tit{font-weight:700}
html body .mc-franja .mc-reloj{font-size:1rem}
html body .mc-franja-ir{display:inline-flex;align-items:center;min-height:36px;padding:0 1rem;border-radius:999px;background:var(--mc-ac);color:var(--mc-actx);font-size:.95rem;box-shadow:0 6px 18px -8px var(--mc-glow,rgba(255,210,122,.5))}
html body .mc-franja-ir:hover{text-decoration:none;filter:brightness(1.06)}
html body .mc-franja .mc-x{font-size:1.45rem}
@media (max-width:959px){
  html body .mc-franja-in{min-height:48px;padding-block:.65rem .5rem;font-size:.95rem;gap:.6rem}
  html body .mc-franja-tit{font-weight:600}
  html body .mc-franja-ir{min-height:32px;padding:0 .75rem;font-size:.85rem}
  /* En el celular el mensaje va completo arriba; el sello y el botón, debajo */
  html body .mc-franja-in{flex-wrap:wrap;row-gap:.5rem}
  html body .mc-franja-tit{order:-2;flex:1 1 calc(100% - 3rem);white-space:normal;overflow:visible;line-height:1.3}
  html body .mc-franja .mc-x{order:-1;align-self:flex-start}
}

@media (prefers-reduced-motion:reduce){
  .nav-tienda::before,.nav-tienda::after,.nv-banner::before,.nv-banner-art .nv-b,.nv-banner-art .nv-brillo{animation:none}
  .nv-nieve,.nv-cielo{display:none}
}
@media print{.nv-cielo,.nv-guia,.nv-banner,.nav-tienda::before,.nav-tienda::after{display:none!important}}
