: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;
}

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.12;
    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: #ffffff;
    border-bottom: 2px solid var(--supermarket-red);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    height: 80px !important;
    max-height: 80px !important;
    padding: 0 20px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: visible !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: 140px;
    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);
}
.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: #fff;
    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.78rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.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;
}

.om-slide-sub {
    font-size: 0.98rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
}

.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;
}

.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.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.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;
}

.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;
}

.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: 999;
    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: -420px;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    background-color: var(--bg-body);
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.open {
    right: 0;
}

.drawer-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.close-drawer-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
}

.close-drawer-btn:hover {
    color: var(--text-main);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.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;
}

.empty-cart-icon {
    width: 64px;
    height: 64px;
    stroke-width: 1.5;
}

.drawer-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-panel);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.totals-area {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-total {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
}

.conversion-row {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: white;
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
}

/* Cart Item Card */
.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-panel);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.cart-item-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-panel);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.cart-item-qty button {
    border: none;
    background: transparent;
    padding: 4px 8px;
    cursor: pointer;
    font-weight: 700;
}

.cart-item-qty span {
    font-weight: 700;
    font-size: 0.85rem;
}

/* 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;
}

/* 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.18) translateY(-4px); }
    60%  { transform: scale(0.96); }
    80%  { transform: scale(1.06); }
    100% { transform: scale(1); }
}

.floating-cart-btn.bounce {
    animation: cartBounce 0.5s 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.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    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;
}

/* =================== RESPONSIVE MEDIA QUERIES =================== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@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);
    z-index: 200;
    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);
    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;
    --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 .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;
}

/* Imagen de fondo — cubre todo el slide */
.om-slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s ease;
    will-change: transform;
}

/* 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 NOTIFICATION (TOAST) =================== */
.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; /* Acento rojo corporativo */
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 20px;
    font-weight: 600;
    color: #1e3a8a; /* Azul oscuro corporativo para confort visual */
    text-align: center;
}
.branch-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* =================== 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 84px 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 !important;
        margin-bottom: 20px !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: 62px !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: gradiente Copa América destacado */
    .mob-nav-quiniela {
        background: linear-gradient(135deg, #1e3a5f 0%, #c0392b 100%) !important;
        color: white !important;
        border-radius: 18px !important;
        padding: 8px 12px !important;
        box-shadow: 0 4px 16px rgba(192, 57, 43, 0.32) !important;
        min-width: 70px !important;
        max-width: 82px !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 {
        color: #9ca3af !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 .products-container {
        background: #111827 !important;
    }

    body.dark-theme .om-page {
        background: #111827 !important;
    }

    body.dark-theme body {
        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;
    }

    .om-qcat-grid {
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x proximity !important;
        white-space: nowrap !important;
        gap: 10px !important;
        padding: 4px 16px 8px !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: 6px !important;
        padding: 10px 12px !important;
        min-width: 70px !important;
        max-width: 78px !important;
        border-radius: 14px !important;
        background: #f8f9fa !important;
        border: 1.5px solid var(--border-color) !important;
        scroll-snap-align: start !important;
        transition: transform 0.15s, border-color 0.15s !important;
    }

    .om-qcat-item:active {
        transform: scale(0.93) !important;
        background: var(--supermarket-red-light) !important;
        border-color: var(--supermarket-red) !important;
    }

    .om-qcat-ico {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.4rem !important;
        border-radius: 12px !important;
        flex-shrink: 0 !important;
    }

    .om-qcat-item span:not(.om-qcat-ico) {
        font-size: 0.67rem !important;
        font-weight: 700 !important;
        text-align: center !important;
        white-space: normal !important;
        line-height: 1.2 !important;
        max-width: 58px !important;
    }

    /* ── 2. GRILLA DE PRODUCTOS — 2 columnas exactas (bloque duplicado eliminado) ── */

    .product-card {
        border-radius: 12px !important;
    }

    .product-image-wrapper {
        height: 148px !important;
    }

    .product-image-wrapper img {
        height: 148px !important;
        object-fit: contain !important;
    }

    .product-info {
        padding: 8px 8px 4px !important;
    }

    .product-name {
        font-size: 0.74rem !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.64rem !important;
        gap: 3px !important;
    }

    .price-usd {
        font-size: 0.84rem !important;
        font-weight: 800 !important;
    }

    .price-ves, .price-cop {
        font-size: 0.67rem !important;
    }

    .card-action {
        padding: 6px 8px 8px !important;
    }

    .card-action .btn,
    .card-action .btn-disabled {
        font-size: 0.74rem !important;
        padding: 8px 10px !important;
        border-radius: 8px !important;
    }

    .qty-btn { width: 28px !important; height: 28px !important; font-size: 1rem !important; }
    .qty-num { font-size: 0.84rem !important; }

    /* ── Espacio inferior para que el contenido no quede detrás de la nav ── */
    .om-page { padding-bottom: 84px !important; }

    /* ── Ocultar el botón flotante: la bottom nav lleva el carrito ─────── */
    .floating-cart { display: none !important; }

    /* ── Reducir padding top/lateral de la página ─────────────────────── */
    .om-page {
        padding-top: 10px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .om-store-toolbar { margin-bottom: 10px !important; }
    .om-store-title { font-size: 1rem !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: 62px !important;
        z-index: 9999 !important;
        align-items: center !important;
        justify-content: space-around !important;
        background: rgba(255, 255, 255, 0.93) !important;
        backdrop-filter: blur(18px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(18px) 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.94) !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.06) !important;
        transform: scale(0.93) !important;
    }

    .mob-nav-item.mob-nav-active {
        color: var(--supermarket-red) !important;
    }

    .mob-nav-icon {
        font-size: 1.3rem !important;
        line-height: 1 !important;
    }

    .mob-nav-label {
        font-size: 0.59rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.01em !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        color: inherit !important;
    }

    /* Botón Quiniela: gradiente Copa América destacado */
    .mob-nav-quiniela {
        background: linear-gradient(135deg, #1e3a5f 0%, #c0392b 100%) !important;
        color: white !important;
        border-radius: 16px !important;
        padding: 7px 12px !important;
        box-shadow: 0 4px 16px rgba(192, 57, 43, 0.32) !important;
        min-width: 68px !important;
        max-width: 80px !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.93) !important;
    }

    /* Badge del carrito en la bottom nav */
    .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: -7px !important;
        background: var(--supermarket-red) !important;
        color: white !important;
        font-size: 0.57rem !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;
    }
}


/* ════════════════════════════════════════════════════════════════════════════
   🛡️ 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;
}

.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 (DESKTOP/TABLET)
   ========================================================================== */
.floating-quiniela {
    position: fixed !important;
    right: 0 !important;
    top: 45% !important;
    transform: translateY(-50%) !important;
    z-index: 995 !important;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--supermarket-red) 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-right: none !important;
    border-radius: 20px 0 0 20px !important;
    padding: 10px 14px 10px 18px !important;
    font-family: var(--font-main) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: -2px 4px 12px rgba(30, 58, 95, 0.25) !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !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-filters {
    display: flex;
    gap: 8px;
    margin: 12px 0 16px 0;
    flex-wrap: wrap;
    padding: 0 4px;
}

.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 */
.om-recipes-section {
    width: 100%;
    background: var(--bg-panel-warm);
    border-bottom: 1px solid var(--border-color);
}

.om-recipe-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.om-recipe-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-md) !important;
    border-color: var(--primary-blue) !important;
}

/* 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: 96px !important;
        max-height: 55vh !important;
        overflow-y: auto !important;
    }
}




