/* ============================================================
   Tula Burger — Dark Kitchen | SGI Premium
   Paleta: Negro industrial + Dorado ámbar
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;900&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-dark:      #fcfcfc;
    --bg-card:      #ffffff;
    --bg-surface:   #f5f5f5;
    --gold:         #ffbc0d; /* Amarillo McDonald's */
    --gold-dim:     #ffbc0d;
    --gold-text:    #ffbc0d;
    --gold-glow:    rgba(255, 188, 13, 0.15);
    --red-accent:   #da291c;
    --text-white:   #111111;
    --text-muted:   #555555;
    --text-dim:     #888888;
    --border:       rgba(0,0,0,0.08);
    --transition:   all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    
    /* HarmonyOS 6 Radius & Shadows */
    --radius-sm:    12px;
    --radius-md:    24px;
    --radius-lg:    32px;
    --radius-pill:  100px;
    --shadow-soft:  0 8px 32px rgba(0, 0, 0, 0.05);
    --shadow-elevated: 0 16px 48px rgba(0, 0, 0, 0.12);
}

*, *::before, *::after { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent;
}
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

html.no-scroll {
    overflow: hidden;
}

h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; font-weight: 700; }

/* ── HERO ──────────────────────────────────────────── */
.hero {
    position: relative;
    width: 100%;
    min-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #000;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('/images/Demos/hamburguesas/burger_hero.webp');
    background-size: cover;
    background-position: center 30%;
    opacity: 0.55;
    transform: scale(1.05);
    animation: subtle-zoom 20s ease-in-out infinite alternate;
}

@keyframes subtle-zoom {
    from { transform: scale(1.05); }
    to   { transform: scale(1.12); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(252,252,252,0.9) 85%, rgba(252,252,252,1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 24px;
    max-width: 800px;
}

.hero-badge {
    background: var(--text-white);
    border: 1px solid var(--text-white);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
    margin-top: 36px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.6rem, 7vw, 4.8rem);
    font-weight: 900;
    line-height: 1.05;
    color: #fff;
    text-shadow: 0 4px 24px rgba(0,0,0,0.6);
    margin-bottom: 20px;
}

.hero h1 span { color: var(--gold); }

.hero-sub {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: rgba(255,255,255,0.9);
    max-width: 540px;
    margin: 0 auto 36px;
    font-weight: 300;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--red-accent);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 36px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(218, 41, 28, 0.25);
}

.btn-gold:hover {
    background: #b52015;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(218, 41, 28, 0.35);
    color: #ffffff;
}

.btn-gold:active {
    transform: scale(0.96);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 1px;
    animation: bounce-slow 2s ease-in-out infinite;
}

.hero-scroll-indicator i { font-size: 1.3rem; }

@keyframes bounce-slow {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

.menu-sticky-container {
    /* Contenedor que limita el sticky nav al área del menú */
}

.category-nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(252, 252, 252, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.category-nav {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 16px 4px;
    justify-content: center;
}

    .category-nav::-webkit-scrollbar {
        display: none;
    }

.cat-link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    background: transparent;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

    .cat-link:hover {
        color: var(--red-accent);
        background: rgba(0,0,0,0.03);
    }

    .cat-link.active {
        color: #ffffff;
        background: var(--red-accent);
        box-shadow: 0 4px 14px rgba(218, 41, 28, 0.3);
    }
    
    .cat-link:active {
        transform: scale(0.96);
    }

/* Oculto cuando sales del catálogo */
.category-nav-wrapper.nav-hidden {
    display: none;
}

/* ── CÓMO FUNCIONA ─────────────────────────────────── */
.how-section {
    position: relative;
    z-index: 5;
    margin-top: -2px;
    padding: 82px 24px 80px;
    background: var(--bg-dark);
}

.section-label {
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    font-weight: 900;
    text-align: center;
    color: var(--text-white);
    margin-bottom: 56px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gold);
    transform: scaleX(0);
    transition: var(--transition);
}

.step-card:hover::before { transform: scaleX(1); }
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevated); }

.step-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gold-glow);
    border: 2px solid var(--gold);
    color: var(--gold-text);
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step-card h3 { font-size: 1.1rem; color: var(--text-white); margin-bottom: 10px; }
.step-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ── CATÁLOGO (MENU) ───────────────────────────────── */
.menu-section {
    padding: 60px 24px 80px;
    max-width: 1100px;
    margin: 0 auto;
}

.menu-category { margin-bottom: 64px; scroll-margin-top: 70px; }

.category-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 22px;
}

.cat-emoji { color: var(--gold-text); vertical-align: middle; }

/* Indicador de Personalización: Compacto y minimalista */
.customize-indicator {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--gold-text);
    background: rgba(255, 199, 44, 0.08);
    border: 1px solid rgba(255, 199, 44, 0.3);
    border-radius: 50%;
    transition: var(--transition);
    animation: indicator-glow 3s infinite ease-in-out;
    flex-shrink: 0;
}

.customize-indicator i {
    font-size: 0.82rem;
    margin: 0;
}

@keyframes indicator-glow {
    0%, 100% { 
        opacity: 0.7; 
        border-color: rgba(255, 199, 44, 0.2);
        background: rgba(255, 199, 44, 0.05);
    }
    50% { 
        opacity: 1; 
        border-color: rgba(255, 199, 44, 0.5);
        background: rgba(255, 199, 44, 0.1);
        box-shadow: 0 0 10px rgba(255, 199, 44, 0.1);
    }
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}

.menu-card {
    background: var(--bg-card);
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.menu-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-elevated); }
.menu-card:active { transform: scale(0.98); box-shadow: var(--shadow-soft); }

.menu-img-wrap {
    width: 95px;
    height: 95px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-surface);
}

.menu-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.menu-card:hover .menu-img { transform: scale(1.08); }

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

.menu-info h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.price { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1rem; color: var(--gold-text); }

.extras-badge {
    font-size: 0.68rem;
    color: var(--text-muted);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: 100px;
}

.btn-add {
    background: var(--gold);
    color: #111111;
    border: none;
    border-radius: var(--radius-pill);
    padding: 8px 18px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 199, 44, 0.2);
}

.btn-add:hover { background: #f0c75a; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255, 199, 44, 0.3); }
.btn-add:active { transform: scale(0.94); box-shadow: 0 2px 6px rgba(255, 199, 44, 0.2); }
.btn-add.added { background: #25d366; color: #fff; box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2); }

/* ── ZONA DE COBERTURA ─────────────────────────────── */
.zona-section {
    padding: 80px 24px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.zona-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.zona-info h2 { font-size: 1.9rem; font-weight: 900; color: var(--text-white); margin-bottom: 14px; }
.zona-info p { color: var(--text-muted); margin-bottom: 24px; line-height: 1.7; }

.zona-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.zona-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 0.82rem;
    color: var(--text-white);
    font-weight: 500;
}

.zona-tag i { color: var(--gold); font-size: 0.85rem; }

.zona-map { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); height: 320px; box-shadow: 0 16px 30px rgba(0,0,0,0.08); }
.zona-map iframe { width: 100%; height: 100%; border: none; filter: none; }

/* ── MODAL PERSONALIZACIÓN ─────────────────────────── */
.custom-modal-overlay, .delivery-modal-overlay, .qr-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.custom-modal-overlay.active, .delivery-modal-overlay.active, .qr-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.custom-modal, .delivery-modal, .qr-modal-content {
    background: var(--bg-surface);
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    width: 100%;
    max-width: 420px;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 32px 64px rgba(0,0,0,0.15);
}

.custom-modal-overlay.active .custom-modal,
.delivery-modal-overlay.active .delivery-modal,
.qr-modal-overlay.active .qr-modal-content { transform: translateY(0) scale(1); }

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-header h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-white); line-height: 1.3; margin: 0; }

.modal-close-x {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin-left: 12px;
    flex-shrink: 0;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-top: -6px;
}

.modal-close-x:hover { color: var(--text-white); }

.custom-option-group { margin-bottom: 18px; }

.option-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold-text);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.radio-group { display: flex; gap: 8px; flex-wrap: wrap; }

.radio-btn {
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.radio-btn.selected { border-color: var(--gold); background: var(--gold-glow); color: var(--gold-text); }

.checkbox-group { display: flex; flex-direction: column; gap: 8px; }

.check-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0,0,0,0.05);
    background: var(--bg-card);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.88rem;
}

.check-item:hover { border-color: rgba(232,184,75,0.25); }
.check-item.selected { border-color: var(--gold); background: var(--gold-glow); color: var(--gold-text); }
.check-item .item-name { color: var(--text-white); font-weight: 600; }
.check-item .item-extra-price { color: var(--gold-text); font-size: 0.78rem; font-weight: 600; }
.check-item input[type="checkbox"] { display: none; }

.modal-footer-actions { display: flex; gap: 10px; margin-top: 22px; }

.btn-modal-cancel {
    flex: 1; padding: 12px; border-radius: var(--radius-pill);
    border: 1px solid rgba(0,0,0,0.1); background: transparent;
    color: var(--text-muted); font-weight: 600; cursor: pointer;
    transition: var(--transition); font-family: 'Outfit', sans-serif;
}

.btn-modal-cancel:hover { border-color: rgba(255,255,255,0.2); color: var(--text-white); }

.btn-modal-confirm {
    flex: 2; padding: 12px; border-radius: var(--radius-pill);
    border: none; background: var(--gold);
    color: #111111; font-family: 'Outfit', sans-serif;
    font-weight: 700; font-size: 0.95rem; cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(255, 199, 44, 0.2);
}

.btn-modal-confirm:hover { background: #f0c75a; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255, 199, 44, 0.3); }
.btn-modal-confirm:active { transform: scale(0.96); box-shadow: 0 2px 6px rgba(255, 199, 44, 0.2); }

/* ── MODAL ENTREGA ─────────────────────────────────── */
@keyframes pulseError {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(218, 41, 28, 0.7); border-color: rgba(218, 41, 28, 0.7); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(218, 41, 28, 0); border-color: rgba(218, 41, 28, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(218, 41, 28, 0); border-color: rgba(218, 41, 28, 0); }
}

.pulse-error {
    animation: pulseError 0.5s ease-in-out;
    border-color: var(--red-accent) !important;
    color: var(--red-accent) !important;
}
.delivery-modal h3 { font-size: 1.15rem; font-weight: 700; color: var(--text-white); margin: 0; }
.delivery-modal .modal-sub { font-size: 0.83rem; color: var(--text-muted); margin-bottom: 22px; }

.delivery-field { margin-bottom: 16px; }

.delivery-field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.delivery-field input[type="text"] {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px 14px;
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}

.delivery-field input[type="text"]:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }

.pay-options { display: flex; gap: 8px; flex-wrap: wrap; }

.pay-btn {
    flex: 1; min-width: 90px;
    padding: 10px 12px; border-radius: var(--radius-sm);
    border: 1px solid rgba(0,0,0,0.05); background: var(--bg-card);
    color: var(--text-muted); font-size: 0.83rem; font-weight: 600;
    cursor: pointer; transition: var(--transition); text-align: center;
    font-family: 'Outfit', sans-serif;
}

.pay-btn.selected { border-color: var(--gold); background: var(--gold-glow); color: var(--gold); }

.btn-send-wa {
    width: 100%; margin-top: 18px; padding: 16px;
    border-radius: var(--radius-pill); border: none; background: #25d366;
    color: #fff; font-family: 'Outfit', sans-serif;
    font-size: 1.05rem; font-weight: 700; cursor: pointer;
    transition: var(--transition); display: flex;
    align-items: center; justify-content: center; gap: 10px;
    box-shadow: 0 8px 24px rgba(37,211,102,0.25);
}

.btn-send-wa:hover { background: #20b858; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(37,211,102,0.35); }
.btn-send-wa:active { transform: scale(0.96); box-shadow: 0 4px 12px rgba(37,211,102,0.2); }

.btn-modal-back {
    display: block; width: 100%; margin-top: 24px;
    background: none; border: none; color: var(--text-muted);
    font-size: 0.83rem; cursor: pointer; text-align: center;
    transition: var(--transition);
}

.btn-modal-back:hover { color: var(--text-white); }

/* ── CARRITO FLOTANTE ──────────────────────────────── */
.cart-fab {
    position: fixed; 
    bottom: 32px; 
    right: 32px;
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--gold); color: #111111; font-size: 1.6rem;
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
    z-index: 1000; transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cart-fab.footer-hide {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5) translateY(20px);
}

.cart-fab:hover { transform: scale(1.1) translateY(-3px); background: #f0c75a; }

.cart-fab .badge {
    position: absolute; top: -4px; right: -4px;
    width: 22px; height: 22px;
    background: var(--red-accent); color: #fff;
    border-radius: 50%; font-size: 0.7rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bg-dark); font-family: 'Outfit', sans-serif;
    transition: var(--transition);
}

.cart-fab .badge.hidden { transform: scale(0); opacity: 0; }

/* ── CART SIDEBAR ──────────────────────────────────── */
.cart-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
    z-index: 2000; opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-overlay.active { opacity: 1; pointer-events: auto; }

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: var(--bg-card);
    z-index: 5001;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 60px rgba(0,0,0,0.15);
    overscroll-behavior: contain;
    border-left: 1px solid rgba(0,0,0,0.03);
}

.cart-overlay.active .cart-sidebar { transform: translateX(0); }

.cart-header {
    padding: 20px 24px; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}

.cart-header h3 { font-size: 1.15rem; font-weight: 700; color: var(--text-white); }

.btn-clear-cart {
    background: rgba(0,0,0,0.05);
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-clear-cart:hover {
    background: rgba(218, 41, 28, 0.1);
    color: var(--red-accent);
}

.btn-clear-cart:active { transform: scale(0.95); }

.cart-close-btn {
    background: none; border: none; color: var(--text-muted);
    font-size: 1.5rem; cursor: pointer; line-height: 1;
    transition: color 0.2s;
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
}

.cart-close-btn:hover { color: var(--text-white); }

.cart-items-list { flex: 1; overflow-y: auto; padding: 20px 24px; }
.cart-items-list::-webkit-scrollbar { width: 4px; }
.cart-items-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.empty-cart { text-align: center; color: var(--text-muted); padding: 60px 0; font-size: 0.9rem; }
.empty-cart i { font-size: 2.5rem; display: block; margin-bottom: 12px; opacity: 0.3; }

.cart-item { display: flex; justify-content: space-between; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); gap: 12px; }

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.88rem; font-weight: 600; color: var(--text-white); margin-bottom: 3px; line-height: 1.3; }
.cart-item-opts { font-size: 0.72rem; color: var(--text-muted); line-height: 1.4; }

.cart-item-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.qty-btn {
    width: 26px; height: 26px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--bg-surface);
    color: var(--text-white); cursor: pointer; display: flex;
    align-items: center; justify-content: center; font-size: 1rem;
    transition: var(--transition);
}

.qty-btn:hover { border-color: var(--gold); color: var(--gold-text); }
.qty-num { font-weight: 700; font-size: 0.9rem; color: var(--text-white); min-width: 18px; text-align: center; }
.cart-item-price { font-weight: 700; font-size: 0.88rem; color: var(--gold-text); }

.cart-footer { padding: 20px 24px; border-top: 1px solid var(--border); background: var(--bg-surface); }

.cart-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cart-total-label { font-size: 0.88rem; color: var(--text-muted); }
.cart-total-amount { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 900; color: var(--gold-text); }

.btn-checkout {
    width: 100%; padding: 14px; border-radius: var(--radius-pill);
    border: none; background: #25d366; color: #fff;
    font-family: 'Outfit', sans-serif; font-size: 1.05rem; font-weight: 700;
    cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; justify-content: center; gap: 10px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.2);
}

.btn-checkout:hover { background: #20b858; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(37, 211, 102, 0.3); }
.btn-checkout:active { transform: scale(0.96); }
.btn-checkout:disabled { background: var(--text-dim); cursor: not-allowed; transform: none; }

/* ── TOOLTIP ─────────────────────────────────────────── */
.cart-tooltip {
    position: fixed; 
    bottom: 110px; 
    right: 32px;
    background: var(--red-accent); border: none;
    border-radius: 12px; padding: 12px 16px;
    font-size: 0.82rem; font-weight: 600; color: #ffffff;
    max-width: 200px; text-align: center; z-index: 999;
    opacity: 0; transform: translateY(8px); pointer-events: none;
    transition: all 0.3s ease; box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.cart-tooltip::after {
    content: '';
    position: absolute; bottom: -7px; right: 26px;
    border-left: 7px solid transparent; border-right: 7px solid transparent;
    border-top: 7px solid var(--red-accent);
}

.cart-tooltip.visible { opacity: 1; transform: translateY(0); }
.cart-tooltip.footer-hide { opacity: 0; transform: translateY(10px); }

/* ── CONFIRM MODAL ───────────────────────────────────── */
.confirm-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.8);
    z-index: 4000; display: flex; align-items: center;
    justify-content: center; padding: 24px;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}

.confirm-modal-overlay.active { opacity: 1; pointer-events: auto; }

.confirm-modal-box {
    background: var(--bg-surface); border: 1px solid rgba(0,0,0,0.03);
    border-radius: var(--radius-lg); padding: 32px 28px; text-align: center; max-width: 340px; width: 100%;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 32px 64px rgba(0,0,0,0.15);
}

.confirm-modal-overlay.active .confirm-modal-box {
    transform: translateY(0) scale(1);
}

.confirm-modal-box h3 { font-size: 1.2rem; margin: 0; color: var(--text-white); }
.confirm-modal-box p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 24px; }
.confirm-actions { display: flex; gap: 10px; }

.btn-cancel-confirm {
    flex: 1; padding: 11px; border-radius: var(--radius-pill);
    border: 1px solid rgba(0,0,0,0.1); background: transparent;
    color: var(--text-muted); font-weight: 600; cursor: pointer;
    font-family: 'Outfit', sans-serif; transition: var(--transition);
}

.btn-ok-confirm {
    flex: 1; padding: 11px; border-radius: var(--radius-pill);
    border: none; background: var(--red-accent);
    color: #fff; font-weight: 700; cursor: pointer;
    font-family: 'Outfit', sans-serif; transition: var(--transition);
}

.btn-zona-wa {
    flex: 1;
    min-width: 200px;
    background: #25d366;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 100px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

    .btn-zona-wa:hover {
        background: #20b858;
        color: white;
        transform: translateY(-2px);
    }

/* ── FOOTER ─────────────────────────────────────────── */
.footer {
    background: #eeeeee;
    border-top: 1px solid var(--border);
    padding: 5rem 2rem;
    text-align: center;
}
.footer-brand { font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 900; color: var(--text-white); margin-bottom: 6px; }
.footer-brand span { color: var(--gold-text); }
.footer-tagline { font-size: 0.83rem; color: var(--text-muted); margin-bottom: 24px; }

/* ── DRAG HANDLE (MOBILE BOTTOM SHEETS) ────────────────── */
.drag-handle {
    display: none;
    width: 36px;
    height: 4px;
    background: rgba(0,0,0,0.12);
    border-radius: 100px;
    margin: 12px auto 16px auto;
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
    .drag-handle { display: block; }

    .hero { align-items: flex-start; padding-top: 15vh; }
    .zona-inner { grid-template-columns: 1fr; }
    .menu-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.3rem; }
    .section-title { font-size: 1.75rem; }
    .steps-grid { grid-template-columns: 1fr; }
    
    /* HarmonyOS Bottom Sheet Modals */
    .custom-modal-overlay, .delivery-modal-overlay, .qr-modal-overlay, .confirm-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
    
    .custom-modal, .delivery-modal, .qr-modal-content, .confirm-modal-box {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        margin: 0;
        max-width: 100%;
        transform: translateY(100%) scale(1);
        padding: 0 24px max(24px, env(safe-area-inset-bottom)) 24px;
        box-shadow: 0 -8px 32px rgba(0,0,0,0.1);
    }
    
    .custom-modal-overlay.active .custom-modal,
    .delivery-modal-overlay.active .delivery-modal,
    .qr-modal-overlay.active .qr-modal-content,
    .confirm-modal-overlay.active .confirm-modal-box {
        transform: translateY(0) scale(1);
    }
    
    /* Bottom Sheet Cart */
    .cart-sidebar {
        max-width: 100%;
        height: 88vh;
        top: auto;
        bottom: 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        transform: translateY(100%);
        border-left: none;
        border-top: 1px solid rgba(0,0,0,0.03);
        box-shadow: 0 -8px 32px rgba(0,0,0,0.1);
    }
    
    .cart-overlay.active .cart-sidebar {
        transform: translateY(0);
    }

    /* FAB Mobile Position */
    .cart-fab {
        bottom: calc(24px + env(safe-area-inset-bottom));
        right: 20px;
        width: 58px;
        height: 58px;
    }

    .cart-tooltip {
        bottom: calc(95px + env(safe-area-inset-bottom));
        right: 20px;
    }

    .hero-scroll-indicator {
        bottom: calc(32px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 480px) {
    .menu-img-wrap { width: 80px; height: 80px; }
    .category-nav { justify-content: flex-start; }
}

.margin-0 {
    margin: 0px !important;
}

/* --- Desktop Handoff & QR Modal --- */
.qr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qr-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.qr-modal-content {
    background: var(--bg-surface);
    border: 1px solid rgba(0,0,0,0.03);
    width: 100%;
    max-width: 420px;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    position: relative;
    text-align: center;
    box-shadow: 0 32px 64px rgba(0,0,0,0.15);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.qr-modal-overlay.active .qr-modal-content {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: var(--text-white);
}

.qr-image-container {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    position: relative;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.spinner {
    border: 3px solid rgba(255,199,44,0.2);
    border-left-color: var(--gold);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

.btn-generate-qr, .btn-zona-qr {
    display: none; 
    width: 100%; 
    margin-top: 10px; 
    background: var(--bg-surface); 
    border: 1px solid rgba(0,0,0,0.05); 
    color: var(--text-white); 
    padding: 12px 20px; 
    border-radius: var(--radius-pill); 
    font-weight: 700; 
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-generate-qr:hover, .btn-zona-qr:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 188, 13, 0.25);
}

.btn-generate-qr:active, .btn-zona-qr:active { transform: scale(0.96); }

.btn-zona-qr { flex: 1; min-width: 200px; margin-top: 0; }

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Productos No Disponibles (Agotados) --- */
.menu-card.no-disponible {
    opacity: 0.65;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Evita cualquier interacción */
}

.menu-card.no-disponible .menu-img {
    filter: grayscale(100%);
}

.menu-card.no-disponible .btn-add {
    background: #475569 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    pointer-events: none;
}

.menu-img-wrap {
    position: relative;
}

.agotado-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: var(--red-accent, #da291c);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-sm, 4px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    z-index: 10;
}

/* --- Clases de Estilo de la Plantilla --- */
.delivery-time-strong {
    color: var(--red-accent);
}

.zona-actions {
    margin-top: 25px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cart-header-title-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qr-modal-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.qr-modal-img {
    display: none;
    width: 200px;
    height: 200px;
    border-radius: 10px;
}

.qr-modal-footer-note {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-top: 15px;
}

/* --- Detalle de Producto en Modal --- */
.custom-modal {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.custom-modal-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
    margin-right: -4px;
}

.custom-modal-detail {
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.custom-modal-img-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.custom-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.custom-modal-img-container:hover .custom-modal-image {
    transform: scale(1.04);
}

.custom-modal-description {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}