/* ═══════════════════════════════════════════════════════════════════════════
   PROYECTO LUZ · SUPERMARKET OMEGA (FASE 1 A FASE 8 · EDICIÓN INTEGRAL + PWA)
   Scrollytelling, App Instalable, Favoritos, Share & Calibración Mobile-First
   ═══════════════════════════════════════════════════════════════════════════ */

html {
    max-width: 100%;
    overflow-x: clip;
}
body {
    max-width: 100%;
    overflow-x: clip;
}

:root {
    --luz-primary: #1e3a5f;
    --luz-accent: #2563eb;
    --luz-cyan: #38bdf8;
    --luz-gold: #f59e0b;
    --luz-emerald: #10b981;
    --luz-glow: rgba(37, 99, 235, 0.18);
    --luz-glow-gold: rgba(245, 158, 11, 0.22);
    --luz-wave-fill: #ffffff;
    --luz-wave-back: rgba(30, 58, 95, 0.08);
    --luz-glass-bg: rgba(255, 255, 255, 0.84);
    --luz-glass-border: rgba(226, 232, 240, 0.9);
    --luz-glass-shadow: 0 12px 34px rgba(15, 23, 42, 0.11), 0 2px 8px rgba(37, 99, 235, 0.07);
}

body.dark-theme {
    --luz-glow: rgba(56, 189, 248, 0.16);
    --luz-glow-gold: rgba(251, 191, 36, 0.18);
    --luz-wave-fill: #0f172a;
    --luz-wave-back: rgba(30, 41, 59, 0.45);
    --luz-glass-bg: rgba(15, 23, 42, 0.84);
    --luz-glass-border: rgba(148, 163, 184, 0.2);
    --luz-glass-shadow: 0 14px 38px rgba(0, 0, 0, 0.45), 0 0 20px rgba(56, 189, 248, 0.1);
}

/* ── 1. BARRA SUPERIOR DE PROGRESO DE SCROLL LUMINOSA ── */
#luz-scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3.5px;
    background: linear-gradient(90deg, #2563eb, #38bdf8, #f59e0b, #ec4899);
    z-index: 999999;
    pointer-events: none;
    transition: width 0.08s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.8), 0 0 20px rgba(245, 158, 11, 0.4);
    will-change: width;
}

/* ── 2. HERO SCROLLYTELLING CONTAINER (FASE 1) ── */
.luz-hero-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: radial-gradient(circle at 50% 15%, rgba(37, 99, 235, 0.08) 0%, transparent 65%);
    transition: background 0.3s ease;
}

body.dark-theme .luz-hero-viewport {
    background: radial-gradient(circle at 50% 20%, rgba(56, 189, 248, 0.07) 0%, transparent 70%);
}

.luz-ambient-mesh {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 550px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, var(--luz-glow) 0%, rgba(245, 158, 11, 0.08) 40%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.85;
    will-change: transform;
}

/* ── 3. CAPAS VECTORIALES FLUIDAS SVG (PARALLAX LAYERS) ── */
.luz-parallax-container {
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
}

.luz-svg-layer-back {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 120px;
    pointer-events: none;
    z-index: 3;
    opacity: 0.65;
    will-change: transform;
}

.luz-svg-layer-back path {
    fill: var(--luz-wave-back);
    transition: fill 0.3s ease;
}

.luz-svg-layer-front {
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 90px;
    pointer-events: none;
    z-index: 5;
    will-change: transform;
}

.luz-svg-layer-front path {
    fill: var(--bg-body, #f5f4f1);
    transition: fill 0.3s ease;
}

/* ── 4. BADGES FLOTANTES DE SCROLLYTELLING ── */
.luz-scrolly-badges {
    max-width: 1200px;
    margin: 18px auto 8px;
    padding: 0 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.luz-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(226, 232, 240, 0.85);
    color: var(--text-main, #1e293b);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    cursor: default;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    will-change: transform, opacity;
}

body.dark-theme .luz-badge-pill {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.luz-badge-pill:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.3);
}

.luz-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
}

.luz-badge-live-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.luz-badge-live-pulse::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.45);
    animation: luzPulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes luzPulse {
    0% { transform: scale(0.9); opacity: 0.9; }
    70% { transform: scale(2.4); opacity: 0; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* ── 5. SCROLL-TRIGGERED REVEAL ANIMATIONS GENERALES ── */
.luz-reveal {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.luz-reveal.luz-in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.luz-stagger-1 { transition-delay: 0.05s; }
.luz-stagger-2 { transition-delay: 0.12s; }
.luz-stagger-3 { transition-delay: 0.20s; }
.luz-stagger-4 { transition-delay: 0.28s; }

.om-qcat-item {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease !important;
}

.om-qcat-item:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 12px 28px rgba(30, 58, 95, 0.12) !important;
}

/* ── 6. MOUSE SCROLL-DOWN VECTORIAL ── */
.luz-scroll-down-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 10px auto 4px;
    color: var(--text-muted, #64748b);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.luz-scroll-down-hint:hover {
    opacity: 1;
    color: var(--luz-accent);
}

.luz-mouse-wheel {
    width: 20px;
    height: 32px;
    border: 2px solid currentColor;
    border-radius: 12px;
    position: relative;
    display: flex;
    justify-content: center;
}

.luz-mouse-wheel::before {
    content: '';
    width: 3px;
    height: 6px;
    background: currentColor;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    animation: luzWheel 1.8s ease-in-out infinite;
}

@keyframes luzWheel {
    0% { transform: translateY(0); opacity: 1; }
    60% { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FASE 2 · MÓDULO 1: REVELACIÓN ESCALONADA 3D Y ACENTOS DE LUZ EN PRODUCTOS
   ═══════════════════════════════════════════════════════════════════════════ */

#products-grid {
    perspective: 1100px;
}

.product-card {
    position: relative;
    contain: layout style;
    backface-visibility: hidden;
    transform-origin: center bottom;
    transition: transform 0.52s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.48s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
}

/* Estado inicial 3D para tarjetas debajo del pliegue antes de entrar por scroll */
.product-card.luz-card-pending {
    opacity: 0 !important;
    transform: perspective(1000px) rotateX(9deg) translate3d(0, 32px, 0) scale(0.96) !important;
}

/* Estado revelado 3D fluido */
.product-card.luz-card-visible {
    opacity: 1;
    transform: perspective(1000px) rotateX(0deg) translate3d(0, 0, 0) scale(1);
    transition-delay: var(--luz-stagger, 0ms);
}

/* Elevación y seguimiento de luz radial (Spotlight) en Desktop */
@media (hover: hover) and (pointer: fine) {
    .product-card.luz-card-visible:hover {
        transform: perspective(1000px) translate3d(0, -6px, 8px) scale(1.012) !important;
        box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(37, 99, 235, 0.22) !important;
        transition-delay: 0ms !important;
    }

    body.dark-theme .product-card.luz-card-visible:hover {
        box-shadow: 0 20px 42px rgba(0, 0, 0, 0.5), 0 0 22px rgba(56, 189, 248, 0.16) !important;
        border-color: rgba(56, 189, 248, 0.38) !important;
    }

    .product-card::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        pointer-events: none;
        opacity: 0;
        background: radial-gradient(
            260px circle at var(--luz-mx, 50%) var(--luz-my, 30%),
            rgba(56, 189, 248, 0.11),
            transparent 70%
        );
        transition: opacity 0.3s ease;
        z-index: 2;
    }

    body.dark-theme .product-card::after {
        background: radial-gradient(
            260px circle at var(--luz-mx, 50%) var(--luz-my, 30%),
            rgba(56, 189, 248, 0.15),
            transparent 70%
        );
    }

    .product-card:hover::after {
        opacity: 1;
    }
}

/* Ambient Border Glow para productos en Oferta */
.product-card.luz-card-offer {
    border-color: rgba(245, 158, 11, 0.48) !important;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.12), 0 0 0 1px rgba(245, 158, 11, 0.18);
}

body.dark-theme .product-card.luz-card-offer {
    border-color: rgba(251, 191, 36, 0.42) !important;
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.16), 0 0 14px rgba(251, 191, 36, 0.1);
}

.product-card.luz-card-offer .offer-badge {
    background: linear-gradient(135deg, #dc2626 0%, #f59e0b 100%) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
    letter-spacing: 0.04em;
}

/* Brillo sutil en tarjetas ya agregadas al carrito */
.product-card.in-cart {
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.14), 0 0 0 1.5px rgba(16, 185, 129, 0.42) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FASE 2 · MÓDULO 2: STICKY BAR CON MORFOLOGÍA DINÁMICA (MORPHING CAPSULE)
   ═══════════════════════════════════════════════════════════════════════════ */

#luz-morphing-bar {
    position: fixed;
    top: var(--luz-morph-top, 74px);
    left: 50%;
    transform: translate3d(-50%, -26px, 0) scale(0.95);
    opacity: 0;
    pointer-events: none;
    z-index: 940;
    width: min(860px, calc(100vw - 28px));
    padding: 8px 14px;
    border-radius: 9999px;
    background: var(--luz-glass-bg);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid var(--luz-glass-border);
    box-shadow: var(--luz-glass-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.32s ease,
                box-shadow 0.3s ease;
    will-change: transform, opacity;
}

#luz-morphing-bar.luz-morph-visible {
    transform: translate3d(-50%, 0, 0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.luz-morph-left {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    flex-shrink: 0;
}

.luz-morph-counter-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border-radius: 9999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--luz-primary);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

body.dark-theme .luz-morph-counter-pill {
    background: rgba(56, 189, 248, 0.14);
    color: #e0f2fe;
}

.luz-morph-cat-chip {
    display: none;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(236, 72, 153, 0.12));
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #b45309;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, background 0.2s ease;
}

body.dark-theme .luz-morph-cat-chip {
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.35);
}

.luz-morph-cat-chip.visible {
    display: inline-flex;
}

.luz-morph-cat-chip:hover {
    transform: scale(1.04);
}

.luz-morph-search-box {
    flex: 1;
    min-width: 120px;
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 9999px;
    padding: 6px 12px;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

body.dark-theme .luz-morph-search-box {
    background: rgba(30, 41, 59, 0.75);
    border-color: rgba(148, 163, 184, 0.22);
}

.luz-morph-search-box:focus-within {
    background: #ffffff;
    border-color: var(--luz-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

body.dark-theme .luz-morph-search-box:focus-within {
    background: rgba(15, 23, 42, 0.96);
    border-color: var(--luz-cyan);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.luz-morph-search-icon {
    width: 14px;
    height: 14px;
    color: var(--text-muted, #64748b);
    flex-shrink: 0;
}

#luz-morph-search {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-main, #1e293b);
}

body.dark-theme #luz-morph-search {
    color: #f8fafc;
}

#luz-morph-search::placeholder {
    color: var(--text-muted, #94a3b8);
}

.luz-morph-clear-btn {
    border: none;
    background: rgba(148, 163, 184, 0.25);
    color: var(--text-main, #334155);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 12px;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}

body.dark-theme .luz-morph-clear-btn {
    color: #e2e8f0;
}

.luz-morph-clear-btn.visible {
    display: inline-flex;
}

.luz-morph-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.luz-morph-branch-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    border: 1px solid rgba(30, 58, 95, 0.18);
    background: rgba(255, 255, 255, 0.9);
    color: var(--luz-primary);
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body.dark-theme .luz-morph-branch-btn {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(148, 163, 184, 0.25);
    color: #f1f5f9;
}

.luz-morph-branch-btn:hover {
    transform: translateY(-1px);
    border-color: var(--luz-accent);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.14);
}

.luz-morph-branch-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #dc2626;
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.65);
}

.luz-morph-branch-btn.is-tama .luz-morph-branch-dot {
    background: #8b5cf6;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.7);
}

.luz-morph-top-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: transparent;
    color: var(--text-muted, #64748b);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.luz-morph-top-btn:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--luz-accent);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FASE 2 · MÓDULO 3: MICRO-ANIMACIONES VECTORIALES DE COMPRA (SVG + COMETA)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Checkmark SVG con trazado progresivo stroke-dashoffset */
.luz-svg-check {
    display: inline-block;
    vertical-align: -3px;
    margin-right: 4px;
    overflow: visible;
}

.luz-svg-check path {
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    animation: luzDrawCheck 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes luzDrawCheck {
    to { stroke-dashoffset: 0; }
}

.om-add-btn--success {
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.36) !important;
}

/* Arco Vectorial SVG de Vuelo al Carrito */
.luz-fly-svg-stage {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999998;
    overflow: visible;
}

.luz-fly-trail-path {
    fill: none;
    stroke: url(#luzTrailGrad);
    stroke-width: 3;
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.7));
    opacity: 0.85;
    transition: opacity 0.25s ease;
}

/* Orbe luminoso de miniatura en vuelo */
.luz-fly-orb {
    position: fixed;
    left: 0;
    top: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    overflow: hidden;
    border: 2px solid #38bdf8;
    background: #ffffff;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.75), 0 6px 20px rgba(16, 185, 129, 0.45);
    will-change: transform, opacity;
}

.luz-fly-orb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Onda expansiva luminosa al impactar el carrito */
.luz-cart-impact-ring {
    position: fixed;
    width: 44px;
    height: 44px;
    margin-left: -22px;
    margin-top: -22px;
    border-radius: 50%;
    border: 2.5px solid #10b981;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.7);
    pointer-events: none;
    z-index: 999998;
    animation: luzCartRipple 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes luzCartRipple {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2.15); opacity: 0; }
}

/* Física elástica (Spring) para el Carrito Desktop y Móvil */
@keyframes luzCartSpring {
    0%   { transform: scale(1); }
    28%  { transform: scale(1.22) rotate(-4deg); }
    55%  { transform: scale(0.92) rotate(2deg); }
    78%  { transform: scale(1.06) rotate(-1deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.floating-cart.luz-cart-spring,
#mob-nav-cart.luz-cart-spring .mob-nav-cart-wrap {
    animation: luzCartSpring 0.56s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FASE 2 · MÓDULO 4: HISTORIAS DE MARKETING CON ANILLOS CÓNICOS Y PARALLAX
   ═══════════════════════════════════════════════════════════════════════════ */

.omega-extension-phone-card {
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.38s ease,
                border-color 0.38s ease !important;
}

.omega-extension-phone-card:hover {
    transform: translateY(-6px) scale(1.035) !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.28), 0 0 22px rgba(37, 211, 102, 0.25) !important;
    border-color: rgba(56, 189, 248, 0.5) !important;
}

.omega-extension-phone-card .omega-extension-card-bg {
    transform: scale(1.09);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

/* Anillo de Luz Cónico Giratorio (GPU transform rotate) */
.omega-extension-phone-card .omega-extension-avatar-wrapper {
    position: relative !important;
    background: transparent !important;
    padding: 2.5px !important;
    z-index: 1 !important;
    overflow: visible !important;
    box-shadow: 0 0 14px rgba(37, 211, 102, 0.45) !important;
}

.omega-extension-phone-card .omega-extension-avatar-wrapper::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #25d366, #38bdf8, #f59e0b, #ec4899, #25d366);
    animation: luzSpinRing 3.4s linear infinite;
    z-index: -1;
    will-change: transform;
}

.omega-extension-phone-card.luz-story-viewed .omega-extension-avatar-wrapper {
    box-shadow: none !important;
}

.omega-extension-phone-card.luz-story-viewed .omega-extension-avatar-wrapper::before {
    animation: none !important;
    background: rgba(148, 163, 184, 0.55) !important;
}

@keyframes luzSpinRing {
    to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FASE 2 · MÓDULO 5: SELECTOR DE CARNES Y PRODUCTOS AL PESO (GOURMET)
   ═══════════════════════════════════════════════════════════════════════════ */

#modal-peso-producto .weight-modal-card {
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28), 0 0 32px rgba(37, 99, 235, 0.1);
}

body.dark-theme #modal-peso-producto .weight-modal-card {
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65), 0 0 36px rgba(56, 189, 248, 0.12);
}

#modal-peso-producto .weight-pill,
#modal-peso-producto .cut-chip {
    position: relative;
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.24s ease,
                border-color 0.24s ease,
                background 0.24s ease !important;
}

#modal-peso-producto .weight-pill:hover,
#modal-peso-producto .cut-chip:hover {
    transform: translateY(-2px);
}

#modal-peso-producto .weight-pill.active {
    transform: translateY(-2px) scale(1.025);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.25), 0 0 0 1px rgba(56, 189, 248, 0.4) !important;
}

#modal-peso-producto .cut-chip.active {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.22), 0 0 0 1px rgba(245, 158, 11, 0.45) !important;
}

/* Destello reactivo del total calculado al ajustar gramos */
@keyframes luzPricePop {
    0%   { transform: scale(1); filter: brightness(1); }
    40%  { transform: scale(1.09); filter: brightness(1.18); text-shadow: 0 0 16px rgba(16, 185, 129, 0.45); }
    100% { transform: scale(1); filter: brightness(1); }
}

#weight-calc-usd.luz-price-pop,
#total-usd.luz-price-pop {
    display: inline-block;
    animation: luzPricePop 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FASE 3 · MÓDULO 1: CONECTORES VECTORIALES SVG EN PASOS DE COMPRA (01→02→03)
   ═══════════════════════════════════════════════════════════════════════════ */

.supermarket-info-feed .feed-steps-section {
    position: relative !important;
    padding: 18px 0 !important;
}

.luz-steps-connector-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}

.luz-steps-track-bg {
    fill: none;
    stroke: rgba(148, 163, 184, 0.25);
    stroke-width: 2.5;
    stroke-dasharray: 6 6;
    stroke-linecap: round;
}

body.dark-theme .luz-steps-track-bg {
    stroke: rgba(148, 163, 184, 0.16);
}

.luz-steps-track-glow {
    fill: none;
    stroke: url(#luzStepsGrad);
    stroke-width: 3.5;
    stroke-linecap: round;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.55));
    transition: stroke-dashoffset 0.12s linear;
}

.supermarket-info-feed .feed-steps-section .feed-grid-3 {
    position: relative !important;
    z-index: 1 !important;
}

.supermarket-info-feed .feed-step-card {
    position: relative !important;
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    border-radius: 18px !important;
    padding: 24px 22px !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease,
                border-color 0.4s ease !important;
}

body.dark-theme .supermarket-info-feed .feed-step-card {
    background: rgba(31, 41, 55, 0.86) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3) !important;
}

.supermarket-info-feed .feed-step-card.luz-step-active {
    transform: translateY(-5px) !important;
    border-color: rgba(37, 99, 235, 0.42) !important;
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.12), 0 0 0 1px rgba(56, 189, 248, 0.22) !important;
}

body.dark-theme .supermarket-info-feed .feed-step-card.luz-step-active {
    border-color: rgba(56, 189, 248, 0.48) !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5), 0 0 22px rgba(56, 189, 248, 0.16) !important;
}

.supermarket-info-feed .feed-step-card .feed-step-number {
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease !important;
}

.supermarket-info-feed .feed-step-card.luz-step-active .feed-step-number {
    opacity: 1 !important;
    color: #2563eb !important;
    transform: scale(1.06) !important;
    text-shadow: 0 4px 18px rgba(37, 99, 235, 0.25);
}

body.dark-theme .supermarket-info-feed .feed-step-card.luz-step-active .feed-step-number {
    color: #38bdf8 !important;
    text-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FASE 3 · MÓDULO 2: RECETARIO EXPRESS 3D & RÁFAGA DE INGREDIENTES
   ═══════════════════════════════════════════════════════════════════════════ */

.om-recipes-grid {
    perspective: 1100px;
}

.om-recipe-card {
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
    .om-recipe-card::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        pointer-events: none;
        opacity: 0;
        background: radial-gradient(
            240px circle at var(--luz-rx, 50%) var(--luz-ry, 30%),
            rgba(245, 158, 11, 0.14),
            transparent 70%
        );
        transition: opacity 0.3s ease;
        z-index: 3;
    }

    .om-recipe-card:hover::after {
        opacity: 1;
    }
}

.om-recipe-card .om-recipe-action svg {
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.om-recipe-card:hover .om-recipe-action svg {
    transform: translateX(4px);
}

#om-recipe-modal .recipe-ingredient-row {
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.22s ease,
                box-shadow 0.22s ease,
                background 0.22s ease !important;
}

#om-recipe-modal .recipe-ingredient-row.checked {
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.45) !important;
}

body.dark-theme #om-recipe-modal .recipe-ingredient-row.checked {
    border-color: rgba(56, 189, 248, 0.45) !important;
    background: rgba(56, 189, 248, 0.08) !important;
}

#btn-add-recipe {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%) !important;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease !important;
}

#btn-add-recipe:hover {
    transform: translateY(-2px) scale(1.01) !important;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.38) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FASE 3 · MÓDULO 3: BARRA LÍQUIDA CON ONDA SVG EN EL CARRITO (#cart-drawer)
   ═══════════════════════════════════════════════════════════════════════════ */

#cart-delivery-progress-wrap .delivery-progress-bar-bg {
    height: 14px !important;
    border-radius: 9999px !important;
    background: rgba(15, 23, 42, 0.08) !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    position: relative;
}

body.dark-theme #cart-delivery-progress-wrap .delivery-progress-bar-bg {
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.45);
}

#cart-delivery-progress-wrap .delivery-progress-bar-fill {
    height: 100% !important;
    border-radius: 9999px !important;
    background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 52%, #10b981 100%) !important;
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.45);
    transition: width 0.65s cubic-bezier(0.22, 1, 0.36, 1) !important;
    position: relative;
    overflow: hidden;
}

#cart-delivery-progress-wrap .delivery-progress-bar-fill.completed {
    background: linear-gradient(90deg, #10b981 0%, #34d399 55%, #f59e0b 100%) !important;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.65) !important;
}

/* Onda líquida continua dentro de la barra de progreso */
.luz-liquid-wave-track {
    position: absolute;
    inset: 0;
    width: 200%;
    height: 100%;
    opacity: 0.36;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' preserveAspectRatio='none'%3E%3Cpath d='M0 7 Q 15 1, 30 7 T 60 7 T 90 7 T 120 7 L 120 14 L 0 14 Z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 60px 100%;
    animation: luzLiquidFlow 1.9s linear infinite;
    will-change: transform;
}

@keyframes luzLiquidFlow {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-60px, 0, 0); }
}

/* Micro-rebote elástico en cantidades del carrito */
@keyframes luzQtyBounce {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.28); color: #2563eb; }
    100% { transform: scale(1); }
}

.cart-item-qty span.luz-qty-pop {
    display: inline-block;
    animation: luzQtyBounce 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.cart-item-qty button {
    transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease !important;
}

.cart-item-qty button:active {
    transform: scale(0.86) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FASE 3 · MÓDULO 4: SUCURSALES INTELIGENTES CON PULSO DE HORARIO EN VIVO
   ═══════════════════════════════════════════════════════════════════════════ */

#nosotros .sucursal-card {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease,
                border-color 0.4s ease !important;
}

#nosotros .sucursal-card.luz-branch-gp:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(220, 38, 38, 0.42) !important;
    box-shadow: 0 18px 38px rgba(192, 57, 43, 0.14), 0 0 0 1px rgba(220, 38, 38, 0.2) !important;
}

#nosotros .sucursal-card.luz-branch-tama:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(139, 92, 246, 0.45) !important;
    box-shadow: 0 18px 38px rgba(109, 95, 138, 0.18), 0 0 0 1px rgba(139, 92, 246, 0.24) !important;
}

.luz-branch-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 4px 0 12px 0;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    width: fit-content;
}

.luz-branch-live-pill.is-open {
    background: rgba(16, 185, 129, 0.11);
    border: 1px solid rgba(16, 185, 129, 0.32);
    color: #047857;
}

body.dark-theme .luz-branch-live-pill.is-open {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(52, 211, 153, 0.35);
    color: #6ee7b7;
}

.luz-branch-live-pill.is-closed {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.34);
    color: #b45309;
}

body.dark-theme .luz-branch-live-pill.is-closed {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(251, 191, 36, 0.35);
    color: #fde68a;
}

.luz-branch-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.luz-branch-live-pill.is-open .luz-branch-status-dot {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.luz-branch-live-pill.is-open .luz-branch-status-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.45);
    animation: luzPulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

.luz-branch-live-pill.is-closed .luz-branch-status-dot {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.7);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FASE 3 · MÓDULO 5: OLA VECTORIAL FLUIDA DE CIERRE HACIA EL FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */

.luz-footer-wave-wrap {
    position: relative;
    width: 100%;
    height: 76px;
    background-color: #f8f9fa;
    overflow: hidden;
    line-height: 0;
    margin-bottom: -2px;
    pointer-events: none;
    transition: background-color 0.3s ease;
}

body.dark-theme .luz-footer-wave-wrap {
    background-color: #111827;
}

.luz-footer-wave-back,
.luz-footer-wave-front {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.luz-footer-wave-back {
    opacity: 0.7;
    will-change: transform;
}

.luz-footer-wave-back path {
    fill: rgba(30, 58, 95, 0.14);
}

body.dark-theme .luz-footer-wave-back path {
    fill: rgba(56, 189, 248, 0.1);
}

.luz-footer-wave-front path.luz-footer-fill {
    fill: #0f172a;
}

.luz-footer-wave-front path.luz-footer-crest {
    fill: none;
    stroke: url(#luzFooterCrestGrad);
    stroke-width: 2;
    opacity: 0.75;
}

/* Eliminar corte recto superior del footer al acoplarse con la ola */
.main-footer.luz-has-wave {
    border-top: none !important;
    padding-top: 38px !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   7. FASE 4 · MÓDULO 1: TRANSICIÓN DÍA/NOCHE CINEMÁTICA CON ONDA RADIAL
   ═══════════════════════════════════════════════════════════════════════════ */
html.luz-vt-active::view-transition-old(root),
html.luz-vt-active::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

html.luz-vt-active::view-transition-old(root) {
    z-index: 1;
}

html.luz-vt-active::view-transition-new(root) {
    z-index: 2147483646;
}

#luz-theme-eclipse-veil {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999990;
    will-change: clip-path, opacity;
}

#luz-theme-eclipse-veil.to-dark {
    background: radial-gradient(circle at var(--luz-tx, 50%) var(--luz-ty, 50%), rgba(56, 189, 248, 0.22) 0%, #0f172a 48%, #090d16 100%);
}

#luz-theme-eclipse-veil.to-light {
    background: radial-gradient(circle at var(--luz-tx, 50%) var(--luz-ty, 50%), rgba(251, 191, 36, 0.26) 0%, #f8fafc 50%, #ffffff 100%);
}

.om-topbar-theme,
#mob-theme-btn {
    position: relative;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease !important;
}

.om-topbar-theme:hover,
#mob-theme-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

.luz-theme-spin {
    animation: luzThemeOrbitSpin 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes luzThemeOrbitSpin {
    0% { transform: scale(0.84) rotate(-95deg); }
    65% { transform: scale(1.12) rotate(12deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   8. FASE 4 · MÓDULO 2: PARALLAX MULTICAPA 3D EN CARRUSEL & BARRA LÁSER
   ═══════════════════════════════════════════════════════════════════════════ */
.om-carousel.luz-hero-3d .om-slide {
    overflow: hidden;
}

.om-carousel.luz-hero-3d .om-slide-bg {
    will-change: transform;
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    transform: scale(1.045);
}

.om-carousel.luz-hero-3d .om-slide-caption > * {
    will-change: transform;
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Barra de progreso convertida en cápsula láser con punta incandescente */
.om-carousel-progress {
    height: 4px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    overflow: visible !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#om-progress-bar {
    height: 100% !important;
    background: linear-gradient(90deg, #2563eb 0%, #38bdf8 58%, #f59e0b 100%) !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.8), 0 0 5px rgba(245, 158, 11, 0.55);
    border-radius: 999px;
    position: relative;
}

#om-progress-bar::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ffffff;
    transform: translateY(-50%);
    box-shadow: 0 0 10px 2px #38bdf8, 0 0 20px 4px rgba(245, 158, 11, 0.85);
    pointer-events: none;
}

.om-carousel-dots .om-dot {
    transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.28s ease, box-shadow 0.28s ease !important;
}

.om-carousel-dots .om-dot.active {
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.75);
}

/* ═══════════════════════════════════════════════════════════════════════════
   9. FASE 4 · MÓDULO 3: ODÓMETRO / TICKER DIGITAL EN PRECIOS Y DIVISAS
   ═══════════════════════════════════════════════════════════════════════════ */
#total-usd,
#total-ves,
#total-cop,
#cart-total-floating,
.floating-cart .total-price,
#weight-calc-usd,
#total-productos-count,
.price-usd {
    font-variant-numeric: tabular-nums;
}

.luz-ticker-roll {
    display: inline-block;
    animation: luzTickerDrum 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes luzTickerDrum {
    0% {
        transform: translateY(28%) scale(0.96);
        opacity: 0.55;
        filter: blur(0.6px);
    }
    55% {
        transform: translateY(-5%) scale(1.04);
        opacity: 1;
        filter: blur(0);
        text-shadow: 0 0 14px rgba(16, 185, 129, 0.42);
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
        filter: blur(0);
        text-shadow: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   10. FASE 4 · MÓDULO 4: ESTADOS VACÍOS SVG VIVOS & SKELETONS LÍQUIDOS
   ═══════════════════════════════════════════════════════════════════════════ */
#loading-skeletons .skeleton-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: linear-gradient(110deg, #f1f5f9 22%, #e2e8f0 38%, #f8fafc 50%, #f1f5f9 65%) !important;
    background-size: 240% 100% !important;
    animation: luzLiquidSkeleton 1.65s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

body.dark-theme #loading-skeletons .skeleton-card {
    border-color: rgba(51, 65, 85, 0.7);
    background: linear-gradient(110deg, #1e293b 22%, rgba(56, 189, 248, 0.14) 42%, #26354d 52%, #1e293b 68%) !important;
    background-size: 240% 100% !important;
}

@keyframes luzLiquidSkeleton {
    0% { background-position: 120% 50%; }
    100% { background-position: -120% 50%; }
}

.luz-enhanced-empty > .no-results-icon,
.luz-enhanced-empty > svg.lucide-package-x,
.luz-enhanced-empty > .empty-cart-icon,
.luz-enhanced-empty > svg.lucide-shopping-bag {
    display: none !important;
}

.luz-empty-svg-scene {
    position: relative;
    width: 136px;
    height: 122px;
    margin: 0 auto 12px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.luz-empty-svg-main {
    width: 100%;
    height: 100%;
    overflow: visible;
    animation: luzZeroGravity 4.2s ease-in-out infinite;
    filter: drop-shadow(0 12px 22px rgba(37, 99, 235, 0.18));
}

body.dark-theme .luz-empty-svg-main {
    filter: drop-shadow(0 14px 26px rgba(56, 189, 248, 0.28));
}

.luz-empty-orb-1 {
    animation: luzBioFloatA 3.4s ease-in-out infinite;
    transform-origin: center;
}

.luz-empty-orb-2 {
    animation: luzBioFloatB 4.1s ease-in-out infinite;
    transform-origin: center;
}

.luz-empty-orb-3 {
    animation: luzBioFloatA 2.9s ease-in-out infinite reverse;
    transform-origin: center;
}

.luz-empty-floor-shadow {
    animation: luzShadowBreath 4.2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes luzZeroGravity {
    0%, 100% { transform: translate3d(0, -6px, 0) rotate(-1.6deg); }
    50% { transform: translate3d(0, 6px, 0) rotate(1.6deg); }
}

@keyframes luzBioFloatA {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
    50% { transform: translate3d(4px, -7px, 0) scale(1.22); opacity: 1; }
}

@keyframes luzBioFloatB {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.7; }
    50% { transform: translate3d(-5px, -6px, 0) scale(1.18); opacity: 1; }
}

@keyframes luzShadowBreath {
    0%, 100% { transform: scaleX(0.84); opacity: 0.22; }
    50% { transform: scaleX(1.06); opacity: 0.4; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   11. FASE 4 · MÓDULO 5: HAPTIC GLOW RIPPLE EN BARRA INFERIOR MÓVIL
   ═══════════════════════════════════════════════════════════════════════════ */
#mobile-bottom-nav .mob-nav-item {
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.22s ease, transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#mobile-bottom-nav .mob-nav-item:active {
    transform: scale(0.94);
}

#mobile-bottom-nav .mob-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 24px;
    height: 3px;
    border-radius: 0 0 6px 6px;
    background: linear-gradient(90deg, #2563eb, #38bdf8, #10b981);
    transform: translateX(-50%) scaleX(0);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
    opacity: 0;
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.65);
    pointer-events: none;
}

#mobile-bottom-nav .mob-nav-item.mob-nav-active::before {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
}

.luz-haptic-ripple {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    background: radial-gradient(circle, rgba(56, 189, 248, 0.46) 0%, rgba(37, 99, 235, 0.22) 55%, rgba(16, 185, 129, 0) 75%);
    animation: luzHapticExpand 0.54s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    z-index: 0;
}

body.dark-theme .luz-haptic-ripple {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.55) 0%, rgba(16, 185, 129, 0.26) 55%, rgba(56, 189, 248, 0) 78%);
}

@keyframes luzHapticExpand {
    0% {
        transform: translate(-50%, -50%) scale(0.2);
        opacity: 0.95;
    }
    100% {
        transform: translate(-50%, -50%) scale(6.5);
        opacity: 0;
    }
}

#mob-nav-cart-badge.luz-badge-ding {
    transform-origin: 50% 0%;
    animation: luzBellSwing3D 0.68s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.7);
}

@keyframes luzBellSwing3D {
    0% { transform: scale(1) rotate(0deg); }
    20% { transform: scale(1.32) rotate(18deg); }
    42% { transform: scale(1.24) rotate(-15deg); }
    64% { transform: scale(1.12) rotate(10deg); }
    82% { transform: scale(1.04) rotate(-5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   12. FASE 5 · MÓDULO 1: CÁPSULA LÍQUIDA EN CATEGORÍAS Y FILTROS
   ═══════════════════════════════════════════════════════════════════════════ */
.om-qcat-grid.luz-qcat-ready {
    position: relative;
}

.luz-qcat-glider {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 16px;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(56, 189, 248, 0.16) 55%, rgba(16, 185, 129, 0.1) 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.52);
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.65);
    transition:
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.25s ease;
    will-change: transform, width, height, opacity;
}

body.dark-theme .luz-qcat-glider {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18) 0%, rgba(37, 99, 235, 0.22) 55%, rgba(16, 185, 129, 0.15) 100%);
    border-color: rgba(56, 189, 248, 0.65);
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.om-qcat-grid.luz-qcat-ready .om-qcat-item {
    position: relative;
    z-index: 1;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.om-qcat-grid.luz-qcat-ready .om-qcat-item.luz-qcat-active {
    border-color: rgba(37, 99, 235, 0.48) !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12);
}

.om-qcat-grid.luz-qcat-ready .om-qcat-item:hover .om-qcat-ico {
    transform: scale(1.12) rotate(-4deg);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Indicador líquido vertical en departamentos del sidebar */
#categorias-filter.luz-sidebar-ready {
    position: relative;
}

.luz-sidebar-glider {
    position: absolute;
    left: 0;
    top: 0;
    width: 3.5px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(180deg, #2563eb, #38bdf8, #10b981);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.75);
    pointer-events: none;
    opacity: 0;
    transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), height 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
    z-index: 2;
}

/* Píldoras nutricionales magnéticas */
.om-nutri-filters {
    position: relative;
}

.om-nutri-pill {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease !important;
}

.om-nutri-pill:hover {
    transform: translateY(-2px);
}

.om-nutri-pill.active {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25), 0 6px 16px rgba(16, 185, 129, 0.22) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   13. FASE 5 · MÓDULO 2: GLASSMORPHIC SEARCH HUD & SPOTLIGHT PREDICTIVO
   ═══════════════════════════════════════════════════════════════════════════ */
.catalog-search-wrapper {
    position: relative;
    transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.catalog-search-wrapper.luz-search-focused {
    z-index: 950;
}

.catalog-search-wrapper.luz-search-focused input#catalogo-search {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22), 0 10px 26px rgba(37, 99, 235, 0.14) !important;
}

.catalog-search-wrapper.luz-search-focused .search-icon {
    color: #2563eb !important;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6));
}

#luz-catalog-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) scale(0.6);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(148, 163, 184, 0.22);
    color: var(--text-muted, #64748b);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease;
}

#luz-catalog-search-clear.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
}

#luz-catalog-search-clear:hover {
    background: rgba(239, 68, 68, 0.16);
    color: #ef4444;
}

#luz-search-hud {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 300px;
    width: max(100%, 320px);
    max-width: min(420px, calc(100vw - 32px));
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16), 0 2px 10px rgba(37, 99, 235, 0.1);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 8px, 0) scale(0.98);
    transition: opacity 0.24s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.24s ease;
}

body.dark-theme #luz-search-hud {
    background: rgba(15, 23, 42, 0.94);
    border-color: rgba(56, 189, 248, 0.38);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55), 0 0 20px rgba(56, 189, 248, 0.12);
}

#luz-search-hud.open {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0) scale(1);
}

.luz-hud-section-lbl {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

body.dark-theme .luz-hud-section-lbl {
    color: #94a3b8;
}

.luz-hud-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.luz-hud-chip {
    border: 1px solid rgba(203, 213, 225, 0.85);
    background: rgba(248, 250, 252, 0.9);
    color: #1e293b;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, background-color 0.2s ease;
}

body.dark-theme .luz-hud-chip {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(71, 85, 105, 0.8);
    color: #f1f5f9;
}

.luz-hud-chip:hover {
    transform: translateY(-1.5px);
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
}

.luz-hud-matches {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.luz-hud-match-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.luz-hud-match-row:hover {
    background: rgba(56, 189, 248, 0.11);
    transform: translateX(3px);
}

.luz-hud-match-thumb {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    flex-shrink: 0;
}

.luz-hud-match-info {
    flex: 1;
    min-width: 0;
}

.luz-hud-match-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-main, #0f172a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.luz-hud-match-price {
    font-size: 0.74rem;
    font-weight: 800;
    color: #10b981;
    font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════════════════════════════
   14. FASE 5 · MÓDULO 3: MÉTODOS DE PAGO 3D & COPIADO HÁPTICO EN CHECKOUT
   ═══════════════════════════════════════════════════════════════════════════ */
.luz-pay-chips-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 8px;
}

.luz-pay-card-btn {
    border: 1px solid var(--border-color, #e2e8f0);
    background: var(--bg-panel, #f8fafc);
    color: var(--text-main, #1e293b);
    border-radius: 10px;
    padding: 6px 6px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-align: center;
    transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.luz-pay-card-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.55);
}

.luz-pay-card-btn.active {
    border-color: var(--luz-pay-accent, #2563eb);
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.1), rgba(56, 189, 248, 0.08));
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.16), inset 0 0 0 1px var(--luz-pay-accent, #2563eb);
    transform: translateY(-1px);
}

.luz-pay-card-ico {
    font-size: 1rem;
    line-height: 1.1;
}

#payment-calc-details.luz-pay-enhanced {
    border-left: 3.5px solid var(--luz-pay-accent, #2563eb) !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

.luz-copy-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.32);
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    vertical-align: middle;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body.dark-theme .luz-copy-chip {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.14);
    color: #38bdf8;
}

.luz-copy-chip:hover {
    transform: scale(1.06);
    background: rgba(37, 99, 235, 0.16);
}

.luz-copy-chip.copied {
    background: rgba(16, 185, 129, 0.18) !important;
    border-color: #10b981 !important;
    color: #059669 !important;
    transform: scale(1.08);
}

body.dark-theme .luz-copy-chip.copied {
    color: #34d399 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   15. FASE 5 · MÓDULO 4: ZOOM ÓPTICO FLOTANTE & PORTAL QUICK-VIEW 3D
   ═══════════════════════════════════════════════════════════════════════════ */
#products-grid .product-card .product-image-wrapper {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

#products-grid .product-card .product-image-wrapper img {
    will-change: transform;
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

#products-grid .product-card:hover .product-image-wrapper img {
    transform: scale(1.075);
}

.luz-qv-trigger-hint {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transform: translateY(4px) scale(0.92);
    transition: opacity 0.24s ease, transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 3;
}

#products-grid .product-card:hover .luz-qv-trigger-hint {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#luz-quickview-modal {
    position: fixed;
    inset: 0;
    z-index: 99995;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.26s ease, visibility 0.26s ease;
}

#luz-quickview-modal.open {
    opacity: 1;
    visibility: visible;
}

.luz-qv-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 28px 65px rgba(15, 23, 42, 0.32), 0 0 0 1px rgba(56, 189, 248, 0.18);
    overflow: hidden;
    transform: translate3d(0, 22px, 0) scale(0.93);
    transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

body.dark-theme .luz-qv-card {
    background: #0f172a;
    border-color: rgba(51, 65, 85, 0.85);
    color: #f8fafc;
}

#luz-quickview-modal.open .luz-qv-card {
    transform: translate3d(0, 0, 0) scale(1);
}

.luz-qv-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(255, 255, 255, 0.88);
    color: #0f172a;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    transition: transform 0.22s ease, background-color 0.2s ease;
}

body.dark-theme .luz-qv-close {
    background: rgba(30, 41, 59, 0.9);
    color: #f8fafc;
}

.luz-qv-close:hover {
    transform: rotate(90deg) scale(1.08);
}

.luz-qv-stage {
    position: relative;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: radial-gradient(circle at 50% 55%, rgba(56, 189, 248, 0.16) 0%, rgba(248, 250, 252, 0.95) 72%);
}

body.dark-theme .luz-qv-stage {
    background: radial-gradient(circle at 50% 55%, rgba(56, 189, 248, 0.2) 0%, rgba(15, 23, 42, 0.96) 75%);
}

.luz-qv-stage img {
    max-width: 100%;
    max-height: 190px;
    object-fit: contain;
    filter: drop-shadow(0 14px 24px rgba(15, 23, 42, 0.16));
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.luz-qv-stage:hover img {
    transform: scale(1.06);
}

.luz-qv-body {
    padding: 18px 20px 20px;
}

.luz-qv-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.luz-qv-pill {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

body.dark-theme .luz-qv-pill {
    background: rgba(56, 189, 248, 0.16);
    color: #38bdf8;
}

.luz-qv-pill.emerald {
    background: rgba(16, 185, 129, 0.14);
    color: #059669;
}

body.dark-theme .luz-qv-pill.emerald {
    color: #34d399;
}

.luz-qv-pill.gold {
    background: rgba(245, 158, 11, 0.16);
    color: #d97706;
}

.luz-qv-title {
    font-size: 1.08rem;
    font-weight: 800;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.luz-qv-code {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 12px;
}

.luz-qv-prices {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(241, 245, 249, 0.85);
    margin-bottom: 14px;
}

body.dark-theme .luz-qv-prices {
    background: rgba(30, 41, 59, 0.85);
}

.luz-qv-usd {
    font-size: 1.4rem;
    font-weight: 900;
    color: #1e3a5f;
    font-variant-numeric: tabular-nums;
}

body.dark-theme .luz-qv-usd {
    color: #38bdf8;
}

.luz-qv-conversions {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

body.dark-theme .luz-qv-conversions {
    color: #cbd5e1;
}

.luz-qv-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 12px;
    font-weight: 800;
}

/* ═══════════════════════════════════════════════════════════════════════════
   16. FASE 5 · MÓDULO 5: TOASTS CINEMÁTICOS & PARTÍCULAS AMBIENTALES DE LUZ
   ═══════════════════════════════════════════════════════════════════════════ */
#toast-container .toast {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.24), 0 0 16px rgba(56, 189, 248, 0.14) !important;
    border-radius: 14px !important;
}

.luz-toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #38bdf8, #10b981, #f59e0b);
    transform-origin: left center;
    animation: luzToastCountdown 3.45s linear forwards;
    pointer-events: none;
}

@keyframes luzToastCountdown {
    0% { transform: scaleX(1); }
    100% { transform: scaleX(0); }
}

#om-social-proof-toast {
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    border: 1px solid rgba(56, 189, 248, 0.28);
}

/* Partículas ambientales de luz flotantes en Hero Viewport */
.luz-light-motes-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.luz-light-mote {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.65) 0%, rgba(56, 189, 248, 0.35) 55%, rgba(56, 189, 248, 0) 75%);
    opacity: 0;
    will-change: transform, opacity;
    animation: luzMoteDrift var(--mote-dur, 9s) ease-in-out var(--mote-delay, 0s) infinite;
}

body.dark-theme .luz-light-mote {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.8) 0%, rgba(16, 185, 129, 0.4) 55%, rgba(16, 185, 129, 0) 78%);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.45);
}

@keyframes luzMoteDrift {
    0% {
        transform: translate3d(0, 12px, 0) scale(0.75);
        opacity: 0;
    }
    30% {
        opacity: 0.72;
    }
    70% {
        opacity: 0.55;
    }
    100% {
        transform: translate3d(var(--mote-dx, 18px), -44px, 0) scale(1.15);
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   17. FASE 6 · MÓDULO 1: TICKET TÉRMICO DIGITAL INTERACTIVO (FACTURA)
   ═══════════════════════════════════════════════════════════════════════════ */
#invoice-modal-content.luz-thermal-ticket {
    transform-origin: top center;
    animation: luzThermalUnroll 0.52s cubic-bezier(0.22, 1, 0.36, 1);
    background: linear-gradient(180deg, #ffffff 0%, #fcfdfd 100%) !important;
    border-top: 4px solid #1e3a5f;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.42), 0 0 0 1px rgba(56, 189, 248, 0.22) !important;
}

@keyframes luzThermalUnroll {
    0% {
        opacity: 0;
        transform: translateY(-28px) scaleY(0.88);
    }
    70% {
        opacity: 1;
        transform: translateY(3px) scaleY(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

.luz-ticket-serrated-divider {
    width: 100%;
    height: 10px;
    margin: 8px 0 10px;
    background-image: radial-gradient(circle at 6px 0px, transparent 5px, #f1f5f9 5.5px, transparent 6.5px);
    background-size: 12px 10px;
    border-bottom: 1.5px dashed #cbd5e1;
}

.luz-ticket-holo-stamp {
    margin: 12px auto 10px;
    padding: 6px 14px;
    border-radius: 999px;
    width: fit-content;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #0f172a;
    background: linear-gradient(120deg, rgba(56, 189, 248, 0.22) 0%, rgba(16, 185, 129, 0.24) 48%, rgba(245, 158, 11, 0.22) 100%);
    border: 1px solid rgba(56, 189, 248, 0.5);
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.16);
    background-size: 200% 100%;
    animation: luzHoloSheen 4s ease-in-out infinite;
    text-align: center;
}

@keyframes luzHoloSheen {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.luz-ticket-barcode-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin: 6px auto 10px;
    opacity: 0.85;
}

.luz-ticket-barcode-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.67rem;
    letter-spacing: 0.22em;
    color: #475569;
    font-weight: 700;
}

#luz-copy-invoice-btn {
    width: 100%;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1.5px dashed rgba(37, 99, 235, 0.45);
    background: rgba(37, 99, 235, 0.06);
    color: #1e3a5f;
    font-size: 0.81rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

#luz-copy-invoice-btn:hover {
    background: rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

#luz-copy-invoice-btn.copied {
    background: rgba(16, 185, 129, 0.16);
    border-color: #10b981;
    color: #059669;
}

@media screen {
    body.dark-theme #invoice-modal-content.luz-thermal-ticket {
        background: linear-gradient(180deg, #0f172a 0%, #17253b 100%) !important;
        border-top: 4px solid #38bdf8 !important;
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(56, 189, 248, 0.25) !important;
    }
    body.dark-theme .luz-ticket-serrated-divider {
        background-image: radial-gradient(circle at 6px 0px, transparent 5px, rgba(56, 189, 248, 0.18) 5.5px, transparent 6.5px);
        border-bottom: 1.5px dashed rgba(148, 163, 184, 0.3);
    }
    body.dark-theme .luz-ticket-vip-badge {
        background: rgba(139, 92, 246, 0.18) !important;
        border-color: rgba(167, 139, 250, 0.45) !important;
        color: #ddd6fe !important;
    }
    body.dark-theme .luz-ticket-holo-stamp {
        color: #f8fafc !important;
        background: linear-gradient(120deg, rgba(56, 189, 248, 0.22) 0%, rgba(16, 185, 129, 0.24) 48%, rgba(245, 158, 11, 0.22) 100%) !important;
        border: 1px solid rgba(56, 189, 248, 0.45) !important;
    }
    body.dark-theme .luz-ticket-barcode-wrap {
        opacity: 0.95;
    }
    body.dark-theme .luz-ticket-barcode-wrap svg rect {
        fill: #e2e8f0 !important;
    }
    body.dark-theme .luz-ticket-barcode-code {
        color: #cbd5e1 !important;
    }
    body.dark-theme #luz-copy-invoice-btn {
        color: #7dd3fc !important;
        background: rgba(56, 189, 248, 0.12) !important;
        border-color: rgba(56, 189, 248, 0.4) !important;
    }
    body.dark-theme #luz-copy-invoice-btn:hover {
        background: rgba(56, 189, 248, 0.2) !important;
    }
    body.dark-theme #luz-copy-invoice-btn.copied {
        background: rgba(16, 185, 129, 0.2) !important;
        border-color: #34d399 !important;
        color: #6ee7b7 !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   18. FASE 6 · MÓDULO 2: LÍNEA DE TIEMPO DINÁMICA EN HISTORIAL DE PEDIDOS
   ═══════════════════════════════════════════════════════════════════════════ */
#historial-modal .modal-card {
    border-radius: 20px !important;
    border: 1px solid rgba(56, 189, 248, 0.28);
    box-shadow: 0 26px 64px rgba(15, 23, 42, 0.3);
}

#historial-list-container.luz-timeline-container {
    position: relative;
    padding-left: 24px !important;
}

#historial-list-container.luz-timeline-container::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 16px;
    bottom: 16px;
    width: 2.5px;
    border-radius: 999px;
    background: linear-gradient(180deg, #10b981 0%, #38bdf8 55%, rgba(148, 163, 184, 0.28) 100%);
}

#historial-list-container.luz-timeline-container .historial-item {
    position: relative;
    border-radius: 14px !important;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    animation: luzTimelineCardIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) var(--luz-hist-delay, 0ms) both;
}

#historial-list-container.luz-timeline-container .historial-item:hover {
    transform: translateX(3px);
    border-color: rgba(56, 189, 248, 0.55) !important;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.1);
}

.luz-timeline-dot {
    position: absolute;
    left: -19px;
    top: 18px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #38bdf8;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22);
}

body.dark-theme .luz-timeline-dot {
    border-color: #1e293b;
}

.luz-timeline-dot.is-latest {
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.28), 0 0 12px rgba(16, 185, 129, 0.7);
}

@keyframes luzTimelineCardIn {
    0% {
        opacity: 0;
        transform: translate3d(10px, 8px, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   19. FASE 6 · MÓDULO 3: CABECERA GLASSMORPHIC DINÁMICA & SEDE LUMINOUS
   ═══════════════════════════════════════════════════════════════════════════ */
#om-header.luz-header-scrolled {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(16px) saturate(165%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(165%) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 1px 0 rgba(56, 189, 248, 0.24) !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

body.dark-theme #om-header.luz-header-scrolled {
    background: rgba(15, 23, 42, 0.88) !important;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(56, 189, 248, 0.25) !important;
}

.om-branch-box.luz-sede-gp {
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.22), 0 4px 12px rgba(37, 99, 235, 0.08);
    transition: box-shadow 0.28s ease, border-color 0.28s ease;
}

.om-branch-box.luz-sede-tama {
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.35), 0 4px 14px rgba(245, 158, 11, 0.14);
    transition: box-shadow 0.28s ease, border-color 0.28s ease;
}

.om-header-actions .om-wa-btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease !important;
}

.om-header-actions .om-wa-btn:hover {
    transform: translateY(-1.5px) scale(1.03);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.38);
}

/* ═══════════════════════════════════════════════════════════════════════════
   20. FASE 6 · MÓDULO 4: BALIZA BIOLUMINISCENTE EN SOPORTE & INCIDENTES
   ═══════════════════════════════════════════════════════════════════════════ */
.omega-chat-fab-btn::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1.5px solid rgba(56, 189, 248, 0.55);
    animation: luzSupportBeacon 2.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    pointer-events: none;
}

@keyframes luzSupportBeacon {
    0% {
        transform: scale(0.92);
        opacity: 0.78;
    }
    75% {
        transform: scale(1.24);
        opacity: 0;
    }
    100% {
        transform: scale(1.24);
        opacity: 0;
    }
}

.luz-inc-quicktags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.luz-inc-qtag {
    border: 1px solid rgba(203, 213, 225, 0.9);
    background: #f8fafc;
    color: #334155;
    font-size: 0.73rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

body.dark-theme .luz-inc-qtag {
    background: #0f172a;
    border-color: #334155;
    color: #cbd5e1;
}

.luz-inc-qtag:hover,
.luz-inc-qtag.active {
    border-color: #f43f5e;
    background: rgba(244, 63, 94, 0.1);
    color: #f43f5e;
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   21. FASE 6 · MÓDULO 5: RADAR DE CONECTIVIDAD & RESILIENCIA OFFLINE
   ═══════════════════════════════════════════════════════════════════════════ */
#luz-net-radar {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translate3d(-50%, -140%, 0);
    z-index: 250000;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 0.79rem;
    font-weight: 700;
    color: #ffffff;
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.32);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, background-color 0.3s ease;
    max-width: calc(100vw - 24px);
}

#luz-net-radar.visible {
    transform: translate3d(-50%, 0, 0);
    opacity: 1;
}

#luz-net-radar.is-offline {
    background: rgba(146, 64, 14, 0.94);
    border: 1px solid rgba(251, 191, 36, 0.65);
}

#luz-net-radar.is-online {
    background: rgba(6, 95, 70, 0.94);
    border: 1px solid rgba(52, 211, 153, 0.65);
}

.luz-radar-dot {
    position: relative;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #fbbf24;
}

#luz-net-radar.is-online .luz-radar-dot {
    background: #34d399;
}

.luz-radar-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid currentColor;
    color: #fbbf24;
    animation: luzRadarPing 1.6s ease-out infinite;
}

#luz-net-radar.is-online .luz-radar-dot::after {
    color: #34d399;
}

@keyframes luzRadarPing {
    0% { transform: scale(0.7); opacity: 0.9; }
    100% { transform: scale(2.1); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   22. FASE 7 · MÓDULO 1: GARANTÍA DE FRESCURA & INFO CON SCROLLYTELLING SVG
   ═══════════════════════════════════════════════════════════════════════════ */
.feed-card-frescura,
.feed-info-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.36s ease,
                border-color 0.36s ease !important;
}

.feed-card-frescura.luz-frescura-pending,
.feed-info-card.luz-frescura-pending {
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(0.98);
}

.feed-card-frescura.luz-frescura-visible,
.feed-info-card.luz-frescura-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    transition: opacity 0.52s ease,
                transform 0.56s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease !important;
}

.feed-card-frescura:hover,
.feed-info-card:hover {
    transform: translate3d(0, -4px, 0);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09), 0 0 0 1px rgba(56, 189, 248, 0.24) !important;
}

body.dark-theme .feed-card-frescura:hover,
body.dark-theme .feed-info-card:hover {
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(56, 189, 248, 0.28) !important;
}

/* Cadena de Frío: Aura criogénica cian */
.feed-card-frescura.luz-frescura-visible .icon-cold {
    position: relative;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35), 0 0 22px rgba(56, 189, 248, 0.28);
    animation: luzCryoPulse 3.2s ease-in-out infinite;
}

@keyframes luzCryoPulse {
    0%, 100% {
        box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.28), 0 0 14px rgba(56, 189, 248, 0.18);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14), 0 0 26px rgba(56, 189, 248, 0.38);
        transform: scale(1.05);
    }
}

/* Selección Manual: Trazado SVG + haz de escaneo esmeralda */
.feed-card-frescura .icon-quality svg path,
.feed-card-frescura .icon-quality svg polyline {
    stroke-dasharray: 80;
    stroke-dashoffset: 80;
    transition: stroke-dashoffset 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.18s;
}

.feed-card-frescura.luz-frescura-visible .icon-quality svg path,
.feed-card-frescura.luz-frescura-visible .icon-quality svg polyline {
    stroke-dashoffset: 0;
}

.feed-card-frescura .luz-quality-scanline {
    position: absolute;
    left: 0;
    right: 0;
    top: -10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.72), transparent);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.55);
    opacity: 0;
    pointer-events: none;
}

.feed-card-frescura.luz-frescura-visible .luz-quality-scanline {
    animation: luzQualityScan 2.4s cubic-bezier(0.22, 1, 0.36, 1) 0.25s 1 forwards;
}

@keyframes luzQualityScan {
    0% { top: 0%; opacity: 0; }
    15% { opacity: 0.9; }
    85% { opacity: 0.65; }
    100% { top: 100%; opacity: 0; }
}

/* Garantía de Cambio: Giro orbital elástico */
.feed-card-frescura.luz-frescura-visible .icon-change svg {
    animation: luzChangeOrbit 1.15s cubic-bezier(0.34, 1.56, 0.64, 1) 0.28s 1 both;
}

.feed-card-frescura:hover .icon-change svg {
    transform: rotate(180deg);
    transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes luzChangeOrbit {
    0% { transform: rotate(-160deg) scale(0.78); opacity: 0.3; }
    100% { transform: rotate(0deg) scale(1); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   23. FASE 7 · MÓDULO 2: CENTRAL DE AYUDA INTERACTIVA & CALCULADORA BCV/COP
   ═══════════════════════════════════════════════════════════════════════════ */
.feed-help-section .feed-help-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--luz-accent);
    font-weight: 700;
    font-size: 0.78rem;
    text-decoration: none !important;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
                background-color 0.22s ease,
                border-color 0.22s ease,
                box-shadow 0.22s ease;
}

body.dark-theme .feed-help-section .feed-help-link {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.28);
    color: #38bdf8;
}

.feed-help-section .feed-help-link:hover,
.feed-help-section .feed-help-link.luz-help-active {
    background: var(--luz-accent);
    border-color: var(--luz-accent);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}

#luz-help-drawer {
    margin-top: 14px;
    border-radius: 18px;
    background: var(--luz-glass-bg);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid var(--luz-glass-border);
    box-shadow: var(--luz-glass-shadow);
    padding: 20px 22px;
    display: none;
    animation: luzHelpDrawerIn 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

#luz-help-drawer.open {
    display: block;
}

@keyframes luzHelpDrawerIn {
    0% {
        opacity: 0;
        transform: translate3d(0, -8px, 0) scale(0.985);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

.luz-help-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.luz-help-drawer-title {
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

body.dark-theme .luz-help-drawer-title {
    color: #f8fafc;
}

.luz-help-close-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: transparent;
    color: var(--text-muted, #64748b);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.luz-help-close-btn:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

/* Calculadora en vivo USD -> Bs / COP */
.luz-calc-grid {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) minmax(220px, 1.5fr);
    gap: 14px;
    align-items: stretch;
}

.luz-calc-input-box {
    background: rgba(248, 250, 252, 0.9);
    border: 1.5px solid rgba(37, 99, 235, 0.25);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

body.dark-theme .luz-calc-input-box {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(56, 189, 248, 0.3);
}

.luz-calc-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted, #64748b);
}

.luz-calc-input-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.luz-calc-symbol {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--luz-accent);
}

#luz-calc-usd-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    outline: none;
    font-variant-numeric: tabular-nums;
}

body.dark-theme #luz-calc-usd-input {
    color: #f8fafc;
}

.luz-calc-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.luz-calc-preset-btn {
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: #ffffff;
    color: #334155;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.73rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

body.dark-theme .luz-calc-preset-btn {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #334155;
}

.luz-calc-preset-btn:hover,
.luz-calc-preset-btn.active {
    background: var(--luz-accent);
    color: #ffffff;
    border-color: var(--luz-accent);
}

.luz-calc-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.luz-calc-res-card {
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

body.dark-theme .luz-calc-res-card {
    background: rgba(30, 41, 59, 0.78);
    border-color: rgba(148, 163, 184, 0.2);
}

.luz-calc-res-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.luz-calc-res-val {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--luz-primary);
    font-variant-numeric: tabular-nums;
}

body.dark-theme .luz-calc-res-val {
    color: #38bdf8;
}

.luz-calc-res-sub {
    font-size: 0.71rem;
    color: #10b981;
    font-weight: 600;
}

/* Cobertura Delivery San Cristóbal */
.luz-cov-zones {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 14px;
}

.luz-cov-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: #059669;
}

body.dark-theme .luz-cov-chip {
    background: rgba(16, 185, 129, 0.14);
    color: #34d399;
}

.luz-cov-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-muted, #64748b);
}

.luz-help-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff !important;
    font-size: 0.79rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.luz-help-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.36);
}

/* ═══════════════════════════════════════════════════════════════════════════
   24. FASE 7 · MÓDULO 3: PÍLDORA MULTIMONEDA EN TOPBAR & HORARIO UTC-4
   ═══════════════════════════════════════════════════════════════════════════ */
#luz-topbar-rates {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f8fafc;
    font-size: 0.69rem;
    font-weight: 700;
    cursor: pointer;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    transition: background-color 0.22s ease, transform 0.22s ease;
}

#luz-topbar-rates:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-0.5px);
}

#luz-topbar-rates .luz-rate-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 6px rgba(52, 211, 153, 0.85);
}

.om-topbar-live-tag.luz-store-afterhours .om-live-dot {
    background: #fbbf24 !important;
}

.om-topbar-live-tag.luz-store-afterhours .om-live-pulse {
    background: rgba(251, 191, 36, 0.55) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   25. FASE 7 · MÓDULO 4: CHIPS CONVERSACIONALES EN CHAT OMEGA
   ═══════════════════════════════════════════════════════════════════════════ */
.luz-chat-quickchips {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    background: rgba(248, 250, 252, 0.92);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    flex-shrink: 0;
}

.luz-chat-quickchips::-webkit-scrollbar {
    display: none;
}

body.dark-theme .luz-chat-quickchips {
    background: rgba(15, 23, 42, 0.88);
    border-top-color: rgba(51, 65, 85, 0.75);
}

.luz-chat-qchip {
    flex-shrink: 0;
    border: 1px solid rgba(37, 99, 235, 0.24);
    background: #ffffff;
    color: var(--luz-primary);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
                background-color 0.18s ease,
                color 0.18s ease,
                border-color 0.18s ease;
}

body.dark-theme .luz-chat-qchip {
    background: #1e293b;
    border-color: rgba(56, 189, 248, 0.3);
    color: #e2e8f0;
}

.luz-chat-qchip:hover,
.luz-chat-qchip:active {
    background: var(--luz-accent);
    border-color: var(--luz-accent);
    color: #ffffff;
    transform: scale(0.97);
}

.omega-chat-msg {
    animation: luzChatBubblePop 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes luzChatBubblePop {
    0% { opacity: 0; transform: translate3d(0, 8px, 0) scale(0.97); }
    100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   26. FASE 7 · MÓDULO 5: ANILLO VECTORIAL DE LECTURA & PAGINACIÓN MAGNÉTICA
   ═══════════════════════════════════════════════════════════════════════════ */
#luz-scroll-ring-btn {
    position: fixed;
    bottom: 92px;
    right: 26px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--luz-glass-border);
    background: var(--luz-glass-bg);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
    color: var(--luz-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 8750;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 14px, 0) scale(0.88);
    transition: opacity 0.28s ease,
                transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.25s ease;
}

body.dark-theme #luz-scroll-ring-btn {
    color: #38bdf8;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

#luz-scroll-ring-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
}

#luz-scroll-ring-btn:hover {
    transform: translate3d(0, -2px, 0) scale(1.06);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.26);
}

#luz-scroll-ring-btn svg.luz-ring-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    pointer-events: none;
}

#luz-scroll-ring-btn .luz-ring-track {
    fill: none;
    stroke: rgba(148, 163, 184, 0.22);
    stroke-width: 2.6;
}

#luz-scroll-ring-btn .luz-ring-progress {
    fill: none;
    stroke: var(--luz-accent);
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-dasharray: 113.1;
    stroke-dashoffset: 113.1;
    transition: stroke-dashoffset 0.1s linear;
}

body.dark-theme #luz-scroll-ring-btn .luz-ring-progress {
    stroke: #38bdf8;
}

/* Paginación magnética */
#pagination-container .pagination-btn,
#pagination-container .page-number {
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.22s ease,
                background-color 0.2s ease,
                border-color 0.2s ease !important;
}

#pagination-container .pagination-btn:hover:not(:disabled),
#pagination-container .page-number:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.16);
}

#pagination-container .page-number.active {
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.32) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   27. CALIBRACIÓN INTEGRAL MOBILE-FIRST (FASES 1 A 7 · TÁCTIL Y DIMENSIONES)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Dispositivos táctiles sin cursor hover: lente discreto para Vista Rápida */
@media (hover: none), (pointer: coarse) {
    .product-card .luz-qv-trigger-hint {
        opacity: 0.88 !important;
        transform: translate3d(0, 0, 0) scale(1) !important;
        padding: 0 !important;
        width: 26px !important;
        height: 26px !important;
        border-radius: 50% !important;
        justify-content: center !important;
        font-size: 0 !important;
        gap: 0 !important;
        top: 8px !important;
        right: 8px !important;
        bottom: auto !important;
        left: auto !important;
        pointer-events: none;
    }
    .product-card .luz-qv-trigger-hint svg {
        width: 13px !important;
        height: 13px !important;
        margin: 0 !important;
    }
}

@media (max-width: 768px) {
    /* 1. Hero, Malla GPU y Tira Touch-Snap de Badges (Fase 1, 4 & 5) */
    .luz-ambient-mesh {
        width: 100vw !important;
        max-width: 430px !important;
        height: 250px !important;
        filter: blur(42px) !important;
    }
    .luz-svg-layer-back {
        height: 60px;
    }
    .luz-svg-layer-front {
        height: 44px;
    }
    .luz-scrolly-badges {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px;
        padding: 4px 14px 8px !important;
        margin-bottom: 4px !important;
        max-width: 100vw;
    }
    .luz-scrolly-badges::-webkit-scrollbar {
        display: none;
    }
    .luz-badge-pill {
        flex-shrink: 0;
        scroll-snap-align: start;
        font-size: 0.73rem;
        padding: 5px 11px;
        white-space: nowrap;
    }
    .luz-scroll-down-hint {
        position: relative;
        z-index: 4;
        margin-top: 6px !important;
        padding-bottom: 18px !important;
        font-size: 0.72rem;
    }
    .luz-mouse-wheel {
        width: 16px;
        height: 24px;
    }

    /* 2. Topbar condensada sin desborde */
    #luz-topbar-rates {
        font-size: 0.65rem;
        padding: 2px 7px;
        gap: 4px;
    }
    #luz-topbar-rates .luz-rate-cop-seg {
        display: none;
    }

    /* 3. Cápsula Morphing + Cero Auto-Zoom iOS Safari (16px inputs) */
    #luz-morphing-bar {
        width: calc(100vw - 16px);
        padding: 5px 9px;
        gap: 6px;
    }
    .luz-morph-counter-pill {
        padding: 4px 7px;
        font-size: 0.69rem;
    }
    .luz-morph-cat-chip {
        display: none !important;
    }
    .luz-morph-search-box {
        min-width: 80px;
        padding: 4px 9px;
    }
    #luz-morph-search,
    #catalogo-search,
    #omegaChatInput,
    #luz-calc-usd-input {
        font-size: 16px !important;
    }
    .luz-morph-branch-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    .luz-morph-top-btn {
        display: none;
    }

    /* 4. HUD Predictivo Edge-to-Edge sin corte lateral (Fase 5) */
    #luz-search-hud {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        max-height: min(60vh, 370px);
        overflow-y: auto;
    }

    /* 5. Grilla Móvil Ágil, Orbe Cometa y Quick-View Bottom-Sheet (Fases 2 & 5) */
    .product-card.luz-card-pending {
        transform: translate3d(0, 16px, 0) scale(0.98) !important;
    }
    .luz-fly-orb {
        width: 36px !important;
        height: 36px !important;
    }
    #luz-quickview-modal {
        align-items: flex-end !important;
        padding: 0 !important;
    }
    #luz-quickview-modal .luz-qv-card {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 22px 22px 0 0 !important;
        padding: 20px 16px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
        max-height: 88dvh;
        overflow-y: auto;
    }
    #luz-quickview-modal .luz-qv-card::before {
        content: '';
        display: block;
        width: 38px;
        height: 4px;
        border-radius: 999px;
        background: rgba(148, 163, 184, 0.45);
        margin: -6px auto 12px;
    }
    .luz-qv-stage {
        height: 175px;
    }

    /* 6. Coordinación de Capas Flotantes sobre #mobile-bottom-nav (Fases 4, 6, 7 & Chat) */
    .omega-chat-fab {
        bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
        left: 12px !important;
        z-index: 8800 !important;
    }
    .omega-chat-fab-btn {
        width: 46px !important;
        height: 46px !important;
    }
    .omega-chat-fab-btn svg {
        width: 21px !important;
        height: 21px !important;
    }
    .omega-chat-fab-label {
        display: none !important;
    }
    .omega-chat-container {
        left: 10px !important;
        right: 10px !important;
        width: calc(100vw - 20px) !important;
        bottom: calc(128px + env(safe-area-inset-bottom, 0px)) !important;
        height: min(460px, calc(100dvh - 146px)) !important;
        max-height: calc(100dvh - 146px) !important;
        border-radius: 18px !important;
    }
    #luz-scroll-ring-btn {
        bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
        right: 12px !important;
        width: 42px !important;
        height: 42px !important;
    }
    #cookie-toast {
        bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-width: calc(100vw - 20px) !important;
    }
    #om-social-proof-toast {
        bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
        max-width: calc(100vw - 84px) !important;
    }

    /* 7. Central de Ayuda, Paginación Táctil, Ola Footer y Radar */
    .luz-calc-grid {
        grid-template-columns: 1fr;
    }
    #luz-help-drawer {
        padding: 16px 14px;
    }
    #pagination-container {
        flex-wrap: wrap;
        gap: 8px;
    }
    #pagination-container .page-number,
    #pagination-container .pagination-btn {
        min-height: 38px;
    }
    .luz-footer-wave-wrap {
        height: 46px;
    }
    #om-progress-bar::after {
        width: 7px;
        height: 7px;
        right: -3px;
    }
    #luz-net-radar {
        font-size: 0.72rem;
        padding: 7px 12px;
        top: 10px;
    }
}

@media (max-width: 480px) {
    /* Modales, Ticket Térmico, Pasos y Checkout compactos en pantallas de 360px–420px */
    #invoice-modal-content #ticket-print-area {
        padding: 16px 14px 8px !important;
    }
    #invoice-modal-content #invoice-action-bar {
        padding: 12px 14px calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .luz-ticket-holo-stamp {
        font-size: 0.65rem;
        padding: 3px 9px;
    }
    .luz-calc-results {
        grid-template-columns: 1fr;
    }
    .supermarket-info-feed .feed-step-card,
    .supermarket-info-feed .feed-card-frescura,
    .supermarket-info-feed .feed-info-card {
        padding: 18px 16px !important;
    }
    #cart-drawer .luz-pay-chip {
        padding: 7px 5px;
        font-size: 0.69rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   28. FASE 8 · MÓDULOS 1 A 3: APP DESCARGABLE PWA, GUÍA iOS, QR & STANDALONE
   ═══════════════════════════════════════════════════════════════════════════ */

/* Modo App Nativa Confirmada (?source=pwa o evento appinstalled): ocultar avisos de descarga */
body.luz-pwa-confirmed .luz-nav-app-btn,
body.luz-pwa-confirmed #luz-mob-top-appbar,
body.luz-pwa-confirmed .luz-footer-app-card,
body.luz-pwa-confirmed #luz-pwa-smart-banner {
    display: none !important;
}

body.luz-standalone-app #om-header {
    padding-top: env(safe-area-inset-top, 0px);
}

/* Franja Superior Móvil de Descarga de App (equivalente directo al botón superior de PC) */
#luz-mob-top-appbar {
    display: none;
}

/* Botón "Descargar App" en la barra de navegación #om-nav */
.luz-nav-app-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 999px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff !important;
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    margin-left: auto;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.32);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.22s ease;
    white-space: nowrap;
}

.luz-nav-app-btn:hover {
    transform: translateY(-1.5px) scale(1.03);
    box-shadow: 0 7px 18px rgba(16, 185, 129, 0.44);
}

/* Tarjeta Oficial de Descarga de App en el Footer */
.luz-footer-app-card {
    margin-top: 16px;
    padding: 13px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.65), rgba(15, 23, 42, 0.85));
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.luz-footer-app-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.luz-footer-app-ico {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #ffffff;
    padding: 4px;
    object-fit: contain;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}

.luz-footer-app-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.luz-footer-app-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.luz-footer-app-sub {
    font-size: 0.69rem;
    color: #94a3b8;
    line-height: 1.25;
}

.luz-footer-app-cta {
    flex-shrink: 0;
    border: none;
    border-radius: 999px;
    padding: 7px 13px;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.luz-footer-app-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(56, 189, 248, 0.45);
}

/* Smart Banner flotante no-intrusivo para instalar la App */
#luz-pwa-smart-banner {
    position: fixed;
    bottom: 24px;
    left: 90px;
    z-index: 8820;
    width: min(370px, calc(100vw - 24px));
    background: var(--luz-glass-bg);
    backdrop-filter: blur(18px) saturate(170%);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 18px;
    padding: 11px 13px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 22px, 0) scale(0.96);
    transition: opacity 0.34s ease,
                transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

#luz-pwa-smart-banner.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
}

.luz-pwa-banner-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: #ffffff;
    padding: 4px;
    object-fit: contain;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.luz-pwa-banner-info {
    flex: 1;
    min-width: 0;
}

.luz-pwa-banner-title {
    font-size: 0.81rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    line-height: 1.2;
}

body.dark-theme .luz-pwa-banner-title {
    color: #f8fafc;
}

.luz-pwa-banner-sub {
    font-size: 0.7rem;
    color: var(--text-muted, #64748b);
    line-height: 1.25;
    margin-top: 2px;
}

.luz-pwa-banner-btn {
    border: none;
    border-radius: 999px;
    padding: 7px 13px;
    background: linear-gradient(135deg, #2563eb, #10b981);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 800;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
    transition: transform 0.18s ease;
}

.luz-pwa-banner-btn:hover {
    transform: scale(1.04);
}

.luz-pwa-banner-close {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(148, 163, 184, 0.16);
    color: var(--text-muted, #64748b);
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Modal Universal de Instalación de App (Guía iOS + QR + Instalación Directa) */
#luz-app-install-modal {
    position: fixed;
    inset: 0;
    z-index: 260000;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

#luz-app-install-modal.open {
    display: flex;
}

.luz-app-modal-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    color: #0f172a;
    border-radius: 22px;
    padding: 24px 22px 22px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(226, 232, 240, 0.9);
    animation: luzAppModalPop 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

body.dark-theme .luz-app-modal-card {
    background: #0f172a;
    color: #f8fafc;
    border-color: rgba(148, 163, 184, 0.22);
}

@keyframes luzAppModalPop {
    0% { opacity: 0; transform: translate3d(0, 18px, 0) scale(0.96); }
    100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.luz-app-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(148, 163, 184, 0.16);
    color: inherit;
    font-size: 1.15rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.luz-app-hero-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.luz-app-hero-logo {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: #ffffff;
    padding: 6px;
    object-fit: contain;
    box-shadow: 0 8px 20px rgba(30, 58, 95, 0.16);
    border: 1px solid rgba(226, 232, 240, 0.9);
    flex-shrink: 0;
}

.luz-app-hero-badge {
    display: inline-block;
    font-size: 0.67rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.14);
    color: #10b981;
    margin-bottom: 4px;
}

.luz-app-steps-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 14px 0 16px;
}

.luz-app-step-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.82rem;
    line-height: 1.4;
}

body.dark-theme .luz-app-step-row {
    background: #1e293b;
    border-color: #334155;
}

.luz-app-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.luz-app-qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px dashed rgba(37, 99, 235, 0.35);
    margin: 12px 0 14px;
    text-align: center;
}

body.dark-theme .luz-app-qr-box {
    background: #1e293b;
    border-color: rgba(56, 189, 248, 0.35);
}

.luz-app-qr-img {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    background: #ffffff;
    padding: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.luz-app-primary-btn {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.luz-app-primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════
   29. FASE 8 · MÓDULOS 4 & 5: FAVORITOS (MI DESPENSA) & COMPARTIR PRODUCTO
   ═══════════════════════════════════════════════════════════════════════════ */
.product-image-wrapper .luz-fav-card-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 4;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(226, 232, 240, 0.85);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.1);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
                color 0.2s ease,
                border-color 0.2s ease,
                background-color 0.2s ease;
}

body.dark-theme .product-image-wrapper .luz-fav-card-btn {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(148, 163, 184, 0.25);
    color: #94a3b8;
}

.product-image-wrapper .luz-fav-card-btn:hover {
    transform: scale(1.1);
    color: #f43f5e;
}

.product-image-wrapper .luz-fav-card-btn.is-fav {
    color: #f43f5e;
    border-color: rgba(244, 63, 94, 0.4);
    background: rgba(255, 241, 242, 0.95);
}

body.dark-theme .product-image-wrapper .luz-fav-card-btn.is-fav {
    background: rgba(76, 5, 25, 0.85);
    border-color: rgba(244, 63, 94, 0.55);
    color: #fb7185;
}

.product-image-wrapper .luz-fav-card-btn.luz-heart-pop {
    animation: luzHeartPop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes luzHeartPop {
    0% { transform: scale(0.75); }
    55% { transform: scale(1.28); }
    100% { transform: scale(1); }
}

/* Pill "Mis Favoritos" en .om-nutri-filters */
.om-nutri-pill.luz-fav-filter-pill.active {
    background: linear-gradient(135deg, #f43f5e, #e11d48) !important;
    border-color: #f43f5e !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.32) !important;
}

/* Acciones secundarias en Quick-View (Favorito + Compartir) */
.luz-qv-util-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.luz-qv-util-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 11px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(248, 250, 252, 0.9);
    color: var(--text-main, #334155);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.dark-theme .luz-qv-util-btn {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(148, 163, 184, 0.22);
    color: #e2e8f0;
}

.luz-qv-util-btn:hover {
    border-color: var(--luz-accent);
    color: var(--luz-accent);
}

.luz-qv-util-btn.is-fav {
    border-color: rgba(244, 63, 94, 0.45);
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.08);
}

/* Calibración Móvil de Fase 8 */
@media (max-width: 768px) {
    #luz-mob-top-appbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 7px 12px;
        background: linear-gradient(90deg, #0f172a 0%, #1e3a5f 100%);
        border-bottom: 1px solid rgba(56, 189, 248, 0.28);
        color: #ffffff;
        position: relative;
        z-index: 120;
    }
    .luz-mob-appbar-left {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }
    .luz-mob-appbar-ico {
        width: 26px;
        height: 26px;
        border-radius: 7px;
        background: #ffffff;
        padding: 2px;
        object-fit: contain;
        flex-shrink: 0;
    }
    .luz-mob-appbar-txt {
        display: flex;
        flex-direction: column;
        min-width: 0;
        line-height: 1.15;
    }
    .luz-mob-appbar-txt strong {
        font-size: 0.74rem;
        font-weight: 800;
        color: #ffffff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .luz-mob-appbar-txt span {
        font-size: 0.64rem;
        color: #93c5fd;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .luz-mob-appbar-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }
    .luz-mob-appbar-btn {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 6px 12px;
        border-radius: 999px;
        border: none;
        background: linear-gradient(135deg, #10b981, #059669);
        color: #ffffff !important;
        font-size: 0.73rem;
        font-weight: 800;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.38);
        white-space: nowrap;
    }
    .luz-mob-appbar-close {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        border: none;
        background: rgba(255, 255, 255, 0.14);
        color: #cbd5e1;
        font-size: 0.88rem;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 0;
    }
    #mob-nav-app .luz-mob-app-dot {
        position: absolute;
        top: -2px;
        right: -7px;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #10b981;
        border: 1.5px solid #ffffff;
        box-shadow: 0 0 6px rgba(16, 185, 129, 0.85);
    }
    body.dark-theme #mob-nav-app .luz-mob-app-dot {
        border-color: #111827;
    }
    .luz-nav-app-btn {
        width: calc(100% - 24px);
        margin: 6px 12px 8px;
        justify-content: center;
        padding: 10px 14px;
        font-size: 0.82rem;
    }
    #luz-pwa-smart-banner {
        left: 10px !important;
        right: 10px !important;
        width: calc(100vw - 20px) !important;
        bottom: calc(128px + env(safe-area-inset-bottom, 0px)) !important;
        padding: 10px 12px;
    }
    #luz-app-install-modal {
        align-items: flex-end;
        padding: 0;
    }
    .luz-app-modal-card {
        max-width: 100%;
        border-radius: 22px 22px 0 0;
        padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
        max-height: 88dvh;
        overflow-y: auto;
    }
    .luz-app-modal-card::before {
        content: '';
        display: block;
        width: 38px;
        height: 4px;
        border-radius: 999px;
        background: rgba(148, 163, 184, 0.45);
        margin: -6px auto 12px;
    }
    .product-image-wrapper .luz-fav-card-btn {
        width: 28px;
        height: 28px;
        bottom: 6px;
        right: 6px;
    }
    .luz-footer-app-card {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }
    .luz-footer-app-cta {
        width: 100%;
        text-align: center;
        padding: 9px 14px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   24. FASE 9: COMPRA HABITUAL, NOTIFICACIONES, VOZ, AHORRO DE DATOS & UNIDAD
   ═══════════════════════════════════════════════════════════════════════════ */

/* 1. Píldoras de Utilidad Fase 9 en .om-nutri-filters (Compra Habitual / Alertas) */
.om-nutri-pill.luz-habitual-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-color: rgba(245, 158, 11, 0.48) !important;
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.92), rgba(253, 230, 138, 0.55));
    color: #b45309;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.om-nutri-pill.luz-habitual-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.22);
}

body.dark-theme .om-nutri-pill.luz-habitual-pill {
    background: linear-gradient(135deg, rgba(120, 53, 15, 0.55), rgba(146, 64, 14, 0.35));
    border-color: rgba(251, 191, 36, 0.45) !important;
    color: #fcd34d;
}

.om-nutri-pill.luz-notif-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-color: rgba(59, 130, 246, 0.42) !important;
    color: #1d4ed8;
    font-weight: 700;
    cursor: pointer;
}

.om-nutri-pill.luz-notif-pill.is-enabled {
    background: rgba(16, 185, 129, 0.14) !important;
    border-color: rgba(16, 185, 129, 0.48) !important;
    color: #047857 !important;
}

body.dark-theme .om-nutri-pill.luz-notif-pill {
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.4) !important;
}

body.dark-theme .om-nutri-pill.luz-notif-pill.is-enabled {
    color: #34d399 !important;
    background: rgba(16, 185, 129, 0.2) !important;
}

/* 2. Modal / Bottom-Sheet de "Mi Compra Habitual" & "Centro de Alertas" */
#luz-habitual-modal,
#luz-notif-modal {
    position: fixed;
    inset: 0;
    z-index: 260000;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.26s ease;
}

#luz-habitual-modal.open,
#luz-notif-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.luz-f9-sheet-card {
    width: 100%;
    max-width: 480px;
    max-height: 86vh;
    overflow-y: auto;
    background: #ffffff;
    color: #0f172a;
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.34);
    padding: 22px 20px 20px;
    position: relative;
    transform: translate3d(0, 22px, 0) scale(0.97);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

#luz-habitual-modal.open .luz-f9-sheet-card,
#luz-notif-modal.open .luz-f9-sheet-card {
    transform: translate3d(0, 0, 0) scale(1);
}

body.dark-theme .luz-f9-sheet-card {
    background: #1e293b;
    color: #f8fafc;
    border-color: rgba(51, 65, 85, 0.9);
}

.luz-f9-sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.luz-f9-sheet-title {
    font-size: 1.08rem;
    font-weight: 800;
    margin: 0 0 3px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.luz-f9-sheet-sub {
    font-size: 0.78rem;
    opacity: 0.75;
    margin: 0;
    line-height: 1.4;
}

.luz-f9-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(148, 163, 184, 0.12);
    color: inherit;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.luz-habitual-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0 16px;
    max-height: 46vh;
    overflow-y: auto;
    padding-right: 2px;
}

.luz-habitual-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.luz-habitual-row.is-checked {
    border-color: rgba(16, 185, 129, 0.55);
    background: rgba(16, 185, 129, 0.06);
}

body.dark-theme .luz-habitual-row {
    background: #0f172a;
    border-color: #334155;
}

body.dark-theme .luz-habitual-row.is-checked {
    border-color: rgba(52, 211, 153, 0.5);
    background: rgba(16, 185, 129, 0.12);
}

.luz-hab-check {
    width: 18px;
    height: 18px;
    accent-color: #10b981;
    cursor: pointer;
    flex-shrink: 0;
}

.luz-hab-thumb {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    flex-shrink: 0;
    padding: 2px;
}

.luz-hab-info {
    flex: 1;
    min-width: 0;
}

.luz-hab-name {
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.luz-hab-meta {
    font-size: 0.72rem;
    opacity: 0.78;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.luz-hab-freq-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
    white-space: nowrap;
    flex-shrink: 0;
}

body.dark-theme .luz-hab-freq-badge {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.22);
}

.luz-hab-single-add {
    border: none;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.14);
    color: #059669;
    font-weight: 800;
    font-size: 0.76rem;
    padding: 6px 10px;
    cursor: pointer;
    flex-shrink: 0;
}

body.dark-theme .luz-hab-single-add {
    background: rgba(16, 185, 129, 0.24);
    color: #34d399;
}

.luz-f9-primary-cta {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.32);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.luz-f9-primary-cta:active {
    transform: scale(0.98);
}

.luz-f9-primary-cta:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Recordatorio flotante no invasivo de carrito pendiente */
#luz-cart-reminder-pill {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate3d(-50%, 140%, 0);
    z-index: 235000;
    background: rgba(15, 23, 42, 0.94);
    color: #f8fafc;
    border: 1px solid rgba(52, 211, 153, 0.55);
    border-radius: 999px;
    padding: 9px 14px 9px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 0.78rem;
    font-weight: 700;
    max-width: calc(100vw - 24px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

#luz-cart-reminder-pill.visible {
    transform: translate3d(-50%, 0, 0);
    opacity: 1;
    pointer-events: auto;
}

.luz-reminder-open-btn {
    border: none;
    border-radius: 999px;
    background: #10b981;
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 5px 11px;
    cursor: pointer;
    white-space: nowrap;
}

.luz-reminder-close-btn {
    border: none;
    background: transparent;
    color: rgba(248, 250, 252, 0.7);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

/* 3. Búsqueda por Voz Asistida (Botón Micrófono + Onda Sonora en Vivo) */
.catalog-search-wrapper {
    position: relative !important;
}

#luz-voice-search-btn,
#luz-morph-voice-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#luz-voice-search-btn {
    right: 8px;
}

#luz-catalog-search-clear {
    right: 40px !important;
}

#luz-morph-voice-btn {
    right: 6px;
    width: 26px;
    height: 26px;
}

#luz-morph-clear {
    right: 34px !important;
}

body.dark-theme #luz-voice-search-btn,
body.dark-theme #luz-morph-voice-btn {
    background: rgba(248, 113, 113, 0.16);
    color: #f87171;
}

#luz-voice-search-btn:hover,
#luz-morph-voice-btn:hover {
    background: #dc2626;
    color: #ffffff;
}

#luz-voice-search-btn.is-listening,
#luz-morph-voice-btn.is-listening {
    background: #ef4444 !important;
    color: #ffffff !important;
    animation: luzVoicePulse 1.15s infinite ease-in-out;
}

@keyframes luzVoicePulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.65); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

#luz-voice-hud {
    position: fixed;
    top: 84px;
    left: 50%;
    transform: translate3d(-50%, -20px, 0);
    z-index: 265000;
    background: rgba(15, 23, 42, 0.94);
    color: #ffffff;
    border: 1px solid rgba(248, 113, 113, 0.6);
    border-radius: 999px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.25s ease;
    max-width: calc(100vw - 24px);
}

#luz-voice-hud.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(-50%, 0, 0);
}

.luz-voice-bars {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 16px;
}

.luz-voice-bars span {
    width: 3px;
    height: 6px;
    border-radius: 999px;
    background: #f87171;
    animation: luzSoundBar 0.75s infinite ease-in-out alternate;
}

.luz-voice-bars span:nth-child(2) { animation-delay: 0.15s; height: 13px; }
.luz-voice-bars span:nth-child(3) { animation-delay: 0.3s; height: 9px; }
.luz-voice-bars span:nth-child(4) { animation-delay: 0.45s; height: 15px; }

@keyframes luzSoundBar {
    0% { transform: scaleY(0.45); }
    100% { transform: scaleY(1.25); }
}

/* 4. Interruptor Modo Ahorro de Datos (Header + Menú + Efectos Ligereza) */
.luz-datasaver-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 34px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.38);
    background: rgba(248, 250, 252, 0.9);
    color: #334155;
    font-size: 0.74rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

body.dark-theme .luz-datasaver-btn {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(71, 85, 105, 0.8);
    color: #cbd5e1;
}

.luz-datasaver-btn.active {
    background: rgba(16, 185, 129, 0.16) !important;
    border-color: #10b981 !important;
    color: #047857 !important;
}

body.dark-theme .luz-datasaver-btn.active {
    background: rgba(16, 185, 129, 0.24) !important;
    border-color: #34d399 !important;
    color: #6ee7b7 !important;
}

/* Reglas activas cuando el cliente enciende Modo Ahorro de Datos */
body.luz-data-saver .luz-ambient-mesh,
body.luz-data-saver .luz-light-motes-layer,
body.luz-data-saver .luz-svg-layer-back {
    display: none !important;
}

body.luz-data-saver .product-card,
body.luz-data-saver #luz-morphing-bar,
body.luz-data-saver #om-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06) !important;
}

body.luz-data-saver .product-image-wrapper img.luz-ds-deferred {
    opacity: 0.12;
    filter: grayscale(1);
}

.luz-ds-tap-badge {
    position: absolute;
    inset: auto 8px 8px 8px;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.78);
    color: #f8fafc;
    font-size: 0.66rem;
    font-weight: 700;
    text-align: center;
    pointer-events: auto;
    cursor: pointer;
    z-index: 4;
}

/* 5. Calculador de Rendimiento y Precio por Unidad ($/Kg, $/L, $/Und) */
.luz-unit-price-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.045);
    border: 1px dashed rgba(148, 163, 184, 0.45);
    color: #475569;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.3;
    width: fit-content;
}

body.dark-theme .luz-unit-price-tag {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(148, 163, 184, 0.3);
    color: #cbd5e1;
}

.luz-qv-unit-box {
    margin: 8px 0 12px;
    padding: 9px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(240, 253, 244, 0.9), rgba(236, 253, 245, 0.6));
    border: 1px solid rgba(16, 185, 129, 0.32);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 0.76rem;
}

body.dark-theme .luz-qv-unit-box {
    background: rgba(6, 78, 59, 0.28);
    border-color: rgba(52, 211, 153, 0.35);
    color: #e2e8f0;
}

.luz-qv-unit-lbl {
    font-weight: 800;
    color: #047857;
}

body.dark-theme .luz-qv-unit-lbl {
    color: #34d399;
}

.luz-qv-unit-vals {
    font-weight: 700;
    opacity: 0.92;
}

    /* Calibración Responsiva Móvil de Fase 9 + Auditoría Cero Distorsión y GPU */
.luz-morph-search-box {
    position: relative !important;
}

/* Optimización de GPU: apagar backdrop-filter en capas ocultas y micro-botones repetidos (de 80 capas -> <= 3 activas) */
.product-card .luz-qv-trigger-hint,
.product-card .luz-fav-card-btn,
#luz-morphing-bar:not(.luz-morph-visible),
#luz-quickview-modal:not(.open),
#luz-app-install-modal:not(.open),
#luz-habitual-modal:not(.open),
#luz-notif-modal:not(.open),
#luz-sort-sheet-modal:not(.open),
#luz-branch-sheet-modal:not(.open),
#luz-tracker-sheet-modal:not(.open),
#luz-aisle-modal:not(.open),
#luz-loyalty-modal:not(.open),
#luz-scan-modal:not(.open),
#luz-family-share-modal:not(.open),
#luz-pwa-smart-banner:not(.visible),
#luz-net-radar:not(.visible),
#luz-cart-reminder-pill:not(.visible),
#luz-voice-hud:not(.visible),
#luz-search-hud:not(.open),
.quiniela-modal-overlay:not(.open),
#branch-transition-overlay:not(.show),
#modal-peso-producto:not(.open),
#om-recipe-modal:not(.open) {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Coordinación anti-colisión de banners inferiores cuando el aviso de Cookies está visible */
body.luz-cookie-open #om-social-proof-toast,
body.luz-cookie-open #luz-pwa-smart-banner,
body.luz-cookie-open #luz-cart-reminder-pill {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translate3d(0, 30px, 0) !important;
}

@media (max-width: 768px) {
    html,
    body {
        max-width: 100%;
        overflow-x: clip;
    }

    /* 1. Encabezado 360px sin desborde horizontal (0px overflow) */
    #om-header,
    #om-header .om-header-inner {
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
    #om-header .om-header-inner {
        padding-left: 10px !important;
        padding-right: 10px !important;
        gap: 6px !important;
    }
    #om-header .om-logo-img {
        max-width: 96px !important;
        height: auto !important;
    }
    #om-header .om-header-actions {
        gap: 6px !important;
        min-width: 0 !important;
        flex-shrink: 1 !important;
    }
    #om-header .om-branch-box {
        padding: 3px 9px !important;
        max-width: 144px !important;
        white-space: nowrap !important;
    }
    #om-header .om-branch-box select {
        white-space: nowrap !important;
    }
    .product-card .luz-qv-trigger-hint {
        background: rgba(255, 255, 255, 0.94) !important;
        color: #475569 !important;
        border: 1px solid rgba(226, 232, 240, 0.95) !important;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08) !important;
    }
    body.dark-theme .product-card .luz-qv-trigger-hint {
        background: rgba(30, 41, 59, 0.94) !important;
        color: #cbd5e1 !important;
        border-color: rgba(51, 65, 85, 0.9) !important;
    }
    /* En móvil, el botón Ahorro vive en la barra de píldoras rápidas para no saturar el header */
    #luz-header-datasaver-btn {
        display: none !important;
    }

    /* 2. Footer sin desbordamiento de 6px en columnas */
    .main-footer,
    .main-footer .footer-grid,
    .main-footer .footer-col {
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* 3. Franja superior móvil de descarga sin truncamiento "..." */
    #luz-mob-top-appbar {
        padding: 7px 10px !important;
        gap: 8px !important;
    }
    .luz-mob-appbar-btn {
        padding: 6px 10px !important;
        font-size: 0.72rem !important;
    }

    /* 4. Buscador principal con micrófono y lupa perfectamente espaciados */
    .om-toolbar-right .catalog-search-wrapper {
        position: relative !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
    }
    .om-toolbar-right #catalogo-search {
        width: 100% !important;
        margin: 0 !important;
        padding-left: 38px !important;
        padding-right: 68px !important;
        box-sizing: border-box !important;
    }
    #luz-voice-search-btn {
        right: 8px !important;
    }
    #luz-catalog-search-clear {
        right: 40px !important;
    }

    /* 5. Barra de Estilos de Vida / Utilidades en 1 sola fila deslizable táctil (ahorra 130px verticales) */
    .om-nutri-bar {
        padding: 10px 12px !important;
        gap: 6px !important;
    }
    .om-nutri-filters {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 7px !important;
        width: 100% !important;
        padding: 2px 2px 4px !important;
    }
    .om-nutri-filters::-webkit-scrollbar {
        display: none;
    }
    .om-nutri-filters .om-nutri-pill {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    /* 6. Modales Bottom-Sheet Fase 9 */
    #luz-habitual-modal,
    #luz-notif-modal {
        align-items: flex-end;
        padding: 0;
    }
    .luz-f9-sheet-card {
        max-width: 100%;
        border-radius: 22px 22px 0 0;
        padding: 18px 16px calc(20px + env(safe-area-inset-bottom, 0px));
        max-height: 86dvh;
    }
    .luz-f9-sheet-card::before {
        content: '';
        display: block;
        width: 38px;
        height: 4px;
        border-radius: 999px;
        background: rgba(148, 163, 184, 0.45);
        margin: -6px auto 12px;
    }
    #luz-cart-reminder-pill {
        bottom: calc(74px + env(safe-area-inset-bottom, 0px));
        width: calc(100vw - 20px);
        justify-content: space-between;
        padding: 8px 12px;
    }
    .luz-unit-price-tag {
        font-size: 0.64rem;
        padding: 2px 5px;
    }
}

@media (max-width: 480px) {
    /* Cápsula Morphing ultra limpia en 360px: espacio completo para buscador + voz + sucursal */
    #luz-morphing-bar .luz-morph-left {
        display: none !important;
    }
    #luz-morphing-bar .luz-morph-search-box {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        padding: 5px 10px !important;
    }
    #luz-morphing-bar #luz-morph-search {
        padding-right: 54px !important;
    }
}

@media (max-width: 380px) {
    /* Respiro adicional en teléfonos de 360px para logo, sucursal, tema y hamburguesa */
    #om-header .om-logo-img {
        max-width: 84px !important;
    }
    #om-header .om-branch-box {
        max-width: 128px !important;
        font-size: 0.72rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   25. CALIBRACIÓN UX/UI MÓVIL v9.3: TOOLBAR LIMPIO, BOTTOM-SHEETS & ANTI-COLISIÓN
   ═══════════════════════════════════════════════════════════════════════════ */
#luz-mob-sort-row,
#luz-mob-branch-hit {
    display: none;
}

#luz-sort-sheet-modal,
#luz-branch-sheet-modal {
    position: fixed;
    inset: 0;
    z-index: 265000;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
}

#luz-sort-sheet-modal.open,
#luz-branch-sheet-modal.open {
    opacity: 1;
    pointer-events: auto;
}

#luz-sort-sheet-modal .luz-f9-sheet-card,
#luz-branch-sheet-modal .luz-f9-sheet-card {
    width: 100%;
    max-width: 480px;
    border-radius: 22px 22px 0 0;
    padding: 18px 16px calc(22px + env(safe-area-inset-bottom, 0px));
    transform: translate3d(0, 100%, 0);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

#luz-sort-sheet-modal.open .luz-f9-sheet-card,
#luz-branch-sheet-modal.open .luz-f9-sheet-card {
    transform: translate3d(0, 0, 0);
}

.luz-sort-options-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 8px;
}

.luz-sort-opt-btn {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
    border-radius: 14px;
    padding: 11px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.14s ease;
}

.luz-sort-opt-btn:active {
    transform: scale(0.985);
}

body.dark-theme .luz-sort-opt-btn {
    background: #0f172a;
    border-color: #334155;
    color: #f8fafc;
}

.luz-sort-opt-btn.is-selected {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.08);
}

body.dark-theme .luz-sort-opt-btn.is-selected {
    border-color: #34d399;
    background: rgba(16, 185, 129, 0.16);
}

.luz-sort-opt-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.luz-sort-opt-ico {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    flex-shrink: 0;
}

body.dark-theme .luz-sort-opt-ico {
    background: #1e293b;
    border-color: #334155;
}

.luz-sort-opt-texts {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.luz-sort-opt-title {
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.2;
}

.luz-sort-opt-sub {
    font-size: 0.71rem;
    opacity: 0.7;
    margin-top: 2px;
}

.luz-sort-opt-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    font-weight: 900;
    color: transparent;
    flex-shrink: 0;
    transition: all 0.18s ease;
}

body.dark-theme .luz-sort-opt-radio {
    border-color: #475569;
}

.luz-sort-opt-btn.is-selected .luz-sort-opt-radio {
    border-color: #10b981;
    background: #10b981;
    color: #ffffff;
}

/* Píldora de Asistente IA en .om-nutri-filters */
.om-nutri-pill.luz-chat-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-color: rgba(37, 99, 235, 0.36) !important;
    background: rgba(37, 99, 235, 0.07);
    color: #1d4ed8;
    font-weight: 700;
    cursor: pointer;
}

body.dark-theme .om-nutri-pill.luz-chat-pill {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.38) !important;
    color: #7dd3fc;
}

@media (max-width: 768px) {
    /* A. Toolbar de Catálogo Limpio: sin caja gris exterior y con píldora simétrica */
    .om-store-toolbar {
        padding: 14px 12px 10px !important;
        gap: 10px !important;
        background: #ffffff !important;
        border-bottom: 1px solid rgba(226, 232, 240, 0.85) !important;
    }
    body.dark-theme .om-store-toolbar {
        background: #111827 !important;
        border-bottom-color: rgba(51, 65, 85, 0.8) !important;
    }
    .om-store-toolbar .om-store-title {
        font-size: 1.15rem !important;
        font-weight: 800 !important;
        margin: 0 !important;
        text-align: center !important;
        width: 100% !important;
        letter-spacing: -0.01em !important;
    }
    .om-store-toolbar .om-toolbar-right {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 9px !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border: none !important;
    }

    /* Buscador cápsula pura (elimina el rectángulo gris de catalogo.css) */
    .om-toolbar-right .catalog-search-wrapper {
        background: transparent !important;
        border: none !important;
        border-top: none !important;
        box-shadow: none !important;
        border-radius: 999px !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        min-height: 44px !important;
    }
    .om-toolbar-right .catalog-search-wrapper .search-icon {
        left: 14px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 17px !important;
        height: 17px !important;
        color: #64748b !important;
        pointer-events: none !important;
        z-index: 5 !important;
    }
    .om-toolbar-right #catalogo-search {
        height: 44px !important;
        min-height: 44px !important;
        border-radius: 999px !important;
        background: #f8fafc !important;
        border: 1.5px solid #cbd5e1 !important;
        padding: 0 76px 0 40px !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        color: #0f172a !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
    }
    .om-toolbar-right #catalogo-search:focus {
        background: #ffffff !important;
        border-color: #2563eb !important;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14) !important;
    }
    body.dark-theme .om-toolbar-right #catalogo-search {
        background: #1e293b !important;
        border-color: #334155 !important;
        color: #f8fafc !important;
    }
    body.dark-theme .om-toolbar-right #catalogo-search:focus {
        background: #0f172a !important;
        border-color: #38bdf8 !important;
        box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18) !important;
    }
    #luz-catalog-search-clear {
        right: 43px !important;
        width: 24px !important;
        height: 24px !important;
    }
    #luz-voice-search-btn {
        right: 7px !important;
        width: 30px !important;
        height: 30px !important;
    }

    /* B. Ocultar <select> nativo de Android y mostrar fila compacta 2-en-1 */
    .sort-wrapper.luz-native-hidden,
    #sort-select.luz-native-hidden {
        display: none !important;
    }

    #luz-mob-sort-row {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
    }

    #luz-mob-sort-trigger {
        flex: 1 1 auto;
        min-width: 0;
        height: 38px;
        padding: 0 13px;
        border-radius: 999px;
        border: 1.5px solid #e2e8f0;
        background: #f8fafc;
        color: #0f172a;
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        font-size: 0.8rem;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
        transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.14s ease;
    }
    #luz-mob-sort-trigger:active {
        transform: scale(0.985);
    }
    body.dark-theme #luz-mob-sort-trigger {
        background: #1e293b;
        border-color: #334155;
        color: #f8fafc;
    }
    .luz-mob-sort-left {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
        overflow: hidden;
    }
    .luz-mob-sort-prefix {
        font-size: 0.73rem;
        font-weight: 600;
        color: #64748b;
        flex-shrink: 0;
    }
    body.dark-theme .luz-mob-sort-prefix {
        color: #94a3b8;
    }
    #luz-mob-sort-lbl {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 800;
    }

    /* Insignia de conteo perfectamente centrada y simétrica */
    #luz-mob-sort-row #results-count,
    .om-toolbar-right .results-count {
        margin: 0 !important;
        padding: 0 12px !important;
        height: 38px !important;
        border-radius: 999px !important;
        background: rgba(37, 99, 235, 0.08) !important;
        border: 1px solid rgba(37, 99, 235, 0.22) !important;
        color: #1e40af !important;
        font-size: 0.75rem !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        text-align: center !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    #luz-mob-sort-row #results-count[style*="display: none"],
    #luz-mob-sort-row #results-count[style*="display:none"],
    .om-toolbar-right .results-count[style*="display: none"],
    .om-toolbar-right .results-count[style*="display:none"] {
        display: none !important;
    }
    body.dark-theme #luz-mob-sort-row #results-count,
    body.dark-theme .om-toolbar-right .results-count {
        background: rgba(56, 189, 248, 0.14) !important;
        border-color: rgba(56, 189, 248, 0.3) !important;
        color: #7dd3fc !important;
    }

    /* C. Interceptor táctil de Sucursal en Header para abrir Bottom-Sheet propio */
    #om-header .om-branch-box {
        position: relative !important;
    }
    #luz-mob-branch-hit {
        display: block;
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        background: transparent;
        border: none;
        padding: 0;
        margin: 0;
        z-index: 6;
        cursor: pointer;
    }

    /* D. Cero superposición sobre los controles [- 1 +] de las tarjetas de producto */
    .omega-chat-fab {
        transition: opacity 0.24s ease, transform 0.26s ease !important;
    }
    body.luz-in-catalog-zone .omega-chat-fab:not(.luz-chat-open-keep),
    body.luz-in-catalog-zone #om-social-proof-toast,
    #luz-pwa-smart-banner {
        opacity: 0 !important;
        pointer-events: none !important;
        transform: translate3d(0, 16px, 0) scale(0.9) !important;
    }
    #luz-scroll-ring-btn {
        width: 38px !important;
        height: 38px !important;
        right: 10px !important;
        bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .om-store-main {
        padding-bottom: 24px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   26. FASE 10: PAGO MIXTO/VUELTO, RASTREO EN VIVO, UPSELL, PASILLO & CLUB VIP
   ═══════════════════════════════════════════════════════════════════════════ */

/* 1. Acordeón de Simulador de Vuelto y Pago Mixto en Carrito */
#luz-split-pay-box {
    margin-top: 9px;
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.72));
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.dark-theme #luz-split-pay-box {
    background: rgba(15, 23, 42, 0.78);
    border-color: rgba(56, 189, 248, 0.3);
}

#luz-split-pay-toggle {
    width: 100%;
    border: none;
    background: transparent;
    padding: 9px 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    font-size: 0.77rem;
    font-weight: 800;
    color: #1e3a5f;
    text-align: left;
}

body.dark-theme #luz-split-pay-toggle {
    color: #e2e8f0;
}

.luz-split-badge {
    font-size: 0.66rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
    white-space: nowrap;
}

body.dark-theme .luz-split-badge {
    background: rgba(16, 185, 129, 0.22);
    color: #34d399;
}

#luz-split-pay-body {
    display: none;
    padding: 0 11px 11px;
    border-top: 1px dashed rgba(148, 163, 184, 0.32);
}

#luz-split-pay-box.open #luz-split-pay-body {
    display: block;
}

.luz-split-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin: 9px 0;
}

.luz-split-tab-btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    border-radius: 9px;
    padding: 6px 8px;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.18s ease;
}

body.dark-theme .luz-split-tab-btn {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

.luz-split-tab-btn.active {
    background: #1e3a5f;
    border-color: #1e3a5f;
    color: #ffffff;
}

body.dark-theme .luz-split-tab-btn.active {
    background: #2563eb;
    border-color: #38bdf8;
}

.luz-bill-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}

.luz-bill-chip {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
}

body.dark-theme .luz-bill-chip {
    background: #1e293b;
    border-color: #475569;
    color: #f8fafc;
}

.luz-bill-chip.active {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.luz-split-input-row {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 5px 10px;
    margin-bottom: 8px;
}

body.dark-theme .luz-split-input-row {
    background: #0f172a;
    border-color: #334155;
}

.luz-split-input-row input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 800;
    color: inherit;
    outline: none;
}

.luz-split-result-card {
    border-radius: 10px;
    padding: 8px 10px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.32);
    font-size: 0.74rem;
    line-height: 1.4;
    color: #065f46;
}

body.dark-theme .luz-split-result-card {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(52, 211, 153, 0.35);
    color: #a7f3d0;
}

.luz-split-result-card.is-warn {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.38);
    color: #92400e;
}

body.dark-theme .luz-split-result-card.is-warn {
    color: #fde68a;
}

/* 2. Recomendador Inteligente "Completa tu mercado" en el Carrito */
#luz-smart-upsell-strip {
    margin: 10px 0 4px;
    padding: 10px 11px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.9), rgba(240, 253, 244, 0.75));
    border: 1px solid rgba(59, 130, 246, 0.22);
}

body.dark-theme #luz-smart-upsell-strip {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.92));
    border-color: rgba(56, 189, 248, 0.25);
}

.luz-upsell-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 8px;
}

.luz-upsell-title {
    font-size: 0.76rem;
    font-weight: 800;
    color: #1e3a5f;
}

body.dark-theme .luz-upsell-title {
    color: #e2e8f0;
}

.luz-upsell-tag {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
    white-space: nowrap;
}

body.dark-theme .luz-upsell-tag {
    background: rgba(245, 158, 11, 0.24);
    color: #fcd34d;
}

.luz-upsell-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.luz-upsell-track::-webkit-scrollbar {
    display: none;
}

.luz-upsell-card {
    flex: 0 0 132px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    padding: 7px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 5px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

body.dark-theme .luz-upsell-card {
    background: #0f172a;
    border-color: #334155;
}

.luz-upsell-top {
    display: flex;
    align-items: center;
    gap: 6px;
}

.luz-upsell-thumb {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: contain;
    background: #f8fafc;
    flex-shrink: 0;
}

.luz-upsell-name {
    font-size: 0.67rem;
    font-weight: 700;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #1e293b;
}

body.dark-theme .luz-upsell-name {
    color: #f1f5f9;
}

.luz-upsell-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.luz-upsell-price {
    font-size: 0.72rem;
    font-weight: 800;
    color: #c0392b;
}

body.dark-theme .luz-upsell-price {
    color: #fca5a5;
}

.luz-upsell-add-btn {
    border: none;
    border-radius: 999px;
    background: #1e3a5f;
    color: #ffffff;
    font-size: 0.66rem;
    font-weight: 800;
    padding: 4px 8px;
    cursor: pointer;
    transition: transform 0.14s ease, background-color 0.16s ease;
}

.luz-upsell-add-btn:active {
    transform: scale(0.94);
}

body.dark-theme .luz-upsell-add-btn {
    background: #2563eb;
}

/* 3. Modales / Bottom-Sheets Fase 10 (Rastreador, Modo Pasillo & Club Fidelidad) */
#luz-tracker-sheet-modal,
#luz-aisle-modal,
#luz-loyalty-modal {
    position: fixed;
    inset: 0;
    z-index: 265000;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
}

#luz-tracker-sheet-modal.open,
#luz-aisle-modal.open,
#luz-loyalty-modal.open {
    opacity: 1;
    pointer-events: auto;
}

#luz-tracker-sheet-modal.open .luz-f9-sheet-card,
#luz-aisle-modal.open .luz-f9-sheet-card,
#luz-loyalty-modal.open .luz-f9-sheet-card {
    transform: translate3d(0, 0, 0) scale(1);
}

/* Tracker Visual de 4 Etapas */
.luz-tracker-card-box {
    border-radius: 16px;
    padding: 13px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(37, 99, 235, 0.06));
    border: 1.5px solid rgba(16, 185, 129, 0.35);
    margin-bottom: 14px;
}

body.dark-theme .luz-tracker-card-box {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(52, 211, 153, 0.4);
}

.luz-tracker-bar-bg {
    height: 7px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.25);
    overflow: hidden;
    margin: 10px 0 12px;
}

.luz-tracker-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #10b981);
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.luz-tracker-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    text-align: center;
}

.luz-trk-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0.42;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.15;
}

.luz-trk-step.done,
.luz-trk-step.current {
    opacity: 1;
}

.luz-trk-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 2px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
}

body.dark-theme .luz-trk-dot {
    background: #1e293b;
    border-color: #475569;
}

.luz-trk-step.done .luz-trk-dot {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.16);
}

.luz-trk-step.current .luz-trk-dot {
    border-color: #10b981;
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.22);
}

/* 4. Modo Pasillo / Lista de Compras Táctil */
.luz-aisle-header-btn {
    border: 1px solid rgba(37, 99, 235, 0.28);
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.74rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

body.dark-theme .luz-aisle-header-btn {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.35);
    color: #7dd3fc;
}

.luz-aisle-budget-box {
    border-radius: 14px;
    padding: 11px 13px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    margin-bottom: 12px;
}

body.dark-theme .luz-aisle-budget-box {
    background: #0f172a;
    border-color: #334155;
}

.luz-aisle-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 13px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.18s ease;
}

body.dark-theme .luz-aisle-item {
    background: #0f172a;
    border-color: #334155;
}

.luz-aisle-item.checked {
    opacity: 0.62;
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.06);
}

.luz-aisle-item.checked .luz-aisle-name {
    text-decoration: line-through;
}

.luz-aisle-check-circle {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 2px solid #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 900;
    color: transparent;
    flex-shrink: 0;
    transition: all 0.16s ease;
}

.luz-aisle-item.checked .luz-aisle-check-circle {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.luz-aisle-name {
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.25;
}

/* 5. Club de Frescura / Puntos de Fidelización */
.om-nutri-pill.luz-loyalty-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-color: rgba(139, 92, 246, 0.42) !important;
    background: linear-gradient(135deg, rgba(245, 243, 255, 0.95), rgba(237, 233, 254, 0.65));
    color: #6d28d9;
    font-weight: 800;
    cursor: pointer;
}

body.dark-theme .om-nutri-pill.luz-loyalty-pill {
    background: rgba(109, 40, 217, 0.24);
    border-color: rgba(167, 139, 250, 0.45) !important;
    color: #ddd6fe;
}

.om-nutri-pill.luz-tracker-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-color: rgba(16, 185, 129, 0.55) !important;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    font-weight: 800;
    cursor: pointer;
}

body.dark-theme .om-nutri-pill.luz-tracker-pill {
    background: rgba(16, 185, 129, 0.22);
    color: #6ee7b7;
}

#luz-cart-loyalty-hint {
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 9px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px dashed rgba(139, 92, 246, 0.35);
    color: #5b21b6;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
}

body.dark-theme #luz-cart-loyalty-hint {
    background: rgba(139, 92, 246, 0.18);
    color: #ddd6fe;
}

.luz-loyalty-hero {
    border-radius: 16px;
    padding: 15px;
    background: linear-gradient(135deg, #1e3a5f 0%, #312e81 100%);
    color: #ffffff;
    margin-bottom: 12px;
    box-shadow: 0 10px 24px rgba(30, 58, 95, 0.25);
}

.luz-ticket-vip-badge {
    margin: 8px auto 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f5f3ff;
    border: 1px solid #c4b5fd;
    color: #5b21b6;
    font-size: 0.68rem;
    font-weight: 800;
    text-align: center;
    width: fit-content;
}

@media (max-width: 768px) {
    #luz-tracker-sheet-modal,
    #luz-aisle-modal,
    #luz-loyalty-modal {
        align-items: flex-end;
        padding: 0;
    }
    #luz-change-bill-input,
    #luz-mix-usd-input,
    #luz-aisle-budget-input {
        font-size: 16px !important;
    }
    .luz-aisle-header-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .luz-reveal,
    .luz-ambient-mesh,
    .luz-svg-layer-back,
    .luz-badge-pill,
    .product-card,
    .product-card.luz-card-pending,
    #luz-morphing-bar,
    .omega-extension-phone-card .omega-extension-avatar-wrapper::before,
    .luz-liquid-wave-track,
    .luz-footer-wave-back,
    .luz-empty-svg-main,
    .luz-empty-orb-1,
    .luz-empty-orb-2,
    .luz-empty-orb-3,
    .luz-empty-floor-shadow,
    .luz-ticker-roll,
    .luz-theme-spin,
    #mob-nav-cart-badge.luz-badge-ding,
    .luz-qcat-glider,
    .luz-sidebar-glider,
    .luz-light-mote,
    .luz-toast-progress,
    #invoice-modal-content.luz-thermal-ticket,
    .luz-ticket-holo-stamp,
    .omega-chat-fab-btn::before,
    .luz-radar-dot::after,
    .feed-card-frescura,
    .feed-info-card,
    .feed-card-frescura.luz-frescura-pending,
    .feed-info-card.luz-frescura-pending,
    .feed-card-frescura .icon-cold,
    .feed-card-frescura .luz-quality-scanline,
    .feed-card-frescura .icon-change svg,
    .omega-chat-msg,
    #luz-scroll-ring-btn,
    .luz-voice-bars span,
    #luz-voice-search-btn.is-listening,
    #luz-morph-voice-btn.is-listening {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
    .luz-light-motes-layer {
        display: none !important;
    }
    #luz-morphing-bar:not(.luz-morph-visible),
    #luz-scroll-ring-btn:not(.visible) {
        display: none !important;
    }
    #luz-scroll-indicator {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   27. FASE 11: ESCÁNER EN PASILLO, LISTA FAMILIAR, PEDIDO PARA FAMILIAR,
       MI AHORRO OMEGA, REPOSICIÓN DE DESPENSA & MOTION UI
   ═══════════════════════════════════════════════════════════════════════════ */

/* Modales Fase 11 (reutilizan .luz-f9-sheet-card) */
#luz-scan-modal,
#luz-family-share-modal {
    position: fixed;
    inset: 0;
    z-index: 266000;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
}

#luz-scan-modal.open,
#luz-family-share-modal.open {
    opacity: 1;
    pointer-events: auto;
}

#luz-scan-modal.open .luz-f9-sheet-card,
#luz-family-share-modal.open .luz-f9-sheet-card {
    transform: translate3d(0, 0, 0) scale(1);
}

/* 1. Escáner con haz láser holográfico */
.luz-scan-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    background: #0b1220;
    margin-bottom: 12px;
}

.luz-scan-viewport video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.luz-scan-reticle {
    position: absolute;
    left: 12%;
    right: 12%;
    top: 22%;
    bottom: 22%;
    border-radius: 14px;
    pointer-events: none;
    box-shadow: 0 0 0 999px rgba(2, 6, 23, 0.42);
}

.luz-scan-reticle::before,
.luz-scan-reticle::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    border: 3px solid transparent;
    border-top-color: #34d399;
    border-bottom-color: #34d399;
    clip-path: polygon(0 0, 22% 0, 22% 100%, 0 100%, 0 0, 100% 0, 100% 100%, 78% 100%, 78% 0);
}

.luz-scan-laser {
    position: absolute;
    left: 4%;
    right: 4%;
    top: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, #34d399 18%, #a7f3d0 50%, #34d399 82%, transparent);
    box-shadow: 0 0 12px 2px rgba(52, 211, 153, 0.75);
    animation: luzScanLaser 1.9s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes luzScanLaser {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(0, calc(var(--luz-reticle-h, 120px) - 2px), 0); }
}

.luz-scan-viewport.is-hit .luz-scan-reticle {
    animation: luzScanHitPulse 0.5s ease-out;
}

@keyframes luzScanHitPulse {
    0% { box-shadow: 0 0 0 999px rgba(2, 6, 23, 0.42), 0 0 0 0 rgba(52, 211, 153, 0.9); }
    100% { box-shadow: 0 0 0 999px rgba(2, 6, 23, 0.42), 0 0 0 26px rgba(52, 211, 153, 0); }
}

.luz-scan-status {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: #e2e8f0;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.luz-scan-fallback-msg {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 18px;
    text-align: center;
    color: #cbd5e1;
    font-size: 0.8rem;
    line-height: 1.4;
}

.luz-scan-manual-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.luz-scan-manual-row input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 11px;
    border: 1.5px solid #cbd5e1;
    font-size: 16px;
    font-weight: 700;
    background: transparent;
    color: inherit;
    outline: none;
}

body.dark-theme .luz-scan-manual-row input {
    border-color: #334155;
}

.luz-scan-manual-row button {
    border: none;
    border-radius: 11px;
    padding: 0 14px;
    background: #1e3a5f;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
}

body.dark-theme .luz-scan-manual-row button {
    background: #2563eb;
}

.luz-scan-result-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    border: 1.5px solid rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(37, 99, 235, 0.05));
    animation: luzScanCardIn 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.luz-scan-result-card.is-miss {
    border-color: rgba(245, 158, 11, 0.45);
    background: rgba(245, 158, 11, 0.08);
}

@keyframes luzScanCardIn {
    from { opacity: 0; transform: scale(0.82) translate3d(0, 10px, 0); }
    to { opacity: 1; transform: scale(1) translate3d(0, 0, 0); }
}

.luz-scan-result-card img {
    width: 58px;
    height: 58px;
    border-radius: 10px;
    object-fit: contain;
    background: #f8fafc;
    flex-shrink: 0;
}

.luz-scan-result-name {
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.25;
}

.luz-scan-result-prices {
    font-size: 0.74rem;
    margin-top: 3px;
    line-height: 1.4;
}

.luz-scan-result-prices strong {
    color: #c0392b;
    font-size: 0.92rem;
}

body.dark-theme .luz-scan-result-prices strong {
    color: #fca5a5;
}

.luz-scan-add-btn {
    margin-top: 7px;
    border: none;
    border-radius: 999px;
    padding: 6px 13px;
    background: #10b981;
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 800;
    cursor: pointer;
}

.luz-scan-add-btn[disabled] {
    background: #94a3b8;
    cursor: not-allowed;
}

/* 2. Lista Familiar Compartida */
.luz-family-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.luz-family-field label {
    font-size: 0.74rem;
    font-weight: 800;
    opacity: 0.85;
}

.luz-family-field input,
.luz-family-field select,
.luz-family-field textarea {
    width: 100%;
    padding: 9px 11px;
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    background: transparent;
    color: inherit;
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
}

body.dark-theme .luz-family-field input,
body.dark-theme .luz-family-field select,
body.dark-theme .luz-family-field textarea {
    border-color: #334155;
    background: #0f172a;
}

.luz-family-share-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.luz-family-share-actions button {
    border: 1.5px solid #cbd5e1;
    background: transparent;
    color: inherit;
    border-radius: 12px;
    padding: 10px 8px;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.luz-family-share-actions .is-wa {
    grid-column: 1 / -1;
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

#luz-shared-list-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0;
    padding: 11px 13px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.09), rgba(16, 185, 129, 0.08));
    border: 1px solid rgba(37, 99, 235, 0.28);
    font-size: 0.8rem;
    font-weight: 700;
    animation: luzScanCardIn 0.4s ease-out;
}

#luz-shared-list-banner button {
    border: none;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.74rem;
    font-weight: 800;
    cursor: pointer;
    background: #1e3a5f;
    color: #ffffff;
}

#luz-shared-list-banner .luz-banner-ghost {
    background: transparent;
    color: inherit;
    border: 1px solid rgba(148, 163, 184, 0.5);
}

/* 3. Pedido para un Familiar (Remesas en especie) */
#luz-family-gift-box {
    margin-top: 12px;
    border-top: 1px dashed var(--border-color, #e2e8f0);
    padding-top: 10px;
}

.luz-gift-toggle-row {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    user-select: none;
}

.luz-gift-toggle-row input {
    width: 18px;
    height: 18px;
    accent-color: #10b981;
    flex-shrink: 0;
}

#luz-family-gift-fields {
    display: none;
    margin-top: 10px;
    padding: 11px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.28);
}

#luz-family-gift-box.open #luz-family-gift-fields {
    display: block;
    animation: luzScanCardIn 0.32s ease-out;
}

.luz-gift-section-title {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    opacity: 0.75;
    margin: 4px 0 7px;
}

.luz-gift-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.luz-gift-grid .luz-family-field {
    margin-bottom: 8px;
}

/* 4. Mi Ahorro Omega con brillo metálico */
#luz-savings-badge {
    display: none;
    position: relative;
    overflow: hidden;
    margin-top: 6px;
    padding: 7px 11px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    color: #78350f;
    font-size: 0.76rem;
    font-weight: 800;
    text-align: center;
}

body.dark-theme #luz-savings-badge {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(217, 119, 6, 0.18));
    color: #fde68a;
}

#luz-savings-badge::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    transform: skewX(-18deg);
    animation: luzMetalShine 8s ease-in-out infinite;
}

@keyframes luzMetalShine {
    0%, 82% { left: -60%; }
    100% { left: 130%; }
}

/* 5. Tarjeta de Reposición de Despensa */
#luz-restock-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(139, 92, 246, 0.07));
    border: 1px solid rgba(99, 102, 241, 0.3);
    animation: luzScanCardIn 0.45s ease-out;
}

.luz-restock-ico {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.luz-restock-body {
    flex: 1;
    min-width: 0;
}

.luz-restock-title {
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.3;
}

.luz-restock-sub {
    font-size: 0.72rem;
    opacity: 0.8;
    margin-top: 2px;
    line-height: 1.35;
}

.luz-restock-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.luz-restock-actions button {
    border: none;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.74rem;
    font-weight: 800;
    cursor: pointer;
    background: #1e3a5f;
    color: #ffffff;
}

.luz-restock-actions .luz-banner-ghost {
    background: transparent;
    color: inherit;
    border: 1px solid rgba(148, 163, 184, 0.5);
}

body.dark-theme .luz-restock-actions button:not(.luz-banner-ghost),
body.dark-theme #luz-shared-list-banner button:not(.luz-banner-ghost) {
    background: #2563eb;
}

/* MOTION UI · Celebración de metas (onda dorada + micro-confeti GPU) */
.cart-delivery-progress-wrap.luz-goal-wave .delivery-progress-bar-bg {
    position: relative;
    overflow: hidden;
}

.cart-delivery-progress-wrap.luz-goal-wave .delivery-progress-bar-bg::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40%;
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.95), transparent);
    animation: luzGoldWave 0.9s ease-out forwards;
}

@keyframes luzGoldWave {
    to { left: 110%; }
}

.luz-confetti-layer {
    position: fixed;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 280000;
}

.luz-confetti-bit {
    position: absolute;
    left: 0;
    top: 0;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    opacity: 0;
    will-change: transform, opacity;
    animation: luzConfettiFly 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes luzConfettiFly {
    0% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
    100% { opacity: 0; transform: translate3d(var(--dx, 0px), var(--dy, -60px), 0) rotate(var(--rot, 180deg)) scale(0.6); }
}

/* MOTION UI · Expansión desde el punto de toque (Quick-View) */
#luz-quickview-modal.open .luz-qv-card.luz-qv-morph-in {
    animation: luzQvMorphIn 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes luzQvMorphIn {
    from { opacity: 0.2; transform: scale(0.32); }
    to { opacity: 1; transform: scale(1); }
}

/* MOTION UI · Rebote táctil elástico amortiguado */
.luz-elastic-tap {
    animation: luzElasticTap 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes luzElasticTap {
    0% { transform: scale(1); }
    40% { transform: scale(0.94); }
    75% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* MOTION UI · Odómetro: leve pulso al terminar de rodar */
.luz-roll-settle {
    animation: luzRollSettle 0.28s ease-out;
}

@keyframes luzRollSettle {
    0% { transform: translate3d(0, -2px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

@media (max-width: 768px) {
    #luz-scan-modal,
    #luz-family-share-modal {
        align-items: flex-end;
        padding: 0;
    }
    .luz-gift-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .luz-family-field input,
    .luz-family-field select,
    .luz-family-field textarea {
        font-size: 16px;
    }
    #luz-restock-card {
        align-items: flex-start;
    }
}

/* Accesibilidad + Modo Ahorro de Datos: apagar movimiento decorativo */
@media (prefers-reduced-motion: reduce) {
    .luz-scan-laser,
    #luz-savings-badge::after,
    .luz-confetti-bit,
    .luz-elastic-tap,
    .luz-roll-settle,
    #luz-quickview-modal.open .luz-qv-card.luz-qv-morph-in,
    .luz-scan-result-card,
    #luz-restock-card,
    #luz-shared-list-banner {
        animation: none !important;
    }
}

body.luz-data-saver #luz-savings-badge::after,
body.luz-data-saver .luz-confetti-layer {
    display: none !important;
}
