/* NearVisual — estilos del motor de temporada. Cada sitio define
   --nv-t-fondo, --nv-t-texto, --nv-t-acento y --nv-t-acento-texto. */
.nv-cintillo {
    position: relative; z-index: 60;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 6px 12px; padding: 8px 16px;
    background: var(--nv-t-fondo, #222); color: var(--nv-t-texto, #fff);
    font-size: .86rem; line-height: 1.3; text-align: center;
}
.nv-cintillo[hidden] { display: none; }
.nv-cintillo__urgencia {
    padding: 2px 10px; border-radius: 999px;
    background: var(--nv-t-acento, #f5c400); color: var(--nv-t-acento-texto, #222);
    font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em;
}
.nv-cintillo__boton { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.nv-liston {
    position: absolute; top: 12px; right: -34px; z-index: 2;
    width: 130px; padding: 4px 0; transform: rotate(45deg);
    background: var(--nv-t-fondo, #222); color: var(--nv-t-texto, #fff);
    font-size: .64rem; font-weight: 700; letter-spacing: .05em; text-align: center; text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .2); pointer-events: none;
}
.nv-aviso-campana {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
    margin: 0 0 24px; padding: 14px 18px; border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, .1); border-left: 4px solid var(--nv-t-acento, #f5c400);
    background: rgba(255, 255, 255, .85); color: #222;
}
.nv-aviso-campana[hidden] { display: none; }
.nv-aviso-campana p { margin: 0; flex: 1 1 220px; }
.nv-promos { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 24px 0; padding: 0; list-style: none; }
.nv-promo { padding: 20px; border: 1px solid rgba(0, 0, 0, .1); border-radius: 18px; background: #fff; color: #222; box-shadow: 0 8px 22px rgba(0, 0, 0, .06); }
.nv-promo h2, .nv-promo h3 { margin: 8px 0 6px; font-size: 1.15rem; }
.nv-promo__estado { display: inline-block; padding: 2px 10px; border-radius: 999px; background: rgba(0, 0, 0, .06); font-size: .74rem; font-weight: 700; }
.nv-promo--activa { border-color: var(--nv-t-fondo, #222); box-shadow: 0 10px 26px rgba(0, 0, 0, .14); }
.nv-promo--activa .nv-promo__estado { background: var(--nv-t-fondo, #222); color: var(--nv-t-texto, #fff); }
.nv-promo--pasada { opacity: .6; }
.nv-promo a { display: inline-block; margin-top: 8px; font-weight: 700; }
.nv-cintillo--fijo {
    position: fixed; left: 50%; transform: translateX(-50%); z-index: 40;
    flex-wrap: nowrap; width: max-content; max-width: calc(100% - 24px);
    margin-top: 6px; padding: 6px 6px 6px 8px; border-radius: 999px;
    font-size: .8rem; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); white-space: nowrap;
    overflow: hidden; box-sizing: border-box;
}
.nv-cintillo--fijo > * { flex: none; }
.nv-cintillo--fijo .nv-cintillo__texto { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.nv-cintillo__cerrar {
    flex: none; width: 24px; height: 24px; border: 0; border-radius: 50%;
    background: rgba(0, 0, 0, .15); color: inherit; font-size: 1rem; line-height: 1; cursor: pointer;
}
@media (max-width: 480px) { .nv-cintillo--fijo .nv-cintillo__urgencia { display: none; } }

/* ── Paleta por tipo de campaña ─────────────────────────────────────────────
   Colores reconocibles de cada temporada, aplicados sólo a las piezas de la
   campaña (cintillo, ventana, listón, distintivo). El resto del sitio conserva
   su paleta. */
/* Todas las campañas (Hot Sale, Buen Fin, diciembre) con la paleta de Hot Sale:
   rojo, naranja y amarillo, para que se lean como oferta y no como el sitio. */
html[data-nv-campana] { --nv-c1: #ff6a00; --nv-c2: #e10d1e; --nv-c-texto: #fff; --nv-c-acento: #ffd400; --nv-c-acento-texto: #2b0300; }
html[data-nv-campana] .nv-cintillo,
html[data-nv-campana] .nv-liston { background: linear-gradient(110deg, var(--nv-c1), var(--nv-c2)); color: var(--nv-c-texto); }
html[data-nv-campana] .nv-cintillo__urgencia { background: var(--nv-c-acento); color: var(--nv-c-acento-texto); }
html[data-nv-campana] .nv-promo--activa { border-color: var(--nv-c1); }
html[data-nv-campana] .nv-promo--activa .nv-promo__estado { background: linear-gradient(110deg, var(--nv-c1), var(--nv-c2)); color: var(--nv-c-texto); }

/* Distintivo de oferta (icono de etiqueta + nombre corto). */
.nv-distintivo { display: inline-flex; align-items: center; gap: 5px; flex: none; font-weight: 800; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.nv-distintivo svg { width: 18px; height: 18px; flex: none; }
.nv-cintillo .nv-distintivo b { display: none; }
@media (max-width: 480px) { .nv-cintillo .nv-distintivo { display: none; } }

/* Ventana flotante: tarjeta en la esquina inferior; en celular, abajo y a lo
   ancho, sin tapar la cabecera ni el contenido principal. */
.nv-ventana {
    position: fixed; right: 18px; bottom: var(--nv-ventana-abajo, 92px); z-index: 70;
    width: min(330px, calc(100vw - 24px)); box-sizing: border-box;
    padding: 16px 16px 14px; border-radius: 18px;
    background: #fff; color: #1d1d1f; box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
    border-top: 5px solid var(--nv-c1, var(--nv-t-fondo, #222));
    opacity: 0; transform: translateY(16px); transition: opacity .25s ease, transform .25s ease;
    font-size: .9rem; line-height: 1.4;
}
.nv-ventana--abierta { opacity: 1; transform: none; }
.nv-ventana .nv-distintivo { padding: 5px 10px 5px 7px; border-radius: 999px; background: linear-gradient(110deg, var(--nv-c1, #222), var(--nv-c2, #222)); color: var(--nv-c-texto, #fff); }
.nv-ventana__titulo { margin: 10px 0 2px; font-weight: 800; font-size: 1.05rem; }
.nv-ventana__texto { margin: 0 0 6px; color: #444; }
.nv-ventana__urg { margin: 0 0 12px; font-weight: 700; font-size: .78rem; color: var(--nv-c2, #b00); text-transform: uppercase; letter-spacing: .03em; }
.nv-ventana__acciones { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nv-ventana__ir { flex: 1 1 auto; text-align: center; padding: 10px 14px; border-radius: 999px; font-weight: 800; text-decoration: none; background: linear-gradient(110deg, var(--nv-c1, #222), var(--nv-c2, #222)); color: var(--nv-c-texto, #fff); }
.nv-ventana__luego { padding: 10px 12px; border: 0; background: none; color: #555; font: inherit; font-weight: 600; cursor: pointer; }
.nv-ventana__x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .06); color: #333; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.nv-ventana a:focus-visible, .nv-ventana button:focus-visible { outline: 3px solid var(--nv-c1, #222); outline-offset: 2px; }
@media (max-width: 560px) { .nv-ventana { right: 12px; left: 12px; bottom: var(--nv-ventana-abajo-movil, 84px); width: auto; } }
@media (prefers-reduced-motion: reduce) { .nv-ventana { transition: none; } }

/* Página de campaña ya terminada: se queda publicada como registro, apagada. */
html.nv-campana-terminada [data-whatsapp], html.nv-campana-terminada .guia-consulta { display: none; }

.nv-cintillo--fijo { transition: opacity .2s ease, transform .2s ease; }
.nv-cintillo--fijo.nv-cintillo--escondido { opacity: 0; transform: translate(-50%, -12px); pointer-events: none; }

/* Más cara de oferta: texto en mayúsculas y sombra cálida. */
html[data-nv-campana] .nv-cintillo, html[data-nv-campana] .cintillo-temporada { font-weight: 700; letter-spacing: .01em; box-shadow: 0 6px 20px rgba(225, 13, 30, .35); }
html[data-nv-campana] .nv-cintillo__texto { text-transform: uppercase; letter-spacing: .04em; }
html[data-nv-campana] .nv-liston, html[data-nv-campana] .liston-oferta { background: linear-gradient(110deg, var(--nv-c1), var(--nv-c2)); color: #fff; font-weight: 800; }
html[data-nv-campana] .nv-ventana { border-top-color: var(--nv-c2); }
html[data-nv-campana] .nv-ventana__titulo { color: var(--nv-c2); text-transform: uppercase; letter-spacing: .02em; }
/* .nv-cintillo__nombre-oferta (marcador para no duplicar este bloque) */

/* ── Paleta de temporada definitiva: blanco, negro y rojo + carita feliz ──
   Estilo propio inspirado en las campañas nacionales (sin sus logotipos, que
   son marcas registradas): fondo blanco, letras negras, acentos rojos y «:)». */
html[data-nv-campana] { --nv-c1: #e10d1e; --nv-c2: #e10d1e; --nv-c-texto: #111; --nv-c-acento: #e10d1e; --nv-c-acento-texto: #fff; }
html[data-nv-campana] .nv-cintillo, html[data-nv-campana] .cintillo-temporada,
html[data-nv-campana] .nv-liston, html[data-nv-campana] .liston-oferta {
    background: #fff; color: #111; border: 2px solid #e10d1e; font-weight: 800; box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
html[data-nv-campana] .nv-cintillo a, html[data-nv-campana] .nv-cintillo__texto { color: #111; }
html[data-nv-campana] .nv-cintillo__urgencia { background: #e10d1e; color: #fff; }
html[data-nv-campana] .nv-liston::after, html[data-nv-campana] .liston-oferta::after,
html[data-nv-campana] .nv-distintivo::after { content: ":)"; margin-left: 6px; color: #e10d1e; font-weight: 900; }
html[data-nv-campana] .nv-distintivo, .nv-ventana .nv-distintivo { background: #fff; color: #111; border: 2px solid #111; }
html[data-nv-campana] .nv-ventana { border-top-color: #e10d1e; }
html[data-nv-campana] .nv-ventana__titulo { color: #111; }
html[data-nv-campana] .nv-ventana__urg { color: #e10d1e; }
html[data-nv-campana] .nv-ventana__ir, html[data-nv-campana] .nv-promo--activa .nv-promo__estado { background: #e10d1e; color: #fff; }
html[data-nv-campana] .nv-promo--activa { border-color: #e10d1e; }

/* ── Calendario de oferta (ventana) y cintillo sobrio ── */
.nv-cal { position: relative; display: block; margin: 2px 26px 12px 0; padding: 18px 12px 0; background: #fff; border: 3px solid #111; border-radius: 6px; box-shadow: 5px 5px 0 #111; text-align: center; overflow: hidden; }
.nv-cal::before { content: ""; position: absolute; top: 5px; left: 28%; right: 28%; height: 9px; background: radial-gradient(circle, #111 4px, transparent 5px) left / 9px 9px no-repeat, radial-gradient(circle, #111 4px, transparent 5px) right / 9px 9px no-repeat; }
.nv-cal::after { content: ""; position: absolute; right: -2px; bottom: -2px; border-style: solid; border-width: 0 0 22px 22px; border-color: transparent transparent #fff #ddd; }
.nv-cal__t { display: block; font: 900 2rem/.92 "Arial Black", "Montserrat", Arial, sans-serif; color: #111; letter-spacing: -.02em; }
.nv-cal__cara { color: #e10d1e; margin-left: 4px; }
.nv-cal__lema { display: block; margin: 8px 0 10px; font-weight: 800; font-size: .7rem; letter-spacing: .03em; text-transform: uppercase; color: #111; }
.nv-cal__banda { display: block; height: 22px; margin: 0 -12px; background: #e10d1e; }
html[data-nv-campana] .nv-ventana { border-top: 0; }
html[data-nv-campana] .nv-ventana__titulo { margin-top: 0; }
html[data-nv-campana] .nv-liston::after, html[data-nv-campana] .liston-oferta::after, html[data-nv-campana] .nv-distintivo::after { content: none; }
html[data-nv-campana] .nv-distintivo { border: 0; background: none; padding: 0; }
html[data-nv-campana] .nv-distintivo svg { width: 22px; height: 22px; }
html[data-nv-campana] .nv-cintillo, html[data-nv-campana] .cintillo-temporada,
html[data-nv-campana] .nv-liston, html[data-nv-campana] .liston-oferta { border: 2px solid #111; border-bottom: 5px solid #e10d1e; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
html[data-nv-campana] .nv-cintillo__urgencia { border-radius: 4px; }

/* ── Refinado de temporada (cintillo, distintivo y ventana) ── */
html[data-nv-campana] .nv-cintillo { font-family: inherit; font-size: .84rem; line-height: 1.25; gap: 6px 10px; }
html[data-nv-campana] .nv-cintillo:not(.nv-cintillo--fijo) { padding: 8px 14px; border-left: 0; border-right: 0; border-top: 0; }
html[data-nv-campana] .nv-cintillo__texto { text-transform: none; letter-spacing: 0; font-weight: 800; color: #111; }
html[data-nv-campana] .nv-cintillo .nv-distintivo { display: inline-flex; gap: 6px; }
html[data-nv-campana] .nv-cintillo .nv-distintivo b { display: inline; font-weight: 900; font-size: .8rem; letter-spacing: .02em; color: #111; }
html[data-nv-campana] .nv-cintillo .nv-distintivo b::after { content: " :)"; color: #e10d1e; }
html[data-nv-campana] .nv-cintillo__urgencia { font-weight: 900; font-size: .68rem; letter-spacing: .05em; padding: 3px 8px; }
html[data-nv-campana] .nv-cintillo__boton { color: #e10d1e; font-weight: 900; text-decoration-thickness: 2px; }
html[data-nv-campana] .nv-cintillo__cerrar { background: #111; color: #fff; }
html[data-nv-campana] .nv-liston, html[data-nv-campana] .liston-oferta { font-weight: 900; letter-spacing: .06em; }
@media (max-width: 640px) {
    html[data-nv-campana] .nv-cintillo:not(.nv-cintillo--fijo) { flex-wrap: nowrap; justify-content: flex-start; text-align: left; font-size: .78rem; }
    html[data-nv-campana] .nv-cintillo:not(.nv-cintillo--fijo) .nv-cintillo__texto { flex: 1 1 auto; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    html[data-nv-campana] .nv-cintillo .nv-cintillo__urgencia { display: none; }
    html[data-nv-campana] .nv-cintillo .nv-distintivo b { display: none; }
    html[data-nv-campana] .nv-cintillo .nv-distintivo { display: inline-flex; }
    html[data-nv-campana] .nv-cintillo__boton { flex: none; }
}
.nv-ventana { border-radius: 16px; font-family: inherit; }
.nv-ventana--espera { visibility: hidden; opacity: 0 !important; pointer-events: none; }
html[data-nv-campana] .nv-ventana__titulo { font-weight: 900; font-size: 1rem; letter-spacing: .01em; }
html[data-nv-campana] .nv-ventana__ir { font-weight: 900; border-radius: 10px; }
.nv-cal__t { font-size: clamp(1.7rem, 7vw, 2.1rem); }

/* ── Ventana de temporada centrada, con fondo opacado y difuminado ── */
.nv-ventana-fondo { position: fixed; inset: 0; z-index: 69; background: rgba(10, 12, 16, .5); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); opacity: 0; transition: opacity .25s ease; }
.nv-ventana-fondo--ver { opacity: 1; }
.nv-ventana { left: 50%; right: auto; top: 50%; bottom: auto; width: min(340px, calc(100vw - 32px)); transform: translate(-50%, calc(-50% + 16px)); border: 3px solid #111; border-radius: 18px; box-shadow: 6px 6px 0 #111; text-align: center; }
.nv-ventana--abierta { transform: translate(-50%, -50%); }
@media (max-width: 560px) { .nv-ventana { left: 50%; right: auto; bottom: auto; width: min(340px, calc(100vw - 32px)); } }
.nv-ventana__acciones { justify-content: center; }
.nv-ventana__x { background: #111; color: #fff; z-index: 1; }
/* Calendario más compacto (proporción de hoja, no tira). */
.nv-cal { width: 220px; max-width: 100%; margin: 4px auto 14px; padding: 20px 10px 0; }
.nv-cal__t { font-size: 2.15rem; line-height: .9; }
.nv-cal__lema { font-size: .62rem; }
.nv-cal__banda { height: 20px; margin: 0 -10px; }

/* Mascota del sitio (CFG.mascota: tira de cuadros de 48×40 en pixel art). */
.nv-ventana { overflow: visible; }
.nv-cal__mascota {
    position: absolute; z-index: 2; left: 50%; top: -62px; width: 96px; height: 80px; margin-left: 52px;
    background-repeat: no-repeat; background-size: calc(96px * var(--cuadros, 4)) 80px; background-position: 0 0;
    image-rendering: pixelated; animation: nvMascota 1.4s steps(var(--cuadros, 4)) infinite;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .25));
}
@keyframes nvMascota { to { background-position: calc(-96px * var(--cuadros, 4)) 0; } }
.nv-ventana:has(.nv-cal__mascota) { margin-top: 30px; }
@media (prefers-reduced-motion: reduce) { .nv-cal__mascota { animation: none; } }

.nv-cal__mascota { filter: drop-shadow(0 0 1px rgba(24, 35, 56, .55)) drop-shadow(0 4px 6px rgba(0, 0, 0, .22)); }

.nv-cal__mascota { --w: 120px; width: var(--w); height: 100px; top: -74px; margin-left: 46px; background-size: calc(var(--w) * var(--cuadros, 4)) 100px; animation-name: nvMascota2; }
@keyframes nvMascota2 { to { background-position: calc(-1 * var(--w) * var(--cuadros, 4)) 0; } }
.nv-ventana:has(.nv-cal__mascota) { margin-top: 40px; }

/* Mascota de la ventana más grande, parada encima del calendario. */
.nv-cal__mascota { --w: 168px; height: 140px; top: -104px; margin-left: 20px; background-size: calc(var(--w) * var(--cuadros, 4)) 140px; }
.nv-ventana:has(.nv-cal__mascota) { margin-top: 60px; }
/* Ventana como menú: la página de atrás no se desplaza. */
html.nv-ventana-bloqueo, html.nv-ventana-bloqueo body { overflow: hidden; overscroll-behavior: none; }
.nv-ventana-fondo { touch-action: none; }
.nv-ventana__texto b, .nv-cintillo__texto b { font-weight: 800; }
/* Pastilla oculta del todo (no recibe foco) hasta perder de vista la barra. */
#nv-pastilla-temp.nv-cintillo--escondido { visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility 0s .2s; }
#nv-pastilla-temp { transition: opacity .2s ease, transform .2s ease, visibility 0s; }

/* Tema del sitio */
:root { --nv-t-fondo: #00E5FF; --nv-t-texto: #0a0a0a; --nv-t-acento: #0a0a0a; --nv-t-acento-texto: #00E5FF; }
