:root {
    /* Palette: Deep Navy + Muted Crimson (Costco/Mercadona style) */
    --primary-blue: #1e3a5f;        /* Navy profundo */
    --primary-hover: #152d4a;       /* Navy más oscuro */
    --primary-blue-light: #e8eef7;  /* Azul suave para fondos */
    --supermarket-red: #c0392b;     /* Rojo oscuro/muted, no brillante */
    --supermarket-red-light: #fdecea;
    --supermarket-purple: #6d5f8a;
    --success-green: #2d7d4f;
    --danger-red: #b91c1c;
    --bg-body: #f5f4f1;             /* Blanco cálido, como Mercadona */
    --bg-panel: #ffffff;
    --bg-panel-warm: #faf9f7;
    --text-main: #1a1a2e;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --border-color: #e5e7eb;
    --border-strong: #d1d5db;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
    --font-main: 'Inter', sans-serif;
    --whatsapp-green: #128c7e;
    --whatsapp-hover: #0d6b5e;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

/* ════════════════════════════════════════════════════════════
   SCROLLBAR ULTRA-PREMIUM GLOBAL
   Elimina la barra blanca tosca/asquerosa por defecto de Windows
   y la sustituye por una cápsula flotante elegante y moderna
   ════════════════════════════════════════════════════════════ */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

body.dark-theme *,
body.dark-mode * {
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

html, body {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

body.dark-theme,
body.dark-mode {
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

::-webkit-scrollbar,
*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 9999px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.6);
}

body.dark-theme ::-webkit-scrollbar-thumb,
body.dark-mode ::-webkit-scrollbar-thumb,
body.dark-theme *::-webkit-scrollbar-thumb,
body.dark-mode *::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
}

body.dark-theme ::-webkit-scrollbar-thumb:hover,
body.dark-mode ::-webkit-scrollbar-thumb:hover,
body.dark-theme *::-webkit-scrollbar-thumb:hover,
body.dark-mode *::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}

::-webkit-scrollbar-button,
*::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

::-webkit-scrollbar-corner,
*::-webkit-scrollbar-corner {
    background: transparent;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    z-index: 0;
}

/* ════════════════════════════════════════════════════════════
   MARCA DE AGUA GLOBAL — Pseudo-elemento fixed detrás del contenido
   Imagen: /fondo-supermarket.jpg, opacidad muy tenue
════════════════════════════════════════════════════════════ */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('/fondo-supermarket.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.04;
    z-index: -1;
    pointer-events: none;
}

/* ════════════════════════════════════════════════════════════
   TOPBAR: Barra informativa delgada
════════════════════════════════════════════════════════════ */
.om-topbar {
    background: var(--primary-blue);
    color: rgba(255,255,255,0.85);
    font-size: 0.75rem;
    padding: 5px 20px !important;
}
.om-topbar-inner {
    max-width: 1380px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.om-topbar-msg { font-weight: 500; }
.om-topbar-right { display: flex; align-items: center; gap: 10px; }
.om-topbar-link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    transition: color 0.15s;
}
.om-topbar-link:hover { color: white; }
.om-topbar-sep { color: rgba(255,255,255,0.3); }
.top-bar-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}
.top-bar-info .separator {
    color: rgba(255, 255, 255, 0.3);
    font-weight: normal;
}

.om-topbar-theme {
    background: transparent;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    padding: 2px;
    transition: color 0.15s;
}
.om-topbar-theme:hover { color: white; }

/* ════════════════════════════════════════════════════════════
   HEADER: Logo + Buscador + Acciones
════════════════════════════════════════════════════════════ */
.om-header {
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 2px solid var(--supermarket-red);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    height: 80px !important;
    max-height: 80px !important;
    padding: 0 20px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: visible !important;
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}

.om-header.om-header-scrolled {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
    border-bottom-color: rgba(220, 38, 38, 0.4) !important;
}

body.dark-theme .om-header {
    background: rgba(31, 41, 55, 0.90);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-theme .om-header.om-header-scrolled {
    background: rgba(17, 24, 39, 0.84) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}
.om-header-inner {
    max-width: 1380px;
    margin: 0 auto;
    width: 100%;
    height: 100% !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}
/* Logo */
.om-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    height: 100% !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.om-logo-img {
    width: 170px !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain;
    padding: 0 !important;
    margin: 0 !important;
}

/* Acciones del header */
.om-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
    height: 100% !important;
}
.om-branch-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 6px 12px;
    font-size: 0.82rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.om-branch-box:hover {
    border-color: var(--border-strong);
}
#sucursal-active {
    display: none !important;
}
body.dark-theme #sucursal-active {
    display: none !important;
}

/* Custom Branch Selector */
.custom-branch-wrapper {
    position: relative;
    user-select: none;
    font-family: var(--font-main);
}

.custom-branch-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
}

.custom-branch-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.custom-branch-wrapper.open .custom-branch-arrow {
    transform: rotate(180deg);
}

.custom-branch-options {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 190px;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    overflow: hidden;
    padding: 6px 0;
}

.custom-branch-wrapper.open .custom-branch-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-branch-option {
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.custom-branch-option:hover {
    background-color: var(--primary-blue-light);
    color: var(--primary-blue);
}

.custom-branch-option.active {
    background-color: var(--primary-blue);
    color: white;
}

.custom-branch-option.active:hover {
    background-color: var(--primary-hover);
    color: white;
}

body.dark-theme .custom-branch-option:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

/* ─── LIVE PULSE INDICATOR & BRANCH STATUS (Fase 4.3) ─── */
.om-live-dot-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    margin-right: 2px;
    flex-shrink: 0;
}

.om-live-dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.9);
    position: relative;
    z-index: 2;
}

.om-live-pulse {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.45);
    animation: omPulseRing 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
    z-index: 1;
}

@keyframes omPulseRing {
    0% {
        transform: scale(0.6);
        opacity: 0.95;
    }
    60% {
        transform: scale(1.6);
        opacity: 0;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.om-topbar-live-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 12px;
    margin-right: 8px;
    letter-spacing: 0.2px;
    vertical-align: middle;
}

.branch-opt-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.branch-opt-name {
    font-weight: 600;
}

.branch-opt-status {
    font-size: 0.68rem;
    font-weight: 600;
    color: #10b981;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 6px;
    border-radius: 8px;
}

.branch-opt-dot {
    width: 5px;
    height: 5px;
    background: #10b981;
    border-radius: 50%;
}

.custom-branch-option.active .branch-opt-status {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.25);
}

.custom-branch-option.active .branch-opt-dot {
    background: #ffffff;
}
.om-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #25d366;
    color: white;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s;
}
.om-wa-btn:hover { background: #1da851; }
.om-cart-btn {
    display: none !important;
    align-items: center;
    gap: 8px;
    background: var(--supermarket-red);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: background 0.2s;
}
.om-cart-btn:hover { background: #9b2318; }
.om-cart-badge {
    background: white;
    color: var(--supermarket-red);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.68rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.om-cart-label { font-size: 0.82rem; }
.om-cart-total { font-size: 0.82rem; font-weight: 800; }
.om-hamburger {
    display: none;
    background: transparent;
    border: 1.5px solid #e5e7eb;
    cursor: pointer;
    color: var(--text-main);
    padding: 8px;
    border-radius: 8px;
    align-items: center;
}

/* ════════════════════════════════════════════════════════════
   NAV BAR: Categorías rápidas horizontales
════════════════════════════════════════════════════════════ */
.om-nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
    overflow-x: auto;
    scrollbar-width: none;
}
.om-nav::-webkit-scrollbar { display: none; }
.om-nav-inner {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
}
.om-nav-link {
    text-decoration: none;
    font-size: 0.83rem;
    font-weight: 600;
    color: #6b7280;
    padding: 10px 14px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.om-nav-link:hover { color: var(--supermarket-red); border-bottom-color: var(--supermarket-red); }
.om-nav-link.active { color: var(--supermarket-red); border-bottom-color: var(--supermarket-red); }

/* ════════════════════════════════════════════════════════════
   PÁGINA PRINCIPAL
════════════════════════════════════════════════════════════ */
.om-page {
    max-width: 1380px;
    margin: 0 auto;
    padding: 20px 24px 40px;
}

/* ════════════════════════════════════════════════════════════
   CARRUSEL DE BANNERS
════════════════════════════════════════════════════════════ */
.om-carousel-wrap { margin-bottom: 28px; }

.om-carousel {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 360px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.om-carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slide base */
.om-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: hidden;
}

/* Slide 1: Azul navy */
.slide-1 {
    background: linear-gradient(135deg, #1a2e4a 0%, #1e3a5f 60%, #2d5a8e 100%);
}
/* Slide 2: Rojo */
.slide-2 {
    background: linear-gradient(135deg, #7b241c 0%, #c0392b 60%, #e74c3c 100%);
}
/* Slide 3: Verde azul */
.slide-3 {
    background: linear-gradient(135deg, #0f4c75 0%, #1b6ca8 60%, #0099cc 100%);
}

.om-slide-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 52px 56px;
    gap: 14px;
    z-index: 2;
}

.om-slide-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 4px;
    margin-bottom: 6px;
    order: 2;
}

.om-slide-title {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 900;
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 2px;
    order: 1;
}

.om-slide-sub {
    font-size: 0.98rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
    order: 3;
}

.om-slide-btn {
    display: inline-flex;
    align-items: center;
    background: white;
    color: #1a2e4a;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    width: fit-content;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 6px;
}
.om-slide-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.om-slide-btn.btn-green { background: #25d366; color: white; }

.om-slide-visual {
    width: 420px;
    flex-shrink: 0;
    overflow: hidden;
}
.om-slide-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.om-slide-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 320px;
    flex-shrink: 0;
    font-size: 9rem;
    opacity: 0.25;
    user-select: none;
}

/* Flechas del carrusel */
.om-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 2rem;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}
.om-carousel-arrow:hover { background: rgba(255,255,255,0.3); }
.arrow-left { left: 16px; }
.arrow-right { right: 16px; }

/* Dots */
.om-carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.om-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}
.om-dot.active { background: white; transform: scale(1.3); }

/* ════════════════════════════════════════════════════════════
   CATEGORÍAS RÁPIDAS
════════════════════════════════════════════════════════════ */
.om-quickcat {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 28px;
}
.om-quickcat-inner {}
.om-section-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.om-section-label::after { content: ''; flex: 1; height: 1px; background: var(--border-color); }

.om-qcat-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
}

.om-qcat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    padding: 12px 8px;
    border-radius: 10px;
    border: 1.5px solid transparent;
    transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.om-qcat-item:hover {
    border-color: var(--supermarket-red);
    background: var(--supermarket-red-light);
    transform: translateY(-2px);
}
.om-qcat-ico {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    line-height: 1;
}
.om-qcat-item span:not(.om-qcat-ico) {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
}

/* ════════════════════════════════════════════════════════════
   STORE: Layout Sidebar + Productos
════════════════════════════════════════════════════════════ */
.om-store-wrap {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: start;
}

.om-store-sidebar {
    position: sticky;
    top: 100px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

.om-store-sidebar::-webkit-scrollbar {
    width: 5px;
}

.om-store-sidebar::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
}

.om-store-sidebar::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 9999px;
    transition: background 0.2s ease;
}

.om-store-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.6);
}

body.dark-theme .om-store-sidebar,
body.dark-mode .om-store-sidebar {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.07);
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

body.dark-theme .om-store-sidebar::-webkit-scrollbar-thumb,
body.dark-mode .om-store-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
}

body.dark-theme .om-store-sidebar::-webkit-scrollbar-thumb:hover,
body.dark-mode .om-store-sidebar::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}

.om-sidebar-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: var(--supermarket-red);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Sidebar Categorías Navigation */
.categorias-nav {
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: 4px;
    background: var(--bg-panel);
}

/* Category Button Item */
.cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Hover effect */
.cat-item:hover {
    background: var(--primary-blue-light);
    color: var(--primary-blue);
}

/* Active Category Button */
.cat-item.active {
    background: var(--primary-blue);
    color: #ffffff;
}

/* Label containing Emoji + Text */
.cat-item-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-item-emoji {
    font-size: 1rem;
    display: inline-block;
    vertical-align: middle;
}

/* Count Badge on the right */
.cat-item-count {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    background: var(--border-color);
    color: var(--text-muted);
    transition: all 0.2s ease;
}

/* Active count badge styles */
.cat-item.active .cat-item-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.cat-item:hover .cat-item-count {
    background: rgba(30, 58, 95, 0.15);
    color: var(--primary-blue);
}

.om-store-main {}

.om-store-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.om-store-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
}

.om-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .om-slide-visual { width: 300px; }
    .om-qcat-grid { grid-template-columns: repeat(4, 1fr); }
    .om-store-wrap { grid-template-columns: 190px 1fr; }
}

@media (max-width: 900px) {
    .om-carousel { height: 300px; }
    .om-slide-content { padding: 36px 32px; gap: 12px; }
    .om-slide-title { font-size: 1.8rem; }
    .om-slide-visual { width: 200px; }
    .om-store-wrap { grid-template-columns: 1fr; }
    .om-store-sidebar { position: static; }
}

@media (max-width: 768px) {
    .om-topbar { display: none; }
    .om-header-inner { padding: 10px 16px; gap: 10px; }
    .om-logo-img { height: 38px; }
    .om-searchbar { max-width: none; }
    .om-wa-btn { display: none; }
    .om-hamburger { display: flex; }
    .om-cart-label, .om-cart-total { display: none; }
    .om-nav {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 68px; left: 0; right: 0;
        background: white;
        border-bottom: 3px solid var(--supermarket-red);
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        z-index: 190;
        padding: 8px;
        overflow-y: auto;
        max-height: calc(100vh - 68px);
    }
    .om-nav.open { display: flex; }
    .om-nav-inner { flex-direction: column; align-items: flex-start; padding: 0; }
    .om-nav-link { width: 100%; padding: 12px 16px; }
    .om-page { padding: 12px 12px 32px; }
    .om-carousel { height: 240px; border-radius: 12px; }
    .om-slide-content { padding: 28px 24px; gap: 10px; }
    .om-slide-title { font-size: 1.5rem; }
    .om-slide-visual { display: none; }
    .om-slide-icon { font-size: 6rem; width: 160px; }
    .om-quickcat { padding: 18px 16px; }
    .om-qcat-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .om-qcat-ico { width: 42px; height: 42px; font-size: 1.3rem; }
    .om-store-wrap { grid-template-columns: 1fr; }
    .om-store-sidebar { display: none; } /* sidebar oculto en mobile, usar filtros por botón */
}

@media (max-width: 480px) {
    .om-qcat-grid { grid-template-columns: repeat(4, 1fr); }
    .om-carousel { height: 200px; }
    .om-slide-title { font-size: 1.3rem; }
    .om-carousel-arrow { display: none; }
}

/* ════════════════════════════════════════════════════════════
   DARK MODE para nuevos componentes
════════════════════════════════════════════════════════════ */
body.dark-theme .om-header { background: #1f2937; }
body.dark-theme .om-searchbar .om-search-input { background: #111827; border-color: rgba(255,255,255,0.1); color: #f9fafb; }
body.dark-theme .om-branch-box { background: #111827; border-color: rgba(255,255,255,0.1); }
body.dark-theme .om-branch-box select { color: #f9fafb; }
body.dark-theme .om-nav { background: #1f2937; border-bottom-color: rgba(255,255,255,0.06); }
body.dark-theme .om-quickcat { background: #1f2937; border-color: rgba(255,255,255,0.07); }
body.dark-theme .om-qcat-item span:not(.om-qcat-ico) { color: #e5e7eb; }
body.dark-theme .om-store-sidebar { background: #1f2937; border-color: rgba(255,255,255,0.07); }

/* ════════════════════════════════════════════════════════════
   PRODUCTS & STORE COMPONENTS
════════════════════════════════════════════════════════════ */

/* Products Grid */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    width: 100%;
}

/* Product Card */
.product-card {
    background-color: var(--bg-panel); /* Adaptable dinámicamente al modo claro y oscuro */
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s cubic-bezier(0.2,0.8,0.4,1), box-shadow 0.25s ease, border-color 0.25s ease;
    will-change: transform;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.18), 0 0 0 1.5px rgba(220,38,38,0.22);
    border-color: rgba(220,38,38,0.3);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    background-color: var(--bg-body); /* Hace juego con el fondo del body del tema actual */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.2,0.8,0.4,1);
}
.product-card:hover .product-image-wrapper img {
    transform: scale(1.06);
}

.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 8px;
}

.offer-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--supermarket-red);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

/* =================== BADGE ÚLTIMAS UNIDADES =================== */
@keyframes om-pulse-stock {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(251,146,60,0.55); }
    50%       { opacity: 0.92; box-shadow: 0 0 0 5px rgba(251,146,60,0); }
}
.om-low-stock-badge {
    position: absolute;
    bottom: 10px;
    left: 8px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 20px;
    letter-spacing: 0.03em;
    animation: om-pulse-stock 1.8s ease-in-out infinite;
    pointer-events: none;
}

/* =================== BOTÓN AGREGAR: ESTADO ÉXITO =================== */
.om-add-btn {
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.om-add-btn--success {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    border-color: transparent !important;
    color: #fff !important;
    pointer-events: none;
    transform: scale(0.97);
}

/* =================== EFECTO FLY-TO-CART PARABÓLICO (FASE 4.4) =================== */
@keyframes omParabolicFly {
    0% {
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
        opacity: 1;
    }
    35% {
        transform: translate3d(calc(var(--fly-x) * 0.35), calc(var(--fly-y) * 0.18 - 50px), 0) scale(1.15) rotate(12deg);
        opacity: 0.95;
    }
    100% {
        transform: translate3d(var(--fly-x), var(--fly-y), 0) scale(0.22) rotate(40deg);
        opacity: 0.15;
    }
}

.om-fly-item {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
    border-radius: 50%;
    border: 2px solid #10b981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45), 0 2px 10px rgba(0,0,0,0.3);
    object-fit: cover;
    animation: omParabolicFly 0.65s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
    will-change: transform, opacity;
}

.product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-stock {
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stock-in {
    color: var(--success-green);
}

.stock-out {
    color: var(--danger-red);
}

.product-price-section {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-usd {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
}

.price-usd-original {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 4px;
}

.price-ves, .price-cop {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.card-action {
    padding: 12px 16px 16px;
    background-color: rgba(226, 232, 240, 0.2);
}

/* Buttons */
.btn {
    width: 100%;
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-disabled {
    background-color: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.qty-btn {
    border: none;
    background: transparent;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.qty-btn:hover {
    background-color: #f8fafc;
}

.qty-num {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

/* Floating Cart Button */
.floating-cart { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background-color: #ef233c; /* Rojo Supermarket */ color: white; border: none; border-radius: 50px; padding: 12px 30px; font-size: 16px; font-weight: bold; display: flex; align-items: center; gap: 15px; box-shadow: 0 10px 20px rgba(239, 35, 60, 0.3); z-index: 990; cursor: pointer; transition: transform 0.2s; }
.floating-cart:hover { transform: translateX(-50%) scale(1.05); }
.floating-cart .separator { color: rgba(255, 255, 255, 0.5); }

/* Soporte para ocultar/mostrar según estado del carrito */
.floating-cart {
    transform: translateX(-50%) scale(0);
    opacity: 0;
    pointer-events: none;
}
.floating-cart.visible {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}
.floating-cart.visible:hover {
    transform: translateX(-50%) scale(1.05);
}

.floating-cart .badge {
    background-color: white;
    color: #ef233c;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
}

.floating-cart .cart-icon {
    position: relative;
    display: flex;
    align-items: center;
}

@keyframes cartBounceCenter {
    0%   { transform: translateX(-50%) scale(1); }
    30%  { transform: translateX(-50%) scale(1.18) translateY(-4px); }
    60%  { transform: translateX(-50%) scale(0.96); }
    80%  { transform: translateX(-50%) scale(1.06); }
    100% { transform: translateX(-50%) scale(1); }
}

.floating-cart.bounce {
    animation: cartBounceCenter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-icon-wrapper {
    position: relative;
    display: flex;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: white;
    color: var(--supermarket-red);
    font-size: 0.75rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-total-floating {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 12px;
}

/* Drawer / Shopping Cart Overlay */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99990;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 440px;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    background-color: var(--bg-body);
    z-index: 99999;
    box-shadow: -5px 0 25px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.open {
    right: 0;
}

.drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-panel);
    flex-shrink: 0;
}

.drawer-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
}

.close-drawer-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.close-drawer-btn:hover {
    color: var(--text-main);
    background: rgba(0,0,0,0.05);
}

/* ==========================================================================
   FASE 4.5: BARRA DE PROGRESO DE DELIVERY EN CARRITO
   ========================================================================== */
.cart-delivery-progress-wrap {
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(16, 185, 129, 0.08));
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.cart-delivery-progress-wrap.completed {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.18));
    border-bottom-color: rgba(16, 185, 129, 0.3);
}

.delivery-progress-text-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 8px;
}

.delivery-progress-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
    flex-shrink: 0;
}

.delivery-progress-icon svg,
.delivery-progress-icon i {
    width: 12px;
    height: 12px;
}

.delivery-progress-msg {
    line-height: 1.3;
}

.delivery-progress-msg strong {
    color: #059669;
    font-weight: 700;
}

.cart-delivery-progress-wrap.completed .delivery-progress-msg strong {
    color: #047857;
}

.delivery-progress-bar-bg {
    width: 100%;
    height: 7px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.delivery-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 10px;
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.delivery-progress-bar-fill.completed {
    background: linear-gradient(90deg, #10b981, #059669);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

body.dark-theme .cart-delivery-progress-wrap {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(16, 185, 129, 0.08));
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-theme .delivery-progress-msg strong {
    color: #34d399;
}

body.dark-theme .delivery-progress-bar-bg {
    background: rgba(255, 255, 255, 0.12);
}

.drawer-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.empty-cart-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    color: var(--text-muted);
    gap: 16px;
    padding: 40px 10px;
}

.empty-cart-icon {
    width: 64px;
    height: 64px;
    stroke-width: 1.5;
}

.drawer-footer {
    flex-shrink: 0;
    max-height: 54vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px 20px 20px 20px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-panel);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.totals-area {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-total {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
}

.conversion-row {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: white;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
}

.btn-invoice-preview {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-invoice-preview:hover {
    background: var(--bg-panel);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

/* Cart Item Card */
.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    width: 100%;
    box-sizing: border-box;
}

.cart-item-image {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-panel);
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cart-item-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
    overflow-wrap: break-word;
    word-break: break-word;
}

.cart-item-price {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    overflow-wrap: break-word;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--bg-panel);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.cart-item-qty button {
    border: none;
    background: transparent;
    padding: 4px 8px;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-main);
}

.cart-item-qty span {
    font-weight: 700;
    font-size: 0.85rem;
    min-width: 16px;
    text-align: center;
}

.cart-item-weight-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
    flex-shrink: 0;
}

.cart-edit-btn {
    background: #eff6ff !important;
    color: #2563eb !important;
    border: 1px solid #bfdbfe !important;
    padding: 5px 9px !important;
    border-radius: 8px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
}

.cart-edit-btn:hover {
    background: #dbeafe !important;
}

.cart-del-btn {
    background: #fef2f2 !important;
    color: #ef4444 !important;
    border: 1px solid #fecaca !important;
    padding: 5px 8px !important;
    border-radius: 8px !important;
    font-size: 0.75rem !important;
    cursor: pointer !important;
}

.cart-del-btn:hover {
    background: #fee2e2 !important;
}

/* Badge IVA / Exento en items del carrito */
.cart-item-iva-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    background: #fee2e2;
    color: #b91c1c;
    margin-left: 4px;
    letter-spacing: 0.02em;
}
.cart-item-iva-badge.exento {
    background: #d1fae5;
    color: #065f46;
}

/* Desglose de IVA en el footer del drawer */
.cart-iva-desglose-container {
    background: var(--bg-secondary, #f8fafc);
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
}
.cart-desglose-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 2px 0;
}
.cart-desglose-row.total {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text-main);
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid var(--border-color);
}

/* Botón WhatsApp deshabilitado por compra mínima */
.btn-disabled-min {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    filter: grayscale(0.5);
}

/* Badge IVA visible en las tarjetas del catálogo */
.catalog-iva-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 8px;
    background: #fee2e2;
    color: #b91c1c;
    margin-left: 5px;
    vertical-align: middle;
    letter-spacing: 0.01em;
}
.catalog-iva-badge.exento {
    background: #d1fae5;
    color: #065f46;
}

/* Tarjetas agotadas: más tenues, al final de la lista */
.product-card.out-of-stock-card {
    opacity: 0.55;
    filter: grayscale(0.4);
}
.product-card.out-of-stock-card:hover {
    opacity: 0.7;
    filter: grayscale(0.2);
}

/* Skeletons */
.skeleton-card {
    height: 320px;
    border-radius: 16px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: loading-skeleton 1.5s infinite;
}

.no-results-msg {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    padding: 64px 0;
    gap: 16px;
    text-align: center;
}

.no-results-icon {
    width: 48px;
    height: 48px;
}

@keyframes loading-skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =================== PAGINACIÓN =================== */
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 0 16px;
    flex-wrap: wrap;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-panel);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, transform 0.1s;
    box-shadow: var(--shadow-sm);
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-panel);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.page-number:hover {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.page-number.active {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(59,130,246,0.35);
}

.page-ellipsis {
    width: 36px;
    text-align: center;
    color: var(--text-muted);
    font-weight: 600;
}

/* Results counter */
.results-count {
    display: flex;
    align-items: center;
    background: rgba(59,130,246,0.08);
    border: 1px solid rgba(59,130,246,0.2);
    color: var(--primary-blue);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
}

body.dark-theme .results-count,
body.dark-mode .results-count {
    background: rgba(30, 58, 138, 0.45) !important;
    border: 1px solid rgba(96, 165, 250, 0.5) !important;
    color: #93c5fd !important;
    font-weight: 700 !important;
}

/* Footer */
.catalog-footer {
    background: #0f172a;
    color: rgba(255,255,255,0.55);
    padding: 28px 24px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.footer-content p {
    font-size: 0.82rem;
    line-height: 1.6;
}
/* Responsive para el HERO (sobreescritura antigua, corregida) */
@media (max-width: 1100px) {
    .hero-section {
        grid-template-columns: 1fr 1fr;
        padding: 48px 24px;
        gap: 32px;
    }
    .cat-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Header responsive */
    .header-container { height: 60px; padding: 0 16px; }
    .nav-links {
        display: none;
        position: fixed;
        top: 60px; left: 0; right: 0;
        background: #fff;
        border-bottom: 2px solid var(--supermarket-red);
        flex-direction: column;
        padding: 12px;
        gap: 4px;
        z-index: 99;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }
    .nav-links.active { display: flex; }
    .nav-link { padding: 12px 16px; width: 100%; }
    .mobile-menu-btn { display: flex; }
    .header-wa-btn { display: none; }
    .branch-selector-wrapper span { display: none; }

    /* Hero mobile */
    .hero-section {
        grid-template-columns: 1fr;
        padding: 40px 20px;
        gap: 28px;
    }
    .hero-h1 { font-size: 2rem; }
    .hero-img-wrapper { display: none; }

    /* Trust bar mobile */
    .trust-bar { padding: 16px 20px; }
    .trust-bar-inner { flex-wrap: wrap; gap: 12px; }
    .trust-item { flex: 0 0 calc(50% - 6px); }
    .trust-sep { display: none; }

    /* Categorias */
    .cat-section { padding: 40px 20px; }
    .cat-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cat-card { padding: 14px 14px; }
    .cat-card-icon { width: 42px; height: 42px; font-size: 1.3rem; }

    /* Main */
    .main-content { padding: 20px 16px; }
}

@media (max-width: 480px) {
    .hero-chips { display: none; }
    .cat-grid-4 { grid-template-columns: repeat(2, 1fr); }
}


        grid-template-columns: 1fr;
        gap: 32px;
        padding: 48px 32px;
    }
    .hero-image-col {
        justify-content: center;
    }
    .hero-img-frame {
        max-width: 100%;
    }
    .categorias-dest-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .trust-bar-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .trust-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

@media (max-width: 768px) {
    /* Header responsive */
    .header-topbar {
        display: none; /* Ocultar topbar en móvil */
    }
    .header-container {
        height: 58px;
    }
    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-panel);
        border-bottom: 2px solid var(--supermarket-red);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        z-index: 99;
        box-shadow: var(--shadow-md);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-link {
        padding: 12px 16px;
        border-radius: var(--radius-sm);
        width: 100%;
    }
    .mobile-menu-btn {
        display: flex;
    }
    /* Hero móvil */
    .hero-inner {
        grid-template-columns: 1fr;
        padding: 40px 20px;
        gap: 28px;
    }
    .hero-h1 { font-size: 1.75rem; }
    .hero-image-col { display: none; } /* ocultar imagen en móvil pequeño */
    .hero-stats { flex-wrap: wrap; gap: 16px; }
    .hero-stat { padding: 0 16px; }
    /* Categorias dest */
    .categorias-dest-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    .categorias-dest-section { padding: 40px 20px; }
    /* Trust bar */
    .trust-bar {
        padding: 16px 20px;
    }
    .trust-bar-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .trust-item:not(:last-child) { border-right: none; }
    /* Main content */
    .main-content { padding: 20px 16px; }
}

@media (max-width: 500px) {
    .categorias-dest-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .cat-dest-icon { width: 40px; height: 40px; font-size: 1.2rem; }
    .cat-dest-card span { font-size: 0.72rem; }
    .hero-stats .hero-stat { padding: 0 10px; }
    .stat-num { font-size: 1.2rem; }
}


/* =================== RESPONSIVE SIDEBAR =================== */

/* Tablet: reducir ancho del sidebar un poco */
@media (max-width: 1024px) {
    .tienda-layout {
        grid-template-columns: 200px 1fr;
        gap: 20px;
    }
    .cat-item {
        font-size: 0.82rem;
        padding: 8px 10px;
    }
}

/* Móvil: sidebar se convierte en barra horizontal deslizable */
@media (max-width: 768px) {
    .tienda-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .categorias-sidebar {
        position: relative;
        top: 0;
        max-height: none;
        overflow-y: visible;
        padding: 6px;
        border-radius: 14px;
    }
    .sidebar-header {
        display: none; /* ocultar encabezado en móvil para ahorrar espacio */
    }
    .categorias-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 4px;
        scrollbar-width: none;
        flex-wrap: nowrap;
    }
    .categorias-nav::-webkit-scrollbar {
        display: none;
    }
    .cat-item {
        flex-shrink: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 6px 12px;
        border-radius: 20px;
        white-space: nowrap;
        border: 1px solid var(--border-color);
        background: var(--bg-panel);
    }
    .cat-item.active {
        background: var(--primary-blue);
        color: white;
        border-color: var(--primary-blue);
    }
    .cat-item.active .cat-item-count {
        background: rgba(255,255,255,0.2);
        color: white;
    }
    .cat-item-count {
        display: none; /* ocultar contadores en móvil para que quepan más pills */
    }
}


/* =================== SORT DROPDOWN =================== */
.sort-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.sort-icon {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
}

#sort-select {
    display: none !important;
}

body.dark-theme #sort-select {
    display: none !important;
}

/* Catalog Custom Search Bar styling */
.catalog-search-wrapper {
    display: flex;
    align-items: center;
    padding: 5px 15px;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
    backdrop-filter: blur(10px);
    width: 240px;
}

.catalog-search-wrapper .search-icon {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    margin-right: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.catalog-search-wrapper input {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    width: 100%;
    padding: 8px 0;
}

.catalog-search-wrapper:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

body.dark-theme .catalog-search-wrapper:focus-within {
    border-color: var(--primary-blue);
}

/* Custom Select Dropdown styles */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    min-width: 190px;
    font-family: var(--font-main);
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px 12px 36px;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
    backdrop-filter: blur(10px);
}

.custom-select-trigger:hover {
    border-color: var(--border-strong);
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.custom-select-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    margin-left: 8px;
}

.custom-select-wrapper.open .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 9999 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    overflow: hidden;
    padding: 6px 0;
}

.custom-select-wrapper.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select-option {
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.15s, color 0.15s;
}

.custom-select-option:hover {
    background-color: var(--primary-blue-light);
    color: var(--primary-blue);
}

.custom-select-option.active {
    background-color: var(--primary-blue);
    color: white;
}

.custom-select-option.active:hover {
    background-color: var(--primary-hover);
    color: white;
}

body.dark-theme .custom-select-trigger:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-theme .custom-select-option:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}


/* =================== CATEGORÍAS FILTER =================== */
.categorias-scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: -8px -4px 0;
    padding: 4px 4px 8px;
}

.categorias-scroll-wrap::-webkit-scrollbar { display: none; }

.categorias-filter {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    padding: 2px 0;
    width: max-content;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 30px;
    border: 1.5px solid var(--border-color);
    background-color: var(--bg-panel);
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.cat-pill:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background-color: rgba(59, 130, 246, 0.05);
}

.cat-pill.active {
    background: linear-gradient(135deg, var(--primary-blue), #6366f1);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.cat-count {
    background: rgba(255,255,255,0.25);
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.cat-pill:not(.active) .cat-count {
    background: rgba(0,0,0,0.07);
    color: var(--text-muted);
}

/* =================== IN-CART CARD STYLES =================== */
.product-card.in-cart {
    border: 2px solid var(--success-green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12), var(--shadow-md);
}

.in-cart-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--success-green);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(16,185,129,0.4);
}

/* =================== BOUNCE ANIMATION (agregar al carrito) =================== */
@keyframes cartBounce {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.22) translateY(-5px); }
    60%  { transform: scale(0.95); }
    80%  { transform: scale(1.07); }
    100% { transform: scale(1); }
}

/* La clase .bounce se aplica tanto a .floating-cart como a .floating-cart-btn */
.floating-cart.bounce,
.floating-cart-btn.bounce {
    animation: cartBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =================== PAGE INFO =================== */
.page-info {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: -8px;
    padding-bottom: 8px;
}

/* Selector icon */
.selector-icon {
    width: 13px;
    height: 13px;
    color: var(--text-muted);
}

/* =================== TRUST BAR OLD (conflicto resuelto) =================== */
/* Nota: se usa el bloque nuevo definido arriba en el archivo */


/* =================== SECTION HEADER =================== */
.section-header {
    margin-bottom: 16px;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-icon {
    width: 28px;
    height: 28px;
    color: var(--supermarket-red);
}

.section-subtitle {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.text-center {
    text-align: center;
    justify-content: center;
}

.text-center .section-title {
    justify-content: center;
}

/* =================== SUCURSALES / NOSOTROS =================== */
.sucursales-section {
    background-color: var(--bg-body);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 60px 20px;
}

.sucursales-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sucursales-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.sucursal-card {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 0px solid transparent !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
    border-radius: 20px !important;
    padding: 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sucursal-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12) !important;
}

.sucursal-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-blue);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.sucursal-card:nth-child(2) .sucursal-badge {
    background-color: rgba(139, 92, 246, 0.1);
    color: var(--supermarket-purple);
}

.sucursal-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.sucursal-icon-box svg {
    width: 30px;
    height: 30px;
}

.sucursal-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
}

.sucursal-address,
.sucursal-hours {
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.sucursal-address i,
.sucursal-hours i,
.sucursal-address svg,
.sucursal-hours svg {
    color: #6b7280 !important;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.sucursal-actions {
    margin-top: auto;
    padding-top: 20px;
}

.btn-whatsapp-sucursal {
    background-color: #25D366 !important; /* Verde oficial de WhatsApp */
    color: white;
    width: 100%;
    text-decoration: none;
    padding: 12px 24px;
    border: none;
    border-radius: 50px !important; /* Forma de píldora */
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-whatsapp-sucursal:hover {
    background-color: #1DA851 !important;
    transform: scale(1.03);
}

/* =================== MAIN FOOTER =================== */
.main-footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 60px 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.3fr 1.3fr;
    gap: 36px;
    padding-bottom: 40px;
    position: relative;
    border-bottom: none !important;
}

.footer-grid::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5%;
    width: 90%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15) 20%, rgba(255, 255, 255, 0.15) 80%, transparent);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.footer-col h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.brand-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
}

.footer-logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}

.footer-logo .accent-text {
    color: var(--supermarket-red);
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 360px;
}

.links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.links-col a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.links-col a:hover {
    color: white;
}

.contact-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-info-item {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
}

.contact-info-item a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-info-item a:hover {
    color: white;
}

.contact-info-item svg {
    width: 16px;
    height: 16px;
    color: var(--supermarket-red);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
}

.social-link:hover {
    background-color: var(--supermarket-red);
    color: white;
}

.footer-bottom {
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 4px 20px rgba(0, 0, 0, 0.1);
}

.footer-bottom p {
    font-size: 0.85rem;
}

.legal-text {
    font-size: 0.75rem !important;
    opacity: 0.6;
    max-width: 720px;
    line-height: 1.5;
}

/* =================== FOOTER REFINAMIENTO FASE 2 =================== */
.footer-brand-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.footer-subtitle {
    font-size: 0.8rem;
    font-weight: 600;
    color: #f43f5e;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: -6px;
    margin-bottom: 4px;
}

.footer-support-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.support-primary-line, .support-email-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.support-icon {
    width: 18px;
    height: 18px;
    color: #10b981;
    flex-shrink: 0;
    margin-top: 2px;
}

.support-email-line .support-icon {
    color: #38bdf8;
}

.support-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 2px;
}

.support-link-wa {
    color: #fff !important;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s;
}

.support-link-wa:hover {
    color: #10b981 !important;
}

.support-link-mail {
    color: #cbd5e1 !important;
    font-size: 0.82rem;
    text-decoration: none;
    word-break: break-all;
}

.support-link-mail:hover {
    color: #fff !important;
}

/* Acordeón departamentos internos */
.footer-depts-details {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.footer-depts-summary {
    cursor: pointer;
    padding: 10px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    user-select: none;
    transition: background 0.2s;
}

.footer-depts-summary::-webkit-details-marker {
    display: none;
}

.footer-depts-summary::marker {
    display: none;
}

.footer-depts-summary:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.depts-chevron {
    width: 14px;
    height: 14px;
    margin-left: auto;
    transition: transform 0.25s ease;
}

.footer-depts-details[open] .depts-chevron {
    transform: rotate(180deg);
}

.footer-depts-content {
    padding: 10px 14px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.78rem;
}

.dept-row {
    color: #94a3b8;
}

.dept-name {
    font-weight: 700;
    color: #e2e8f0;
    margin-right: 4px;
}

.dept-row a {
    color: #cbd5e1 !important;
    text-decoration: none;
}

.dept-row a:hover {
    color: #fff !important;
    text-decoration: underline;
}

.dept-email a {
    font-size: 0.75rem;
    color: #94a3b8 !important;
}

/* Área Institucional & Proveedores */
.corp-description {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 12px;
}

.corp-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.corp-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.corp-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.corp-btn-alert {
    border-color: rgba(244, 63, 94, 0.25);
    color: #fda4af;
}

.corp-btn-alert:hover {
    background: rgba(244, 63, 94, 0.12);
    border-color: #f43f5e;
    color: #fff;
    text-decoration: none;
}

.corp-hours {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.75rem;
    color: #94a3b8;
}

.corp-hours-title {
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 2px;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

.footer-bottom-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.78rem;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: #fff;
}

.footer-bottom-links .sep {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.7rem;
}

/* Ocultar el botón flotante invasivo en pantalla */
.pub-fab {
    display: none !important;
}

/* =================== RESPONSIVE MEDIA QUERIES =================== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 69px; /* exact header height */
        left: -100%;
        width: 100%;
        height: calc(100vh - 69px);
        background-color: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 24px;
        gap: 20px;
        z-index: 49;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 10px;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .header-right .nav-whatsapp-btn {
        display: none; /* hidden on small mobile inside header, hero CTA handles it */
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
        padding: 0 20px;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .trust-bar-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sucursales-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* =================== THEME TOGGLE BUTTON =================== */
.theme-toggle-btn {
    border: 1px solid var(--border-color);
    background: var(--bg-panel);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-main);
    flex-shrink: 0;
}
.theme-toggle-btn:hover {
    background-color: rgba(59, 130, 246, 0.08);
    transform: scale(1.05);
}
body.dark-theme .theme-icon-moon {
    display: none !important;
}
body.dark-theme .theme-icon-sun {
    display: block !important;
    color: #fbbf24;
}

/* =================== DARK THEME VARIABLES & OVERRIDES =================== */
body.dark-theme {
    --bg-body: #0b0f19;
    --bg-panel: #141a2d;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
}
body.dark-theme input,
body.dark-theme select,
body.dark-theme textarea,
body.dark-theme .cat-pill:not(.active),
body.dark-theme .product-card,
body.dark-theme .cart-drawer,
body.dark-theme .modal-card,
body.dark-theme .branch-selector-wrapper,
body.dark-theme .payment-calc-details,
body.dark-theme .qty-btn,
body.dark-theme .close-drawer-btn,
body.dark-theme .close-modal-btn {
    background-color: #172033;
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.1);
}
body.dark-theme input::placeholder,
body.dark-theme textarea::placeholder {
    color: #64748b;
}
body.dark-theme .header,
body.dark-theme .drawer-header,
body.dark-theme .drawer-footer,
body.dark-theme .modal-header,
body.dark-theme .modal-footer,
body.dark-theme .quantity-control {
    background-color: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}
body.dark-theme .qty-btn:hover,
body.dark-theme .close-drawer-btn:hover,
body.dark-theme .close-modal-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
}
body.dark-theme .trust-bar {
    background-color: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}
body.dark-theme .trust-text h4 {
    color: #f8fafc;
}
body.dark-theme .sucursal-card {
    background-color: #141a2d;
    border-color: rgba(255, 255, 255, 0.08);
}
body.dark-theme .sucursal-card h3 {
    color: #f8fafc;
}
body.dark-theme .sucursal-icon-box {
    background-color: #172033;
}

/* =================== SHARE CART & PAYMENT CALC =================== */
.share-cart-btn:hover {
    background-color: rgba(59, 130, 246, 0.08);
}
.payment-calc-details p {
    margin-bottom: 4px;
    line-height: 1.4;
    font-weight: 500;
}
.payment-calc-details p:last-child {
    margin-bottom: 0;
}
.payment-calc-details strong {
    color: var(--supermarket-red);
}
body.dark-theme .payment-calc-details strong {
    color: #ff6b8b;
}

/* =================== MODAL OVERLAY (HISTORIAL) =================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99995;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: opacity 0.3s ease;
}
.modal-card {
    background-color: white;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlide 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalSlide {
    0% { transform: scale(0.9) translateY(20px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}
.close-modal-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s;
}
.close-modal-btn:hover {
    color: var(--text-main);
    background-color: #f1f5f9;
}
.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: 400px;
}
.historial-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
}
.historial-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    background-color: #f8fafc;
}
.historial-item-header {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--text-main);
}
.historial-item-body {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    border-top: 1px dashed var(--border-color);
    padding-top: 8px;
    margin-top: 8px;
}
.historial-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
}
.historial-total {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text-main);
}
.btn-repeat-order {
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 6px;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s;
}
.btn-repeat-order:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

/* =================== TOAST NOTIFICATIONS (PREMIUM STYLE) =================== */
.toast-container {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    width: 90%;
    max-width: 380px;
}

.toast {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 500;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: auto;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    border-left: 4px solid var(--success-green);
}

.toast-error {
    border-left: 4px solid var(--danger-red);
}

.toast-info {
    border-left: 4px solid var(--primary-blue);
}

/* Correcciones de modo oscuro adicionales */
body.dark-theme .historial-item {
    background-color: #172033;
    border-color: rgba(255, 255, 255, 0.08);
}
body.dark-theme .close-modal-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

/* =================== DARK MODE =================== */
body.dark-theme {
    --bg-body: #111827;
    --bg-panel: #1f2937;
    --bg-panel-warm: #1a2232;
    --bg-secondary: #162032;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --text-light: #6b7280;
    --border-color: rgba(255,255,255,0.1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
}

body.dark-theme .header {
    background: #1f2937;
    border-bottom-color: rgba(255,255,255,0.08);
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

body.dark-theme .nav-links {
    background: #1f2937;
    border-color: rgba(255,255,255,0.06);
}

body.dark-theme .branch-selector-wrapper {
    background: #111827;
    border-color: rgba(255,255,255,0.1);
}

body.dark-theme .hero-section {
    background: transparent;
}

body.dark-theme .hero-badge-float {
    background: #2d3748;
}

body.dark-theme .trust-bar {
    background: #1a2232;
}

body.dark-theme .cat-section {
    background: #1f2937;
}

body.dark-theme .cat-card {
    background: #1f2937;
    border-color: rgba(255,255,255,0.08);
}

body.dark-theme .cat-card:hover {
    border-color: var(--supermarket-red);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

body.dark-theme .categorias-sidebar {
    background: #1f2937;
}

body.dark-theme .skeleton-card {
    background: linear-gradient(90deg, #1f2937 25%, #2d3748 50%, #1f2937 75%);
    background-size: 200% 100%;
}

body.dark-theme .search-wrapper input,
body.dark-theme .sort-wrapper select {
    background: #1f2937;
    border-color: rgba(255,255,255,0.12);
    color: var(--text-main);
}

body.dark-theme .product-card {
    background: #1f2937;
    border-color: rgba(255,255,255,0.08);
}

body.dark-theme .cart-drawer { background: #1f2937; }
body.dark-theme .drawer-footer { background: #111827; }
body.dark-theme .cart-item { border-color: rgba(255,255,255,0.08); }
body.dark-theme .drawer-header .cart-share-header-btn {
    color: #7dd3fc !important;
    background: rgba(56, 189, 248, 0.12) !important;
    border: 1px solid rgba(56, 189, 248, 0.28) !important;
}
body.dark-theme .drawer-header .cart-share-header-btn:hover {
    background: rgba(56, 189, 248, 0.22) !important;
}
body.dark-theme .cart-iva-desglose-container {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95)) !important;
    border: 1px solid rgba(56, 189, 248, 0.2) !important;
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
body.dark-theme .cart-desglose-row {
    color: #cbd5e1 !important;
    font-weight: 500;
}
body.dark-theme .cart-desglose-row span:last-child {
    color: #f8fafc !important;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
body.dark-theme .cart-desglose-row.total {
    color: #f8fafc !important;
    border-top: 1px dashed rgba(148, 163, 184, 0.25) !important;
    margin-top: 6px;
    padding-top: 6px;
}
body.dark-theme .cart-desglose-row.total span:last-child {
    color: #34d399 !important;
    font-weight: 800;
    font-size: 0.96rem;
}
body.dark-theme .cart-item-iva-badge {
    background: rgba(244, 63, 94, 0.18) !important;
    color: #fda4af !important;
    border: 1px solid rgba(244, 63, 94, 0.3);
}
body.dark-theme .cart-item-iva-badge.exento {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #6ee7b7 !important;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
body.dark-theme #cart-drawer .main-total {
    color: #f8fafc !important;
}
body.dark-theme #cart-drawer #total-usd {
    color: #34d399 !important;
}
body.dark-theme #cart-drawer .conversion-row span:last-child {
    color: #e2e8f0 !important;
    font-weight: 700;
}
body.dark-theme .modal-card { background: #1f2937; }
body.dark-theme .modal-header { border-color: rgba(255,255,255,0.08); }
body.dark-theme .site-header {
    background: #1f2937;
    border-bottom-color: rgba(255,255,255,0.06);
}

body.dark-theme .site-nav {
    background: #1f2937;
    border-color: rgba(255,255,255,0.06);
}

body.dark-theme .snav-link:hover {
    background: rgba(192,57,43,0.15);
}

body.dark-theme .hero-wrap {
    background: #1a2232;
    border-bottom-color: rgba(255,255,255,0.06);
}

body.dark-theme .hero-box {
    background: #1a2232;
}

body.dark-theme .hero-title {
    color: #f9fafb;
}

body.dark-theme .hbtn-outline {
    border-color: rgba(255,255,255,0.15);
    color: #e5e7eb;
}

body.dark-theme .hero-img-col { background: #111827; }

body.dark-theme .cat-wrap { background: #111827; }

body.dark-theme .cat-tile {
    background: #1f2937;
    border-color: rgba(255,255,255,0.08);
}

body.dark-theme .cat-tile span:not(.cat-tile-icon) { color: #e5e7eb; }

body.dark-theme .sucursal-pill {
    background: #111827;
    border-color: rgba(255,255,255,0.1);
}

body.dark-theme .sucursal-pill select { color: #e5e7eb; }


/* Spinner de carga */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

body.dark-theme {
    --bg-body: #111827;
    --bg-panel: #1f2937;
    --bg-panel-warm: #1a2232;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --text-light: #6b7280;
    --border-color: rgba(255,255,255,0.1);
    --border-strong: rgba(255,255,255,0.15);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
}

body.dark-theme .header {
    background: #1f2937;
    border-bottom-color: var(--supermarket-red);
}

body.dark-theme .header-topbar {
    background: #111827;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

body.dark-theme .nav-links {
    background: #1f2937;
}

body.dark-theme .hero-section {
    background: #1a2232;
}

body.dark-theme .hero-float-card {
    background: #2d3748;
    color: var(--text-main);
}

body.dark-theme .trust-bar {
    background: #1f2937;
}

body.dark-theme .categorias-dest-section {
    background: #111827;
}

body.dark-theme .cat-dest-card {
    background: #1f2937;
    border-color: rgba(255,255,255,0.08);
}

body.dark-theme .cat-dest-card:hover {
    border-color: var(--primary-blue);
}

body.dark-theme .categorias-sidebar {
    background: #1f2937;
}

body.dark-theme .cat-item:hover {
    background: rgba(255,255,255,0.06);
}

body.dark-theme .skeleton-card {
    background: linear-gradient(90deg, #1f2937 25%, #2d3748 50%, #1f2937 75%);
    background-size: 200% 100%;
}

body.dark-theme .search-wrapper input,
body.dark-theme .sort-wrapper select {
    background: #1f2937;
    border-color: rgba(255,255,255,0.12);
    color: var(--text-main);
}

body.dark-theme .product-card {
    background: #1f2937;
    border-color: rgba(255,255,255,0.08);
}

body.dark-theme .product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

body.dark-theme .cart-drawer {
    background: #1f2937;
}

body.dark-theme .drawer-footer {
    background: #111827;
}

body.dark-theme .cart-item {
    border-color: rgba(255,255,255,0.08);
}

body.dark-theme .modal-card {
    background: #1f2937;
}

body.dark-theme .modal-header {
    border-color: rgba(255,255,255,0.08);
}

body.dark-theme .sucursal-card {
    background: #1f2937 !important;
    background-color: #1f2937 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
}

body.dark-theme .sucursal-card:hover {
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45) !important;
}

body.dark-theme .sucursal-icon-box {
    background-color: rgba(255, 255, 255, 0.06) !important;
}

body.dark-theme .sucursal-badge {
    background-color: rgba(59, 130, 246, 0.15) !important;
    color: #93c5fd !important;
}

body.dark-theme .sucursal-card:nth-child(2) .sucursal-badge {
    background-color: rgba(139, 92, 246, 0.15) !important;
    color: #c084fc !important;
}

body.dark-theme .om-qcat-ico {
    background: rgba(255, 255, 255, 0.07) !important;
}

body.dark-theme .om-qcat-item:hover {
    background: rgba(192, 57, 43, 0.15) !important;
    border-color: var(--supermarket-red) !important;
}

/* Spinner de carga */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ════════════════════════════════════════════════════════════
   CARRUSEL — Slides fotográficos (1.png a 7.png)
════════════════════════════════════════════════════════════ */

/* Slide contenedor con imagen de fondo */
.om-slide-img {
    position: relative;
    overflow: hidden;
}

/* Ken Burns cinematographic animation on hero slide images */
@keyframes omKenBurns {
    0% {
        transform: scale(1) translate3d(0, 0, 0);
    }
    50% {
        transform: scale(1.06) translate3d(-1%, -0.5%, 0);
    }
    100% {
        transform: scale(1) translate3d(0, 0, 0);
    }
}

.om-slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: omKenBurns 18s ease-in-out infinite alternate;
    will-change: transform;
    transition: transform 0.8s ease;
}

/* Zoom sutil al slide activo — lo activamos desde JS si se desea,
   pero también funciona como efecto on-hover del carrusel */
.om-carousel:hover .om-slide-img:not(.inactive) .om-slide-bg {
    transform: scale(1.04);
}

/* Overlay degradado: negro denso a la izquierda, transparente a la derecha */
.om-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.45) 45%,
        rgba(0, 0, 0, 0.08) 100%
    );
    z-index: 1;
}

/* Caption de texto sobre la imagen */
.om-slide-caption {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 52px 56px;
    height: 100%;
    max-width: 580px;
}

/* Reutiliza .om-slide-tag, .om-slide-title, .om-slide-sub y .om-slide-btn
   ya definidos más arriba — sin cambios necesarios */

/* Dot activo más pronunciado para fondos de foto */
.om-slide-img ~ .om-carousel-dots .om-dot.active,
.om-carousel-dots .om-dot.active {
    width: 22px;
    border-radius: 4px;
}

/* ── Barra de progreso ───────────────────────────────────── */
.om-carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.om-carousel-progress-bar {
    height: 100%;
    width: 0%;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 0 2px 2px 0;
    /* La transición se controla desde JS */
}

/* ── Responsive overrides ────────────────────────────────── */
@media (max-width: 900px) {
    .om-slide-caption { padding: 36px 32px; gap: 10px; max-width: 100%; }
}

@media (max-width: 768px) {
    .om-slide-caption { padding: 28px 20px; gap: 8px; }
    .om-slide-overlay {
        background: linear-gradient(
            160deg,
            rgba(0,0,0,0.78) 0%,
            rgba(0,0,0,0.55) 60%,
            rgba(0,0,0,0.15) 100%
        );
    }
}

@media (max-width: 480px) {
    .om-slide-caption { padding: 20px 16px; gap: 6px; }
    .om-slide-caption .om-slide-sub { display: none; }
}

/* =================== SUCURSAL CHANGE OVERLAY & TRANSITION =================== */
.branch-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 15, 30, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.branch-transition-overlay.show {
    opacity: 1;
    visibility: visible;
}

.branch-transition-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 36px 30px 28px 30px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15);
    transform: scale(0.92) translateY(10px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.branch-transition-overlay.show .branch-transition-card {
    transform: scale(1) translateY(0);
}

/* Icono animado */
.branch-transition-icon-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.branch-transition-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(239, 35, 60, 0.2);
    animation: branchPulseEffect 1.6s infinite ease-out;
}

.branch-transition-icon {
    position: relative;
    font-size: 2.2rem;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
    animation: branchBounceEffect 1.2s ease-in-out infinite alternate;
}

/* Tag y títulos */
.branch-transition-tag {
    display: inline-block;
    padding: 4px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #475569;
    margin-bottom: 10px;
}

.branch-transition-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
    line-height: 1.25;
}

.branch-name-highlight {
    color: #ef233c;
    transition: color 0.3s ease;
}

.branch-transition-sub {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0 0 20px 0;
    font-weight: 500;
}

/* Caja de advertencia/información de Delivery */
.branch-delivery-notice {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-left: 5px solid #f59e0b;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 22px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.08);
}

.branch-delivery-notice-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.delivery-badge-icon {
    font-size: 1.2rem;
}

.delivery-badge-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #92400e;
}

.branch-delivery-notice-text {
    font-size: 0.82rem;
    color: #78350f;
    line-height: 1.45;
    margin: 0;
}

.branch-delivery-notice-text strong {
    color: #451a03;
}

/* Botón de Acción / Continuar */
.branch-action-wrap {
    width: 100%;
    margin-top: 6px;
}

.branch-continue-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border: none;
    border-radius: 16px;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #ffffff;
    background: linear-gradient(135deg, #ef233c 0%, #d90429 100%);
    box-shadow: 0 10px 25px rgba(239, 35, 60, 0.32);
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.branch-continue-btn svg {
    transition: transform 0.25s ease;
}

.branch-continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(239, 35, 60, 0.45);
    filter: brightness(1.05);
}

.branch-continue-btn:hover svg {
    transform: translateX(4px);
}

.branch-continue-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Temas específicos por Sede */
.sede-gp .branch-name-highlight {
    color: #ef233c !important;
}
.sede-gp .branch-transition-pulse {
    background: rgba(239, 35, 60, 0.25) !important;
}
.sede-gp .branch-continue-btn {
    background: linear-gradient(135deg, #ef233c 0%, #d90429 100%) !important;
    box-shadow: 0 10px 25px rgba(239, 35, 60, 0.35) !important;
}
.sede-gp .branch-continue-btn:hover {
    box-shadow: 0 14px 30px rgba(239, 35, 60, 0.5) !important;
}

.sede-tama .branch-name-highlight {
    color: #7c3aed !important;
}
.sede-tama .branch-transition-pulse {
    background: rgba(124, 58, 237, 0.25) !important;
}
.sede-tama .branch-continue-btn {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%) !important;
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.35) !important;
}
.sede-tama .branch-continue-btn:hover {
    box-shadow: 0 14px 30px rgba(124, 58, 237, 0.5) !important;
}

/* Soporte para Dark Theme */
.dark-theme .branch-transition-card {
    background: #1e293b;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.dark-theme .branch-transition-tag {
    background: #334155;
    color: #cbd5e1;
}
.dark-theme .branch-transition-title {
    color: #f8fafc;
}
.dark-theme .branch-transition-sub {
    color: #94a3b8;
}
.dark-theme .branch-delivery-notice {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.08) 100%);
    border-color: rgba(245, 158, 11, 0.3);
    border-left-color: #f59e0b;
}
.dark-theme .delivery-badge-title {
    color: #fbbf24;
}
.dark-theme .branch-delivery-notice-text {
    color: #fef3c7;
}
.dark-theme .branch-delivery-notice-text strong {
    color: #ffffff;
}

/* Animación de entrada suave en el grid de productos */
.products-grid-fade {
    animation: productGridRefresh 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes productGridRefresh {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes branchPulseEffect {
    0% {
        transform: scale(0.85);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@keyframes branchBounceEffect {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-6px);
    }
}

/* Toast flotante complementario */
.branch-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-left: 6px solid #ef233c;
    display: none !important; /* Oculto en favor del nuevo modal overlay */
}

/* =================== COOKIES CONSENT BANNER =================== */
.cookie-card {
    position: fixed;
    bottom: 30px;
    left: 30px;
    max-width: 380px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    padding: 20px;
    z-index: 9950;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(0);
    border: none !important;
}
.cookie-card.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}
.cookie-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.cookie-icon {
    font-size: 28px;
}
.cookie-text h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #1e3a8a;
    font-weight: bold;
}
.cookie-text p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}
.btn-accept {
    background: #ef233c;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    align-self: flex-end;
    width: 100%;
}
.btn-accept:hover {
    background: #d90429;
    transform: scale(1.02);
}

/* Ajustes responsivos para banner de cookies */
@media (max-width: 768px) {
    .cookie-card {
        left: 16px !important;
        right: 16px !important;
        bottom: calc(62px + 12px + env(safe-area-inset-bottom, 0px)) !important;
        max-width: none !important;
        padding: 10px 14px !important;
        border-radius: 14px !important;
        background: rgba(255, 255, 255, 0.85) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border: 1px solid rgba(255, 255, 255, 0.4) !important;
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08) !important;
        gap: 10px !important;
        z-index: 9950 !important;
    }

    body.dark-theme .cookie-card {
        background: rgba(30, 41, 59, 0.85) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
    }

    .cookie-content {
        gap: 12px !important;
    }

    .cookie-icon {
        font-size: 22px !important;
    }

    .cookie-text h4 {
        font-size: 14px !important;
        margin-bottom: 2px !important;
    }

    body.dark-theme .cookie-text h4 {
        color: #60a5fa !important;
    }

    .cookie-text p {
        font-size: 11px !important;
        line-height: 1.35 !important;
        color: #4b5563 !important;
    }

    body.dark-theme .cookie-text p {
        color: #9ca3af !important;
    }

    .btn-accept {
        padding: 8px 16px !important;
        font-size: 12px !important;
        border-radius: 30px !important;
        margin-top: 2px !important;
    }
}

/* =================== SUPERMARKET INFO FEED SECTION =================== */
.supermarket-info-feed {
    background-color: #f8f9fa !important; /* Solicitado: #f8f9fa */
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 60px 20px !important;
    box-sizing: border-box !important;
    font-family: 'Inter', sans-serif !important;
    gap: 60px !important;
    border-top: 1px solid #e5e7eb !important;
}

/* Evitar que cualquier elemento secundario de este bloque afecte a la página */
.supermarket-info-feed * {
    box-sizing: border-box !important;
}

.supermarket-info-feed .feed-container {
    max-width: 1380px !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* Grids helper */
.supermarket-info-feed .feed-grid-3 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 32px !important;
    width: 100% !important;
}

.supermarket-info-feed .feed-grid-2 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 32px !important;
    width: 100% !important;
}

/* Sesión 1: Guía de Pasos de Compra */
.supermarket-info-feed .feed-step-card {
    display: flex !important;
    align-items: flex-start !important;
    gap: 20px !important;
}

.supermarket-info-feed .feed-step-number {
    font-size: 3.5rem !important;
    font-weight: 300 !important;
    color: #1e3a5f !important; /* Navy */
    opacity: 0.35 !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

.supermarket-info-feed .feed-step-content h3 {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin: 0 0 8px 0 !important;
}

.supermarket-info-feed .feed-step-content p {
    font-size: 0.88rem !important;
    color: #6b7280 !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* Sesión 2: Horarios y Métodos de Pago */
.supermarket-info-feed .feed-info-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    padding: 28px !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 20px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03) !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}

.supermarket-info-feed .feed-info-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06) !important;
}

.supermarket-info-feed .feed-info-icon {
    width: 48px !important;
    height: 48px !important;
    background: #e8eef7 !important; /* Light blue */
    color: #1e3a5f !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.supermarket-info-feed .feed-svg-icon {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    display: block !important;
    flex-shrink: 0 !important;
}

.supermarket-info-feed .feed-info-content h3 {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin: 0 0 8px 0 !important;
}

.supermarket-info-feed .feed-info-content p {
    font-size: 0.88rem !important;
    color: #6b7280 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* Sesión 3: Módulo de Garantía de Frescura */
.supermarket-info-feed .feed-card-frescura {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    padding: 36px 28px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03) !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    width: 100% !important;
}

.supermarket-info-feed .feed-card-frescura:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06) !important;
}

.supermarket-info-feed .feed-frescura-icon {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 20px !important;
    flex-shrink: 0 !important;
}

.supermarket-info-feed .feed-frescura-icon.icon-cold {
    background: rgba(30, 58, 95, 0.08) !important;
    color: #1e3a5f !important;
}

.supermarket-info-feed .feed-frescura-icon.icon-quality {
    background: rgba(18, 140, 126, 0.08) !important;
    color: #128c7e !important;
}

.supermarket-info-feed .feed-frescura-icon.icon-change {
    background: rgba(192, 57, 43, 0.08) !important;
    color: #c0392b !important;
}

.supermarket-info-feed .feed-frescura-svg {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    display: block !important;
    flex-shrink: 0 !important;
}

.supermarket-info-feed .feed-card-frescura h3 {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin: 0 0 12px 0 !important;
}

.supermarket-info-feed .feed-card-frescura p {
    font-size: 0.88rem !important;
    color: #6b7280 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* Sesión 4: Central de Ayuda Rápida */
.supermarket-info-feed .feed-help-section {
    border-top: 1px solid #e5e7eb !important;
    padding-top: 32px !important;
    width: 100% !important;
}

.supermarket-info-feed .feed-help-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 24px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
}

.supermarket-info-feed .feed-help-item {
    font-size: 0.88rem !important;
    color: #1a1a2e !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: 500 !important;
}

.supermarket-info-feed .feed-help-link {
    color: #c0392b !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.2s !important;
}

.supermarket-info-feed .feed-help-link:hover {
    color: #1e3a5f !important;
}

/* Responsividad */
@media (max-width: 991px) {
    .supermarket-info-feed .feed-grid-3 {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }
    
    .supermarket-info-feed .feed-grid-2 {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    
    .supermarket-info-feed .feed-help-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
    }
}

/* Dark theme integration */
body.dark-theme .supermarket-info-feed {
    background-color: #111827 !important;
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-theme .supermarket-info-feed .feed-step-number {
    color: #38bdf8 !important;
    opacity: 0.5 !important;
}

body.dark-theme .supermarket-info-feed .feed-step-content h3,
body.dark-theme .supermarket-info-feed .feed-info-content h3,
body.dark-theme .supermarket-info-feed .feed-card-frescura h3,
body.dark-theme .supermarket-info-feed .feed-help-item {
    color: #f3f4f6 !important;
}

body.dark-theme .supermarket-info-feed .feed-step-content p,
body.dark-theme .supermarket-info-feed .feed-info-content p,
body.dark-theme .supermarket-info-feed .feed-card-frescura p {
    color: #9ca3af !important;
}

body.dark-theme .supermarket-info-feed .feed-info-card,
body.dark-theme .supermarket-info-feed .feed-card-frescura {
    background: #1f2937 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-theme .supermarket-info-feed .feed-info-icon {
    background: rgba(56, 189, 248, 0.12) !important;
    color: #38bdf8 !important;
}

body.dark-theme .supermarket-info-feed .feed-frescura-icon.icon-cold {
    background: rgba(56, 189, 248, 0.12) !important;
    color: #38bdf8 !important;
}

body.dark-theme .supermarket-info-feed .feed-frescura-icon.icon-quality {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #34d399 !important;
}

body.dark-theme .supermarket-info-feed .feed-frescura-icon.icon-change {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #f87171 !important;
}

body.dark-theme .supermarket-info-feed .feed-help-section {
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-theme .supermarket-info-feed .feed-help-link {
    color: #f87171 !important;
}

body.dark-theme .supermarket-info-feed .feed-help-link:hover {
    color: #38bdf8 !important;
}

/* ==========================================================================
   SECCIÓN DE LA QUINIELA SUPERMARKET
   ========================================================================== */
.seccion-quiniela-supermarket {
    background-color: var(--bg-panel-warm) !important;
    border-top: 1px solid var(--border-color) !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 30px 20px !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

.quiniela-banner-container {
    max-width: 1200px !important;
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
}

.quiniela-banner-left {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

.quiniela-cup-icon {
    font-size: 2.2rem !important;
}

.quiniela-banner-text {
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    color: var(--text-main) !important;
}

.quiniela-open-btn {
    background-color: var(--primary-blue) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 28px !important;
    border-radius: var(--radius-md) !important;
    font-family: var(--font-main) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: var(--shadow-sm) !important;
}

.quiniela-open-btn:hover {
    background-color: var(--primary-hover) !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow-md) !important;
}

/* ==========================================================================
   MINIVENTANA MODAL QUINIELA
   ========================================================================== */
.quiniela-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 99999 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
}

.quiniela-modal-overlay.open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.quiniela-modal-content {
    background-color: var(--bg-panel) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
    width: 90% !important;
    max-width: 460px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    position: relative !important;
    padding: 40px 30px !important;
    transition: max-width 0.3s ease, padding 0.3s ease !important;
    border: 1px solid var(--border-color) !important;
}

.quiniela-modal-content.wide {
    max-width: 1120px !important;
    padding: 30px 40px !important;
}

.quiniela-close-x {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    background: transparent !important;
    border: none !important;
    font-size: 2rem !important;
    line-height: 1 !important;
    color: var(--text-muted) !important;
    cursor: pointer !important;
    transition: color 0.2s !important;
    z-index: 10 !important;
}

.quiniela-close-x:hover {
    color: var(--text-main) !important;
}

/* Screens */
.quiniela-modal-overlay .q-screen {
    display: none !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
}

.quiniela-modal-overlay .q-screen.active {
    display: flex !important;
}

/* Icon box header */
.quiniela-modal-overlay .q-header-icon-box {
    width: 64px !important;
    height: 64px !important;
    background-color: var(--primary-blue-light) !important;
    color: var(--primary-blue) !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 24px !important;
}

.quiniela-modal-overlay .q-header-icon-box.shield-box {
    background-color: rgba(18, 140, 126, 0.1) !important;
    color: #128c7e !important;
}

/* Headings */
.quiniela-modal-overlay .q-screen h2 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--text-main) !important;
    margin-bottom: 12px !important;
    line-height: 1.25 !important;
}

.quiniela-modal-overlay .q-screen-sub {
    font-size: 0.9rem !important;
    color: var(--text-muted) !important;
    margin-bottom: 30px !important;
    line-height: 1.5 !important;
}

/* Form group */
.quiniela-modal-overlay .q-form-group {
    width: 100% !important;
    text-align: left !important;
    margin-bottom: 24px !important;
}

.quiniela-modal-overlay .q-form-group label {
    display: block !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    color: var(--text-muted) !important;
    margin-bottom: 8px !important;
}

.quiniela-modal-overlay .q-input-wrapper {
    position: relative !important;
    width: 100% !important;
}

.quiniela-modal-overlay .q-input-icon {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--text-muted) !important;
    pointer-events: none !important;
}

.quiniela-modal-overlay .q-form-group input {
    width: 100% !important;
    padding: 12px 14px 12px 42px !important;
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border-strong) !important;
    background-color: var(--bg-body) !important;
    color: var(--text-main) !important;
    font-family: var(--font-main) !important;
    font-size: 0.95rem !important;
    outline: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.quiniela-modal-overlay .q-form-group input:focus {
    border-color: var(--primary-blue) !important;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1) !important;
}

/* Buttons */
.quiniela-modal-overlay .q-btn {
    width: 100% !important;
    padding: 12px 24px !important;
    border-radius: var(--radius-md) !important;
    border: none !important;
    font-family: var(--font-main) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
}

.quiniela-modal-overlay .q-btn-blue {
    background-color: var(--primary-blue) !important;
    color: #ffffff !important;
}

.quiniela-modal-overlay .q-btn-blue:hover {
    background-color: var(--primary-hover) !important;
}

.quiniela-modal-overlay .q-btn-green {
    background-color: #128c7e !important;
    color: #ffffff !important;
}

.quiniela-modal-overlay .q-btn-green:hover {
    background-color: #0d6b5e !important;
}

/* Bottom links & auxiliary text */
.quiniela-modal-overlay .q-link-box {
    margin-top: 24px !important;
}

.quiniela-modal-overlay .q-link-box a {
    color: var(--primary-blue) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.quiniela-modal-overlay .q-link-box a:hover {
    color: var(--primary-hover) !important;
    text-decoration: underline !important;
}

/* Verification inputs */
.quiniela-modal-overlay .q-verify-code-inputs {
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-bottom: 24px !important;
    width: 100% !important;
}

.quiniela-modal-overlay .q-code-digit {
    width: 48px !important;
    height: 48px !important;
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--border-strong) !important;
    background-color: var(--bg-body) !important;
    color: var(--text-main) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    outline: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.quiniela-modal-overlay .q-code-digit:focus {
    border-color: #128c7e !important;
    box-shadow: 0 0 0 3px rgba(18, 140, 126, 0.1) !important;
}

.quiniela-modal-overlay .q-timer-box {
    margin-top: 16px !important;
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
}

/* Dashboard screen specific */
.quiniela-modal-overlay .screen-large {
    align-items: stretch !important;
    text-align: left !important;
}

.quiniela-modal-overlay .q-dashboard-header {
    border-bottom: 1px solid var(--border-color) !important;
    padding-bottom: 20px !important;
    margin-bottom: 20px !important;
}

.quiniela-modal-overlay .q-dashboard-header h2 {
    margin-bottom: 6px !important;
}

.quiniela-modal-overlay .q-dashboard-header p {
    font-size: 0.9rem !important;
    color: var(--text-muted) !important;
    margin-bottom: 20px !important;
}

.quiniela-modal-overlay .q-tabs-row {
    display: flex !important;
    gap: 12px !important;
}

.quiniela-modal-overlay .q-tab-btn {
    background-color: var(--bg-body) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-muted) !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-family: var(--font-main) !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.quiniela-modal-overlay .q-tab-btn:hover {
    color: var(--text-main) !important;
    border-color: var(--border-strong) !important;
}

.quiniela-modal-overlay .q-tab-btn.active {
    background-color: var(--primary-blue) !important;
    color: #ffffff !important;
    border-color: var(--primary-blue) !important;
}

/* Tab panes */
.quiniela-modal-overlay .q-tab-pane {
    display: none !important;
    width: 100% !important;
}

.quiniela-modal-overlay .q-tab-pane.active {
    display: block !important;
}

/* Dashboard subheader controls */
.quiniela-modal-overlay .q-dash-subheader {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-bottom: 20px !important;
    font-size: 0.85rem !important;
    flex-wrap: wrap !important;
}

.quiniela-modal-overlay .q-stat-badge {
    background-color: var(--primary-blue-light) !important;
    color: var(--primary-blue) !important;
    padding: 6px 12px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
}

.quiniela-modal-overlay .q-user-email-lbl {
    color: var(--text-main) !important;
    font-weight: 600 !important;
}

.quiniela-modal-overlay .q-logout-btn {
    background: transparent !important;
    border: none !important;
    color: var(--supermarket-red) !important;
    font-family: var(--font-main) !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    padding: 0 !important;
    text-decoration: underline !important;
}

.quiniela-modal-overlay .q-status-saved-badge {
    background-color: rgba(18, 140, 126, 0.1) !important;
    color: #128c7e !important;
    padding: 6px 12px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    margin-left: auto !important;
    animation: fadeIn 0.3s ease !important;
}

.quiniela-modal-overlay .hidden {
    display: none !important;
}

/* Prediction groups grid */
.quiniela-modal-overlay .q-groups-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    margin-bottom: 30px !important;
}

@media (max-width: 991px) {
    .quiniela-modal-overlay .q-groups-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .quiniela-modal-overlay .q-groups-grid {
        grid-template-columns: 1fr !important;
    }
}

.quiniela-modal-overlay .q-group-box {
    background-color: var(--bg-body) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    padding: 16px !important;
}

.quiniela-modal-overlay .q-group-title {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    color: var(--text-muted) !important;
    margin-bottom: 12px !important;
    text-transform: uppercase !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding-bottom: 6px !important;
}

.quiniela-modal-overlay .q-match-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 12px !important;
}

.quiniela-modal-overlay .q-match-row:last-child {
    margin-bottom: 0 !important;
}

.quiniela-modal-overlay .q-team {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    width: 38% !important;
    color: var(--text-main) !important;
}

.quiniela-modal-overlay .q-team.team-right {
    justify-content: flex-end !important;
    text-align: right !important;
}

.quiniela-modal-overlay .q-flag {
    display: none !important;
}
.quiniela-modal-overlay .q-flag-img {
    width: 24px !important;
    height: 16px !important;
    object-fit: cover !important;
    border-radius: 2px !important;
    border: 1px solid var(--border-strong) !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.quiniela-modal-overlay .q-scores-input-box {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    width: 24% !important;
    justify-content: center !important;
}

.quiniela-modal-overlay .q-score-input {
    width: 28px !important;
    height: 28px !important;
    border: 1px solid var(--border-strong) !important;
    background-color: var(--bg-panel) !important;
    color: var(--text-main) !important;
    border-radius: 4px !important;
    text-align: center !important;
    font-family: var(--font-main) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    outline: none !important;
    padding: 0 !important;
}

.quiniela-modal-overlay .q-score-input::-webkit-outer-spin-button,
.quiniela-modal-overlay .q-score-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.quiniela-modal-overlay .q-score-input {
    -moz-appearance: textfield !important;
}

.quiniela-modal-overlay .q-score-input:focus {
    border-color: var(--primary-blue) !important;
    box-shadow: 0 0 0 2px rgba(30, 58, 95, 0.1) !important;
}

.quiniela-modal-overlay .q-dash-divider {
    color: var(--text-light) !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
}

.quiniela-modal-overlay .q-save-bar {
    display: flex !important;
    justify-content: center !important;
    border-top: 1px solid var(--border-color) !important;
    padding-top: 20px !important;
}

.quiniela-modal-overlay .q-btn-save {
    width: auto !important;
    min-width: 200px !important;
}

/* Leaderboard view styling */
.quiniela-modal-overlay .q-table-header-info {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 16px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: var(--text-main) !important;
}

.quiniela-modal-overlay .q-total-users {
    color: var(--text-muted) !important;
    font-size: 0.8rem !important;
}

.quiniela-modal-overlay .q-table-wrapper {
    width: 100% !important;
    overflow-x: auto !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    background-color: var(--bg-panel) !important;
    margin-bottom: 20px !important;
}

.quiniela-modal-overlay .q-leaderboard-table {
    width: 100% !important;
    border-collapse: collapse !important;
    text-align: left !important;
    font-size: 0.85rem !important;
}

.quiniela-modal-overlay .q-leaderboard-table th,
.quiniela-modal-overlay .q-leaderboard-table td {
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.quiniela-modal-overlay .q-leaderboard-table th {
    background-color: var(--bg-body) !important;
    font-weight: 700 !important;
    color: var(--text-muted) !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
}

.quiniela-modal-overlay .q-leaderboard-table tr:last-child td {
    border-bottom: none !important;
}

.quiniela-modal-overlay .q-leaderboard-table td {
    color: var(--text-main) !important;
}

.quiniela-modal-overlay .q-leaderboard-table .highlight-col {
    font-weight: 700 !important;
    color: var(--primary-blue) !important;
}

.quiniela-modal-overlay .q-leaderboard-table .exacts-col {
    color: #128c7e !important;
    font-weight: 600 !important;
}

/* User row styling highlighting */
.quiniela-modal-overlay .q-leaderboard-table tr.user-row {
    background-color: rgba(30, 58, 95, 0.05) !important;
}

.quiniela-modal-overlay .q-leaderboard-table tr.user-row td {
    font-weight: 600 !important;
}

.quiniela-modal-overlay .q-leaderboard-join-prompt {
    display: flex !important;
    justify-content: center !important;
}

/* Toast */
.q-code-toast-card {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    background-color: #1e3a5f !important;
    color: #ffffff !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
    padding: 16px 20px !important;
    z-index: 100000 !important;
    display: flex !important;
    max-width: 320px !important;
    animation: slideUp 0.3s ease !important;
    border-left: 4px solid #128c7e !important;
}

.q-code-toast-card.hidden {
    display: none !important;
}

.q-toast-close {
    position: absolute !important;
    top: 10px !important;
    right: 12px !important;
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
    line-height: 1 !important;
}

.q-toast-close:hover {
    color: #ffffff !important;
}

.q-toast-content {
    display: flex !important;
    gap: 12px !important;
}

.q-toast-icon {
    font-size: 1.5rem !important;
}

.q-toast-text h4 {
    margin: 0 0 4px 0 !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
}

.q-toast-text p {
    margin: 0 !important;
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    line-height: 1.4 !important;
}

/* Dark Mode Overrides */
body.dark-theme .seccion-quiniela-supermarket,
body.dark-mode .seccion-quiniela-supermarket {
    background-color: #1f2937 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-theme .quiniela-modal-overlay .q-leaderboard-table tr.user-row,
body.dark-mode .quiniela-modal-overlay .q-leaderboard-table tr.user-row {
    background-color: rgba(56, 189, 248, 0.1) !important;
}

body.dark-theme .quiniela-modal-overlay .q-leaderboard-table .highlight-col,
body.dark-mode .quiniela-modal-overlay .q-leaderboard-table .highlight-col {
    color: #38bdf8 !important;
}

body.dark-theme .quiniela-modal-overlay .q-leaderboard-table .exacts-col,
body.dark-mode .quiniela-modal-overlay .q-leaderboard-table .exacts-col {
    color: #34d399 !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ════════════════════════════════════════════════════════════════════════════
   📱 MOBILE APP EXPERIENCE — Solo para pantallas ≤ 768px
   AISLAMIENTO TOTAL: Ninguna de estas reglas afecta al escritorio.
════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ── BODY: Fondo blanco limpio en móvil, como app nativa ─────────────── */
    body {
        background-color: #f2f3f5 !important;
    }

    body::before {
        opacity: 0.04 !important; /* Marca de agua casi invisible en móvil */
    }

    /* ── HEADER: Compacto y limpio, estilo app ────────────────────────────── */
    .om-header {
        height: 56px !important;
        max-height: 56px !important;
        padding: 0 12px !important;
        border-bottom: 1px solid rgba(0,0,0,0.08) !important;
        box-shadow: 0 1px 8px rgba(0,0,0,0.06) !important;
    }

    .om-header-inner {
        padding: 0 !important;
        gap: 8px !important;
    }

    .om-logo-img {
        width: 110px !important;
        height: auto !important;
    }

    .om-header-actions {
        gap: 6px !important;
    }

    /* Branch box: solo ícono + texto en móvil */
    .om-branch-box {
        padding: 5px 8px !important;
        border-radius: 8px !important;
        font-size: 0.75rem !important;
        gap: 4px !important;
    }

    .om-wa-btn { display: none !important; }
    .om-cart-btn { display: none !important; }
    .om-hamburger { display: flex !important; }

    /* ── TOPBAR: Oculto en móvil ─────────────────────────────────────────── */
    .om-topbar { display: none !important; }

    /* ── NAV LATERAL: Slide desde arriba en móvil ───────────────────────── */
    .om-nav {
        display: none !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 56px !important;
        left: 0 !important; right: 0 !important;
        background: white !important;
        border-bottom: 2px solid var(--supermarket-red) !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
        z-index: 99999 !important;
        padding: 8px !important;
        overflow-y: auto !important;
        max-height: calc(100vh - 56px) !important;
    }
    .om-nav.open { display: flex !important; }
    .om-nav-inner { flex-direction: column !important; align-items: flex-start !important; padding: 0 !important; }
    .om-nav-link { width: 100% !important; padding: 12px 16px !important; }

    /* ── PÁGINA: Sin padding excesivo ────────────────────────────────────── */
    .om-page {
        padding: 0 0 calc(84px + env(safe-area-inset-bottom, 0px)) 0 !important;
        max-width: 100% !important;
    }

    /* ── CARRUSEL: Más compacto, radio menor ─────────────────────────────── */
    .om-carousel-wrap {
        margin-bottom: 0 !important;
    }

    .om-carousel {
        height: 200px !important;
        border-radius: 0 !important;
    }

    .om-slide-content {
        padding: 24px 20px !important;
        gap: 8px !important;
    }

    .om-slide-title {
        font-size: 1.35rem !important;
        line-height: 1.15 !important;
    }

    .om-slide-sub { font-size: 0.82rem !important; }
    .om-slide-visual { display: none !important; }
    .om-carousel-arrow { display: none !important; }

    /* ── 1. CARRUSEL HORIZONTAL DE CATEGORÍAS (Estilo Play Store) ─────────── */
    .om-quickcat {
        padding: 14px 0 10px !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-top: none !important;
        border-bottom: 1px solid var(--border-color) !important;
        margin-bottom: 0 !important;
        background: #fff !important;
    }

    .om-section-label {
        padding: 0 16px !important;
        margin-bottom: 10px !important;
        font-size: 0.65rem !important;
    }

    .om-section-label::after { display: none !important; }

    /* Carrusel horizontal deslizable */
    .om-qcat-grid {
        display: flex !important;
        flex-direction: row !important;
        grid-template-columns: none !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x proximity !important;
        white-space: nowrap !important;
        gap: 8px !important;
        padding: 2px 16px 6px !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .om-qcat-grid::-webkit-scrollbar { display: none !important; }

    .om-qcat-item {
        flex: 0 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 5px !important;
        padding: 8px 10px !important;
        min-width: 68px !important;
        max-width: 76px !important;
        border-radius: 14px !important;
        background: #f4f5f7 !important;
        border: 1.5px solid transparent !important;
        scroll-snap-align: start !important;
        transition: transform 0.15s, border-color 0.15s, background 0.15s !important;
    }

    .om-qcat-item:active {
        transform: scale(0.91) !important;
        background: var(--supermarket-red-light) !important;
        border-color: var(--supermarket-red) !important;
    }

    .om-qcat-ico {
        width: 42px !important;
        height: 42px !important;
        font-size: 1.35rem !important;
        border-radius: 12px !important;
        flex-shrink: 0 !important;
    }

    .om-qcat-item span:not(.om-qcat-ico) {
        font-size: 0.64rem !important;
        font-weight: 700 !important;
        text-align: center !important;
        white-space: normal !important;
        line-height: 1.15 !important;
        max-width: 58px !important;
        color: var(--text-main) !important;
    }

    /* ── BARRA DE BÚSQUEDA — sticky tipo app debajo del header ──────────── */
    .om-store-wrap {
        display: block !important;
        grid-template-columns: none !important;
        gap: 0 !important;
        background: #f2f3f5 !important;
    }

    .om-store-sidebar { display: none !important; }

    .om-store-main {
        padding: 0 !important;
    }

    .om-store-toolbar {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        margin-bottom: 0 !important;
        background: #fff !important;
        position: sticky !important;
        top: 56px !important;
        z-index: 100 !important;
        border-bottom: 1px solid var(--border-color) !important;
        padding: 0 !important;
    }

    /* Fila superior del toolbar: título + resultados */
    .om-store-title {
        font-size: 0.9rem !important;
        font-weight: 800 !important;
        padding: 10px 14px 0 !important;
        color: var(--text-main) !important;
    }

    /* Barra de búsqueda full-width como app nativa */
    .om-toolbar-right {
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
    }

    .catalog-search-wrapper {
        width: 100% !important;
        margin: 8px 0 0 !important;
        border-radius: 0 !important;
        background: #f2f3f5 !important;
        border: none !important;
        border-top: 1px solid var(--border-color) !important;
        padding: 8px 14px !important;
        position: relative !important;
    }

    .catalog-search-wrapper .search-icon {
        position: absolute !important;
        left: 26px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 5 !important;
        width: 16px !important;
        height: 16px !important;
        color: var(--text-muted) !important;
        margin: 0 !important;
    }

    #catalogo-search {
        width: 100% !important;
        background: #fff !important;
        border: 1.5px solid var(--border-color) !important;
        border-radius: 10px !important;
        padding: 9px 12px 9px 36px !important;
        font-size: 0.88rem !important;
        color: var(--text-main) !important;
        outline: none !important;
        box-shadow: 0 1px 4px rgba(0,0,0,0.05) !important;
    }

    #catalogo-search:focus {
        border-color: var(--supermarket-red) !important;
        box-shadow: 0 0 0 3px rgba(192,57,43,0.08) !important;
    }

    /* Sort select: chips compactos en horizontal */
    .sort-wrapper {
        display: flex !important;
        align-items: center !important;
        padding: 6px 14px 8px !important;
        gap: 6px !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
        border-top: 1px solid #f0f0f0 !important;
    }

    .sort-wrapper::-webkit-scrollbar { display: none !important; }

    .sort-icon {
        flex-shrink: 0 !important;
        width: 14px !important;
        height: 14px !important;
        color: var(--text-muted) !important;
    }

    .sort-wrapper select,
    #sort-select {
        display: none !important; /* Ocultamos el select nativo */
    }

    .custom-select-wrapper {
        flex-shrink: 0 !important;
    }

    .custom-select-trigger {
        background: #f4f5f7 !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 20px !important;
        padding: 5px 12px !important;
        font-size: 0.72rem !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        gap: 4px !important;
    }

    .results-count {
        font-size: 0.72rem !important;
        color: var(--text-muted) !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
        padding-right: 4px !important;
    }

    /* ── 2. GRILLA DE PRODUCTOS — 2 columnas nativas ─────────────────────── */
    .products-container {
        padding: 10px 10px 0 !important;
        background: #f2f3f5 !important;
    }

    /* IMPORTANTE: Solo #products-grid, NO .products-grid para no bloquear el ocultado de #loading-skeletons */
    #products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 !important;
    }

    /* El loading-skeletons sí debe respetar display:none del JS */
    #loading-skeletons.products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 !important;
        /* display se maneja por JavaScript - no se sobreescribe */
    }

    .product-card {
        border-radius: 12px !important;
        background: #ffffff !important;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
    }

    .product-image-wrapper {
        height: 140px !important;
        background: #f8f9fa !important;
    }

    .product-image-wrapper img {
        height: 140px !important;
        object-fit: contain !important;
        padding: 6px !important;
    }

    .product-info {
        padding: 8px 8px 4px !important;
    }

    .product-name {
        font-size: 0.73rem !important;
        line-height: 1.3 !important;
        -webkit-line-clamp: 2 !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .product-stock {
        font-size: 0.62rem !important;
        gap: 3px !important;
        margin-top: 3px !important;
    }

    .product-price-section {
        margin-top: 4px !important;
    }

    .price-usd {
        font-size: 0.82rem !important;
        font-weight: 800 !important;
    }

    .price-ves, .price-cop {
        font-size: 0.65rem !important;
    }

    .card-action {
        padding: 6px 8px 8px !important;
    }

    .card-action .btn,
    .card-action .btn-disabled {
        font-size: 0.72rem !important;
        padding: 8px 6px !important;
        border-radius: 8px !important;
        width: 100% !important;
        justify-content: center !important;
    }

    .qty-btn { width: 28px !important; height: 28px !important; font-size: 1rem !important; }
    .qty-num { font-size: 0.82rem !important; }

    /* ── Ocultar botón flotante — la bottom nav tiene el carrito ────────── */
    .floating-cart { display: none !important; }

    /* ── Paginación limpia en móvil ─────────────────────────────────────── */
    .pagination-container {
        padding: 16px 10px !important;
        gap: 6px !important;
    }

    .pagination-btn {
        font-size: 0.75rem !important;
        padding: 8px 12px !important;
    }

    /* ── Sección Sucursales en móvil ─────────────────────────────────────── */
    .sucursales-section {
        padding: 24px 14px 36px !important;
        margin-bottom: 0 !important;
    }

    .sucursales-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* ── Quiniela banner en móvil ────────────────────────────────────────── */
    .seccion-quiniela-supermarket {
        padding: 20px 14px !important;
    }

    .quiniela-banner-container {
        flex-direction: column !important;
        gap: 12px !important;
        text-align: center !important;
    }

    .quiniela-banner-left {
        justify-content: center !important;
    }

    .quiniela-open-btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* ════════════════════════════════════════════════════════════════════════════
   📱 BOTTOM NAVIGATION BAR — Solo visible en móvil (≤ 768px)
════════════════════════════════════════════════════════════════════════════ */
.mobile-bottom-nav {
    display: none; /* Oculta en escritorio */
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: calc(62px + env(safe-area-inset-bottom, 0px)) !important;
        z-index: 9999 !important;
        align-items: center !important;
        justify-content: space-around !important;
        background: rgba(255, 255, 255, 0.96) !important;
        backdrop-filter: blur(20px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
        border-top: 1px solid rgba(0, 0, 0, 0.07) !important;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08) !important;
        padding: 0 4px !important;
        padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    }

    body.dark-theme .mobile-bottom-nav {
        background: rgba(17, 24, 39, 0.96) !important;
        border-top-color: rgba(255, 255, 255, 0.08) !important;
    }

    .mob-nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        flex: 1 !important;
        height: 100% !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        padding: 6px 4px !important;
        border-radius: 12px !important;
        transition: background 0.15s, transform 0.15s !important;
        text-decoration: none !important;
        color: var(--text-muted) !important;
        font-family: var(--font-main) !important;
        position: relative !important;
    }

    .mob-nav-item:active {
        background: rgba(0, 0, 0, 0.05) !important;
        transform: scale(0.92) !important;
    }

    .mob-nav-item.mob-nav-active {
        color: var(--supermarket-red) !important;
    }

    .mob-nav-icon {
        font-size: 1.25rem !important;
        line-height: 1 !important;
    }

    .mob-nav-label {
        font-size: 0.57rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.01em !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        color: inherit !important;
    }

    /* Botón Quiniela: DESACTIVADO */
    .mob-nav-quiniela {
        display: none !important;
    }

    .mob-nav-quiniela .mob-nav-label { color: rgba(255,255,255,0.95) !important; }

    .mob-nav-quiniela:active {
        background: linear-gradient(135deg, #152d4a 0%, #922b21 100%) !important;
        box-shadow: 0 2px 8px rgba(192, 57, 43, 0.2) !important;
        transform: scale(0.92) !important;
    }

    .mob-nav-cart-wrap {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .mob-nav-cart-badge {
        position: absolute !important;
        top: -5px !important;
        right: -8px !important;
        background: var(--supermarket-red) !important;
        color: white !important;
        font-size: 0.55rem !important;
        font-weight: 800 !important;
        min-width: 15px !important;
        height: 15px !important;
        border-radius: 8px !important;
        display: none !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 3px !important;
        line-height: 1 !important;
        border: 1.5px solid white !important;
    }

    .mob-nav-cart-badge.visible { display: flex !important; }
}

/* ════════════════════════════════════════════════════════════════════════════
   🚨 EMERGENCY MOBILE PATCH — Reparación de Glitch, Texto y Layout
   Estrictamente dentro de @media (max-width: 768px)
════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ── FIX 1: ELIMINAR body::before — causa el GLITCH de distorsión ───────
       La imagen de fondo fija + scroll en WebKit móvil genera artefactos
       visuales graves (banda multicolor). Se desactiva completamente en móvil. */
    body::before {
        display: none !important;
    }

    /* ── FIX 2: TOOLBAR — De sticky a static para evitar glitch de pintura ──
       position: sticky con z-index alto en WebKit/Chrome mobile causa
       artefactos de compositing cuando hay overflow-x en elementos hermanos. */
    .om-store-toolbar {
        position: relative !important;
        top: auto !important;
        z-index: 10 !important;
        /* Mantener el estilo visual pero sin sticky */
        display: flex !important;
        flex-direction: column !important;
        background: #ffffff !important;
        border-bottom: 1px solid var(--border-color) !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
    }

    /* ── FIX 3: TEXTOS VISIBLES — Modo claro ────────────────────────────────
       Forzar colores oscuros en todos los textos críticos para que
       nunca sean invisibles (blanco sobre blanco). */
    .om-store-title {
        color: #1a1a2e !important;
        font-size: 0.9rem !important;
        font-weight: 800 !important;
        padding: 10px 14px 0 !important;
    }

    .product-name {
        color: #1a1a2e !important;
    }

    .price-usd {
        color: #c0392b !important;
    }

    .price-ves,
    .price-cop {
        color: #6b7280 !important;
    }

    .product-stock {
        color: #2d7d4f !important;
    }

    .results-count {
        color: #6b7280 !important;
        font-size: 0.72rem !important;
    }

    /* ── FIX 4: MODO OSCURO — Textos visibles en dark theme ─────────────────
       En modo oscuro los textos deben ser claros. */
    body.dark-theme .om-store-toolbar {
        background: #1f2937 !important;
        border-bottom-color: rgba(255,255,255,0.08) !important;
    }

    body.dark-theme .om-store-title {
        color: #f9fafb !important;
    }

    body.dark-theme .product-card {
        background: #1f2937 !important;
        border-color: rgba(255,255,255,0.07) !important;
    }

    body.dark-theme .product-image-wrapper {
        background: #111827 !important;
    }

    body.dark-theme .product-name {
        color: #f9fafb !important;
    }

    body.dark-theme .price-usd {
        color: #fca5a5 !important;
    }

    body.dark-theme .price-ves,
    body.dark-theme .price-cop {
        color: #9ca3af !important;
    }

    body.dark-theme .product-stock {
        color: #6ee7b7 !important;
    }

    body.dark-theme .results-count,
    body.dark-mode .results-count {
        background: rgba(30, 58, 138, 0.45) !important;
        border: 1px solid rgba(96, 165, 250, 0.5) !important;
        color: #93c5fd !important;
        font-weight: 700 !important;
        font-size: 0.72rem !important;
    }

    body.dark-theme .om-qcat-item {
        background: #374151 !important;
        border-color: rgba(255,255,255,0.08) !important;
    }

    body.dark-theme .om-qcat-item span:not(.om-qcat-ico) {
        color: #f9fafb !important;
    }

    body.dark-theme .om-store-wrap,
    body.dark-theme .om-store-main,
    body.dark-theme .products-container {
        background: #111827 !important;
    }

    body.dark-theme .om-page {
        background: #111827 !important;
    }

    body.dark-theme,
    body.dark-mode {
        background-color: #111827 !important;
    }

    /* ── FIX 5: SEARCH BAR — Bloque estático limpio ──────────────────────── */
    .catalog-search-wrapper {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 8px 14px !important;
        background: #f2f3f5 !important;
        border-top: 1px solid var(--border-color) !important;
        margin: 0 !important;
        float: none !important;
        overflow: visible !important;
    }

    body.dark-theme .catalog-search-wrapper {
        background: #1f2937 !important;
        border-top-color: rgba(255,255,255,0.08) !important;
    }

    #catalogo-search {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        position: static !important;
        float: none !important;
    }

    body.dark-theme #catalogo-search {
        background: #111827 !important;
        border-color: rgba(255,255,255,0.15) !important;
        color: #f9fafb !important;
    }

    body.dark-theme #catalogo-search::placeholder {
        color: #6b7280 !important;
    }

    /* ── FIX 6: SORT WRAPPER — Bloque estático limpio ───────────────────── */
    .sort-wrapper {
        display: flex !important;
        position: static !important;
        float: none !important;
        clear: both !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }

    body.dark-theme .sort-wrapper {
        border-top-color: rgba(255,255,255,0.06) !important;
    }

    body.dark-theme .custom-select-trigger {
        background: #374151 !important;
        border-color: rgba(255,255,255,0.1) !important;
        color: #f9fafb !important;
    }

    /* ── FIX 7: PRODUCTOS — sin overflow ni height fija que cause glitch ─── */
    .products-container {
        overflow: visible !important;
        position: static !important;
        clear: both !important;
    }

    #products-grid,
    #loading-skeletons {
        position: static !important;
        transform: none !important;
        overflow: visible !important;
    }

    /* ── FIX 8: BOTÓN DARK MODE MÓVIL — solo visible en móvil ──────────── */
    .mob-theme-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        background: transparent !important;
        border: 1.5px solid rgba(0,0,0,0.1) !important;
        border-radius: 10px !important;
        cursor: pointer !important;
        color: var(--text-main) !important;
        font-size: 1.1rem !important;
        transition: background 0.2s, border-color 0.2s !important;
        flex-shrink: 0 !important;
    }

    .mob-theme-btn:active {
        background: rgba(0,0,0,0.06) !important;
        transform: scale(0.92) !important;
    }

    body.dark-theme .mob-theme-btn {
        border-color: rgba(255,255,255,0.15) !important;
        color: #f9fafb !important;
    }

    /* ── FIX 9: CARD ACTION — botones táctiles visibles en ambos modos ─── */
    body.dark-theme .card-action .btn {
        background: var(--supermarket-red) !important;
        color: white !important;
    }

    body.dark-theme .card-action .btn-disabled {
        background: #374151 !important;
        color: #6b7280 !important;
    }

    body.dark-theme .qty-btn {
        background: #374151 !important;
        color: #f9fafb !important;
        border-color: rgba(255,255,255,0.1) !important;
    }

    body.dark-theme .qty-num {
        color: #f9fafb !important;
    }

    /* ── FIX 10: CATEGORÍAS — quickcat dark mode ────────────────────────── */
    body.dark-theme .om-quickcat {
        background: #1f2937 !important;
        border-bottom-color: rgba(255,255,255,0.08) !important;
    }

    body.dark-theme .om-section-label {
        color: #9ca3af !important;
    }

    /* Evitar zoom automático en iOS Safari al enfocar controles del carrito y modales */
    #metodo-pago,
    #pedido-notes,
    #delivery-day,
    #delivery-time,
    #weight-modal-notes,
    .quiniela-modal-overlay .q-score-input {
        font-size: 16px !important;
    }
}


/* ════════════════════════════════════════════════════════════════════════════
   🛡️ PARCHE DEFINITIVO MÓVIL — Menú Drawer + Z-Index Sort + Dark Mode
   AISLAMIENTO ABSOLUTO: Solo aplica en @media (max-width: 768px)
   CERO CAMBIOS en desktop — solo pantallas ≤ 768px.
════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ══════════════════════════════════════════════════════════════
       FIX 1: MENÚ HAMBURGUESA — Drawer fijo estilo Play Store
       El nav se convierte en una cortina fija desde el tope del header.
       position: fixed garantiza que NO empuje el contenido de la página.
    ══════════════════════════════════════════════════════════════ */

    /* Backdrop semitransparente detrás del drawer */
    #mob-nav-backdrop {
        display: none;
        position: fixed !important;
        inset: 0 !important;
        background: rgba(0, 0, 0, 0.45) !important;
        z-index: 99998 !important;
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
        animation: fadeIn 0.2s ease !important;
    }
    #mob-nav-backdrop.visible { display: block !important; }

    @keyframes fadeIn {
        from { opacity: 0; }
        to   { opacity: 1; }
    }

    @keyframes slideDown {
        from { transform: translateY(-12px); opacity: 0.5; }
        to   { transform: translateY(0);     opacity: 1;   }
    }

    /* El nav como drawer fijo */
    .om-nav {
        display: none !important;
        position: fixed !important;
        top: 56px !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 99999 !important;
        background: #ffffff !important;
        border-radius: 0 0 20px 20px !important;
        border-top: 3px solid var(--supermarket-red, #c0392b) !important;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2) !important;
        padding: 6px 0 12px !important;
        max-height: 72vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        animation: slideDown 0.22s ease !important;
        /* CRÍTICO: NO afecta el flujo del documento gracias a position:fixed */
    }

    .om-nav.open {
        display: block !important;
    }

    /* Contenedor interno — columna alineada a la izquierda */
    .om-nav-inner {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 2px 0 !important;
        align-items: stretch !important;
        width: 100% !important;
    }

    /* Links del menú — estilo Play Store: icono + texto + flecha */
    .om-nav-link {
        display: flex !important;
        align-items: center !important;
        gap: 14px !important;
        padding: 15px 22px !important;
        font-size: 0.91rem !important;
        font-weight: 600 !important;
        color: #1a1a2e !important;
        text-decoration: none !important;
        background: transparent !important;
        border: none !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
        transition: background 0.15s, padding-left 0.15s !important;
        width: 100% !important;
        box-sizing: border-box !important;
        cursor: pointer !important;
        letter-spacing: 0.01em !important;
    }

    .om-nav-link:last-child {
        border-bottom: none !important;
    }

    .om-nav-link:active {
        background: rgba(192, 57, 43, 0.07) !important;
        padding-left: 26px !important;
    }

    /* Link activo */
    .om-nav-link.active {
        color: var(--supermarket-red, #c0392b) !important;
        font-weight: 800 !important;
        border-left: 3px solid var(--supermarket-red, #c0392b) !important;
        padding-left: 19px !important;
        background: rgba(192, 57, 43, 0.04) !important;
    }

    /* Dark theme — nav drawer */
    body.dark-theme .om-nav {
        background: #1f2937 !important;
        border-top-color: #c0392b !important;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
    }

    body.dark-theme .om-nav-link {
        color: #f3f4f6 !important;
        border-bottom-color: rgba(255, 255, 255, 0.06) !important;
    }

    body.dark-theme .om-nav-link:active {
        background: rgba(192, 57, 43, 0.15) !important;
    }

    body.dark-theme .om-nav-link.active {
        color: #fca5a5 !important;
        border-left-color: #fca5a5 !important;
        background: rgba(192, 57, 43, 0.12) !important;
    }

    /* ══════════════════════════════════════════════════════════════
       FIX 2: SORT DROPDOWN — Z-Index máximo para flotar sobre productos
       El select nativo en Android/Chrome se recorta si su parent tiene
       overflow:hidden. Se libera el overflow y se sube el z-index.
    ══════════════════════════════════════════════════════════════ */

    /* Hacer el toolbar overflow visible para que el dropdown sobresalga */
    .om-store-toolbar {
        overflow: visible !important;
        z-index: 500 !important;
    }

    .om-toolbar-right {
        overflow: visible !important;
        position: relative !important;
        z-index: 500 !important;
    }

    /* Sort wrapper: float limpio por encima de la grilla */
    .sort-wrapper {
        position: relative !important;
        z-index: 9999 !important;
        overflow: visible !important;
        isolation: isolate !important;
    }

    /* Select nativo restaurado y estilizado para móvil */
    /* Ocultamos el select personalizado en móvil para usar el nativo estilizado */
    .custom-select-wrapper {
        display: none !important;
    }

    .sort-wrapper select,
    #sort-select {
        display: block !important; /* Restaurar — estaba oculto antes */
        appearance: auto !important;
        -webkit-appearance: auto !important;
        background: #f4f5f7 !important;
        border: 1.5px solid #d1d5db !important;
        border-radius: 20px !important;
        padding: 6px 28px 6px 10px !important;
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        color: #1a1a2e !important;
        cursor: pointer !important;
        position: relative !important;
        z-index: 9999 !important;
        /* Eliminar el select-icon lucide si estaba superpuesto */
        width: 100% !important;
        max-width: none !important;
        flex: 1 !important;
    }

    /* Products container DEBAJO del toolbar en z-index */
    .products-container {
        position: relative !important;
        z-index: 1 !important;
        isolation: isolate !important;
    }

    #products-grid,
    #loading-skeletons {
        position: relative !important;
        z-index: 1 !important;
    }

    /* Dark theme — sort select */
    body.dark-theme .sort-wrapper select,
    body.dark-theme #sort-select {
        background: #374151 !important;
        border-color: rgba(255, 255, 255, 0.15) !important;
        color: #f3f4f6 !important;
    }

    /* ══════════════════════════════════════════════════════════════
       FIX 3: SEARCH CONTAINER — overflow visible para no cortar dropdown
    ══════════════════════════════════════════════════════════════ */
    .catalog-search-wrapper {
        overflow: visible !important;
        position: relative !important;
        z-index: 10 !important;
    }

    /* ══════════════════════════════════════════════════════════════
       FIX 4: ICONO DARK MODE en header — visible solo en móvil
    ══════════════════════════════════════════════════════════════ */
    .mob-theme-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        background: transparent !important;
        border: 1.5px solid rgba(0, 0, 0, 0.12) !important;
        border-radius: 10px !important;
        cursor: pointer !important;
        font-size: 1.05rem !important;
        line-height: 1 !important;
        transition: background 0.18s, transform 0.15s !important;
        flex-shrink: 0 !important;
    }

    .mob-theme-btn:active {
        background: rgba(0, 0, 0, 0.07) !important;
        transform: scale(0.9) !important;
    }

    body.dark-theme .mob-theme-btn {
        border-color: rgba(255, 255, 255, 0.18) !important;
    }
}

/* ==========================================================================
   COMPONENTE EXTENSIÓN: CARRUSEL DE ESTADOS DE MARKETING
   ========================================================================== */
.omega-extension-stories-section {
    background-color: var(--bg-panel-warm) !important;
    border-top: 1px solid var(--border-color) !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 30px 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.omega-extension-stories-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.omega-extension-stories-header {
    margin-bottom: 20px !important;
    text-align: left !important;
}

.omega-extension-stories-title {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: var(--primary-blue) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
}

body.dark-theme .omega-extension-stories-title,
body.dark-mode .omega-extension-stories-title {
    color: #f8fafc !important;
}

.omega-extension-stories-icon {
    width: 20px !important;
    height: 20px !important;
    color: var(--supermarket-red) !important;
}

.omega-extension-stories-subtitle {
    font-size: 0.88rem !important;
    color: var(--text-muted) !important;
    margin: 4px 0 0 0 !important;
}

.omega-extension-stories-carousel-wrapper {
    width: 100% !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 8px !important;
    box-sizing: border-box !important;
}

/* Custom premium scrollbar for stories carousel */
.omega-extension-stories-carousel-wrapper::-webkit-scrollbar {
    height: 6px !important;
    display: block !important;
}

.omega-extension-stories-carousel-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05) !important;
    border-radius: 10px !important;
}

.omega-extension-stories-carousel-wrapper::-webkit-scrollbar-thumb {
    background: rgba(37, 211, 102, 0.3) !important; /* Translucent WhatsApp green */
    border-radius: 10px !important;
    transition: background 0.2s ease !important;
}

.omega-extension-stories-carousel-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(37, 211, 102, 0.6) !important;
}

.omega-extension-stories-track {
    display: flex !important;
    gap: 16px !important;
    padding: 4px 4px 16px 4px !important; /* Spacing for shadow/elevation */
    box-sizing: border-box !important;
}

.omega-extension-phone-card {
    flex: 0 0 190px !important; /* Card width on desktop */
    aspect-ratio: 9 / 16 !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
    position: relative !important;
    cursor: pointer !important;
    scroll-snap-align: start !important;
    box-shadow: var(--shadow-sm) !important;
    background-color: #222222 !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease !important;
    box-sizing: border-box !important;
}

.omega-extension-phone-card:hover {
    transform: scale(1.03) !important;
    box-shadow: var(--shadow-lg) !important;
    z-index: 10 !important;
}

.omega-extension-card-bg {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

.omega-extension-card-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 25%, rgba(0,0,0,0.1) 70%, rgba(0,0,0,0.85) 100%) !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 12px !important;
    box-sizing: border-box !important;
}

.omega-extension-card-header {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    pointer-events: none !important;
}

.omega-extension-avatar-wrapper {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    padding: 2px !important;
    background: #25d366 !important; /* WhatsApp Green status ring */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
}

.omega-extension-avatar-img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 1.5px solid #ffffff !important;
    background-color: var(--primary-blue-light) !important;
    box-sizing: border-box !important;
}

.omega-extension-card-meta {
    display: flex !important;
    flex-direction: column !important;
}

.omega-extension-card-branch {
    color: #ffffff !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8) !important;
    line-height: 1.2 !important;
}

.omega-extension-card-time {
    color: rgba(255,255,255,0.8) !important;
    font-size: 0.62rem !important;
    margin-top: 1px !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8) !important;
}

.omega-extension-card-caption {
    color: #ffffff !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* Modal Lightbox */
.omega-extension-lightbox-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 999999 !important;
    display: none !important; /* Seguridad total: ocultar del flujo por defecto */
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
}

.omega-extension-lightbox-overlay.active {
    display: flex !important; /* Mostrar cuando está activo */
    opacity: 1 !important;
    pointer-events: auto !important;
}

.omega-extension-lightbox-content {
    position: relative !important;
    max-width: 90% !important;
    max-height: 90% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    box-sizing: border-box !important;
    outline: none !important;
}

.omega-extension-lightbox-image {
    max-width: 100% !important;
    max-height: 80vh !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6) !important;
    object-fit: contain !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    transform: scale(0.97) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.omega-extension-lightbox-overlay.active .omega-extension-lightbox-image {
    transform: scale(1) !important;
}

.omega-extension-lightbox-caption {
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    margin-top: 16px !important;
    text-align: center !important;
    max-width: 600px !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8) !important;
    line-height: 1.4 !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
}

.omega-extension-lightbox-close {
    position: absolute !important;
    top: 24px !important;
    right: 24px !important;
    color: #ffffff !important;
    font-size: 38px !important;
    font-weight: 300 !important;
    cursor: pointer !important;
    transition: color 0.2s, transform 0.2s !important;
    z-index: 1000000 !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.1) !important;
}

.omega-extension-lightbox-close:hover {
    color: var(--supermarket-red) !important;
    background: rgba(255,255,255,0.2) !important;
    transform: scale(1.05) !important;
}

/* Responsive Rules for Stories section */
@media (max-width: 768px) {
    .omega-extension-stories-section {
        padding: 24px 16px !important;
    }
    
    .omega-extension-stories-title {
        font-size: 1.15rem !important;
    }
    
    .omega-extension-stories-track {
        gap: 12px !important;
        padding-bottom: 12px !important;
    }
    
    /* Adjust width to show 1.5 cards on typical small mobile screens, or 2.5 on slightly larger ones */
    .omega-extension-phone-card {
        flex: 0 0 148px !important; /* Shows exactly 2.5 cards on standard 400px devices */
    }
    
    .omega-extension-lightbox-close {
        top: 16px !important;
        right: 16px !important;
    }
}

/* ==========================================================================
   BOTÓN FLOTANTE DE LA QUINIELA (DESACTIVADO)
   ========================================================================== */
.floating-quiniela {
    display: none !important;
}

.floating-quiniela:hover {
    padding-left: 24px !important;
    box-shadow: -4px 6px 18px rgba(192, 57, 43, 0.35) !important;
    background: linear-gradient(135deg, var(--primary-hover) 0%, #a83226 100%) !important;
}

.floating-quiniela .quiniela-floating-icon {
    font-size: 1.1rem !important;
    display: inline-block !important;
    transition: transform 0.25s ease !important;
}

.floating-quiniela:hover .quiniela-floating-icon {
    transform: rotate(-10deg) scale(1.15) !important;
}

/* Ocultar en dispositivos móviles para evitar saturación y superposición, ya que móvil usa la barra inferior */
@media (max-width: 768px) {
    .floating-quiniela {
        display: none !important;
    }

    /* Ajustes de seguridad y espaciado para el footer en móvil */
    .main-footer {
        padding-bottom: calc(62px + 20px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .footer-bottom {
        padding: 12px 16px !important;
        margin-top: 24px !important;
    }

    .footer-bottom p {
        font-size: 0.78rem !important;
        line-height: 1.45 !important;
    }

    .legal-text {
        font-size: 0.7rem !important;
        line-height: 1.4 !important;
    }
}

/* ==========================================================================
   NUEVAS EXTENSIONES DE DISEÑO — FASE 1: FILTROS, RECETAS Y DELIVERY
   ========================================================================== */

/* Filtros Nutricionales Pills */
.om-nutri-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 16px 0;
    flex-wrap: wrap;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-theme .om-nutri-bar,
body.dark-mode .om-nutri-bar {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.06);
}

.om-nutri-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    user-select: none;
    flex-shrink: 0;
}

.om-nutri-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.om-nutri-pill {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-main), sans-serif;
    border: 1px solid var(--border-color);
    background: var(--bg-panel);
    color: var(--text-main);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    outline: none;
    user-select: none;
}

.om-nutri-pill:hover {
    transform: translateY(-1.5px);
    box-shadow: var(--shadow-md);
}

/* Hover e active personalizados */
.om-nutri-pill[data-filter="gluten-free"]:hover {
    border-color: #f59e0b;
    background: #fffbeb;
    color: #b45309;
}
.om-nutri-pill[data-filter="gluten-free"].active {
    background: #f59e0b !important;
    color: #ffffff !important;
    border-color: #f59e0b !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25) !important;
}

.om-nutri-pill[data-filter="lactose-free"]:hover {
    border-color: #0ea5e9;
    background: #f0f9ff;
    color: #0369a1;
}
.om-nutri-pill[data-filter="lactose-free"].active {
    background: #0ea5e9 !important;
    color: #ffffff !important;
    border-color: #0ea5e9 !important;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25) !important;
}

.om-nutri-pill[data-filter="vegan"]:hover {
    border-color: #10b981;
    background: #ecfdf5;
    color: #047857;
}
.om-nutri-pill[data-filter="vegan"].active {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25) !important;
}

.om-nutri-pill[data-filter="organic"]:hover {
    border-color: #84cc16;
    background: #f7fee7;
    color: #4d7c0f;
}
.om-nutri-pill[data-filter="organic"].active {
    background: #84cc16 !important;
    color: #ffffff !important;
    border-color: #84cc16 !important;
    box-shadow: 0 4px 12px rgba(132, 204, 22, 0.25) !important;
}

/* Modo oscuro hover/active */
body.dark-theme .om-nutri-pill[data-filter="gluten-free"]:hover,
body.dark-mode .om-nutri-pill[data-filter="gluten-free"]:hover {
    background: rgba(245, 158, 11, 0.15);
    color: #fef08a;
}
body.dark-theme .om-nutri-pill[data-filter="lactose-free"]:hover,
body.dark-mode .om-nutri-pill[data-filter="lactose-free"]:hover {
    background: rgba(14, 165, 233, 0.15);
    color: #bae6fd;
}
body.dark-theme .om-nutri-pill[data-filter="vegan"]:hover,
body.dark-mode .om-nutri-pill[data-filter="vegan"]:hover {
    background: rgba(16, 185, 129, 0.15);
    color: #a7f3d0;
}
body.dark-theme .om-nutri-pill[data-filter="organic"]:hover,
body.dark-mode .om-nutri-pill[data-filter="organic"]:hover {
    background: rgba(132, 204, 22, 0.15);
    color: #e2f8d3;
}

/* Tarjetas del Recetario Uniformes */
.om-recipes-section {
    width: 100%;
    background: var(--bg-panel-warm);
    border-bottom: 1px solid var(--border-color);
}

.om-recipe-card {
    cursor: pointer;
    background: var(--bg-panel, #ffffff);
    border: 1px solid var(--border-color, rgba(0,0,0,0.08));
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s !important;
    display: flex;
    flex-direction: column;
}

body.dark-theme .om-recipe-card,
body.dark-mode .om-recipe-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
}

.om-recipe-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.09) !important;
    border-color: var(--supermarket-red, #e11d48) !important;
}

.om-recipe-img-wrap {
    position: relative;
    width: 100%;
    height: 165px;
    overflow: hidden;
    background: #f1f5f9;
}

.om-recipe-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.om-recipe-card:hover .om-recipe-img-wrap img {
    transform: scale(1.05);
}

.om-recipe-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.om-recipe-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.om-recipe-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(225, 29, 72, 0.08);
    color: var(--supermarket-red, #e11d48);
    border: 1px solid rgba(225, 29, 72, 0.15);
}

body.dark-theme .om-recipe-pill,
body.dark-mode .om-recipe-pill {
    background: rgba(244, 63, 94, 0.15);
    color: #fda4af;
    border-color: rgba(244, 63, 94, 0.3);
}

.om-recipe-pill-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    padding: 4px 8px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.04);
}

body.dark-theme .om-recipe-pill-time,
body.dark-mode .om-recipe-pill-time {
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
}

.om-recipe-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-main, #0f172a);
    margin: 0 0 6px 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.dark-theme .om-recipe-title,
body.dark-mode .om-recipe-title {
    color: #f8fafc;
}

.om-recipe-desc {
    font-size: 0.8rem;
    color: var(--text-muted, #64748b);
    line-height: 1.45;
    margin: 0 0 14px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.om-recipe-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--supermarket-red, #e11d48);
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed rgba(0, 0, 0, 0.06);
}

body.dark-theme .om-recipe-action,
body.dark-mode .om-recipe-action {
    border-top-color: rgba(255, 255, 255, 0.06);
    color: #fb7185;
}

/* Elementos del Modal de Receta */
.recipe-modal-header-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.recipe-ingredient-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-panel-warm);
    font-size: 0.85rem;
    color: var(--text-main);
    transition: all 0.15s ease;
    cursor: pointer;
    user-select: none;
}

.recipe-ingredient-row:hover {
    background: var(--primary-blue-light);
    border-color: rgba(30, 58, 95, 0.2);
}

.recipe-ingredient-row.checked {
    border-color: var(--primary-blue);
    background: rgba(30, 58, 95, 0.03);
}

.recipe-ingredient-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.recipe-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-blue);
    cursor: pointer;
}

.recipe-ingredient-price {
    font-weight: 700;
    color: var(--primary-blue);
}

.recipe-ingredient-status {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
}

.recipe-ingredient-status.unavailable {
    background: #f3f4f6;
    color: #6b7280;
}

.recipe-ingredient-status.outofstock {
    background: #fee2e2;
    color: #ef4444;
}

/* Modo Oscuro para Nuevas Clases */
body.dark-theme .om-nutri-pill,
body.dark-mode .om-nutri-pill {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

body.dark-theme .om-nutri-pill:hover,
body.dark-mode .om-nutri-pill:hover {
    background: rgba(30, 58, 95, 0.4);
    border-color: var(--primary-blue);
    color: #93c5fd;
}

body.dark-theme .recipe-ingredient-row,
body.dark-mode .recipe-ingredient-row {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-theme .recipe-ingredient-row:hover,
body.dark-mode .recipe-ingredient-row:hover {
    background: rgba(30, 58, 95, 0.3);
    border-color: rgba(147, 197, 253, 0.3);
}

/* Media query to fix mobile cart layout issues (cut content and overlapping navbar) */
@media (max-width: 768px) {
    .drawer-footer {
        padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
        max-height: 55vh !important;
        overflow-y: auto !important;
    }
}


/* ═══════════════════════════════════════════════════════════════════════
   BOTÓN: PREVISUALIZAR FACTURA
   ═══════════════════════════════════════════════════════════════════════ */
.btn-invoice-preview {
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.22s ease;
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}

.btn-invoice-preview:hover {
    background: var(--primary-blue);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(30, 58, 95, 0.25);
}

.btn-invoice-preview:active {
    transform: translateY(0);
}

/* Dark mode */
body.dark-theme .btn-invoice-preview {
    color: #7db3e8;
    border-color: #7db3e8;
}
body.dark-theme .btn-invoice-preview:hover {
    background: #7db3e8;
    color: #0f1624;
}

/* ═══════════════════════════════════════════════════════════════════════
   MODAL FACTURA: ANIMACIÓN DE ENTRADA
   ═══════════════════════════════════════════════════════════════════════ */
@keyframes invoiceSlideUp {
    from { opacity: 0; transform: translateY(32px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

#invoice-modal-overlay {
    animation: none;
}

#invoice-modal-content {
    animation: invoiceSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Dark mode: modal content (solo pantalla para respetar @media print) */
@media screen {
    body.dark-theme #invoice-modal-content {
        background: linear-gradient(180deg, #0f172a 0%, #17253b 100%) !important;
        border: 1px solid rgba(56, 189, 248, 0.28) !important;
        border-top: 4px solid #38bdf8 !important;
        box-shadow: 0 28px 80px rgba(0, 0, 0, 0.75), 0 0 40px rgba(56, 189, 248, 0.12) !important;
        color: #e2e8f0 !important;
    }
    body.dark-theme #invoice-close-x-btn {
        background: rgba(148, 163, 184, 0.14) !important;
        color: #cbd5e1 !important;
    }
    body.dark-theme #invoice-close-x-btn:hover {
        background: rgba(148, 163, 184, 0.28) !important;
        color: #f8fafc !important;
    }
    body.dark-theme #ticket-header {
        border-bottom-color: rgba(148, 163, 184, 0.25) !important;
    }
    body.dark-theme #invoice-modal-content h2 {
        color: #f8fafc !important;
        letter-spacing: 0.6px;
    }
    body.dark-theme #ticket-subtitle {
        color: #94a3b8 !important;
    }
    body.dark-theme #ticket-meta-row {
        color: #94a3b8 !important;
    }
    body.dark-theme #ticket-order-num {
        color: #38bdf8 !important;
        background: rgba(56, 189, 248, 0.12);
        padding: 2px 8px;
        border-radius: 6px;
    }
    body.dark-theme #ticket-datetime {
        color: #cbd5e1 !important;
    }
    body.dark-theme #ticket-thead-row {
        border-bottom-color: rgba(148, 163, 184, 0.25) !important;
    }
    body.dark-theme #ticket-items-table th {
        color: #94a3b8 !important;
        border-bottom-color: rgba(148, 163, 184, 0.25) !important;
    }
    body.dark-theme #ticket-items-table .ticket-item-row {
        border-bottom: 1px solid rgba(148, 163, 184, 0.14) !important;
    }
    body.dark-theme #ticket-items-table .ticket-prod-name {
        color: #f8fafc !important;
        font-weight: 700 !important;
    }
    body.dark-theme #ticket-items-table .ticket-iva-tag {
        color: #94a3b8 !important;
        background: rgba(148, 163, 184, 0.14);
        padding: 1px 5px;
        border-radius: 4px;
    }
    body.dark-theme #ticket-items-table .ticket-iva-tag.ticket-iva-exento {
        color: #6ee7b7 !important;
        background: rgba(16, 185, 129, 0.14);
    }
    body.dark-theme #ticket-items-table .ticket-oferta-tag {
        color: #fbbf24 !important;
        background: rgba(245, 158, 11, 0.18);
        padding: 1px 6px;
        border-radius: 4px;
        display: inline-block;
        margin-top: 2px;
    }
    body.dark-theme #ticket-items-table .ticket-extra-corte {
        color: #7dd3fc !important;
    }
    body.dark-theme #ticket-items-table .ticket-extra-nota {
        color: #94a3b8 !important;
    }
    body.dark-theme #ticket-items-table .ticket-col-cant {
        color: #e2e8f0 !important;
    }
    body.dark-theme #ticket-items-table .ticket-col-unit {
        color: #cbd5e1 !important;
    }
    body.dark-theme #ticket-items-table .ticket-col-total {
        color: #38bdf8 !important;
        font-weight: 800 !important;
    }
    body.dark-theme .ticket-dashed-divider {
        border-top-color: rgba(148, 163, 184, 0.25) !important;
    }
    body.dark-theme #ticket-totals {
        background: rgba(15, 23, 42, 0.65) !important;
        border: 1px solid rgba(148, 163, 184, 0.18) !important;
        border-radius: 12px;
        padding: 12px 14px;
    }
    body.dark-theme #ticket-totals .ticket-row-sub {
        color: #cbd5e1 !important;
    }
    body.dark-theme #ticket-totals #t-base,
    body.dark-theme #ticket-totals #t-iva {
        color: #f8fafc !important;
        font-weight: 700;
    }
    body.dark-theme #ticket-totals .ticket-row-grand {
        color: #f8fafc !important;
        border-top-color: rgba(148, 163, 184, 0.25) !important;
    }
    body.dark-theme #t-total-usd {
        color: #34d399 !important;
        font-size: 1.18rem !important;
        font-weight: 900 !important;
    }
    body.dark-theme #ticket-totals .ticket-row-conv {
        color: #94a3b8 !important;
    }
    body.dark-theme #t-total-ves {
        color: #fde68a !important;
        font-weight: 700;
    }
    body.dark-theme #t-total-cop {
        color: #7dd3fc !important;
        font-weight: 700;
    }
    body.dark-theme #ticket-footer-note {
        color: #cbd5e1 !important;
    }
    body.dark-theme #invoice-action-bar {
        border-color: rgba(148, 163, 184, 0.18) !important;
    }
    body.dark-theme #invoice-close-bottom-btn {
        color: #cbd5e1 !important;
        border-color: rgba(148, 163, 184, 0.3) !important;
    }
    body.dark-theme #invoice-close-bottom-btn:hover {
        background: rgba(148, 163, 184, 0.14) !important;
        color: #f8fafc !important;
    }
}


/* ═══════════════════════════════════════════════════════════════════════
   MODAL CONFIRMACIÓN DE SUCURSAL — dark mode
   ═══════════════════════════════════════════════════════════════════════ */
body.dark-theme #branch-confirm-card {
    background: #1a2540 !important;
}
body.dark-theme #branch-confirm-title {
    color: #e2e8f7 !important;
}
body.dark-theme #branch-confirm-body {
    color: #9aabcb !important;
}
body.dark-theme #branch-confirm-card > div:first-child {
    background: rgba(255,200,50,0.15) !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   ANIMACIÓN ENTRADA DEL MODAL DE CONFIRMACIÓN DE SUCURSAL
   ═══════════════════════════════════════════════════════════════════════ */
@keyframes branchConfirmIn {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
#branch-confirm-card {
    animation: branchConfirmIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ═══════════════════════════════════════════════════════════════════════
   MEDIA QUERY DE IMPRESIÓN — Solo imprime el ticket, oculta todo lo demás
   ═══════════════════════════════════════════════════════════════════════ */
@media print {
    /* 1. Ocultar absolutamente todo el contenido de body */
    body > * {
        display: none !important;
        visibility: hidden !important;
    }

    /* 2. Mostrar SOLO el overlay de la factura */
    body > #invoice-modal-overlay {
        display: block !important;
        visibility: visible !important;
        position: static !important;
        background: none !important;
        width: 100% !important;
        height: auto !important;
        padding: 0 !important;
        z-index: auto !important;
    }

    /* 3. Hacer visible el contenido de la tarjeta */
    body > #invoice-modal-overlay,
    body > #invoice-modal-overlay * {
        visibility: visible !important;
    }

    /* 4. Estilos limpios para el card de impresión */
    #invoice-modal-content {
        box-shadow: none !important;
        border-radius: 0 !important;
        max-height: none !important;
        width: 100% !important;
        max-width: 100% !important;
        background: #fff !important;
    }

    /* 5. Forzar colores de texto en negro para impresión legible */
    #ticket-print-area,
    #ticket-print-area * {
        color: #000 !important;
        background: transparent !important;
        border-color: #ccc !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* El título principal y total en azul oscuro imprimible */
    #ticket-print-area h2,
    #t-total-usd {
        color: #1e3a5f !important;
    }

    /* 6. Ocultar los botones de acción y el botón X */
    #invoice-action-bar,
    #invoice-modal-content > button:first-child {
        display: none !important;
        visibility: hidden !important;
    }

    #ticket-print-area {
        padding: 16px !important;
    }
}

/* ==========================================================================
   MODAL DE SELECCIÓN DE PESO Y CORTES (PRODUCTOS AL PESO: CARNES, CHARCUTERÍA, VEGETALES)
   ========================================================================== */
.weight-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 250000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.weight-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.weight-modal-card {
    background: var(--bg-panel, #ffffff);
    border-radius: 24px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color, #e2e8f0);
    transform: scale(0.94) translateY(12px);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.weight-modal-overlay.open .weight-modal-card {
    transform: scale(1) translateY(0);
}

.weight-sheet-handle {
    display: none;
    width: 44px;
    height: 5px;
    border-radius: 3px;
    background: #cbd5e1;
    margin: 10px auto 4px auto;
}

/* Header */
.weight-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 22px 16px 22px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    background: var(--bg-panel, #ffffff);
    position: relative;
}

.weight-prod-summary {
    display: flex;
    gap: 14px;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.weight-prod-thumb {
    width: 68px;
    height: 68px;
    border-radius: 14px;
    overflow: hidden;
    background: #f8fafc;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weight-prod-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.weight-prod-titles {
    flex: 1;
    min-width: 0;
}

.weight-prod-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-blue, #2563eb);
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.weight-prod-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    line-height: 1.25;
    margin: 0 0 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.weight-price-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
    align-items: baseline;
}

.weight-price-usd {
    font-weight: 800;
    color: var(--primary-blue, #2563eb);
    font-size: 0.95rem;
}

.weight-price-ves,
.weight-price-cop {
    font-size: 0.75rem;
    color: var(--text-muted, #64748b);
}

.weight-close-btn {
    background: #f1f5f9;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--text-muted, #64748b);
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 10px;
}

.weight-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

/* Body */
.weight-modal-body {
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    max-height: calc(90vh - 180px);
}

.weight-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.weight-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-main, #1e293b);
}

.weight-stock-info {
    font-size: 0.74rem;
    font-weight: 600;
    color: #16a34a;
    background: #f0fdf4;
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid #bbf7d0;
}

/* Pills Grid */
.weight-pills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.weight-pill {
    border: 1.5px solid var(--border-color, #cbd5e1);
    background: var(--bg-panel, #ffffff);
    color: var(--text-main, #334155);
    padding: 10px 6px;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.weight-pill small {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-muted, #64748b);
    margin-top: 2px;
}

.weight-pill:hover {
    border-color: var(--primary-blue, #2563eb);
    background: #eff6ff;
}

.weight-pill.active {
    border-color: var(--primary-blue, #2563eb);
    background: var(--primary-blue, #2563eb);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.weight-pill.active small {
    color: rgba(255, 255, 255, 0.9);
}

.pill-badge {
    position: absolute;
    top: -7px;
    right: -4px;
    background: #e11d48;
    color: #ffffff;
    font-size: 0.58rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(225, 29, 72, 0.3);
}

/* Stepper de precisión */
.weight-stepper-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

.weight-step-btn {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-main, #1e293b);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.weight-step-btn:hover {
    background: var(--primary-blue, #2563eb);
    color: #ffffff;
    border-color: var(--primary-blue, #2563eb);
}

.weight-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#weight-grams-input {
    width: 86px;
    text-align: right;
    font-size: 1.2rem;
    font-weight: 800;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 6px 8px;
    outline: none;
    background: #ffffff;
    color: var(--text-main, #0f172a);
    font-family: inherit;
    transition: border-color 0.2s ease;
}

#weight-grams-input:focus {
    border-color: var(--primary-blue, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.weight-unit-label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
}

.weight-eq-text {
    font-weight: 800;
    color: var(--primary-blue, #2563eb);
    margin-left: 2px;
}

/* Cuts / Preparación */
.weight-cuts-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cut-chip {
    border: 1.5px solid var(--border-color, #cbd5e1);
    background: var(--bg-panel, #ffffff);
    color: var(--text-main, #334155);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cut-chip:hover {
    border-color: var(--primary-blue, #2563eb);
    background: #f0f7ff;
}

.cut-chip.active {
    border-color: var(--primary-blue, #2563eb);
    background: #eff6ff;
    color: var(--primary-blue, #2563eb);
    font-weight: 700;
    box-shadow: 0 0 0 1px var(--primary-blue, #2563eb);
}

/* Notes */
.weight-notes-input {
    width: 100%;
    border: 1.5px solid var(--border-color, #cbd5e1);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.84rem;
    outline: none;
    background: var(--bg-panel, #ffffff);
    color: var(--text-main, #0f172a);
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.weight-notes-input:focus {
    border-color: var(--primary-blue, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Footer */
.weight-modal-footer {
    padding: 16px 22px 20px 22px;
    border-top: 1px solid var(--border-color, #e2e8f0);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: var(--bg-panel, #ffffff);
}

.weight-live-calc {
    display: flex;
    flex-direction: column;
}

.live-calc-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted, #64748b);
    letter-spacing: 0.5px;
}

.live-calc-usd {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--primary-blue, #2563eb);
    line-height: 1.15;
}

.live-calc-subvalues {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
}

.weight-submit-btn {
    flex: 1;
    max-width: 250px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 13px 18px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.32);
    transition: all 0.2s ease;
}

.weight-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.42);
}

/* Botón de producto al peso en la tarjeta del catálogo */
.btn-weight-action {
    background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
    color: #ffffff !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    padding: 9px 12px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    width: 100% !important;
    transition: all 0.2s ease !important;
}

.btn-weight-action:hover {
    background: linear-gradient(135deg, #0284c7, #0369a1) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3) !important;
}

.btn-weight-in-cart {
    background: #f0fdf4 !important;
    color: #166534 !important;
    border: 1.5px solid #86efac !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 6px 10px !important;
    border-radius: 10px !important;
    width: 100% !important;
    font-size: 0.8rem !important;
    box-sizing: border-box !important;
}

.btn-weight-edit-pill {
    background: #22c55e !important;
    color: #ffffff !important;
    border: none !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    font-size: 0.75rem !important;
    cursor: pointer !important;
    font-weight: 600 !important;
}

.btn-weight-edit-pill:hover {
    background: #16a34a !important;
}

/* Badge de corte en item del carrito */
.cart-item-cut-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #0369a1;
    background: #e0f2fe;
    padding: 1px 7px;
    border-radius: 6px;
    margin-top: 3px;
    border: 1px solid #bae6fd;
}

.cart-item-note-text {
    font-size: 0.7rem;
    color: #64748b;
    font-style: italic;
    display: block;
    margin-top: 2px;
}

/* ==========================================================================
   MOBILE BOTTOM-SHEET PARA MODAL DE PESO (<768px)
   ========================================================================== */
@media (max-width: 768px) {
    .weight-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .weight-modal-card {
        max-width: 100%;
        border-radius: 26px 26px 0 0;
        max-height: 88vh;
        transform: translateY(100%);
        border-bottom: none;
    }

    .weight-modal-overlay.open .weight-modal-card {
        transform: translateY(0);
    }

    .weight-sheet-handle {
        display: block;
    }

    .weight-modal-header {
        padding: 10px 18px 14px 18px;
    }

    .weight-prod-name {
        font-size: 0.98rem;
    }

    .weight-modal-body {
        padding: 14px 18px;
        max-height: calc(88vh - 190px);
    }

    .weight-pills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .weight-pill {
        padding: 8px 4px;
        font-size: 0.82rem;
    }

    .weight-modal-footer {
        padding: 14px 18px 24px 18px;
    }

    .weight-submit-btn {
        max-width: 190px;
        padding: 12px 14px;
        font-size: 0.88rem;
    }

    .live-calc-usd {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   MODO OSCURO: MODAL DE PESO, ACCIONES Y CORTES
   ========================================================================== */
body.dark-theme .weight-modal-card,
body.dark-mode .weight-modal-card {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
}

body.dark-theme .weight-modal-header,
body.dark-mode .weight-modal-header {
    background: #1e293b !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .weight-prod-name,
body.dark-mode .weight-prod-name {
    color: #f8fafc !important;
}

body.dark-theme .weight-close-btn,
body.dark-mode .weight-close-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
}

body.dark-theme .weight-close-btn:hover,
body.dark-mode .weight-close-btn:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
}

body.dark-theme .weight-pill,
body.dark-mode .weight-pill {
    background: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #e2e8f0 !important;
}

body.dark-theme .weight-pill small,
body.dark-mode .weight-pill small {
    color: #94a3b8 !important;
}

body.dark-theme .weight-pill:hover,
body.dark-mode .weight-pill:hover {
    background: #1e293b !important;
    border-color: #38bdf8 !important;
}

body.dark-theme .weight-pill.active,
body.dark-mode .weight-pill.active {
    background: #0284c7 !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
}

body.dark-theme .weight-pill.active small,
body.dark-mode .weight-pill.active small {
    color: rgba(255, 255, 255, 0.9) !important;
}

body.dark-theme .weight-stepper-box,
body.dark-mode .weight-stepper-box {
    background: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

body.dark-theme .weight-step-btn,
body.dark-mode .weight-step-btn {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
}

body.dark-theme #weight-grams-input,
body.dark-mode #weight-grams-input {
    color: #f8fafc !important;
    background: transparent !important;
}

body.dark-theme .cut-chip,
body.dark-mode .cut-chip {
    background: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e1 !important;
}

body.dark-theme .cut-chip:hover,
body.dark-mode .cut-chip:hover {
    background: #1e293b !important;
    border-color: #38bdf8 !important;
}

body.dark-theme .cut-chip.active,
body.dark-mode .cut-chip.active {
    background: #0284c7 !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
}

body.dark-theme .weight-notes-input,
body.dark-mode .weight-notes-input {
    background: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
}

body.dark-theme .weight-modal-footer,
body.dark-mode .weight-modal-footer {
    background: #1e293b !important;
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .live-calc-label,
body.dark-mode .live-calc-label {
    color: #94a3b8 !important;
}

body.dark-theme .live-calc-usd,
body.dark-mode .live-calc-usd {
    color: #38bdf8 !important;
}

body.dark-theme .cart-edit-btn,
body.dark-mode .cart-edit-btn {
    background: #1e3a8a !important;
    color: #bfdbfe !important;
    border-color: #3b82f6 !important;
}

body.dark-theme .cart-del-btn,
body.dark-mode .cart-del-btn {
    background: #450a0a !important;
    color: #fca5a5 !important;
    border-color: #991b1b !important;
}

body.dark-theme .cart-item-cut-badge,
body.dark-mode .cart-item-cut-badge {
    background: #0c4a6e !important;
    color: #7dd3fc !important;
    border-color: #0369a1 !important;
}

body.dark-theme .cart-item-note-text,
body.dark-mode .cart-item-note-text {
    color: #94a3b8 !important;
}

/* ==========================================================================
   FASE 4.5: NOTIFICACIONES DE PRUEBA SOCIAL (SOCIAL PROOF TOASTS)
   ========================================================================== */
.om-social-proof-toast {
    position: fixed;
    bottom: 84px;
    left: 24px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 350px;
    z-index: 99990;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.om-social-proof-toast.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.social-proof-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.social-proof-icon-box i,
.social-proof-icon-box svg {
    width: 18px;
    height: 18px;
}

.social-proof-content {
    flex: 1;
    min-width: 0;
}

.social-proof-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #10b981;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.social-proof-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

.social-proof-desc {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.25;
    white-space: normal;
    word-break: break-word;
}

.social-proof-time {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.social-proof-time i,
.social-proof-time svg {
    width: 10px;
    height: 10px;
}

.social-proof-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.social-proof-close:hover {
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.06);
}

body.dark-theme .om-social-proof-toast {
    background: rgba(30, 41, 59, 0.94);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

body.dark-theme .social-proof-icon-box {
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.25);
}

body.dark-theme .social-proof-close:hover {
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
    .om-social-proof-toast {
        bottom: calc(135px + env(safe-area-inset-bottom, 0px)); /* Arriba del chat fab y de la barra móvil */
        left: 12px;
        right: 12px;
        max-width: calc(100% - 24px);
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   SUCURSALES VISUALES v1 · Foto de sede + Ken Burns + brillo + acciones
   ═══════════════════════════════════════════════════════════════════════════ */
#nosotros .sucursal-card.om-sede-card {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.om-sede-media {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: #0f172a;
    isolation: isolate;
}

.om-sede-media picture,
.om-sede-media img {
    display: block;
    width: 100%;
    height: 100%;
}

.om-sede-media img {
    object-fit: cover;
    transform: scale(1.06);
    animation: omSedeKenBurns 18s ease-in-out infinite alternate;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
    will-change: transform;
}

.om-sede-tama .om-sede-media img {
    animation-delay: -9s;
}

@keyframes omSedeKenBurns {
    0%   { transform: scale(1.06) translate3d(0, 0, 0); }
    100% { transform: scale(1.16) translate3d(-3%, -2%, 0); }
}

.om-sede-card:hover .om-sede-media img {
    animation-play-state: paused;
    transform: scale(1.18);
    filter: saturate(1.15) brightness(1.04);
}

.om-sede-media-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 30%, rgba(15, 23, 42, 0.72) 100%);
    pointer-events: none;
}

.om-sede-gp .om-sede-media-shade {
    background: linear-gradient(180deg, rgba(220, 38, 38, 0.05) 25%, rgba(127, 29, 29, 0.70) 100%);
}

.om-sede-tama .om-sede-media-shade {
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.05) 25%, rgba(76, 29, 149, 0.70) 100%);
}

/* Destello diagonal que recorre la foto cada pocos segundos */
.om-sede-shine {
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.28) 50%, transparent 100%);
    transform: skewX(-18deg);
    animation: omSedeShine 6.5s ease-in-out infinite;
    pointer-events: none;
}

.om-sede-tama .om-sede-shine {
    animation-delay: 3.2s;
}

@keyframes omSedeShine {
    0%, 70% { left: -60%; }
    100%    { left: 130%; }
}

#nosotros .om-sede-media .sucursal-badge {
    z-index: 3;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #0f172a !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.om-sede-media-tag {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.om-sede-body {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 34px 24px 24px;
}

/* Avatar de tienda flotando entre la foto y el contenido */
#nosotros .om-sede-avatar {
    position: absolute;
    top: -30px;
    left: 24px;
    width: 56px;
    height: 56px;
    margin: 0;
    border-radius: 16px;
    background: #ffffff !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    z-index: 4;
}

#nosotros .om-sede-avatar svg {
    width: 26px;
    height: 26px;
}

.om-sede-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.om-sede-btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.om-sede-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 10px 14px !important;
    border-radius: 50px !important;
    font-family: inherit;
    font-size: 0.88rem !important;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.om-sede-btn:active {
    transform: scale(0.96);
}

.om-sede-btn-shop {
    width: 100%;
    color: #ffffff;
    background: linear-gradient(135deg, #1e3a5f, #2a5298);
    box-shadow: 0 6px 18px rgba(30, 58, 95, 0.28);
}

.om-sede-gp .om-sede-btn-shop {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.28);
}

.om-sede-tama .om-sede-btn-shop {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.28);
}

.om-sede-btn-shop:hover {
    transform: translateY(-2px);
}

.om-sede-btn-map {
    color: #1e3a5f;
    background: rgba(30, 58, 95, 0.08);
    border: 1.5px solid rgba(30, 58, 95, 0.18) !important;
}

.om-sede-btn-map:hover {
    background: rgba(30, 58, 95, 0.14);
}

/* Sede activa: anillo de color + etiqueta "Comprando aquí" */
.om-sede-card.om-sede-active::after {
    content: '✓ Comprando aquí';
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #ffffff;
    background: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.om-sede-gp.om-sede-active {
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.55), 0 15px 35px rgba(0, 0, 0, 0.08) !important;
}

.om-sede-tama.om-sede-active {
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.55), 0 15px 35px rgba(0, 0, 0, 0.08) !important;
}

/* Modo oscuro */
body.dark-theme #nosotros .om-sede-avatar {
    background: #111827 !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

body.dark-theme .om-sede-btn-map {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14) !important;
}

/* Móvil */
@media (max-width: 768px) {
    .om-sede-media {
        height: 165px;
    }

    .om-sede-body {
        padding: 32px 18px 20px;
    }

    #nosotros .om-sede-avatar {
        left: 18px;
        width: 50px;
        height: 50px;
        top: -26px;
    }
}

@media (max-width: 360px) {
    .om-sede-btn-row {
        grid-template-columns: 1fr;
    }
}

/* Accesibilidad: sin movimiento si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
    .om-sede-media img,
    .om-sede-shine {
        animation: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MICRO-ANIMACIONES DE PRODUCTOS · Shimmer en Ofertas + Pulso Últimas Unid.
   ═══════════════════════════════════════════════════════════════════════════ */
.offer-badge {
    overflow: hidden;
    isolation: isolate;
}

.offer-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 75%;
    height: 100%;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
    transform: skewX(-20deg);
    animation: omOfferShimmer 3.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes omOfferShimmer {
    0%, 60% { left: -120%; }
    100%    { left: 160%; }
}

.om-low-stock-badge {
    animation: omLowStockPulse 2.4s ease-in-out infinite;
}

@keyframes omLowStockPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}

.product-card .product-image-wrapper img {
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.07);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROPUESTA C · CARRITO EN 2 PASOS (1. Mis Productos -> 2. Pago y Envío)
   Elimina el doble scroll vertical en el medio de "Mi Pedido"
   ═══════════════════════════════════════════════════════════════════════════ */
.om-cart-stepper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.om-cart-step-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    background: rgba(15, 23, 42, 0.03);
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.om-cart-step-tab .om-step-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(100, 116, 139, 0.18);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
}

.om-cart-step-tab .om-step-count {
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary-blue);
    font-size: 0.7rem;
    font-weight: 800;
}

.om-cart-step-tab.active {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.om-cart-step-tab.active .om-step-num {
    background: var(--primary-blue);
    color: #ffffff;
}

/* Barra inferior fija del Paso 1 */
.om-cart-step1-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 18px 16px;
    background: var(--bg-panel);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.om-step1-totals {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.om-step1-main-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.om-step1-lbl {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-main);
}

.om-step1-usd {
    font-size: 1.18rem;
    font-weight: 900;
    color: #ef4444;
}

.om-step1-sub-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted);
}

.om-step1-next-btn {
    width: 100%;
    padding: 13px 18px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #10b981);
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 0.94rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.28);
    transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.om-step1-next-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.36);
}

.om-step1-next-btn:active {
    transform: scale(0.98);
}

/* Cabecera de regreso en el Paso 2 */
.om-step2-back-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border-color);
}

.om-step2-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.04);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.om-step2-back-btn:hover {
    background: rgba(37, 99, 235, 0.1);
}

.om-step2-pill {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(100, 116, 139, 0.12);
    padding: 4px 10px;
    border-radius: 999px;
}

/* Control de vistas: un único scroll activo por paso */
#cart-drawer.om-cart-is-empty #om-cart-stepper,
#cart-drawer.om-cart-is-empty #om-cart-step1-bar,
#cart-drawer.om-cart-is-empty .drawer-footer {
    display: none !important;
}

#cart-drawer:not(.om-cart-is-empty)[data-cart-step="1"] .drawer-body {
    display: flex !important;
    flex: 1 1 auto !important;
    max-height: none !important;
    overflow-y: auto !important;
}

#cart-drawer:not(.om-cart-is-empty)[data-cart-step="1"] #om-cart-step1-bar {
    display: flex !important;
}

#cart-drawer:not(.om-cart-is-empty)[data-cart-step="1"] .drawer-footer {
    display: none !important;
}

#cart-drawer:not(.om-cart-is-empty)[data-cart-step="2"] .drawer-body,
#cart-drawer:not(.om-cart-is-empty)[data-cart-step="2"] #om-cart-step1-bar {
    display: none !important;
}

#cart-drawer:not(.om-cart-is-empty)[data-cart-step="2"] .drawer-footer {
    display: flex !important;
    flex: 1 1 auto !important;
    max-height: none !important;
    overflow-y: auto !important;
    border-top: none !important;
}

/* Modo oscuro */
body.dark-theme .om-cart-stepper {
    background: #111827;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-theme .om-cart-step-tab {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

body.dark-theme .om-cart-step-tab.active {
    background: rgba(59, 130, 246, 0.18);
    border-color: #3b82f6;
    color: #60a5fa;
}

body.dark-theme .om-cart-step-tab .om-step-count {
    background: rgba(59, 130, 246, 0.22);
    color: #93c5fd;
}

body.dark-theme .om-cart-step1-bar {
    background: #111827;
    border-top-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
}

body.dark-theme .om-step2-back-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
}

@media (max-width: 768px) {
    .om-cart-step1-bar {
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
    }

    #cart-drawer:not(.om-cart-is-empty)[data-cart-step="2"] .drawer-footer {
        padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
        max-height: none !important;
    }
}

/* Simplificación del Carrito: ocultar widgets promocionales secundarios para compra rápida */
#cart-drawer #luz-smart-upsell-strip,
#cart-drawer #luz-savings-badge,
#cart-drawer #luz-cart-loyalty-hint,
#cart-drawer #luz-split-pay-box {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MÓDULOS ESTRATÉGICOS DE TIENDA (#TIENDA):
   1. Banner Panorámico de Ubicación Activa + Switcher Rápido
   2. Integración Visual Oficial de Cashea (Header, Hero, Cards, Simulador)
   3. Vitrina Comercial / Retail Media (Marcas Aliadas & Publicidad)
   4. Barra Móvil Tipo App (Departamentos Táctiles + Filtros Rápidos)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Pill Oficial de Cashea en el Header ── */
.om-header-cashea-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFE600;
    color: #111827;
    border: 1.5px solid #111827;
    padding: 6px 12px;
    border-radius: 999px;
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(250, 204, 21, 0.35);
    transition: transform 0.18s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.om-header-cashea-pill:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 6px 16px rgba(250, 204, 21, 0.5);
}

.om-cashea-c-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: #111827;
    color: #FFE600;
    font-weight: 900;
    font-size: 0.72rem;
    line-height: 1;
}

/* ── 1. Banner Panorámico de Ubicación Activa en #tienda ── */
.om-store-location-banner {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 14px;
    min-height: 138px;
    display: flex;
    align-items: stretch;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.om-loc-banner-bg-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.om-loc-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.04);
    animation: omSedeKenBurns 16s ease-in-out infinite alternate;
}

.om-loc-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.78) 55%, rgba(30, 58, 138, 0.62) 100%);
}

.om-store-location-banner[data-branch="2"] .om-loc-banner-overlay {
    background: linear-gradient(100deg, rgba(17, 24, 39, 0.92) 0%, rgba(31, 41, 55, 0.78) 55%, rgba(180, 83, 9, 0.62) 100%);
}

.om-loc-banner-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.om-loc-banner-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 600px;
}

.om-loc-top-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.om-loc-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.22);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #a7f3d0;
    font-size: 0.73rem;
    font-weight: 700;
}

.om-loc-live-pill.is-closed {
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fecaca;
}

.om-loc-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.om-loc-live-pill.is-closed .om-loc-dot {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

.om-loc-eta-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #f8fafc;
    font-size: 0.72rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.om-loc-title {
    margin: 2px 0 0;
    font-size: 1.28rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.om-loc-address {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(241, 245, 249, 0.88);
    font-weight: 500;
}

.om-loc-banner-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.om-loc-switcher-group {
    display: inline-flex;
    background: rgba(15, 23, 42, 0.65);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    gap: 4px;
}

.om-loc-switch-btn {
    padding: 7px 14px;
    border-radius: 9px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.om-loc-switch-btn .om-loc-check {
    display: none;
}

.om-loc-switch-btn.active {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35);
}

.om-loc-switch-btn.active .om-loc-check {
    display: inline;
}

.om-loc-maps-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease;
}

.om-loc-maps-btn:hover {
    background: rgba(255, 255, 255, 0.26);
}

/* ── 2. Banner Oficial de Cashea en #tienda ── */
.om-cashea-hero-banner {
    background: linear-gradient(110deg, #FFE600 0%, #FACC15 55%, #FDE047 100%);
    color: #111827;
    border-radius: 16px;
    padding: 14px 20px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    border: 2px solid #111827;
    box-shadow: 0 8px 22px rgba(250, 204, 21, 0.28);
}

.om-cashea-brand-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.om-cashea-official-logo {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #111827;
    color: #FFE600;
    padding: 7px 14px;
    border-radius: 12px;
}

.om-cashea-c-box {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #FFE600;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
}

.om-cashea-wordmark {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.om-cashea-zero-pill {
    background: #111827;
    color: #FFE600;
    font-size: 0.68rem;
    font-weight: 900;
    padding: 4px 9px;
    border-radius: 999px;
    letter-spacing: 0.04em;
}

.om-cashea-copy-block {
    flex: 1 1 260px;
}

.om-cashea-headline {
    margin: 0 0 2px;
    font-size: 1.02rem;
    font-weight: 900;
    color: #111827;
}

.om-cashea-subline {
    margin: 0;
    font-size: 0.8rem;
    color: #1f2937;
    font-weight: 600;
}

.om-cashea-actions-block {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.om-cashea-cta-sim {
    background: #111827;
    color: #FFE600;
    border: none;
    padding: 9px 15px;
    border-radius: 10px;
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.om-cashea-cta-sim:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(17, 24, 39, 0.3);
}

.om-cashea-cta-filter {
    background: rgba(255, 255, 255, 0.78);
    color: #111827;
    border: 1.5px solid #111827;
    padding: 8px 13px;
    border-radius: 10px;
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.18s ease;
}

.om-cashea-cta-filter:hover {
    background: #ffffff;
}

/* ── 3. Vitrina Comercial / Marcas Patrocinadas (Retail Media) ── */
.om-retail-media-strip {
    margin-bottom: 16px;
}

.om-retail-media-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.om-retail-media-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.om-retail-media-advertise-link {
    background: transparent;
    border: none;
    color: #2563eb;
    font-family: var(--font-main);
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: background 0.18s ease;
}

.om-retail-media-advertise-link:hover {
    background: rgba(37, 99, 235, 0.08);
}

.om-retail-media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.om-ad-card {
    position: relative;
    border-radius: 14px;
    padding: 13px 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    color: #ffffff;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.1);
}

.om-ad-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.om-ad-polar {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
}

.om-ad-bebidas {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
}

.om-ad-sponsor-slot {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    border: 1.5px dashed #f59e0b;
}

.om-ad-badge {
    align-self: flex-start;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.om-ad-badge-gold {
    background: rgba(245, 158, 11, 0.25);
    color: #fde68a;
}

.om-ad-body {
    display: flex;
    align-items: center;
    gap: 10px;
}

.om-ad-emoji {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
}

.om-ad-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.om-ad-text strong {
    font-size: 0.88rem;
    font-weight: 800;
    color: #ffffff;
}

.om-ad-text span {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.3;
}

.om-ad-cta {
    font-size: 0.74rem;
    font-weight: 800;
    color: #fde047;
    align-self: flex-end;
}

/* ── In-Grid Retail Media & Cashea Banner (dentro de #products-grid) ── */
.om-ingrid-retail-banner {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 12px;
    margin: 6px 0;
}

.om-ingrid-cashea-col {
    background: linear-gradient(120deg, #111827 0%, #1f2937 100%);
    border: 2px solid #FFE600;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #ffffff;
    flex-wrap: wrap;
}

.om-ingrid-cashea-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFE600;
    color: #111827;
    padding: 5px 10px;
    border-radius: 9px;
    font-weight: 900;
    font-size: 0.85rem;
}

.om-ingrid-cashea-badge small {
    font-size: 0.62rem;
    background: #111827;
    color: #FFE600;
    padding: 2px 5px;
    border-radius: 4px;
}

.om-ingrid-cashea-copy {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.om-ingrid-cashea-copy strong {
    font-size: 0.86rem;
    color: #FFE600;
}

.om-ingrid-cashea-copy span {
    font-size: 0.74rem;
    color: #e2e8f0;
}

.om-ingrid-cashea-btn {
    background: #FFE600;
    color: #111827;
    border: none;
    padding: 8px 13px;
    border-radius: 9px;
    font-family: var(--font-main);
    font-size: 0.76rem;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.om-ingrid-ad-col {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px dashed #3b82f6;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
}

.om-ingrid-ad-tag {
    font-size: 0.62rem;
    font-weight: 800;
    color: #1d4ed8;
    letter-spacing: 0.05em;
}

.om-ingrid-ad-col strong {
    font-size: 0.84rem;
    color: #1e3a8a;
}

.om-ingrid-ad-col span {
    font-size: 0.74rem;
    color: #334155;
}

/* ── Sello Cashea en cada tarjeta de producto ── */
.om-cashea-prod-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 230, 0, 0.95);
    color: #111827;
    border: 1px solid #111827;
    padding: 2px 7px;
    border-radius: 999px;
    font-family: var(--font-main);
    font-size: 0.65rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s ease;
}

.om-cashea-prod-badge:hover {
    transform: scale(1.06);
}

.om-cashea-prod-badge .om-cashea-c-icon {
    width: 13px;
    height: 13px;
    font-size: 0.58rem;
    border-radius: 3px;
}

/* ── 4. Barra Móvil Tipo App: Categorías Deslizables + Filtros Rápidos ── */
.om-mobile-app-bar {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.om-mobile-cat-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.om-mobile-cat-strip::-webkit-scrollbar {
    display: none;
}

.om-mob-cat-pill {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border-radius: 999px;
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    transition: all 0.18s ease;
}

.om-mob-cat-pill.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.om-mob-cat-pill.om-mob-cat-cashea {
    background: #FFE600;
    border-color: #111827;
    color: #111827;
}

.om-mob-cat-pill.om-mob-cat-cashea.active {
    background: #111827;
    border-color: #FFE600;
    color: #FFE600;
}

.om-mob-cat-cnt {
    font-size: 0.68rem;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.07);
    color: inherit;
    font-weight: 800;
}

.om-mob-cat-pill.active .om-mob-cat-cnt {
    background: rgba(255, 255, 255, 0.22);
}

.om-mobile-quick-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    overflow-x: auto;
    padding: 2px 2px 4px;
    scrollbar-width: none;
}

.om-mobile-quick-actions::-webkit-scrollbar {
    display: none;
}

.om-qfilter-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.07);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.om-qfilter-chip.active {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.om-qfilter-chip.om-qfilter-cashea {
    background: rgba(250, 204, 21, 0.22);
    border-color: #eab308;
    color: var(--text-main);
}

/* ── Modales de Cashea y Publicidad Comercial ── */
.om-custom-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 250000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.om-cashea-modal-card,
.om-ads-modal-card {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-card, #ffffff);
    color: var(--text-main);
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.38);
    border: 1px solid var(--border-color);
}

.om-ads-modal-card {
    max-width: 780px;
}

.om-modal-close-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 23, 42, 0.12);
    color: inherit;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.om-cashea-modal-head {
    background: linear-gradient(125deg, #FFE600 0%, #FACC15 100%);
    color: #111827;
    padding: 22px 24px 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    border-bottom: 2px solid #111827;
}

.om-cashea-modal-head h3 {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 900;
    line-height: 1.3;
    color: #111827;
}

.om-cashea-modal-body {
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.om-cashea-sim-box {
    background: var(--bg-panel, #f8fafc);
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.om-cashea-sim-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.om-cashea-sim-row label {
    font-size: 0.84rem;
    font-weight: 800;
}

.om-cashea-input-wrap {
    display: inline-flex;
    align-items: center;
    background: var(--bg-card, #ffffff);
    border: 1.5px solid #eab308;
    border-radius: 10px;
    padding: 6px 12px;
    gap: 4px;
    font-weight: 900;
}

.om-cashea-input-wrap input {
    width: 90px;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 900;
    outline: none;
}

.om-cashea-level-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
}

.om-cashea-level-btns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.om-cashea-lvl-btn {
    padding: 8px 6px;
    border-radius: 9px;
    border: 1px solid var(--border-color);
    background: var(--bg-card, #ffffff);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
}

.om-cashea-lvl-btn.active {
    background: #111827;
    color: #FFE600;
    border-color: #111827;
}

.om-cashea-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.om-cashea-res-item {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.om-cashea-res-item.highlight {
    border: 2px solid #eab308;
    background: rgba(250, 204, 21, 0.1);
}

.om-cashea-res-lbl {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
}

.om-cashea-res-usd {
    font-size: 1.12rem;
    font-weight: 900;
    color: var(--text-main);
}

.om-cashea-steps-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.om-cashea-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8rem;
    line-height: 1.4;
}

.om-cashea-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #FFE600;
    color: #111827;
    font-weight: 900;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.om-cashea-modal-foot {
    padding: 14px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--border-color);
}

.om-cashea-use-btn {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 2px solid #111827;
    background: #FFE600;
    color: #111827;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 900;
    cursor: pointer;
}

.om-cashea-close-sec {
    width: 100%;
    padding: 9px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

/* Modal de Planes Publicitarios */
.om-ads-modal-head {
    padding: 24px 26px 14px;
    border-bottom: 1px solid var(--border-color);
}

.om-ads-kicker {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 900;
    color: #f59e0b;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.om-ads-modal-head h3 {
    margin: 0 0 6px;
    font-size: 1.22rem;
    font-weight: 900;
}

.om-ads-modal-head p {
    margin: 0;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.om-ads-plans-grid {
    padding: 20px 24px 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.om-ads-plan-card {
    position: relative;
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    background: var(--bg-panel, #f8fafc);
}

.om-ads-plan-card.featured {
    border: 2px solid #2563eb;
    background: rgba(37, 99, 235, 0.04);
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.14);
}

.om-ads-plan-popular {
    position: absolute;
    top: -10px;
    right: 12px;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 900;
    padding: 3px 9px;
    border-radius: 999px;
}

.om-ads-plan-tier {
    font-size: 0.74rem;
    font-weight: 900;
    color: #2563eb;
    letter-spacing: 0.05em;
}

.om-ads-plan-price {
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--text-main);
}

.om-ads-plan-price small {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.om-ads-plan-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 0.78rem;
}

.om-ads-plan-btn {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1.5px solid #2563eb;
    background: transparent;
    color: #2563eb;
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
}

.om-ads-plan-btn.primary {
    background: #2563eb;
    color: #ffffff;
}

/* ── Dark Mode & Responsive Mobile ── */
body.dark-theme .om-mob-cat-pill {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

body.dark-theme .om-mob-cat-pill.active {
    background: #2563eb;
    border-color: #3b82f6;
    color: #ffffff;
}

body.dark-theme .om-ingrid-ad-col {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: #3b82f6;
}

body.dark-theme .om-ingrid-ad-col strong {
    color: #93c5fd;
}

body.dark-theme .om-ingrid-ad-col span {
    color: #cbd5e1;
}

@media (max-width: 768px) {
    .om-header-cashea-pill span:not(.om-cashea-c-icon) {
        display: inline;
        font-size: 0.72rem;
    }

    .om-header-cashea-pill {
        padding: 5px 9px;
    }

    .om-store-location-banner {
        border-radius: 14px;
        margin: 8px 10px 10px;
        min-height: auto;
    }

    .om-loc-banner-content {
        padding: 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .om-loc-title {
        font-size: 1.06rem;
    }

    .om-loc-address {
        font-size: 0.76rem;
    }

    .om-loc-banner-right {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .om-cashea-hero-banner {
        margin: 0 10px 10px;
        padding: 12px 14px;
        border-radius: 14px;
        gap: 10px;
    }

    .om-cashea-headline {
        font-size: 0.92rem;
    }

    .om-cashea-subline {
        font-size: 0.74rem;
    }

    .om-cashea-actions-block {
        width: 100%;
    }

    .om-cashea-cta-sim,
    .om-cashea-cta-filter {
        flex: 1;
        text-align: center;
        justify-content: center;
    }

    .om-retail-media-strip {
        margin: 0 10px 12px;
    }

    .om-retail-media-grid {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 4px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .om-retail-media-grid::-webkit-scrollbar {
        display: none;
    }

    .om-ad-card {
        flex: 0 0 82%;
        scroll-snap-align: start;
    }

    .om-mobile-app-bar {
        display: flex;
        padding: 8px 10px 4px;
        background: var(--bg-main, #f8fafc);
    }

    body.dark-theme .om-mobile-app-bar {
        background: #0f172a;
    }

    .om-ingrid-retail-banner {
        grid-template-columns: 1fr;
    }

    .om-ads-plans-grid,
    .om-cashea-results-grid {
        grid-template-columns: 1fr;
    }
}



/* ═══════════════════════════════════════════════════════════════════════════
   RETOQUES VISUALES v2 — Paleta propia de modales, menos amarillo,
   franja superior compacta y banner in-grid alineado
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Paleta fija por modal (antes: --bg-card no existía → blanco fijo
         mientras --text-main cambiaba a blanco en modo oscuro) ── */
.om-cashea-modal-card,
.om-ads-modal-card {
    --bg-card: #ffffff;
    --bg-panel: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --om-modal-soft: #f1f5f9;
    --om-modal-highlight: #fffbe6;
    --om-modal-featured: #eff6ff;
    background: var(--bg-card) !important;
    color: var(--text-main) !important;
}

body.dark-theme .om-cashea-modal-card,
body.dark-theme .om-ads-modal-card,
body.dark-mode .om-cashea-modal-card,
body.dark-mode .om-ads-modal-card {
    --bg-card: #111827;
    --bg-panel: #1a2333;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --om-modal-soft: #243044;
    --om-modal-highlight: rgba(250, 204, 21, 0.1);
    --om-modal-featured: rgba(37, 99, 235, 0.14);
    border-color: rgba(255, 255, 255, 0.08);
}

.om-cashea-modal-card *,
.om-ads-modal-card * {
    border-color: var(--border-color);
}

.om-cashea-modal-body,
.om-cashea-steps-list,
.om-cashea-step,
.om-cashea-step div,
.om-ads-modal-head h3,
.om-ads-plan-list,
.om-ads-plan-price {
    color: var(--text-main) !important;
}

.om-cashea-step em { color: var(--text-main); font-weight: 700; }
.om-cashea-step strong { color: var(--text-main); }

.om-modal-close-btn {
    background: rgba(15, 23, 42, 0.14) !important;
    color: #0f172a !important;
}
.om-ads-modal-card .om-modal-close-btn { color: var(--text-main) !important; background: var(--om-modal-soft) !important; }
.om-modal-close-btn:hover { filter: brightness(0.92); }

/* Simulador */
.om-cashea-sim-box { background: var(--bg-panel) !important; border: 1px solid var(--border-color) !important; }
.om-cashea-sim-row label,
.om-cashea-level-row { color: var(--text-main) !important; }

.om-cashea-input-wrap {
    background: var(--bg-card) !important;
    border: 1.5px solid #eab308 !important;
    color: var(--text-main) !important;
}
.om-cashea-input-wrap span { color: var(--text-muted); }
.om-cashea-input-wrap input,
body.dark-theme .om-cashea-input-wrap input {
    background: transparent !important;
    color: var(--text-main) !important;
    border: none !important;
    box-shadow: none !important;
    text-align: right;
}

.om-cashea-lvl-btn {
    background: var(--om-modal-soft) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-color) !important;
    transition: all 0.18s ease;
}
.om-cashea-lvl-btn:hover { border-color: #eab308 !important; }
.om-cashea-lvl-btn.active {
    background: #111827 !important;
    color: #FFE600 !important;
    border-color: #111827 !important;
}
body.dark-theme .om-cashea-lvl-btn.active {
    background: #FFE600 !important;
    color: #111827 !important;
    border-color: #FFE600 !important;
}

.om-cashea-res-item {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
}
.om-cashea-res-item.highlight {
    background: var(--om-modal-highlight) !important;
    border: 2px solid #eab308 !important;
}
.om-cashea-res-lbl, .om-cashea-res-item small { color: var(--text-muted) !important; }
.om-cashea-res-usd { color: var(--text-main) !important; }
body.dark-theme .om-cashea-res-item.highlight .om-cashea-res-usd { color: #FFE600 !important; }

.om-cashea-modal-foot { border-top: 1px solid var(--border-color); }
.om-cashea-close-sec { color: var(--text-muted) !important; }

/* Modal de publicidad: todas las tarjetas en la misma superficie */
.om-ads-modal-head p { color: var(--text-muted) !important; }
.om-ads-plan-card {
    background: var(--bg-panel) !important;
    border: 1.5px solid var(--border-color) !important;
    color: var(--text-main) !important;
}
.om-ads-plan-card.featured {
    background: var(--om-modal-featured) !important;
    border: 2px solid #2563eb !important;
}
.om-ads-plan-price small { color: var(--text-muted) !important; }
.om-ads-plan-btn { color: #2563eb !important; }
body.dark-theme .om-ads-plan-btn { color: #93c5fd !important; border-color: #3b82f6 !important; }
.om-ads-plan-btn.primary { color: #ffffff !important; background: #2563eb !important; }
body.dark-theme .om-ads-plan-tier { color: #93c5fd; }

/* ── 2. Menos amarillo ── */
/* Header: pastilla sobria (oscura) con solo la "C" amarilla */
.om-header-cashea-pill {
    background: #111827 !important;
    color: #FFE600 !important;
    border: 1px solid rgba(255, 230, 0, 0.45) !important;
    box-shadow: none !important;
}
.om-header-cashea-pill .om-cashea-c-icon { background: #FFE600; color: #111827; }
.om-header-cashea-pill:hover { box-shadow: 0 4px 12px rgba(250, 204, 21, 0.25) !important; }

/* Sello por producto: discreto, solo ícono; la palabra aparece al pasar el cursor */
.om-cashea-prod-badge {
    background: rgba(17, 24, 39, 0.72) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 3px !important;
    gap: 0 !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0.85;
    transition: opacity 0.18s ease, padding 0.18s ease, gap 0.18s ease;
}
.om-cashea-prod-badge .om-cashea-c-icon {
    background: #FFE600 !important;
    color: #111827 !important;
    width: 15px !important;
    height: 15px !important;
}
.om-cashea-prod-lbl {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.64rem;
    font-weight: 800;
    transition: max-width 0.22s ease;
}
.product-card:hover .om-cashea-prod-badge { opacity: 1; padding: 3px 8px 3px 3px !important; gap: 4px !important; }
.product-card:hover .om-cashea-prod-lbl { max-width: 60px; }

/* Píldora Cashea en móvil: borde amarillo en lugar de relleno */
.om-mob-cat-pill.om-mob-cat-cashea {
    background: transparent !important;
    border-color: #eab308 !important;
    color: var(--text-main) !important;
}

/* Menú lateral: contador "0%" con el mismo formato que los números */
.om-cat-count-cashea {
    background: rgba(250, 204, 21, 0.18) !important;
    color: #a16207 !important;
    font-weight: 800;
}
body.dark-theme .om-cat-count-cashea { color: #fde047 !important; }

/* ── 3. Franja superior compacta (sede + Cashea juntas) ── */
.om-store-top-row {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 14px;
    align-items: stretch;
}
.om-store-top-row .om-store-location-banner,
.om-store-top-row .om-cashea-hero-banner {
    margin: 0 !important;
}
.om-store-top-row .om-store-location-banner { min-height: 128px; }
.om-loc-banner-content { padding: 16px 20px; }

/* Cashea en formato tarjeta vertical compacta */
.om-store-top-row .om-cashea-hero-banner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 14px 16px;
    border-width: 1.5px;
    box-shadow: 0 6px 18px rgba(250, 204, 21, 0.2);
}
.om-store-top-row .om-cashea-copy-block { flex: 0 0 auto; }
.om-store-top-row .om-cashea-headline { font-size: 0.95rem; line-height: 1.25; }
.om-store-top-row .om-cashea-subline { font-size: 0.74rem; }
.om-store-top-row .om-cashea-actions-block { width: 100%; flex-wrap: nowrap; }
.om-store-top-row .om-cashea-cta-sim,
.om-store-top-row .om-cashea-cta-filter { flex: 1; padding: 8px 10px; font-size: 0.76rem; white-space: nowrap; }

/* Vitrina de marcas más baja */
.om-ad-card { padding: 11px 13px; gap: 6px; }
.om-ad-emoji { font-size: 1.45rem; }

/* ── 5. Banner in-grid: columnas alineadas a la misma altura ── */
.om-ingrid-retail-banner { align-items: stretch; }
.om-ingrid-cashea-col { flex-wrap: nowrap; align-items: center; }
.om-ingrid-cashea-copy { min-width: 0; }
.om-ingrid-cashea-copy strong { line-height: 1.3; }
.om-ingrid-ad-col { justify-content: center; }

@media (max-width: 1100px) {
    .om-store-top-row { grid-template-columns: 1fr; }
    .om-store-top-row .om-cashea-hero-banner {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }
    .om-store-top-row .om-cashea-actions-block { width: auto; }
}

@media (max-width: 768px) {
    .om-store-top-row { margin: 8px 10px 10px; gap: 8px; }

    /* Sede: más compacta, sin dirección larga */
    .om-store-top-row .om-store-location-banner { min-height: auto; }
    .om-loc-banner-content { padding: 12px 14px; gap: 10px; }
    .om-loc-address { display: none; }
    .om-loc-eta-pill { display: none; }
    .om-loc-title { font-size: 1rem; }

    /* Cashea: una sola franja delgada */
    .om-store-top-row .om-cashea-hero-banner {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        padding: 9px 12px;
        gap: 10px;
    }
    .om-store-top-row .om-cashea-zero-pill,
    .om-store-top-row .om-cashea-subline,
    .om-store-top-row .om-cashea-cta-filter { display: none; }
    .om-store-top-row .om-cashea-official-logo { padding: 5px 8px; }
    .om-store-top-row .om-cashea-wordmark { font-size: 0.9rem; }
    .om-store-top-row .om-cashea-headline { font-size: 0.8rem; margin: 0; }
    .om-store-top-row .om-cashea-copy-block { flex: 1 1 auto; }
    .om-store-top-row .om-cashea-actions-block { width: auto; flex: 0 0 auto; }
    .om-store-top-row .om-cashea-cta-sim { padding: 7px 10px; font-size: 0.72rem; }

    /* En móvil no hay hover: sello solo ícono */
    .om-cashea-prod-badge { padding: 3px !important; }

    .om-ingrid-cashea-col { flex-wrap: wrap; }
    .om-ad-card { flex: 0 0 74%; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   LOGO OFICIAL CASHEA (isotipo vectorizado del archivo oficial, embebido)
   Reemplaza la "C" tipográfica en header, sellos, banners, menú y modales.
   ═══════════════════════════════════════════════════════════════════════════ */
.om-cashea-c-icon,
.om-cashea-c-box {
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><rect width='100' height='100' rx='22' fill='%23FFE900'/><path d='M86 50 A36 36 0 1 1 50 14 L50 32 A18 18 0 1 0 68 50 Z' fill='%23000000'/></svg>") center / contain no-repeat !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    overflow: hidden;
    flex-shrink: 0;
}

.om-cashea-c-icon { border-radius: 4px !important; }
.om-cashea-c-box { border-radius: 6px !important; width: 26px !important; height: 26px !important; }

/* El logotipo en banners/modales: símbolo + palabra "cashea" en blanco sobre negro */
.om-cashea-official-logo { gap: 8px !important; }
.om-cashea-wordmark { font-weight: 900; letter-spacing: -0.04em; }


/* ═══════════════════════════════════════════════════════════════════════════
   FASE 1 A 4: ANIMACIONES HOVER 3D EN PUBLICIDAD, ACABADO FINTECH CASHEA,
   ESTADOS DE MARKETING AUTOMÁTICOS Y BANNER PANORÁMICO HORIZONTAL (16:9)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Fase 1: Modal de Publicidad con Métricas y Animación Hover 3D ── */
.om-ads-metrics-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.om-ads-metric-pill {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    border-radius: 12px;
    background: var(--om-modal-soft, #f1f5f9);
    border: 1px solid var(--border-color);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.om-ads-metric-pill:hover {
    transform: translateY(-3px);
    border-color: #3b82f6 !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.14);
}

.om-ads-metric-ico {
    font-size: 1.35rem;
    line-height: 1;
    flex-shrink: 0;
}

.om-ads-metric-pill div {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.om-ads-metric-pill strong {
    font-size: 0.78rem;
    font-weight: 900;
    color: var(--text-main);
}

.om-ads-metric-pill small {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.om-ads-plan-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.om-ads-plan-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -130%;
    width: 65%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.65s ease;
    pointer-events: none;
}

.om-ads-plan-card:hover {
    transform: translateY(-9px) scale(1.02);
    border-color: #2563eb !important;
    box-shadow: 0 20px 38px rgba(37, 99, 235, 0.2) !important;
}

.om-ads-plan-card:hover::after {
    left: 140%;
}

.om-ads-hover-advantage {
    background: rgba(37, 99, 235, 0.06);
    border: 1px dashed rgba(37, 99, 235, 0.35);
    border-radius: 11px;
    padding: 9px 11px;
    transition: all 0.26s ease;
    transform: translateY(2px);
    opacity: 0.85;
}

.om-ads-plan-card:hover .om-ads-hover-advantage {
    background: rgba(37, 99, 235, 0.13);
    border-style: solid;
    border-color: #2563eb;
    transform: translateY(0) scale(1.02);
    opacity: 1;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.12);
}

.om-ads-adv-title {
    display: block;
    font-size: 0.72rem;
    font-weight: 900;
    color: #2563eb;
    margin-bottom: 3px;
}

body.dark-theme .om-ads-adv-title {
    color: #60a5fa;
}

.om-ads-hover-advantage p {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.35;
    color: var(--text-main) !important;
}

/* Animación Hover en el Banner In-Grid del Catálogo */
.om-ingrid-cashea-col,
.om-ingrid-ad-col {
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.om-ingrid-cashea-col:hover,
.om-ingrid-ad-col:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
}

/* ── Fase 2: Modal de Cashea con Acabado Fintech y Micro-interacciones ── */
.om-cashea-head-top-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.om-cashea-head-perks {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.om-cashea-head-perks span {
    font-size: 0.7rem;
    font-weight: 800;
    background: rgba(17, 24, 39, 0.12);
    color: #111827;
    padding: 3px 9px;
    border-radius: 999px;
}

.om-cashea-lvl-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 9px 6px !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}

.om-cashea-lvl-btn strong {
    font-size: 0.8rem;
    font-weight: 900;
    color: inherit;
}

.om-cashea-lvl-btn small {
    font-size: 0.67rem;
    opacity: 0.85;
    color: inherit;
}

.om-cashea-lvl-btn:hover {
    transform: translateY(-2px);
}

.om-cashea-res-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 2px;
}

.om-cashea-financed-tag,
.om-cashea-zero-tag {
    font-size: 0.62rem;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 999px;
    background: #111827;
    color: #FFE600;
}

.om-cashea-zero-tag {
    background: rgba(16, 185, 129, 0.16);
    color: #059669;
}

body.dark-theme .om-cashea-zero-tag {
    color: #34d399;
}

@keyframes omCasheaPop {
    0% { transform: scale(1); }
    45% { transform: scale(1.035); }
    100% { transform: scale(1); }
}

.om-cashea-res-item.om-cashea-pop {
    animation: omCasheaPop 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.om-cashea-step {
    padding: 8px 10px;
    border-radius: 10px;
    border-left: 3px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.om-cashea-step:hover {
    transform: translateX(5px);
    background: var(--om-modal-soft, #f1f5f9);
    border-left-color: #eab308;
}

.om-cashea-use-btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.om-cashea-use-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(250, 204, 21, 0.42);
}

.om-cashea-use-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-20deg);
    animation: omCasheaBtnShine 3.6s infinite;
}

@keyframes omCasheaBtnShine {
    0% { left: -120%; }
    35%, 100% { left: 140%; }
}

/* ── Fase 3: Tarjetas de Estados de Marketing Automáticos ── */
.om-auto-story-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.om-auto-story-card:hover {
    transform: translateY(-6px) scale(1.02) !important;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.24) !important;
}

.om-auto-story-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.om-auto-story-pill {
    align-self: flex-start;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 999px;
    background: #FFE600;
    color: #111827;
}

.om-auto-story-cta {
    display: inline-flex;
    align-items: center;
    font-size: 0.74rem;
    font-weight: 800;
    color: #fde047;
    margin-top: 2px;
}

/* ── Fase 4: Banner Panorámico Horizontal Continuo (16:9 Widescreen) ── */
.om-panoramic-showcase {
    padding: 34px 0 18px;
    overflow: hidden;
    background: linear-gradient(180deg, transparent 0%, rgba(37, 99, 235, 0.03) 50%, transparent 100%);
}

.om-pano-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.om-pano-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.om-pano-kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    color: #2563eb;
    margin-bottom: 4px;
}

body.dark-theme .om-pano-kicker {
    color: #60a5fa;
}

.om-pano-title {
    margin: 0 0 4px;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.om-pano-subtitle {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.om-pano-btn-ads {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    border-radius: 999px;
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.om-pano-btn-ads:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
}

.om-pano-marquee-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 8px 0 14px;
    mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}

.om-pano-track {
    display: flex;
    align-items: stretch;
    gap: 18px;
    width: max-content;
    animation: omPanoMarquee 46s linear infinite;
}

.om-pano-marquee-wrap:hover .om-pano-track {
    animation-play-state: paused;
}

@keyframes omPanoMarquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

.om-pano-card {
    position: relative;
    width: 400px;
    height: 228px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease;
}

.om-pano-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.28);
}

.om-pano-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s ease;
}

.om-pano-card:hover img {
    transform: scale(1.08);
}

.om-pano-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.18) 0%, rgba(15, 23, 42, 0.55) 48%, rgba(15, 23, 42, 0.94) 100%);
}

.om-pano-tag {
    position: absolute;
    top: 12px;
    left: 14px;
    z-index: 2;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 999px;
    color: #ffffff;
    backdrop-filter: blur(6px);
}

.om-pano-tag.tag-green { background: rgba(16, 185, 129, 0.88); }
.om-pano-tag.tag-blue { background: rgba(37, 99, 235, 0.88); }
.om-pano-tag.tag-yellow { background: #FFE600; color: #111827; }
.om-pano-tag.tag-red { background: rgba(225, 29, 72, 0.88); }
.om-pano-tag.tag-purple { background: rgba(124, 58, 237, 0.88); }
.om-pano-tag.tag-gold { background: rgba(217, 119, 6, 0.92); }

.om-pano-body {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.om-pano-body h4 {
    margin: 0;
    font-size: 1.04rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.25;
}

.om-pano-body p {
    margin: 0;
    font-size: 0.76rem;
    color: rgba(241, 245, 249, 0.88);
    line-height: 1.35;
}

.om-pano-cta {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fde047;
    margin-top: 4px;
    transition: transform 0.2s ease;
}

.om-pano-card:hover .om-pano-cta {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .om-ads-metrics-strip {
        grid-template-columns: 1fr 1fr;
    }

    .om-pano-title {
        font-size: 1.22rem;
    }

    .om-pano-card {
        width: 300px;
        height: 186px;
    }

    .om-pano-body h4 {
        font-size: 0.92rem;
    }

    .om-pano-body p {
        font-size: 0.72rem;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   PLAN DE MEJORAS UX/UI (MÓVIL ABOVE-THE-FOLD, ZONA FLOTANTE, TABLET, CARRITO)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Fase 1: Móvil Above-the-Fold (Reducción del muro de banners ~60%) ── */
@media (max-width: 768px) {
    .om-store-top-row {
        margin: 6px 10px 8px !important;
        gap: 6px !important;
    }

    /* Location Bar ultra-compacta (~46px de altura) */
    .om-store-top-row .om-store-location-banner {
        min-height: 0 !important;
        border-radius: 12px !important;
        background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%) !important;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14) !important;
    }

    .om-store-top-row .om-loc-banner-bg-wrap,
    .om-store-top-row .om-loc-maps-btn,
    .om-store-top-row .om-loc-address,
    .om-store-top-row .om-loc-eta-pill {
        display: none !important;
    }

    .om-store-top-row .om-loc-banner-content {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 11px !important;
        gap: 8px !important;
    }

    .om-store-top-row .om-loc-banner-left {
        min-width: 0;
        flex: 1 1 auto;
    }

    .om-store-top-row .om-loc-top-pills {
        margin-bottom: 2px !important;
    }

    .om-store-top-row .om-loc-live-pill {
        font-size: 0.65rem !important;
        padding: 2px 7px !important;
    }

    .om-store-top-row .om-loc-title {
        font-size: 0.86rem !important;
        margin: 0 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .om-store-top-row .om-loc-banner-right {
        flex: 0 0 auto;
    }

    .om-store-top-row .om-loc-switcher-group {
        padding: 2px !important;
        gap: 3px !important;
    }

    .om-store-top-row .om-loc-switch-btn {
        padding: 5px 8px !important;
        font-size: 0.7rem !important;
        white-space: nowrap;
    }

    /* Cashea Slim Strip (~46px de altura) */
    .om-store-top-row .om-cashea-hero-banner {
        padding: 7px 10px !important;
        gap: 8px !important;
        border-radius: 12px !important;
    }

    .om-store-top-row .om-cashea-headline {
        font-size: 0.76rem !important;
        line-height: 1.2 !important;
    }

    .om-store-top-row .om-cashea-cta-sim {
        padding: 6px 9px !important;
        font-size: 0.7rem !important;
        border-radius: 8px !important;
    }

    /* Vitrina Retail Media ultra-compacta en 1 sola fila deslizable */
    .om-retail-media-strip {
        margin: 0 10px 8px !important;
    }

    .om-retail-media-head {
        margin-bottom: 5px !important;
    }

    .om-retail-media-label {
        font-size: 0.66rem !important;
    }

    .om-retail-media-advertise-link {
        font-size: 0.68rem !important;
        padding: 3px 8px !important;
    }

    .om-retail-media-grid {
        gap: 8px !important;
        padding-bottom: 2px !important;
    }

    .om-ad-card {
        flex: 0 0 72% !important;
        padding: 8px 10px !important;
        gap: 4px !important;
        border-radius: 11px !important;
    }

    .om-ad-badge {
        font-size: 0.58rem !important;
        padding: 2px 6px !important;
    }

    .om-ad-emoji {
        font-size: 1.2rem !important;
    }

    .om-ad-text strong {
        font-size: 0.78rem !important;
    }

    .om-ad-text span {
        font-size: 0.68rem !important;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .om-ad-cta {
        font-size: 0.68rem !important;
    }

    /* Fase 2: Zona inferior flotante coordinada sin solapamientos */
    :root {
        --bottom-nav-height: 64px;
    }

    .om-social-proof-toast {
        bottom: calc(var(--bottom-nav-height, 64px) + 14px + env(safe-area-inset-bottom, 0px)) !important;
        z-index: 940 !important;
    }

    body.om-cart-open .om-social-proof-toast {
        opacity: 0 !important;
        pointer-events: none !important;
        transform: translateY(16px) !important;
    }
}

/* ── Fase 3: Breakpoint de Tablets (769px – 1024px) ── */
@media (min-width: 769px) and (max-width: 960px) {
    .om-store-wrap {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .om-store-sidebar {
        display: none !important;
    }

    .om-mobile-app-bar {
        display: flex !important;
        flex-direction: column;
        gap: 8px;
        padding: 10px 4px 6px;
        margin-bottom: 8px;
    }

    .om-mob-cat-pill,
    .om-qfilter-chip {
        min-height: 44px;
        padding: 8px 14px;
        font-size: 0.84rem;
    }

    #products-grid,
    #loading-skeletons.products-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 14px !important;
    }
}

@media (min-width: 961px) and (max-width: 1024px) {
    .om-store-wrap {
        grid-template-columns: 205px 1fr !important;
        gap: 18px !important;
    }

    #products-grid,
    #loading-skeletons.products-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 14px !important;
    }
}

/* ── Fase 4: Ergonomía del Carrito para Mercados Grandes ── */
#cart-drawer.om-cart-is-empty #om-cart-cat-summary,
#cart-drawer[data-cart-step="2"] #om-cart-cat-summary {
    display: none !important;
}

.om-cart-cat-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 14px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    flex-shrink: 0;
}

body.dark-theme .om-cart-cat-summary {
    background: rgba(15, 23, 42, 0.72);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.om-cart-cat-chips {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1 1 auto;
    padding-bottom: 1px;
}

.om-cart-cat-chips::-webkit-scrollbar {
    display: none;
}

.om-cart-cat-chip {
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 600;
    color: #334155;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 3px 9px;
    white-space: nowrap;
}

.om-cart-cat-chip strong {
    color: var(--primary-blue, #2563eb);
}

body.dark-theme .om-cart-cat-chip {
    background: #1e293b;
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.12);
}

body.dark-theme .om-cart-cat-chip strong {
    color: #60a5fa;
}

.om-cart-clear-btn {
    flex: 0 0 auto;
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.22);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.15s ease;
    white-space: nowrap;
}

.om-cart-clear-btn:hover {
    background: rgba(239, 68, 68, 0.16);
    transform: translateY(-1px);
}

body.dark-theme .om-cart-clear-btn {
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

.om-step1-cashea-hint {
    margin-top: 6px;
    padding: 5px 9px;
    border-radius: 8px;
    background: rgba(250, 204, 21, 0.18);
    border: 1px solid rgba(234, 179, 8, 0.45);
    color: #854d0e;
    font-size: 0.74rem;
    font-weight: 600;
    text-align: center;
}

body.dark-theme .om-step1-cashea-hint {
    background: rgba(250, 204, 21, 0.12);
    border-color: rgba(250, 204, 21, 0.35);
    color: #fde047;
}

#cart-drawer .drawer-body {
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

#cart-drawer .cart-item-qty button {
    min-width: 30px;
    min-height: 30px;
    font-size: 0.95rem;
    font-weight: 800;
    border-radius: 8px;
}
