/* ============================================================
   ElectronicST — Navidad (prefijo nv-; lo prende assets/navidad.js con
   html.navidad del 1 dic. al 6 ene.). Fuera de temporada nada de esto
   aplica. Negro y dorado de la marca; un brillo vino muy suave en la guía.
   ============================================================ */

/* ---------- Arbolito en el nombre "ElectronicST" del menú ----------
   Va como pseudo-elementos del nombre (sin mover nada de lugar). Entra
   creciendo desde abajo con un rebote suave y luego se prende la estrella,
   que titila despacio. Solo entra animado en la primera página de la
   visita (html.nv-entra); en las demás ya está. */
html.navidad .brand > span { position: relative; }
html.navidad .brand > span::after {
    content: ""; position: absolute; right: -25px; bottom: 1px; width: 18px; height: 21px; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 21'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23f2d891'/%3E%3Cstop offset='.55' stop-color='%23c8a24b'/%3E%3Cstop offset='1' stop-color='%23977430'/%3E%3C/linearGradient%3E%3Cmask id='m'%3E%3Crect width='18' height='21' fill='%23fff'/%3E%3Ccircle cx='7.2' cy='8.6' r='.95' fill='%23000'/%3E%3Ccircle cx='11.2' cy='12.4' r='.95' fill='%23000'/%3E%3Ccircle cx='6.2' cy='15.6' r='.95' fill='%23000'/%3E%3Ccircle cx='12.4' cy='16.8' r='.85' fill='%23000'/%3E%3C/mask%3E%3C/defs%3E%3Cg mask='url(%23m)' fill='url(%23g)'%3E%3Cpath d='M9 2.2 13 7.9h-1.7l3.5 4.9h-2l3.4 4.9H1.8l3.4-4.9h-2l3.5-4.9H5z' stroke='url(%23g)' stroke-width='1.1' stroke-linejoin='round'/%3E%3Crect x='7.7' y='17.6' width='2.6' height='3' rx='.6'/%3E%3C/g%3E%3C/svg%3E") center bottom / contain no-repeat;
    filter: drop-shadow(0 0 6px rgba(200, 162, 75, .28));
}
html.navidad .brand > span::before {
    content: ""; position: absolute; right: -20.5px; bottom: 18px; width: 9px; height: 9px; z-index: 1; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c.5 5.2 2.3 8 7.5 10.5-5.2 2.5-7 5.3-7.5 10.5-.5-5.2-2.3-8-7.5-10.5C9.7 9.5 11.5 6.7 12 1.5z' fill='%23ffe9a8'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 0 4px rgba(255, 214, 120, .9));
    animation: nvBrilla 2.8s ease-in-out infinite;
}
html.nv-entra .brand > span::after { animation: nvArbol 1s cubic-bezier(.34, 1.5, .5, 1) .45s both; transform-origin: 50% 100%; }
html.nv-entra .brand > span::before { animation: nvEstrella .7s cubic-bezier(.34, 1.6, .5, 1) 1.15s both, nvBrilla 2.8s ease-in-out 1.85s infinite; }
@keyframes nvArbol { from { opacity: 0; transform: translateY(5px) scale(.2); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes nvEstrella { from { opacity: 0; transform: scale(0) rotate(-90deg); } to { opacity: 1; transform: none; } }
@keyframes nvBrilla { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.72) rotate(45deg); opacity: .7; } }

/* ---------- Portada (opción A "Nieve dorada") ---------- */
/* La ceja va dentro del título y el aviso dentro de los botones (en
   absoluto, sin mover nada): entran con las letras de la portada. */
.nv-ceja {
    position: absolute; left: 0; right: 0; bottom: calc(100% + 10px);
    display: flex; align-items: center; justify-content: center; gap: 10px;
    font-size: 12.5px; font-weight: 600; letter-spacing: .26em; line-height: 1.2; text-transform: uppercase; color: #c8a24b;
}
.nv-ceja svg { width: 12px; height: 12px; flex: none; }
html.navidad .hero h1 { position: relative; }
.hero-ctas .nv-aviso {
    position: absolute; left: 0; right: 0; top: calc(100% + 20px); margin: 0;
    display: block; text-align: center; text-wrap: balance;
    font-size: 14.5px; line-height: 1.45; color: #d4d4d8; text-shadow: 0 1px 8px rgba(0, 0, 0, .8);
}
.nv-aviso b { color: #fff; font-weight: 600; }
.nv-aviso svg { display: inline-block; width: 18px; height: 18px; margin: 0 8px 0 0; vertical-align: -3.5px; color: #c8a24b; }
@media (max-width: 640px) {
    .nv-ceja { font-size: 11px; letter-spacing: .2em; gap: 8px; bottom: calc(100% + 8px); }
    .hero-ctas .nv-aviso { font-size: 13.5px; padding: 0 12px; top: calc(100% + 16px); }
}

/* ---------- Nieve en todas las páginas ----------
   Fija sobre toda la pantalla: encima del contenido y debajo del menú (60),
   las barras fijas del teléfono (60), el chat (120) y el mini-carrito (130).
   Aparece con fundido (2.4 s la primera vez, 0.8 s en las demás páginas). */
.nv-nieve { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 55; pointer-events: none; opacity: 0; transition: opacity 2.4s cubic-bezier(.4, 0, .2, 1); }
.nv-nieve.rapida { transition-duration: .8s; }
.nv-nieve.on { opacity: 1; }
@media print { .nv-nieve { display: none; } }

/* ---------- Guía de regalos (opción C) ---------- */
.nv-guia {
    position: relative; padding: 96px 0 76px;
    background: radial-gradient(55% 60% at 50% 0%, rgba(122, 20, 36, .4), transparent 72%), radial-gradient(40% 40% at 85% 90%, rgba(200, 162, 75, .08), transparent 70%);
}
.nv-guia-in { text-align: center; }
.nv-guia .eyebrow { color: #c8a24b; }
.nv-guia h2 { font-size: clamp(32px, 4.2vw, 54px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; margin: 12px 0 10px; text-wrap: balance; }
.nv-guia-sub { color: var(--muted-2); font-size: 17px; margin: 0 auto 40px; max-width: 560px; text-wrap: balance; }
.nv-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; text-align: left; transition: opacity .4s ease; }
.nv-tiles.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; margin: 0 auto; }
.nv-tiles.n1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.nv-tiles.nv-sale { opacity: 0; }
.nv-tile {
    position: relative; display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; text-decoration: none; color: #fff;
    background: linear-gradient(180deg, #19161a 0%, #0c0c0f 100%); border: 1px solid rgba(200, 162, 75, .22);
    transition: border-color .4s ease, box-shadow .5s ease;
}
.nv-tile:hover { border-color: rgba(200, 162, 75, .55); box-shadow: 0 24px 60px -30px rgba(200, 162, 75, .45); }
.nv-fotos { position: relative; height: 210px; background: radial-gradient(60% 70% at 50% 100%, rgba(200, 162, 75, .14), transparent 70%); }
/* Las fotos entran en abanico: salen juntas del centro y se abren. */
.nv-fotos img {
    position: absolute; left: 27%; bottom: 22px; width: 46%; aspect-ratio: 1; object-fit: cover; border-radius: 18px;
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .9);
    opacity: 0; transform: translateY(18px) scale(.9);
    transition: opacity .7s ease calc(.25s + var(--j, 0) * .09s), transform 1s cubic-bezier(.22, 1, .36, 1) calc(.25s + var(--j, 0) * .09s);
}
.nv-fotos img:nth-child(1) { z-index: 3; --fin: translateY(-6px); }
.nv-fotos img:nth-child(2) { z-index: 2; --fin: translateX(-46%) rotate(-8deg) scale(.86); }
.nv-fotos img:nth-child(3) { z-index: 1; --fin: translateX(46%) rotate(8deg) scale(.86); }
.nv-visto .nv-fotos img.ok { opacity: 1; transform: var(--fin); }
.nv-visto .nv-fotos img.ok:nth-child(n+2) { opacity: .92; }
.nv-tile:hover .nv-fotos img:nth-child(1) { transform: translateY(-12px) scale(1.03); }
.nv-tile-txt { padding: 18px 22px 22px; display: grid; gap: 2px; }
.nv-tile-txt small { color: var(--muted); font-size: 13px; letter-spacing: .04em; }
.nv-tile-txt b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.nv-cuantos { color: #c8a24b; font-size: 14.5px; font-weight: 600; margin-top: 4px; opacity: 0; transform: translateX(-6px); transition: opacity .5s ease .5s, transform .6s cubic-bezier(.22, 1, .36, 1) .5s; }
.nv-cuantos.ok { opacity: 1; transform: none; }
.nv-tile:hover .nv-cuantos { transform: translateX(4px); transition-delay: 0s; }
/* Entrada escalonada de la sección (título, frase, tarjetas). */
.nv-a { opacity: 0; transform: translateY(24px); transition: opacity .8s ease calc(var(--i, 0) * .09s), transform 1s cubic-bezier(.22, 1, .36, 1) calc(var(--i, 0) * .09s); }
.nv-visto .nv-a { opacity: 1; transform: none; }
.nv-tile.nv-a { transition: opacity .8s ease calc(var(--i, 0) * .09s), transform 1s cubic-bezier(.22, 1, .36, 1) calc(var(--i, 0) * .09s), border-color .4s ease, box-shadow .5s ease; }
.nv-tile:hover .nv-fotos img { transition-delay: 0s; }
/* Los 3 pasos: la línea dorada se dibuja, el número salta y entra el texto. */
.nv-envio { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 46px 0 0; padding: 0; counter-reset: paso; text-align: left; }
.nv-envio li { position: relative; padding: 26px 18px 0 0; counter-increment: paso; display: grid; gap: 3px; }
.nv-envio li::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(200, 162, 75, .4); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1s cubic-bezier(.65, 0, .35, 1) calc(.6s + var(--i) * .22s); }
.nv-envio li::before {
    content: counter(paso); position: absolute; z-index: 1; top: -12px; left: 0; width: 24px; height: 24px; border-radius: 50%;
    background: #c8a24b; color: #0a0a0c; font-size: 12.5px; font-weight: 800; display: grid; place-items: center;
    transform: scale(0); transition: transform .6s cubic-bezier(.34, 1.6, .5, 1) calc(.7s + var(--i) * .22s);
}
.nv-envio b, .nv-envio span { opacity: 0; transform: translateY(10px); transition: opacity .7s ease calc(.85s + var(--i) * .22s), transform .8s cubic-bezier(.22, 1, .36, 1) calc(.85s + var(--i) * .22s); }
.nv-envio b { font-size: 16px; color: #fff; font-weight: 600; }
.nv-envio span { font-size: 13.5px; color: var(--muted-2); }
.nv-visto .nv-envio li::after { transform: none; }
.nv-visto .nv-envio li::before { transform: none; }
.nv-visto .nv-envio b, .nv-visto .nv-envio span { opacity: 1; transform: none; }

@media (max-width: 760px) {
    .nv-guia { padding: 70px 0 54px; }
    .nv-tiles, .nv-tiles.n2, .nv-tiles.n1 { grid-template-columns: 1fr; gap: 12px; max-width: none; }
    .nv-tile { flex-direction: row; align-items: center; }
    .nv-fotos { flex: 0 0 46%; height: 140px; }
    .nv-fotos img { width: 58%; left: 21%; bottom: 16px; border-radius: 14px; }
    .nv-fotos img:nth-child(2) { --fin: translateX(-34%) rotate(-7deg) scale(.86); }
    .nv-fotos img:nth-child(3) { --fin: translateX(34%) rotate(7deg) scale(.86); }
    .nv-tile-txt b { font-size: 28px; }
    .nv-envio { grid-template-columns: 1fr; gap: 22px; margin-top: 36px; }
    .nv-envio li { padding: 0 0 0 26px; }
    .nv-envio li::after { left: 0; right: auto; top: 0; bottom: 0; width: 1px; height: auto; transform: scaleY(0); transform-origin: 50% 0; }
    .nv-envio li::before { top: 0; left: -12px; }
}
@media (prefers-reduced-motion: reduce) {
    html.nv-entra .brand > span::after, html.navidad .brand > span::before { animation: none; }
    .nv-a, .nv-fotos img, .nv-cuantos, .nv-envio li::after, .nv-envio li::before, .nv-envio b, .nv-envio span { transition: none; }
}
