 :root {
        --accent: #C8853F;
        --accent-light: #E0A867;
        --gold: #D4AF37;
        --dark: #1a1512;
        --cream: #FDFBF7;
    }

    * { -webkit-tap-highlight-color: transparent; }
    html { height: 100%; overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: 5rem; }
    body {
        min-height: 100%; overflow-x: hidden; position: relative;
        background: var(--cream);
        font-feature-settings: 'kern' 1, 'liga' 1;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        font-family: 'Montserrat', sans-serif;
    }

    /* Reset Bootstrap que interfiere con Tailwind */
    .btn, .form-control, .form-select { font-family: inherit !important; }
    button:focus, input:focus, select:focus, textarea:focus { outline: none !important; }

    ::selection { background: var(--accent); color: white; }
    ::-webkit-scrollbar { width: 10px; height: 10px; }
    ::-webkit-scrollbar-track { background: #f1ece4; }
    ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--accent), #8a5a25); border-radius: 10px; }
    ::-webkit-scrollbar-thumb:hover { background: #8a5a25; }

    /* ============ PRELOADER ============ */
    #preloader {
        position: fixed; inset: 0; z-index: 9999;
        background: linear-gradient(135deg, #1a1512 0%, #2C1810 100%);
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        transition: opacity 0.6s ease, visibility 0.6s ease;
    }
    #preloader.hidden { opacity: 0; visibility: hidden; }
    .loader-cup { width: 80px; height: 80px; position: relative; margin-bottom: 30px; }
    .loader-cup::before {
        content: ''; position: absolute; inset: 0;
        border-radius: 50%; border: 3px solid rgba(200, 133, 63, 0.2);
        border-top-color: var(--accent); animation: spin 1s linear infinite;
    }
    .loader-cup::after {
        content: '\F4CA'; font-family: 'bootstrap-icons'; position: absolute; inset: 0;
        display: flex; align-items: center; justify-content: center;
        font-size: 2.5rem; color: var(--accent-light); animation: pulse 1.5s ease-in-out infinite;
    }
    .loader-text {
        color: var(--accent-light); font-family: 'Playfair Display', serif;
        font-size: 1.5rem; letter-spacing: 0.3em; margin-bottom: 20px;
    }
    .loader-bar { width: 200px; height: 3px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
    .loader-bar-fill {
        height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-light));
        width: 0%; transition: width 0.3s ease; border-radius: 3px;
    }

    /* ============ CURSOR ============ */
    @media (hover: hover) and (pointer: fine) {
        .custom-cursor {
            position: fixed; width: 8px; height: 8px; background: var(--accent);
            border-radius: 50%; pointer-events: none; z-index: 9998;
            transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
            mix-blend-mode: difference;
        }
        .custom-cursor-ring {
            position: fixed; width: 40px; height: 40px;
            border: 1.5px solid rgba(200, 133, 63, 0.5);
            border-radius: 50%; pointer-events: none; z-index: 9997;
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
        }
        .custom-cursor.hover { width: 60px; height: 60px; background: rgba(200, 133, 63, 0.3); }
        .custom-cursor-ring.hover { width: 80px; height: 80px; border-color: var(--accent); }
    }
    @media (hover: none) { .custom-cursor, .custom-cursor-ring { display: none; } }

    /* ============ SCROLL PROGRESS ============ */
    .scroll-progress {
        position: fixed; top: 0; left: 0; right: 0; height: 3px;
        background: linear-gradient(90deg, var(--accent), var(--gold), var(--accent));
        transform-origin: 0%; transform: scaleX(0); z-index: 50;
        transition: transform 0.1s linear;
        box-shadow: 0 0 10px rgba(200, 133, 63, 0.5);
    }

    /* ============ FADE IN ============ */
    .fade-in { opacity: 0; transform: translateY(30px); transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1); will-change: opacity, transform; }
    .fade-in.visible { opacity: 1; transform: translateY(0); }
    .fade-in-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
    .fade-in-stagger.visible > * { opacity: 1; transform: translateY(0); }
    .fade-in-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
    .fade-in-stagger.visible > *:nth-child(2) { transition-delay: 0.15s; }
    .fade-in-stagger.visible > *:nth-child(3) { transition-delay: 0.25s; }
    .fade-in-stagger.visible > *:nth-child(4) { transition-delay: 0.35s; }

    /* ============ HERO ============ */
    .hero-bg {
        background-image: 
            radial-gradient(ellipse at top, rgba(200, 133, 63, 0.15), transparent 60%),
            linear-gradient(180deg, rgba(20, 15, 10, 0.75) 0%, rgba(20, 15, 10, 0.85) 60%, rgba(20, 15, 10, 0.98) 100%), 
            url('https://images.unsplash.com/photo-1497935586351-b67a49e012bf?q=80&w=2071&auto=format&fit=crop');
        background-size: cover; background-position: center; background-attachment: fixed;
        min-height: 100vh; min-height: 100dvh;
    }
    @supports (height: 100svh) { .hero-bg { min-height: 100svh; } }
    @media (max-width: 768px) { .hero-bg { background-attachment: scroll; } }

    .particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
    .particles::before, .particles::after {
        content: ''; position: absolute; border-radius: 50%;
        background: radial-gradient(circle, rgba(200, 133, 63, 0.6), transparent 70%);
        filter: blur(40px); animation: float 8s ease-in-out infinite;
    }
    .particles::before { width: 300px; height: 300px; top: 10%; left: 10%; }
    .particles::after { width: 400px; height: 400px; bottom: 15%; right: 5%; animation-delay: -4s; }
    .particle-dot {
        position: absolute; width: 4px; height: 4px;
        background: var(--gold); border-radius: 50%;
        opacity: 0.6; animation: float 10s ease-in-out infinite;
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
    }

    /* ============ NAVBAR ============ */
    #navbar { transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
    #navbar.scrolled {
        background: rgba(26, 21, 18, 0.92);
        backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    }
    #navbar.hide-nav { transform: translateY(-100%); }
    .nav-link { position: relative; transition: color 0.3s ease; }
    .nav-link::after {
        content: ''; position: absolute; bottom: -6px; left: 50%;
        width: 0; height: 2px;
        background: linear-gradient(90deg, var(--accent), var(--accent-light));
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(-50%); border-radius: 2px;
    }
    .nav-link:hover::after, .nav-link.active::after { width: 100%; }
    .nav-link.active { color: var(--accent-light); }

    .logo-ring { position: relative; }
    .logo-ring::before {
        content: ''; position: absolute; inset: -6px; border-radius: 50%;
        background: conic-gradient(from 0deg, transparent, var(--accent), transparent 30%);
        animation: spin 4s linear infinite; z-index: 0;
    }
    .logo-ring > * { position: relative; z-index: 1; }

    /* ============ BOTONES ============ */
    .btn-primary {
        background: linear-gradient(135deg, var(--accent) 0%, #8a5a25 100%);
        color: white; padding: 0.875rem 2.25rem; border-radius: 999px;
        font-weight: 600; letter-spacing: 0.02em; border: none;
        box-shadow: 0 10px 30px -8px rgba(200, 133, 63, 0.5);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative; overflow: hidden;
    }
    .btn-primary::before {
        content: ''; position: absolute; inset: 0;
        background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
        transform: translateX(-100%); transition: transform 0.6s ease;
    }
    .btn-primary:hover::before { transform: translateX(100%); }
    .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -8px rgba(200, 133, 63, 0.7); color: white; }

    .btn-ghost {
        background: rgba(255, 255, 255, 0.08); color: white;
        padding: 0.875rem 2.25rem; border-radius: 999px; font-weight: 600;
        border: 1.5px solid rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(10px); transition: all 0.4s ease;
    }
    .btn-ghost:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.5); transform: translateY(-3px); color: white; }

    .ripple { position: relative; overflow: hidden; }
    .ripple-effect {
        position: absolute; border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        transform: scale(0); animation: rippleAnim 0.6s ease-out;
        pointer-events: none;
    }
    @keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

    /* ============ MENU CARDS ============ */
    .menu-card { 
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.08);
        position: relative; overflow: hidden;
    }
    .menu-card::before {
        content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
        background: linear-gradient(135deg, rgba(200,133,63,0.5), transparent 50%, rgba(200,133,63,0.3));
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor; mask-composite: exclude;
        opacity: 0; transition: opacity 0.4s ease; pointer-events: none; z-index: 1;
    }
    .menu-card:hover::before { opacity: 1; }
    .menu-card:hover { transform: translateY(-12px); box-shadow: 0 35px 60px -20px rgba(0, 0, 0, 0.3); }

    /* ============ PRODUCT IMG ============ */
    .product-img-container { 
        overflow: hidden; position: relative; cursor: pointer;
        background: linear-gradient(135deg, #F5EFE6, #FDFBF7);
    }
    .product-img-container .blur-bg { 
        position: absolute; inset: -20px; background-size: cover; background-position: center;
        filter: blur(25px) brightness(0.7) saturate(1.5);
        transform: scale(1.15); transition: transform 0.7s ease; z-index: 1;
    }
    .product-img-container .main-img { 
        position: relative; z-index: 2;
        transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
        filter: drop-shadow(0 20px 30px rgba(0,0,0,0.35));
    }
    .product-img-container:hover .blur-bg { transform: scale(1.3) rotate(2deg); }
    .product-img-container:hover .main-img { transform: scale(1.1) translateY(-8px); }
    .product-img-container::after { 
        content: '\F52A'; font-family: 'bootstrap-icons'; font-weight: normal;
        position: absolute; inset: 0;
        background: linear-gradient(to top, rgba(26,21,18,0.7), rgba(26,21,18,0.1));
        color: white; display: flex; align-items: center; justify-content: center;
        font-size: 2.5rem; opacity: 0; transition: opacity 0.35s ease; z-index: 20;
    }
    .product-img-container:hover::after { opacity: 1; }

    .badge-product {
        position: absolute; top: 12px; left: 12px; z-index: 15;
        padding: 6px 14px; border-radius: 999px;
        font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em;
        text-transform: uppercase; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        backdrop-filter: blur(8px);
    }
    .badge-new { background: linear-gradient(135deg, #10B981, #059669); color: white; }
    .badge-popular { background: linear-gradient(135deg, #F59E0B, #D97706); color: white; }
    .badge-promo { background: linear-gradient(135deg, #EF4444, #DC2626); color: white; animation: pulse 2s ease-in-out infinite; }

    .price-badge {
        background: linear-gradient(135deg, var(--accent), #8a5a25);
        color: white; padding: 0.4rem 0.9rem; border-radius: 999px;
        font-weight: 700; box-shadow: 0 8px 20px -4px rgba(200, 133, 63, 0.5);
        white-space: nowrap;
    }

    /* ============ CARRUSEL BANNERS (REESCRITO) ============ */
    .carousel-container { 
        position: relative; width: 100%; 
        height: clamp(360px, 60vh, 620px);
        overflow: hidden; 
        border-radius: 1.75rem; 
        background: linear-gradient(135deg, #0F0B08, #1a1512);
        box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
        isolation: isolate;
    }
    @media (min-width: 768px) { .carousel-container { height: 620px; } }

    .carousel-track { 
        display: flex; 
        height: 100%; 
        transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1); 
        will-change: transform;
    }
    .carousel-slide { 
        flex: 0 0 100%;
        width: 100%; 
        height: 100%; 
        position: relative; 
        display: flex; 
        align-items: center; 
        justify-content: center;
        overflow: hidden;
    }
    .carousel-slide .blur-bg { 
        position: absolute; 
        inset: -40px; 
        background-size: cover; 
        background-position: center; 
        filter: blur(35px) brightness(0.55) saturate(1.4); 
        transform: scale(1.2); 
        z-index: 1;
    }
    .carousel-slide .main-media { 
        position: relative; 
        z-index: 2; 
        max-width: 90%; 
        max-height: 88%; 
        object-fit: contain; 
        border-radius: 1.25rem; 
        box-shadow: 0 40px 80px -12px rgba(0,0,0,0.8); 
    }
    .carousel-slide video.main-media { background: #000; }

    .carousel-btn { 
        position: absolute; 
        top: 50%; 
        transform: translateY(-50%); 
        background: rgba(255, 255, 255, 0.12); 
        color: white; 
        width: 52px; 
        height: 52px; 
        border-radius: 50%; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        cursor: pointer; 
        z-index: 10; 
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); 
        backdrop-filter: blur(12px); 
        -webkit-backdrop-filter: blur(12px);
        border: 1.5px solid rgba(255, 255, 255, 0.2); 
        font-size: 1.1rem;
    }
    .carousel-btn:hover { 
        background: var(--accent); 
        transform: translateY(-50%) scale(1.1); 
        border-color: transparent; 
        box-shadow: 0 15px 35px -8px rgba(200, 133, 63, 0.6);
    }
    .carousel-btn.prev { left: 20px; } 
    .carousel-btn.next { right: 20px; }
    @media (min-width: 768px) { 
        .carousel-btn { width: 60px; height: 60px; font-size: 1.2rem; } 
        .carousel-btn.prev { left: 32px; } 
        .carousel-btn.next { right: 32px; } 
    }

    .carousel-dots { 
        position: absolute; 
        bottom: 28px; 
        left: 50%; 
        transform: translateX(-50%); 
        display: flex; 
        gap: 10px; 
        z-index: 10; 
        background: rgba(26, 21, 18, 0.55); 
        padding: 12px 18px; 
        border-radius: 999px; 
        backdrop-filter: blur(15px); 
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(255,255,255,0.15);
    }
    .carousel-dot { 
        width: 9px; 
        height: 9px; 
        border-radius: 50%; 
        background: rgba(255, 255, 255, 0.4); 
        cursor: pointer; 
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
        border: none; 
        padding: 0;
    }
    .carousel-dot:hover { background: rgba(255, 255, 255, 0.75); }
    .carousel-dot.active { 
        background: linear-gradient(90deg, var(--accent), var(--accent-light)); 
        transform: scale(1.2); 
        width: 32px; 
        border-radius: 6px; 
        box-shadow: 0 0 15px rgba(200, 133, 63, 0.6);
    }

    /* ============ CARRITO ============ */
    .cart-btn {
        position: fixed; bottom: 2rem; right: 2rem; z-index: 45;
        width: 64px; height: 64px; border-radius: 50%;
        background: linear-gradient(135deg, var(--accent), #8a5a25);
        color: white; display: flex; align-items: center; justify-content: center;
        font-size: 1.5rem; cursor: pointer; border: none;
        box-shadow: 0 15px 35px -8px rgba(200, 133, 63, 0.6);
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .cart-btn:hover { transform: scale(1.1) translateY(-3px); }
    .cart-btn.bump { animation: wiggle 0.5s ease-in-out; }
    .cart-count {
        position: absolute; top: -5px; right: -5px;
        background: #DC2626; color: white; min-width: 24px; height: 24px;
        border-radius: 50%; display: flex; align-items: center; justify-content: center;
        font-size: 0.75rem; font-weight: 800;
        border: 2px solid white; box-shadow: 0 2px 8px rgba(0,0,0,0.3);
        transform: scale(0); transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
    .cart-count.visible { transform: scale(1); }

    .cart-panel {
        position: fixed; top: 0; right: 0; bottom: 0; width: 100%; max-width: 420px;
        background: white; z-index: 60;
        box-shadow: -20px 0 60px rgba(0,0,0,0.3);
        transform: translateX(100%); transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex; flex-direction: column;
    }
    .cart-panel.open { transform: translateX(0); }
    .cart-overlay {
        position: fixed; inset: 0; background: rgba(0,0,0,0.5);
        backdrop-filter: blur(4px); z-index: 55;
        opacity: 0; visibility: hidden; transition: all 0.4s ease;
    }
    .cart-overlay.open { opacity: 1; visibility: visible; }

    .cart-item {
        display: flex; gap: 12px; padding: 12px;
        border-radius: 16px; background: #FDFBF7;
        margin-bottom: 10px; transition: all 0.3s ease;
        animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* ============ SEARCH ============ */
    .search-wrapper { position: relative; max-width: 560px; margin: 0 auto 2rem; }
    .search-input {
        width: 100%; padding: 1.1rem 1.25rem 1.1rem 3.5rem;
        border-radius: 999px; border: 1.5px solid #E5E7EB;
        background: white; font-size: 1rem;
        transition: all 0.35s ease;
        box-shadow: 0 4px 20px -4px rgba(0,0,0,0.05);
    }
    .search-input:focus {
        outline: none; border-color: var(--accent);
        box-shadow: 0 0 0 5px rgba(200, 133, 63, 0.12), 0 10px 30px -8px rgba(0,0,0,0.1);
    }
    .search-icon { position: absolute; left: 1.35rem; top: 50%; transform: translateY(-50%); color: #9CA3AF; pointer-events: none; }
    .search-kbd {
        position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
        background: #F3F4F6; padding: 4px 8px; border-radius: 6px;
        font-size: 0.7rem; font-weight: 600; color: #6B7280;
        border: 1px solid #E5E7EB;
    }
    mark { background: linear-gradient(180deg, transparent 60%, rgba(200, 133, 63, 0.4) 60%); padding: 0 2px; }


    .category-tabs {
        display: flex; gap: 10px; overflow-x: auto; padding: 6px 0;
        scrollbar-width: none; -ms-overflow-style: none;
        scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
    }
    .category-tabs::-webkit-scrollbar { display: none; }
    
    .category-tab {
        flex-shrink: 0; padding: 0.75rem 1.5rem; border-radius: 999px;
        background: white; color: #1a1512; font-weight: 600;
        font-size: 0.875rem; border: 1.5px solid #E5E7EB;
        cursor: pointer; transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        white-space: nowrap; display: flex; align-items: center; gap: 8px;
    }
    .category-tab:hover { border-color: var(--accent); transform: translateY(-2px); }
    .category-tab.active {
        background: linear-gradient(135deg, var(--accent), #8a5a25);
        color: white; border-color: transparent;
        box-shadow: 0 12px 25px -6px rgba(200, 133, 63, 0.5);
    }
    .category-tab.active .count-badge { background: rgba(255,255,255,0.25); color: white; }
    .count-badge {
        background: rgba(200, 133, 63, 0.15); color: var(--accent);
        padding: 2px 8px; border-radius: 999px; font-size: 0.7rem; font-weight: 700;
    }

    .products-scroll-container {
        display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
        gap: 16px; padding-bottom: 8px;
        margin-left: -1rem; margin-right: -1rem;
        padding-left: 1rem; padding-right: 1rem;
        scrollbar-width: none; -ms-overflow-style: none;
        scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
    }
    .products-scroll-container::-webkit-scrollbar { display: none; }
    .product-slide { flex-shrink: 0; width: 82%; max-width: 340px; scroll-snap-align: center; }

    @media (min-width: 1024px) {
        .products-scroll-container.grid-view {
            display: grid; grid-template-columns: repeat(4, 1fr);
            gap: 28px; overflow: visible; scroll-snap-type: none;
            margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; padding-bottom: 0;
        }
        .products-scroll-container.grid-view .product-slide { width: auto; max-width: none; }
    }

    .products-scroll-container.list-view { flex-direction: column; gap: 12px; }
    .products-scroll-container.list-view .product-slide { width: 100%; max-width: none; }
    .products-scroll-container.list-view .product-slide .menu-card { display: flex; flex-direction: row; }
    .products-scroll-container.list-view .product-slide .product-img-container { width: 140px; height: 140px; flex-shrink: 0; }

    /* ============ FABs ============ */
    .fab {
        position: fixed; 
        bottom: 6rem;         /* ⬆️ Encima del botón del carrito */
        right: 2rem; 
        z-index: 44;
        display: flex; 
        flex-direction: column; 
        gap: 0.75rem; 
        align-items: flex-end;
        pointer-events: none; /* Que no bloquee clics al carrito */
    }
    .fab > * { pointer-events: auto; }
    .fab-btn {
        width: 56px; height: 56px; border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        box-shadow: 0 12px 30px -6px rgba(0,0,0,0.3);
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer; color: white; font-size: 1.25rem; border: none;
    }
    .fab-btn:hover { transform: scale(1.1) translateY(-3px); }
    .fab-btn.ig { background: linear-gradient(135deg, #833AB4, #FD1D1D, #FCB045); }
    .fab-btn.top { 
        background: linear-gradient(135deg, var(--accent), #8a5a25); 
        opacity: 0; visibility: hidden; transform: translateY(20px);
    }
    .fab-btn.top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

    /* ============ STATS ============ */
    .stat-card {
        background: linear-gradient(135deg, rgba(200, 133, 63, 0.08), rgba(200, 133, 63, 0.02));
        border: 1px solid rgba(200, 133, 63, 0.15);
        border-radius: 24px; padding: 32px 24px;
        text-align: center; transition: all 0.4s ease;
    }
    .stat-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -12px rgba(200, 133, 63, 0.3); }
    .stat-number { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 700; color: var(--accent); line-height: 1; }

    /* ============ INFO PANEL ============ */
    .info-panel {
        background: linear-gradient(135deg, #1a1512 0%, #2C1810 100%);
        border-radius: 32px; padding: 48px; color: white;
        position: relative; overflow: hidden;
    }
    .info-panel::before {
        content: ''; position: absolute; top: -50%; right: -20%;
        width: 500px; height: 500px; border-radius: 50%;
        background: radial-gradient(circle, rgba(200, 133, 63, 0.2), transparent 70%);
    }

    .status-badge {
        display: inline-flex; align-items: center; gap: 8px;
        padding: 8px 16px; border-radius: 999px;
        font-size: 0.8rem; font-weight: 700;
        text-transform: uppercase; letter-spacing: 0.05em;
    }
    /* Estado ABIERTO - Verde brillante con glow */
.status-open { 
background: rgba(16, 185, 129, 0.2); 
color: #10B981; 
border: 1.5px solid rgba(16, 185, 129, 0.4);
box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}
.status-open .status-dot {
box-shadow: 0 0 10px #10B981, 0 0 20px #10B981;
}

/* Estado CERRADO - Rojo con glow */
.status-closed { 
background: rgba(239, 68, 68, 0.2); 
color: #EF4444; 
border: 1.5px solid rgba(239, 68, 68, 0.4);
box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}
.status-closed .status-dot {
box-shadow: 0 0 10px #EF4444, 0 0 20px #EF4444;
}

/* Estado CERRADO TEMPORALMENTE - Rojo más intenso */
.status-closed-temp { 
background: linear-gradient(135deg, rgba(220, 38, 38, 0.3), rgba(153, 27, 27, 0.3));
color: #FCA5A5; 
border: 1.5px solid rgba(220, 38, 38, 0.6);
box-shadow: 0 0 25px rgba(220, 38, 38, 0.4);
animation: pulse-warn 2s ease-in-out infinite;
}
.status-closed-temp .status-dot {
background: #FCA5A5;
box-shadow: 0 0 12px #DC2626, 0 0 24px #DC2626;
}

@keyframes pulse-warn {
0%, 100% { box-shadow: 0 0 25px rgba(220, 38, 38, 0.4); }
50% { box-shadow: 0 0 40px rgba(220, 38, 38, 0.7); }
}
    .status-dot {
        width: 8px; height: 8px; border-radius: 50%;
        background: currentColor; animation: pulse 2s ease-in-out infinite;
    }

    .ornament { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--accent); }
    .ornament::before, .ornament::after {
        content: ''; width: 60px; height: 1px;
        background: linear-gradient(90deg, transparent, var(--accent), transparent);
    }

    .skeleton {
        background: linear-gradient(90deg, #f0ebe2 25%, #e6dfd2 50%, #f0ebe2 75%);
        background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 1rem;
    }

    .admin-only { display: none; }
    body.is-admin .admin-only { display: inline-flex; }
    body.is-admin .admin-only-block { display: block !important; }

    /* ============ TOAST ============ */
    .toast {
        position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(100px);
        background: rgba(26, 21, 18, 0.95); color: white;
        padding: 14px 24px; border-radius: 999px;
        font-weight: 600; font-size: 0.9rem; z-index: 9998;
        box-shadow: 0 15px 35px rgba(0,0,0,0.3);
        backdrop-filter: blur(10px);
        display: flex; align-items: center; gap: 10px;
        opacity: 0; transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        pointer-events: none;
    }
    .toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

    /* ============ INPUTS PREMIUM (BOOTSTRAP MEJORADO) ============ */
    .form-group-premium {
        position: relative;
        margin-bottom: 1.25rem;
    }
    .form-group-premium label {
        display: flex; align-items: center; gap: 6px;
        font-size: 0.8rem; font-weight: 700;
        color: #374151; margin-bottom: 0.5rem;
        text-transform: uppercase; letter-spacing: 0.05em;
    }
    .form-group-premium label i {
        color: var(--accent); font-size: 0.95rem;
    }
    .form-control-premium {
        width: 100%;
        padding: 0.85rem 1rem 0.85rem 2.75rem;
        border-radius: 14px;
        border: 2px solid #E5E7EB;
        background: #FAFAFA;
        font-size: 0.95rem;
        font-weight: 500;
        color: #1a1512;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-family: 'Montserrat', sans-serif;
    }
    .form-control-premium::placeholder {
        color: #9CA3AF; font-weight: 400;
    }
    .form-control-premium:focus {
        outline: none;
        border-color: var(--accent);
        background: white;
        box-shadow: 0 0 0 4px rgba(200, 133, 63, 0.12);
        transform: translateY(-1px);
    }
    .form-control-premium:hover:not(:focus) {
        border-color: #D1D5DB;
    }
    .input-icon {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: #9CA3AF;
        font-size: 1rem;
        pointer-events: none;
        transition: color 0.3s ease;
    }
    .form-control-premium:focus ~ .input-icon,
    .form-group-premium:focus-within .input-icon {
        color: var(--accent);
    }
    /* Ajuste cuando NO hay label arriba */
    .form-group-premium .input-icon.no-label {
        top: 50%;
    }
    .form-group-premium.has-label .input-icon {
        top: calc(50% + 12px);
    }

    textarea.form-control-premium {
        min-height: 90px; resize: vertical;
    }
    select.form-control-premium {
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23C8853F' d='M6 9L2 4h8z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        padding-right: 2.75rem;
        cursor: pointer;
    }

    /* ============ ESTILOS SWEETALERT PREMIUM ============ */
    .swal2-popup {
        font-family: 'Montserrat', sans-serif !important;
        border-radius: 24px !important;
        padding: 2rem !important;
        box-shadow: 0 30px 80px -20px rgba(0,0,0,0.4) !important;
    }
    .swal2-title {
        font-family: 'Playfair Display', serif !important;
        color: var(--dark) !important;
        font-weight: 700 !important;
        font-size: 1.65rem !important;
        padding-bottom: 1rem !important;
    }
    .swal2-html-container {
        font-family: 'Montserrat', sans-serif !important;
        color: #4B5563 !important;
    }
    .swal2-confirm {
        background: linear-gradient(135deg, var(--accent), #8a5a25) !important;
        border-radius: 9999px !important;
        padding: 0.75rem 2rem !important;
        font-weight: 600 !important;
        font-size: 0.9rem !important;
        box-shadow: 0 10px 25px -5px rgba(200, 133, 63, 0.4) !important;
        transition: all 0.3s ease !important;
    }
    .swal2-confirm:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 15px 35px -5px rgba(200, 133, 63, 0.6) !important;
    }
    .swal2-cancel {
        background-color: #1a1512 !important;
        border-radius: 9999px !important;
        padding: 0.75rem 2rem !important;
        font-weight: 600 !important;
        font-size: 0.9rem !important;
        transition: all 0.3s ease !important;
    }
    .swal2-cancel:hover {
        background-color: #000 !important;
        transform: translateY(-2px) !important;
    }

    /* Inputs nativos de SweetAlert con iconos */
    .swal2-input, .swal2-select, .swal2-textarea {
        border-radius: 14px !important;
        border: 2px solid #E5E7EB !important;
        padding: 0.85rem 1rem 0.85rem 2.75rem !important;
        font-size: 0.95rem !important;
        font-family: 'Montserrat', sans-serif !important;
        background: #FAFAFA !important;
        transition: all 0.3s ease !important;
        box-shadow: none !important;
        margin: 0.5rem 0 !important;
    }
    .swal2-input:focus, .swal2-select:focus, .swal2-textarea:focus {
        border-color: var(--accent) !important;
        background: white !important;
        box-shadow: 0 0 0 4px rgba(200, 133, 63, 0.12) !important;
        outline: none !important;
    }

    /* ============ GALERÍA IMÁGENES ============ */
    .img-gallery { 
        display: grid; 
        grid-template-columns: repeat(3, 1fr); 
        gap: 10px; 
        max-height: 380px; 
        overflow-y: auto; 
        padding: 5px; 
    }
    .img-gallery-item { 
        position: relative; 
        aspect-ratio: 1; 
        border-radius: 12px; 
        overflow: hidden; 
        cursor: pointer; 
        border: 3px solid transparent; 
        transition: all 0.25s ease; 
        background: #f3f4f6; 
    }
    .img-gallery-item:hover { border-color: var(--accent); transform: scale(1.03); }
    .img-gallery-item.selected { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(200, 133, 63, 0.3); }
    .img-gallery-item img, .img-gallery-item video { width: 100%; height: 100%; object-fit: cover; }
    .img-gallery-item .delete-btn { 
        position: absolute; top: 4px; right: 4px; 
        background: rgba(220, 38, 38, 0.95); color: white; border: none; 
        width: 26px; height: 26px; border-radius: 50%; cursor: pointer; 
        font-size: 0.7rem; display: flex; align-items: center; justify-content: center; 
        opacity: 0; transition: opacity 0.2s; 
    }
    .img-gallery-item:hover .delete-btn { opacity: 1; }
    .img-gallery-item .filename { 
        position: absolute; bottom: 0; left: 0; right: 0; 
        background: rgba(0,0,0,0.75); color: white; font-size: 0.65rem; 
        padding: 4px 6px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; 
    }

    /* ============ PREVIEW MODAL ============ */
    #previewModal { padding: 0 !important; }
    #previewModal .preview-box {
        width: 100%; height: 100%; max-height: 100vh; border-radius: 0;
        display: flex; flex-direction: column; overflow: hidden;
    }
    #previewModal .preview-media-side {
        width: 100%; height: 45vh; min-height: 45vh;
        background: linear-gradient(135deg, #F5EFE6, #FDFBF7);
        display: flex; align-items: center; justify-content: center;
        padding: 30px; position: relative; flex-shrink: 0;
    }
    #previewModal .preview-media-side img {
        max-width: 100%; max-height: 100%; object-fit: contain;
        border-radius: 16px; box-shadow: 0 25px 60px rgba(0,0,0,0.25);
    }
    #previewModal .preview-info-side {
        flex: 1; overflow-y: auto; padding: 28px; background: #fff;
    }
    @media (min-width: 768px) {
        #previewModal { padding: 1rem !important; }
        #previewModal .preview-box {
            flex-direction: row; max-width: 1100px; height: auto;
            max-height: 90vh; border-radius: 1.5rem; margin: auto;
        }
        #previewModal .preview-media-side {
            width: 55%; height: auto; min-height: auto; flex-shrink: 1;
        }
        #previewModal .preview-info-side { width: 45%; padding: 56px; }
    }

    /* ============ FILTER PANEL ============ */
    .filter-panel {
        background: white; border-radius: 20px; padding: 20px;
        box-shadow: 0 10px 40px -12px rgba(0,0,0,0.1);
        border: 1px solid #F3F4F6;
        margin-bottom: 2rem;
    }
    .filter-select {
        padding: 10px 16px; border-radius: 12px; border: 1.5px solid #E5E7EB;
        background: white; font-weight: 600; font-size: 0.85rem;
        color: #1a1512; cursor: pointer; transition: all 0.3s ease;
        font-family: 'Montserrat', sans-serif;
    }
    .filter-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(200, 133, 63, 0.1); }

    /* ============ EDIT MODAL PERSONALIZADO ============ */
    .edit-modal-box {
        background: white;
        border-radius: 24px;
        max-width: 520px;
        width: 100%;
        max-height: 90vh;
        overflow-y: auto;
        padding: 2rem;
        box-shadow: 0 30px 80px -20px rgba(0,0,0,0.4);
    }
    .edit-modal-header {
        display: flex; align-items: center; gap: 12px; margin-bottom: 1.75rem;
        padding-bottom: 1.25rem; border-bottom: 1px solid #F3F4F6;
    }
    .edit-modal-header-icon {
        width: 48px; height: 48px; border-radius: 14px;
        background: linear-gradient(135deg, rgba(200,133,63,0.15), rgba(200,133,63,0.05));
        display: flex; align-items: center; justify-content: center;
        color: var(--accent); font-size: 1.4rem;
    }
    .edit-modal-header h3 {
        font-family: 'Playfair Display', serif; font-weight: 700;
        font-size: 1.5rem; color: var(--dark); margin: 0;
    }
    .edit-modal-header p {
        font-size: 0.8rem; color: #6B7280; margin: 0;
    }
    /* ============ NOTAS POR PRODUCTO EN CARRITO ============ */
    .cart-item-notes {
        margin-top: 8px;
        display: flex;
        align-items: center;
        gap: 6px;
        background: #FFF9F0;
        border: 1px dashed rgba(200, 133, 63, 0.4);
        border-radius: 10px;
        padding: 6px 8px;
        transition: all 0.3s ease;
    }
    .cart-item-notes:focus-within {
        border-color: var(--accent);
        border-style: solid;
        background: white;
        box-shadow: 0 0 0 3px rgba(200, 133, 63, 0.1);
    }
    .cart-item-notes i {
        color: var(--accent);
        font-size: 0.85rem;
        flex-shrink: 0;
    }
    .cart-item-notes input {
        flex-grow: 1;
        border: none;
        background: transparent;
        font-size: 0.75rem;
        color: #1a1512;
        padding: 2px 0;
        font-family: 'Montserrat', sans-serif;
        min-width: 0;
    }
    .cart-item-notes input::placeholder {
        color: #9CA3AF;
        font-style: italic;
    }
    .cart-item-notes input:focus {
        outline: none;
    }

    /* Sugerencias rápidas */
    .quick-notes {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        margin-top: 4px;
    }
    .quick-note-tag {
        background: #FDFBF7;
        border: 1px solid #E5E7EB;
        color: #6B7280;
        padding: 2px 8px;
        border-radius: 999px;
        font-size: 0.65rem;
        cursor: pointer;
        transition: all 0.2s ease;
        font-weight: 500;
    }
    .quick-note-tag:hover {
        background: rgba(200, 133, 63, 0.1);
        border-color: var(--accent);
        color: var(--accent);
    }

    /* ============ CHECKOUT MODAL ============ */
    .checkout-modal-box {
        background: white;
        border-radius: 24px;
        max-width: 560px;
        width: 100%;
        max-height: 92vh;
        display: flex;
        flex-direction: column;
        box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5);
        overflow: hidden;
        animation: checkoutIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
    @keyframes checkoutIn {
        from { opacity: 0; transform: scale(0.9) translateY(20px); }
        to { opacity: 1; transform: scale(1) translateY(0); }
    }
    .checkout-header {
        display: flex; align-items: center; gap: 12px;
        padding: 1.5rem;
        border-bottom: 1px solid #F3F4F6;
        background: linear-gradient(135deg, #FDFBF7, #FFF);
    }
    .checkout-header-icon {
        width: 48px; height: 48px; border-radius: 14px;
        background: linear-gradient(135deg, rgba(200,133,63,0.15), rgba(200,133,63,0.05));
        display: flex; align-items: center; justify-content: center;
        color: var(--accent); font-size: 1.4rem;
        flex-shrink: 0;
    }
    .checkout-header h3 {
        font-family: 'Playfair Display', serif;
        font-weight: 700; font-size: 1.35rem;
        color: var(--dark); margin: 0;
    }
    .checkout-header p {
        font-size: 0.75rem; color: #6B7280;
        margin: 2px 0 0 0;
    }
    .checkout-body {
        flex: 1;
        overflow-y: auto;
        padding: 1.5rem;
    }
    .checkout-section {
        margin-bottom: 1.25rem;
    }
    .checkout-label {
        display: flex; align-items: center; gap: 6px;
        font-size: 0.8rem; font-weight: 700;
        color: #374151; margin-bottom: 0.6rem;
        text-transform: uppercase; letter-spacing: 0.05em;
    }
    .checkout-label i {
        color: var(--accent); font-size: 0.95rem;
    }

    /* Delivery toggle */
    .delivery-toggle {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .delivery-option {
        padding: 12px;
        border-radius: 14px;
        border: 2px solid #E5E7EB;
        background: white;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        font-weight: 600;
        font-size: 0.8rem;
        color: #6B7280;
        font-family: 'Montserrat', sans-serif;
    }
    .delivery-option i {
        font-size: 1.4rem;
    }
    .delivery-option:hover {
        border-color: rgba(200, 133, 63, 0.5);
        transform: translateY(-2px);
    }
    .delivery-option.active {
        border-color: var(--accent);
        background: linear-gradient(135deg, rgba(200,133,63,0.08), rgba(200,133,63,0.02));
        color: var(--accent);
        box-shadow: 0 4px 12px rgba(200, 133, 63, 0.15);
    }

    /* Summary */
    .checkout-summary {
        background: #FDFBF7;
        border-radius: 16px;
        padding: 1rem;
        margin-top: 1rem;
        border: 1px solid #F3F4F6;
    }
    .checkout-summary-header {
        display: flex; align-items: center; gap: 8px;
        font-weight: 700; font-size: 0.85rem;
        color: #374151;
        padding-bottom: 0.75rem;
        border-bottom: 1px dashed #E5E7EB;
        margin-bottom: 0.75rem;
    }
    .checkout-summary-header i {
        color: var(--accent);
    }
    .checkout-summary-items {
        max-height: 180px;
        overflow-y: auto;
        margin-bottom: 0.75rem;
    }
    .checkout-summary-item {
        display: flex;
        justify-content: space-between;
        padding: 6px 0;
        font-size: 0.8rem;
        color: #4B5563;
        border-bottom: 1px dashed #F3F4F6;
    }
    .checkout-summary-item:last-child {
        border-bottom: none;
    }
    .checkout-summary-item .item-name {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    .checkout-summary-item .item-notes {
        font-size: 0.7rem;
        color: var(--accent);
        font-style: italic;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    .checkout-summary-total {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 0.75rem;
        border-top: 2px solid #E5E7EB;
        font-weight: 700;
        font-size: 1.1rem;
        color: var(--dark);
    }
    .checkout-summary-total span:last-child {
        color: var(--accent);
        font-family: 'Playfair Display', serif;
        font-size: 1.5rem;
    }

    /* Footer */
    .checkout-footer {
        display: flex;
        gap: 10px;
        padding: 1.25rem 1.5rem;
        border-top: 1px solid #F3F4F6;
        background: #FAFAFA;
    }
    .btn-cancel-checkout {
        padding: 0.85rem 1.5rem;
        border-radius: 999px;
        border: none;
        background: white;
        color: #6B7280;
        font-weight: 600;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex; align-items: center; gap: 6px;
        font-family: 'Montserrat', sans-serif;
    }
    .btn-cancel-checkout:hover {
        background: #F3F4F6;
        color: #374151;
    }
    .btn-confirm-checkout {
        flex: 1;
        padding: 0.85rem 1.5rem;
        border-radius: 999px;
        border: none;
        background: linear-gradient(135deg, #10B981, #059669);
        color: white;
        font-weight: 700;
        font-size: 0.95rem;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex; align-items: center; justify-content: center; gap: 8px;
        box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
        font-family: 'Montserrat', sans-serif;
    }
    .btn-confirm-checkout:hover {
        transform: translateY(-2px);
        box-shadow: 0 15px 35px -5px rgba(16, 185, 129, 0.6);
    }
    .btn-confirm-checkout:active {
        transform: translateY(0);
    }
    /* ============ DÍAS DE LA SEMANA (CHECKBOXES) ============ */
.days-checkbox-group {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 6px;
}

.day-checkbox {
position: relative;
cursor: pointer;
display: block;
margin: 0 !important;
text-transform: none !important;
letter-spacing: 0 !important;
font-size: 0.75rem !important;
font-weight: 700 !important;
}

.day-checkbox input {
position: absolute;
opacity: 0;
pointer-events: none;
}

.day-checkbox span {
display: flex;
align-items: center;
justify-content: center;
padding: 10px 4px;
border-radius: 10px;
background: #F3F4F6;
color: #6B7280;
border: 2px solid #E5E7EB;
transition: all 0.25s ease;
font-family: 'Montserrat', sans-serif;
user-select: none;
}

.day-checkbox:hover span {
border-color: var(--accent);
background: #FFF9F0;
}

.day-checkbox input:checked + span {
background: linear-gradient(135deg, var(--accent), #8a5a25);
color: white;
border-color: transparent;
box-shadow: 0 4px 12px rgba(200, 133, 63, 0.4);
transform: scale(1.05);
}

@media (max-width: 480px) {
.day-checkbox span {
    padding: 8px 2px;
    font-size: 0.65rem;
}
}