/* ==========================================================================
   BocataCraft / Camión Bar - System Stylesheet & Responsive Architecture
   ========================================================================== */

:root {
    /* Theme Colors */
    --bg-dark: #0F172A;
    --bg-card: rgba(30, 41, 59, 0.75);
    --bg-card-hover: rgba(51, 65, 85, 0.85);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(249, 115, 22, 0.4);
    
    --accent-amber: #F97316;
    --accent-amber-hover: #EA580C;
    --accent-gold: #F59E0B;
    --accent-green: #22C55E;
    --accent-red: #EF4444;
    
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    
    /* Layout Constants */
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html {
    height: 100vh;
    height: -webkit-fill-available;
    background-color: var(--bg-dark);
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: -webkit-fill-available;
    padding-top: env(safe-area-inset-top);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    display: flex;
    flex-direction: column;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    box-sizing: border-box;
    position: relative;
}

.app-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 20%, rgba(249, 115, 22, 0.12) 0%, transparent 60%),
                radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Glassmorphic Components */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    transition: var(--transition-smooth);
}

/* Header */
.main-header {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    padding: 10px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 2rem; }
.logo-text h1 { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 800; }
.logo-text h1 span { color: var(--accent-amber); }
.presets-row-bar {
    max-width: 1440px;
    margin: 6px auto 0 auto;
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.presets-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(30, 41, 59, 0.9);
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: thin;
}

.presets-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent-gold);
    white-space: nowrap;
    flex-shrink: 0;
}

.presets-list {
    display: flex;
    gap: 8px;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
}

.preset-chip {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.preset-chip:hover {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
    border-color: #FDE68A;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* View Toggles Bar */
.view-toggles-bar { display: flex; align-items: center; gap: 8px; }

.checkout-pay-btn {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 12px 8px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkout-pay-btn.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.2));
    border-color: #F59E0B;
    color: #F8FAFC;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.toggle-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.toggle-pill.active {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
    color: var(--accent-green);
}

.btn-sm {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.btn-glass { background: rgba(255, 255, 255, 0.08); color: var(--text-primary); border: 1px solid var(--border-glass); }
.btn-accent { background: var(--accent-amber); color: #fff; }

/* App Viewport Grid */
.app-viewport {
    max-width: 1440px;
    margin: 0 auto;
    padding: 16px;
    width: 100%;
    display: grid;
    grid-template-columns: 360px 1fr 340px;
    gap: 16px;
    flex: 1;
}

.widget-toggleable.hidden-widget { display: none !important; }

/* REJILLA DE NÚMEROS DE PEDIDO DEL 1 AL 35 */
.number-modal-card {
    max-width: 580px;
    padding: 24px;
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    padding: 16px 0;
    justify-items: center;
}

.number-btn {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border: 2px solid var(--accent-amber);
    color: #F8FAFC;
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.number-btn:hover {
    transform: scale(1.12);
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    border-color: #FFFBEB;
    color: #fff;
    box-shadow: 0 0 16px rgba(249, 115, 22, 0.8);
}

.mega-number-trigger {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    animation: pulseMega 2s infinite ease-in-out;
}

@keyframes pulseMega {
    0%, 100% { box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4); }
    50% { box-shadow: 0 6px 24px rgba(249, 115, 22, 0.8); }
}

/* Panel Headers */
.wizard-header, .canvas-header, .dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-glass);
}

.wizard-header h2, .canvas-header h2, .dashboard-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.wizard-step-counter, .layer-count-badge {
    background: rgba(249, 115, 22, 0.15);
    color: var(--accent-amber);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Wizard Column */
.wizard-panel { display: flex; flex-direction: column; height: calc(100vh - 100px); }

.category-tabs {
    display: flex;
    gap: 4px;
    padding: 8px;
    background: rgba(15, 23, 42, 0.4);
    border-bottom: 1px solid var(--border-glass);
}

.tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.tab-btn.active { background: var(--accent-amber); color: #fff; }
.tab-icon { font-size: 1.1rem; }
.tab-label { font-size: 0.68rem; font-weight: 700; }

/* Rejilla de Iconos de Categoría Autoajustable sin Desbordamientos */
.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 6px;
    padding: 8px 10px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

@media screen and (max-width: 600px) {
    .category-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
        gap: 5px;
        padding: 6px 8px;
    }
}

.category-card-btn {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 6px 3px;
    min-height: var(--cat-card-height, 80px);
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.category-card-btn:hover {
    border-color: var(--accent-amber);
    background: rgba(249, 115, 22, 0.15);
    transform: translateY(-2px);
}

.category-card-btn.active {
    border-color: var(--accent-amber);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.3) 0%, rgba(245, 158, 11, 0.2) 100%);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.cat-icon {
    font-size: var(--cat-icon-size, 1.5rem);
    line-height: 1;
}

.cat-name {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.1;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #EF4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 10px;
    display: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.cat-badge.active {
    display: inline-block;
}

.btn-close-modal {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #EF4444;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
}

.btn-close-modal:hover {
    background: #EF4444;
    color: #fff;
}

.ingredients-scroll-area { padding: 14px; overflow-y: auto; flex: 1; }
.category-info h3 { font-size: 0.9rem; font-weight: 700; }
.category-info p { font-size: 0.72rem; color: var(--text-secondary); margin-bottom: 10px; }

.ingredients-grid { display: flex; flex-direction: column; gap: 8px; }

/* Ingredient Card con Foto Realista */
.ingredient-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-glass);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    user-select: none;
}

.ingredient-card:hover { border-color: rgba(249, 115, 22, 0.4); background: rgba(51, 65, 85, 0.5); }
.ingredient-card.selected { border-color: var(--accent-amber); background: rgba(249, 115, 22, 0.15); }

.ing-left { display: flex; align-items: center; gap: 10px; }

.ing-thumb-img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.ing-name { font-size: 0.82rem; font-weight: 700; }
.ing-sub { font-size: 0.68rem; color: var(--text-secondary); }
.ing-right { display: flex; align-items: center; gap: 8px; }
.ing-price { font-size: 0.82rem; font-weight: 700; color: var(--accent-gold); }

.ing-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
}

.ingredient-card.selected .ing-checkbox { background: var(--accent-amber); border-color: var(--accent-amber); }

.ing-qty-picker {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--accent-amber);
    padding: 2px 6px;
    border-radius: 8px;
}

.btn-qty {
    background: var(--accent-amber);
    color: #fff;
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
}

.btn-qty:hover {
    background: #EA580C;
}

.qty-val {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-gold);
    min-width: 20px;
    text-align: center;
}

/* Canvas Panel (Center) */
.canvas-panel { display: flex; flex-direction: column; height: calc(100vh - 100px); position: relative; overflow: hidden; }
.quick-actions { display: flex; gap: 6px; }

.btn-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.toast-btn.active { background: rgba(239, 68, 68, 0.2); border-color: var(--accent-red); color: #FFAATA; }

/* Sandwich Stage */
.sandwich-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

.steam-container { position: absolute; top: 15%; display: flex; gap: 15px; opacity: 0; pointer-events: none; }
.steam-container.active { opacity: 1; }

.steam-particle {
    width: 8px;
    height: 24px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    filter: blur(6px);
    animation: steamRise 2s infinite ease-out;
}

@keyframes steamRise {
    0% { transform: translateY(0) scaleX(1); opacity: 0; }
    50% { opacity: 0.6; }
    100% { transform: translateY(-50px) scaleX(2); opacity: 0; }
}

.sandwich-stack { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 420px; }

.bread-layer {
    width: 100%;
    height: 52px;
    border-radius: 26px 26px 12px 12px;
    background: url('/static/img/pan_baguette.jpg') center/cover no-repeat;
    box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.4), 0 6px 14px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.bread-bottom {
    border-radius: 12px 12px 22px 22px;
    background: url('/static/img/pan_baguette.jpg') center/cover no-repeat;
    height: 44px;
}

.toast-marks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, transparent, transparent 15px, rgba(40, 20, 0, 0.45) 15px, rgba(40, 20, 0, 0.45) 22px);
    opacity: 0;
}

.sandwich-stage.toasted .toast-marks { opacity: 1; }

.fillings-container {
    width: 92%;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: -4px;
    margin: -6px 0;
    z-index: 2;
}

.filling-item {
    width: 100%;
    height: 28px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    margin-top: -6px;
    position: relative;
    overflow: hidden;
}

.cut-line-indicator {
    position: absolute;
    width: 2px;
    height: 75%;
    background: dashed rgba(239, 68, 68, 0.8);
    top: 12%;
    transform: rotate(35deg);
    opacity: 0;
}

.cut-line-indicator.active { opacity: 1; }

.reorder-toolbar {
    padding: 10px 16px;
    border-top: 1px solid var(--border-glass);
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
}

.reorder-label { font-size: 0.72rem; color: var(--text-secondary); white-space: nowrap; }
.reorder-chips { display: flex; gap: 6px; }

.reorder-chip {
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Dashboard Column (Right) */
.dashboard-panel { display: flex; flex-direction: column; height: calc(100vh - 100px); }

.price-pill {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.15);
    padding: 4px 12px;
    border-radius: 16px;
}

.macros-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px; }

.macro-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-glass);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 8px;
}

.macro-icon { font-size: 1.2rem; }
.macro-value { font-family: 'Outfit', sans-serif; font-size: 0.95rem; font-weight: 700; }
.macro-unit { font-size: 0.68rem; color: var(--text-secondary); }
.macro-name { font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; }

.meters-container { padding: 0 14px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.meter-box { display: flex; flex-direction: column; gap: 4px; }
.meter-label { display: flex; justify-content: space-between; font-size: 0.72rem; font-weight: 600; }
.meter-val-text { color: var(--accent-amber); }
.meter-track { height: 6px; background: rgba(255, 255, 255, 0.08); border-radius: 3px; overflow: hidden; }
.meter-fill { height: 100%; border-radius: 3px; }
.crunch-fill { background: linear-gradient(90deg, #F59E0B, #22C55E); }
.heat-fill { background: linear-gradient(90deg, #F97316, #EF4444); }

.order-form { padding: 14px; margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.form-label { font-size: 0.72rem; font-weight: 700; color: var(--text-secondary); }

.name-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 0 10px;
}

.input-icon { font-size: 0.9rem; margin-right: 6px; }

.form-control {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 8px 0;
    font-size: 0.82rem;
    outline: none;
}

.btn-submit-order {
    background: linear-gradient(135deg, var(--accent-amber) 0%, #EA580C 100%);
    border: none;
    color: #fff;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active { opacity: 1; pointer-events: all; }

.ticket-modal-card {
    width: 90%;
    max-width: 480px;
    padding: 20px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-title-bar { margin-bottom: 14px; }
.modal-title-bar h3 { font-family: 'Outfit', sans-serif; font-size: 1.1rem; }
.modal-title-bar p { font-size: 0.72rem; color: var(--text-secondary); }

.canvas-editor-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    background: rgba(15, 23, 42, 0.4);
    padding: 10px;
    border-radius: var(--radius-sm);
}

.control-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.control-row label { font-size: 0.72rem; color: var(--text-secondary); white-space: nowrap; }

.form-control-sm {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    outline: none;
    flex: 1;
}

.canvas-wrapper { display: flex; justify-content: center; margin: 10px 0; }

#ticketCanvas {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.modal-actions { display: flex; gap: 8px; margin-top: 14px; }
.modal-btn { flex: 1; padding: 8px; border-radius: var(--radius-sm); font-size: 0.78rem; font-weight: 700; border: none; cursor: pointer; }
.btn-print { background: var(--accent-amber); color: #fff; }
.btn-close-action { background: rgba(255, 255, 255, 0.1); color: var(--text-primary); }

/* Number Grid Reactivo */
.number-modal-card {
    width: 95%;
    max-width: 620px;
    padding: 24px;
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
    gap: 12px;
    margin-top: 16px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 6px;
}

.number-btn {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 2px solid rgba(245, 158, 11, 0.4);
    color: #F8FAFC;
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    aspect-ratio: 1;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.number-btn:hover:not(:disabled) {
    background: var(--accent-amber);
    border-color: #F97316;
    color: #fff;
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.5);
}

.number-btn.disabled, .number-btn:disabled {
    background: rgba(30, 41, 59, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    color: #475569 !important;
    cursor: not-allowed !important;
    opacity: 0.25 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Comandero Multi-Item para Camarero */
.table-cart-container {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
}

.cart-section-header {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-glass);
}

.cart-item {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-item.drink-cart-item {
    border-left: 3px solid #38BDF8;
}

.cart-item.food-cart-item {
    border-left: 3px solid #F97316;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-item-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cart-item-sub {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.cart-item-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-price {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent-gold);
}

.btn-del-cart {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #EF4444;
    border-radius: 6px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
}

/* ==========================================================================
   Mobile-First Architecture & Responsive Overrides
   ========================================================================== */
@media screen and (max-width: 600px) {
    .hide-mobile { display: none; }
}

@media screen and (max-width: 900px) {
    .main-header {
        padding: 6px 10px;
    }

    .header-container {
        flex-wrap: nowrap !important;
        gap: 6px;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .brand-logo {
        gap: 4px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .logo-icon {
        font-size: 1.2rem;
    }

    .logo-text h1 {
        font-size: 0.95rem;
        white-space: nowrap;
    }

    .tagline {
        display: none; /* Ocultar eslogan largo en móvil para ahorrar espacio */
    }

    .presets-container {
        order: 3;
        width: 100%;
        padding: 4px 10px;
        margin-top: 2px;
    }

    .presets-title {
        font-size: 0.7rem;
    }

    .view-toggles-bar {
        gap: 4px;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        flex-shrink: 1;
        scrollbar-width: none;
    }
    .view-toggles-bar::-webkit-scrollbar { display: none; }

    .view-toggles-bar .btn-sm,
    .view-toggles-bar .toggle-pill {
        padding: 4px 6px;
        font-size: 0.68rem;
        flex-shrink: 0;
    }

    /* Ordenamiento natural para móvil: Selección de Ingredientes PRIMERO */
    .app-viewport {
        display: flex;
        flex-direction: column;
        padding: 8px;
        gap: 12px;
    }

    .wizard-panel {
        order: 1;
        height: auto;
        max-height: none;
    }

    .category-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .ingredients-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 8px;
    }

    .ingredient-card {
        padding: 8px 10px;
    }

    .ing-thumb-img {
        width: 32px;
        height: 32px;
    }

    .ing-name {
        font-size: 0.78rem;
    }

    .ing-sub {
        font-size: 0.62rem;
    }

    /* Previsualización del Bocadillo Montado Compacta en Móvil */
    .canvas-panel {
        order: 2;
        height: auto;
        max-height: none;
        position: relative;
        top: 0;
        z-index: 10;
    }

    .canvas-header {
        padding: 10px 12px;
    }

    .canvas-header h2 {
        font-size: 0.95rem;
    }

    .quick-actions .btn-action {
        padding: 4px 8px;
        font-size: 0.68rem;
    }

    .sandwich-stage {
        min-height: 120px;
        padding: 10px;
    }

    .sandwich-stack {
        max-width: 280px;
    }

    .bread-layer {
        height: 34px;
        border-radius: 18px 18px 8px 8px;
    }

    .bread-bottom {
        height: 30px;
        border-radius: 8px 8px 16px 16px;
    }

    .filling-item {
        height: 22px;
        font-size: 0.68rem;
        padding: 0 10px;
    }

    /* Comandero y Asignación de Número de Pedido en Móvil */
    .dashboard-panel {
        order: 2;
        width: 100%;
        height: auto;
        padding-bottom: 85px !important; /* Reserva para que el botón fijo no tape los ítems de abajo */
        box-sizing: border-box;
    }

    .dashboard-header h2 {
        font-size: 1rem;
    }

    .table-cart-container {
        max-height: 280px;
        overflow-y: auto;
    }

    /* El botón Elegir Número se mantiene SIEMPRE FIJO en la parte inferior del móvil */
    .order-form {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        z-index: 9999 !important;
        background: rgba(15, 23, 42, 0.96) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border-top: 2px solid var(--accent-amber) !important;
        padding: 10px 14px !important;
        margin: 0 !important;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6) !important;
    }

    .btn-submit-order {
        padding: 10px 14px;
        width: 100%;
    }

    .btn-submit-order {
        padding: 10px 14px;
    }

    /* Modal de Números en Móvil */
    .number-modal-card {
        width: 95%;
        padding: 16px;
    }

    .number-grid {
        grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
        gap: 8px;
        max-height: 55vh;
    }

    .number-btn {
        font-size: 1.15rem;
        border-radius: 10px;
    }
}

/* ==========================================================================
   RESPONSIVE LANDSCAPE (Móvil Horizontal) & ULTRA-COMPATIBILIDAD MÓVIL REACTIVA
   ========================================================================== */

@media screen and (orientation: landscape) and (max-height: 550px) {
    .main-header {
        padding: 4px 10px;
    }

    .header-container {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .app-viewport {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 6px;
    }

    .wizard-panel {
        order: 1;
        overflow-y: auto;
        max-height: calc(100vh - 50px);
    }

    .dashboard-panel {
        order: 2;
        overflow-y: auto;
        max-height: calc(100vh - 50px);
    }

    .category-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
        gap: 6px;
        padding: 6px;
    }

    .category-card-btn {
        min-height: calc(var(--cat-card-height, 85px) * 0.75);
        padding: 6px 4px;
    }

    .cat-icon {
        font-size: calc(var(--cat-icon-size, 1.6rem) * 0.85);
    }

    .cat-name {
        font-size: 0.65rem;
    }

    .table-cart-container {
        max-height: 140px;
    }

    /* Modales adaptados a landscape */
    .ticket-modal-card {
        max-height: 90vh;
        overflow-y: auto;
        padding: 12px;
    }

    #modalIngredientsGrid {
        max-height: 45vh !important;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    }
}

/* ==========================================================================
   Sleek Dark Custom Scrollbar & Auto-Adjustable Combo Picker
   ========================================================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.4);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 158, 11, 0.8);
}

#comboIngredientsPicker {
    max-height: 52vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid #334155;
    padding: 12px;
    border-radius: 12px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 158, 11, 0.5) rgba(15, 23, 42, 0.8);
}

@media (min-width: 640px) {
    #comboIngredientsPicker {
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
        gap: 10px;
    }
}

/* ==========================================================================
   MODAL DE CATEGORÍAS Y SUBCATEGORÍAS A PANTALLA COMPLETA 100%
   ========================================================================== */
.category-fullscreen-modal {
    width: 96vw !important;
    max-width: 1400px !important;
    height: 92vh !important;
    max-height: 96vh !important;
    padding: 16px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    border-radius: var(--radius-lg) !important;
}

@media screen and (max-width: 768px) {
    .category-fullscreen-modal {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        padding: 12px 14px !important;
    }
}

.category-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 10px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.category-modal-grid {
    flex: 1 !important;
    max-height: none !important;
    overflow-y: auto !important;
    padding-right: 4px !important;
    align-content: start !important;
}

.category-modal-footer {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
    border-top: 1px solid var(--border-glass);
    padding-top: 10px;
}

/* Expandible Inteligente para 2. Comanda de Mesa en Móvil al Deslizar (Scroll Focus) */
@media screen and (max-width: 768px) {
    #dashboardPanel {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
    }

    #dashboardPanel.expanded-mobile-panel {
        transform: translateY(-4px);
        border: 2px solid var(--accent-amber) !important;
        box-shadow: 0 -8px 28px rgba(245, 158, 11, 0.35) !important;
        padding: 16px 14px !important;
        background: rgba(15, 23, 42, 0.98) !important;
    }

    #dashboardPanel.expanded-mobile-panel .dashboard-header h2 {
        font-size: 1.25rem !important;
        color: var(--accent-gold) !important;
    }

    #dashboardPanel.expanded-mobile-panel .table-cart-container {
        max-height: 48vh !important; /* Se amplía en grande para revisar cómodamente la comanda */
    }

    #dashboardPanel.expanded-mobile-panel .cart-item {
        padding: 10px 8px !important;
    }

    #dashboardPanel.expanded-mobile-panel .cart-item-name {
        font-size: 0.92rem !important;
        font-weight: 800 !important;
    }
}


/* ==========================================================================
   SECCIN: MONTAR BOCADILLO DESDE CERO + BANDEJAS RPIDAS + PASAR A COCINA
   Optimizacin 100% Reactiva Mobile & Tablet First
   ========================================================================== */

.view-mode-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    background: rgba(15, 23, 42, 0.85);
    padding: 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
}

.mode-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-weight: 800;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    min-height: 44px;
}

.mode-tab-btn.active {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(245, 158, 11, 0.15));
    border-color: var(--accent-amber);
    color: #F8FAFC;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.2);
}

/* Contenedor del Montador de Bocadillos */
.bocata-builder-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bocata-step-box {
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 14px;
    transition: var(--transition-smooth);
}

.bocata-step-box:focus-within, .bocata-step-box:hover {
    border-color: rgba(245, 158, 11, 0.35);
}

.bocata-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.bocata-step-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.bocata-step-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Rejilla de Chips de Ingredientes */
.bocata-chip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.bocata-chip {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 60px;
    text-align: left;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.bocata-chip:active {
    transform: scale(0.96);
}

.bocata-chip-top {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.bocata-chip-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.bocata-chip-name {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    word-break: break-word;
}

.bocata-chip-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 6px;
}

.bocata-chip-price {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--text-muted);
}

.bocata-chip.active {
    background: rgba(245, 158, 11, 0.18);
    border-color: var(--accent-gold);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.bocata-chip.active .bocata-chip-name {
    color: #FFF;
}

.bocata-chip.active .bocata-chip-price {
    color: var(--accent-gold);
}

.bocata-chip.bread-chip.active {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.3), rgba(180, 83, 9, 0.2));
    border-color: #F59E0B;
    border-width: 2px;
}

.bocata-chip-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: #0F172A;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 900;
}

.bocata-chip.active .bocata-chip-check {
    display: flex;
}

/* Barra de Opciones de Plancha y Corte */
.bocata-options-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.65);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
}

.bocata-opt-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.bocata-opt-btn.active {
    background: rgba(239, 68, 68, 0.2);
    border-color: #EF4444;
    color: #FCA5A5;
}

.bocata-opt-btn.cut-active {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3B82F6;
    color: #93C5FD;
}

.btn-clear-bocata {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #F87171;
    margin-left: auto;
}

.btn-clear-bocata:hover {
    background: rgba(239, 68, 68, 0.15);
}

/* Caja Resumen en Vivo del Bocadillo en Construccin */
.bocata-live-summary-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.95));
    border: 2px solid var(--accent-gold);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.live-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.live-summary-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 900;
    color: #F8FAFC;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-bocata-price-tag {
    font-size: 1.35rem;
    font-weight: 900;
    color: #FACC15;
    background: rgba(245, 158, 11, 0.15);
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.live-bocata-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 38px;
    align-items: center;
}

.live-ing-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #F8FAFC;
    animation: fadeInChip 0.2s ease;
}

@keyframes fadeInChip {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.live-ing-chip.bread-type {
    background: rgba(217, 119, 6, 0.25);
    border-color: #F59E0B;
    color: #FDE68A;
}

.live-ing-remove {
    background: transparent;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    font-weight: 900;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0 2px;
}

.live-ing-remove:hover {
    color: #EF4444;
}

.btn-add-bocata-mega {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    border: none;
    border-radius: 12px;
    color: #0F172A;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
    transition: var(--transition-smooth);
}

.btn-add-bocata-mega:active {
    transform: scale(0.98);
}

/* Bandejas Rpidas de BEBIDAS y CAFS (1 Toque) */
.quick-tray-box {
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 14px;
}

.quick-tray-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.quick-tray-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: #F8FAFC;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-tray-more-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--accent-gold);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.quick-tray-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}

.quick-item-btn {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 14px;
    min-width: 105px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #F8FAFC;
    cursor: pointer;
    transition: all 0.2s ease;
    scroll-snap-align: start;
    user-select: none;
}

.quick-item-btn:active {
    transform: scale(0.95);
    border-color: var(--accent-amber);
}

.quick-item-icon {
    font-size: 1.5rem;
}

.quick-item-name {
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-item-price {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--accent-gold);
}

/* Columna de Comanda: Selector de Mesa y Botn Mega 'PASAR A COCINA' */
.table-quick-selector-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.8);
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-glass);
    margin-bottom: 12px;
}

.table-quick-selector-bar label {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-secondary);
}

.table-select-dropdown {
    background: #1E293B;
    border: 1px solid var(--accent-amber);
    color: #F8FAFC;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    outline: none;
}

.btn-send-kitchen-mega {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border: none;
    border-radius: 14px;
    color: #FFF;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    transition: all 0.25s ease;
    margin-top: 10px;
}

.btn-send-kitchen-mega:active {
    transform: scale(0.97);
}

.mega-icon-rocket {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.mega-text-box {
    text-align: left;
}

.mega-title-text {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.mega-sub-text {
    font-size: 0.74rem;
    opacity: 0.92;
    font-weight: 600;
}

.cart-extra-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.btn-pay-now-cart {
    flex: 2;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid #F59E0B;
    color: #F8FAFC;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
}

.btn-clear-table-cart {
    flex: 1;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #FCA5A5;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
}

/* Toast Notificacin Flotante */
.bocata-toast {
    position: fixed;
    top: 75px;
    right: 20px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--accent-gold);
    color: #F8FAFC;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bocata-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Barra Fija Inferior para Smartphones (< 768px) */
.mobile-sticky-footer {
    display: none;
}

@media screen and (max-width: 768px) {
    body {
        padding-bottom: 75px; /* Espacio para barra fija */
    }

    .mobile-sticky-footer {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 2px solid var(--accent-amber);
        padding: 8px 12px;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        z-index: 1000;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
    }

    .sticky-info-pill {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        min-width: 90px;
    }

    .sticky-table-badge {
        font-size: 0.72rem;
        font-weight: 800;
        color: var(--accent-gold);
    }

    .sticky-total-price {
        font-size: 1.15rem;
        font-weight: 900;
        color: #F8FAFC;
    }

    .sticky-send-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 14px;
        background: linear-gradient(135deg, #10B981 0%, #059669 100%);
        border: none;
        border-radius: 10px;
        color: #FFF;
        font-weight: 900;
        font-size: 0.95rem;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    }

    .bocata-chip-grid {
        grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
        gap: 6px;
    }

    .bocata-chip {
        padding: 8px;
        min-height: 52px;
    }

    .bocata-chip-name {
        font-size: 0.76rem;
    }
}


/* ==========================================================================
   CONFIGURADOR MENÚ COMPLETO (6,99 €)
   ========================================================================== */

.menu-select-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 8px;
    background: rgba(15, 23, 42, 0.7);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #E2E8F0;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 64px;
    user-select: none;
    position: relative;
}

.menu-select-card:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.menu-select-card.active {
    border-color: #10B981 !important;
    background: rgba(16, 185, 129, 0.15) !important;
    color: #FFF !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.menu-select-btn {
    transition: all 0.2s ease;
}

.menu-select-btn:hover {
    transform: translateY(-1px);
}


/* ==========================================================================
   SELECTOR DE MESAS POR CUADROS TÁCTILES + FLUJO GUIADO
   ========================================================================== */

/* Botón grande de Mesa Actual */
.table-selector-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    border: 1.5px solid var(--accent-gold);
    border-radius: var(--radius-md);
    color: #FFF;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    margin-bottom: 12px;
}

.table-selector-btn:hover {
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.95), rgba(30, 41, 59, 1));
    border-color: #FBBF24;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.25);
}

.table-selector-btn .table-icon {
    font-size: 1.5rem;
    margin-right: 12px;
}

.table-selector-btn .table-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.table-selector-btn .table-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: #94A3B8;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.table-selector-btn .table-num {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--accent-gold);
}

.table-selector-btn .table-arrow {
    font-size: 0.85rem;
    color: #94A3B8;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 10px;
    border-radius: 8px;
}

/* Modal flotante de Cuadros de Mesa */
.table-grid-modal-card {
    max-width: 600px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 22px;
}

.table-tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
    gap: 10px;
    margin: 16px 0;
}

/* Cuadro individual de mesa */
.table-tile-btn {
    aspect-ratio: 1 / 1;
    min-height: 65px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.8);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #E2E8F0;
    font-size: 1.35rem;
    font-weight: 900;
    cursor: pointer;
    position: relative;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    padding: 4px;
}

.table-tile-btn:hover {
    background: rgba(30, 41, 59, 1);
    border-color: var(--accent-gold);
    transform: scale(1.05);
}

.table-tile-btn.active {
    background: linear-gradient(135deg, #10B981, #059669) !important;
    border-color: #34D399 !important;
    color: #FFF !important;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.5);
    transform: scale(1.06);
}

.table-tile-btn.occupied {
    border-color: #F59E0B;
    background: rgba(245, 158, 11, 0.12);
}

.table-tile-btn .tile-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #F59E0B;
    box-shadow: 0 0 6px #F59E0B;
}

.table-tile-btn .tile-sublabel {
    font-size: 0.65rem;
    font-weight: 700;
    color: #94A3B8;
    margin-top: 2px;
    text-transform: uppercase;
}

.table-tile-btn.active .tile-sublabel {
    color: #D1FAE5;
}

/* Leyenda de mesas */
.table-legend-bar {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    font-size: 0.78rem;
    color: #94A3B8;
    font-weight: 700;
}

.table-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.table-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Tarjetas rápidas de bocadillos directos */
.bocata-fast-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
    width: 100%;
    box-sizing: border-box;
}

.bocata-fast-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.bocata-fast-card:hover {
    border-color: var(--accent-gold);
    background: rgba(30, 41, 59, 0.85);
    transform: translateY(-2px);
}

.bocata-fast-btn-add {
    width: 100%;
    padding: 8px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.3));
    border: 1px solid var(--accent-gold);
    border-radius: 8px;
    color: #FBBF24;
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.15s ease;
}

.bocata-fast-btn-add:hover {
    background: var(--accent-gold);
    color: #000;
}

.bocata-fast-btn-custom {
    font-size: 0.72rem;
    color: #94A3B8;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    margin-top: 2px;
}

.bocata-fast-btn-custom:hover {
    color: #FFF;
}

/* ==========================================================================
   MOBILE & TABLET FIRST SPA ARCHITECTURE (NO EXCESSIVE SCROLLING)
   ========================================================================== */

@keyframes viewFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cartBadgeBump {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.cart-bump {
    animation: cartBadgeBump 0.3s ease-in-out;
}

/* ==========================================================================
   MOBILE FIRST RESPONSIVE ARCHITECTURE (Home, Bebidas, Bocadillos, Menú)
   ========================================================================== */

/* Header Móvil Compacto y Responsivo */
.mobile-app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.mobile-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.header-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #F8FAFC;
    padding: 7px 11px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-nav-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.15);
}

.header-nav-btn.btn-back {
    background: rgba(245, 158, 11, 0.15);
    border-color: #F59E0B;
    color: #FBBF24;
}

.mobile-header-title {
    flex: 1;
    text-align: center;
    min-width: 0;
    overflow: hidden;
    padding: 0 4px;
}

.mobile-header-title .view-title-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #FFF;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.header-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: linear-gradient(135deg, #10B981, #059669);
    border: none;
    color: #FFF;
    padding: 7px 11px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

.header-cart-btn .cart-count {
    background: #FFF;
    color: #065F46;
    font-size: 0.72rem;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 900;
}

.header-cart-btn .cart-total {
    font-size: 0.8rem;
    font-weight: 800;
}

.header-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94A3B8;
    padding: 7px 9px;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    flex-shrink: 0;
}

/* Reglas de Ocultación en Pantallas Estrechas (< 480px) */
@media (max-width: 480px) {
    .hide-on-mobile {
        display: none !important;
    }
    .mobile-app-header {
        padding: 6px 8px;
    }
    .mobile-header-top {
        gap: 4px;
    }
    .header-nav-btn {
        padding: 6px 8px;
        font-size: 0.82rem;
    }
    .mobile-header-title .view-title-text {
        font-size: 0.92rem;
    }
    .header-cart-btn {
        padding: 6px 8px;
        font-size: 0.82rem;
    }
    .header-menu-btn {
        padding: 6px 8px;
        font-size: 1rem;
    }
}

/* Contenedor Principal de Vistas */
.mobile-views-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 12px 10px 95px 10px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.mobile-view {
    display: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.mobile-view.active {
    display: block;
    animation: viewFadeIn 0.2s ease-out;
}

@keyframes viewFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   PANTALLA 1: HOME (Ajuste Perfecto y Sin Desbordamiento)
   ========================================================================== */
.home-hero-banner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.25));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.banner-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.banner-icon {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
}

.banner-texts {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.banner-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 0.92rem;
    color: #FBBF24;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.banner-sub {
    font-size: 0.74rem;
    color: #94A3B8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.btn-banner-add {
    flex-shrink: 0;
    padding: 7px 12px;
    background: var(--accent-gold);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 900;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.1s ease;
}

.btn-banner-add:active {
    transform: scale(0.95);
}

.home-tiles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 600px) {
    .home-tiles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

.home-tile-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 16px;
    cursor: pointer;
    text-align: left;
    border: 1.5px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.home-tile-card:active {
    transform: scale(0.98);
}

.home-tile-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.home-tile-icon {
    font-size: 2.1rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    flex-shrink: 0;
}

.home-tile-info {
    min-width: 0;
    flex: 1;
}

.home-tile-info .home-tile-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.08rem;
    font-weight: 900;
    color: #FFF;
    display: block;
    line-height: 1.2;
    word-break: break-word;
}

.home-tile-info .home-tile-desc {
    font-size: 0.77rem;
    color: rgba(255, 255, 255, 0.78);
    margin-top: 3px;
    display: block;
    word-break: break-word;
    line-height: 1.25;
}

.home-tile-arrow {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 800;
    flex-shrink: 0;
}

/* Colores de los botones del Home */
.tile-bebidas {
    background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
    border-color: #38BDF8;
}

.tile-bocadillos {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
    border-color: #FBBF24;
}

.tile-gusto {
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    border-color: #A5B4FC;
}

.tile-menu {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-color: #34D399;
}

.tile-raciones {
    background: linear-gradient(135deg, #E11D48 0%, #BE123C 100%);
    border-color: #FDA4AF;
}

/* ==========================================================================
   PANTALLA 2: BEBIDAS (Scroll Autónomo y Sin Sobrecarga Horizontal)
   ========================================================================== */
.drinks-category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding-bottom: 8px;
    margin-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.drinks-tab-btn {
    padding: 8px 13px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94A3B8;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.drinks-tab-btn.active {
    background: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
}

.drinks-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 16px;
}

@media (min-width: 480px) {
    .drinks-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
    }
}

.drink-tile-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 95px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.drink-tile-card:active {
    transform: scale(0.96);
    background: rgba(16, 185, 129, 0.2);
    border-color: #10B981;
}

.drink-tile-icon {
    font-size: 1.7rem;
    line-height: 1;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.drink-tile-name {
    font-size: 0.82rem;
    font-weight: 800;
    color: #FFF;
    line-height: 1.2;
    margin-bottom: 4px;
    width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-align: center;
}

.drink-tile-price {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--accent-gold);
    flex-shrink: 0;
}

/* ==========================================================================
   PANTALLA 3: BOCADILLOS (Carta Directa)
   ========================================================================== */
.view-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.view-header-text {
    min-width: 0;
    flex: 1;
}

.view-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
    color: #FFF;
    margin-bottom: 2px;
    word-break: break-word;
}

.view-subheading {
    font-size: 0.77rem;
    color: #94A3B8;
    line-height: 1.3;
    word-break: break-word;
}

.bocata-fast-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 14px;
}

@media (min-width: 500px) {
    .bocata-fast-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
}

.bocata-fast-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    word-break: break-word;
}

/* ==========================================================================
   PANTALLA 4: BOCADILLO AL GUSTO (Acordeón con Auto-Cierre)
   ========================================================================== */
.accordion-step {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.accordion-step.step-active {
    border-color: var(--accent-gold);
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.15);
    background: rgba(30, 41, 59, 0.95);
}

.accordion-step.step-collapsed .step-body,
.accordion-step.step-collapsed .step-header-active {
    display: none !important;
}

.accordion-step.step-collapsed .step-summary-bar {
    display: flex !important;
}

.step-summary-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.4);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.step-summary-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    color: #F8FAFC;
    font-weight: 700;
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.step-summary-check {
    color: #10B981;
    font-weight: 900;
    font-size: 1rem;
    flex-shrink: 0;
}

.step-summary-edit-btn {
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid var(--accent-gold);
    padding: 4px 9px;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}

.step-header-active {
    padding: 12px 14px;
    background: rgba(15, 23, 42, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.step-header-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.98rem;
    font-weight: 800;
    color: #FFF;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.step-body {
    padding: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.bocata-chip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 480px) {
    .bocata-chip-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 8px;
    }
}

.bocata-chip {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 8px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 58px;
    text-align: left;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    word-break: break-word;
}

.bocata-chip:active {
    transform: scale(0.96);
}

.bocata-chip.active {
    background: rgba(245, 158, 11, 0.2) !important;
    border-color: var(--accent-gold) !important;
}

.bocata-chip.active .bocata-chip-name {
    color: var(--accent-gold) !important;
    font-weight: 900;
}

/* ==========================================================================
   PANTALLA 5: MENÚ COMPLETO (Asistente en Pasos Fluidos)
   ========================================================================== */
.menu-step-card {
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.menu-step-card.completed {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.08);
}

.menu-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.menu-step-badge {
    font-size: 0.74rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    flex-shrink: 0;
    white-space: nowrap;
}

.menu-step-badge.pending {
    background: rgba(148, 163, 184, 0.15);
    color: #94A3B8;
}

.menu-step-badge.done {
    background: #10B981;
    color: #000;
}

.menu-options-grid,
#menuBocatasGrid,
#menuPatatasGrid,
#menuBebidasGrid,
#menuCafesGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 480px) {
    .menu-options-grid,
    #menuBocatasGrid,
    #menuPatatasGrid,
    #menuBebidasGrid,
    #menuCafesGrid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
    }
}

/* ==========================================================================
   MODAL "¿DÓNDE SE SIRVE?" (Barra y Mesas en Cuadros)
   ========================================================================== */
.modal-donde-sirve-card {
    max-width: 790px;
    width: 96%;
    max-height: 96vh;
    display: flex;
    flex-direction: column;
    padding: 12px 18px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
}

.btn-barra-huge {
    width: 100%;
    min-height: 56px;
    background: linear-gradient(135deg, #0284C7, #0369A1);
    border: 2px solid #38BDF8;
    color: #FFF;
    border-radius: 14px;
    font-size: 1.15rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s ease;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
    margin-bottom: 14px;
    box-sizing: border-box;
}

.btn-barra-huge.active {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    border-color: #FDE68A;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
    transform: scale(1.01);
}

.btn-barra-huge:active {
    transform: scale(0.98);
}

.table-tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
    gap: 8px;
    margin: 10px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.table-tile-btn {
    aspect-ratio: 1 / 1;
    min-height: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.8);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #FFF;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.15s ease;
    width: 100%;
    box-sizing: border-box;
}

.table-tile-btn:active {
    transform: scale(0.95);
}

.table-tile-btn.active {
    background: #F59E0B !important;
    border-color: #FFF !important;
    color: #000 !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

.service-selection-indicator {
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 800;
    font-size: 0.88rem;
    color: #FFF;
    box-sizing: border-box;
}

.btn-lanzar-mega {
    width: 100%;
    min-height: 52px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border: none;
    color: #FFF;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.btn-lanzar-mega:active {
    transform: scale(0.98);
}

/* ==========================================================================
   BARRA INFERIOR DE COMANDA Y CAJÓN DE PEDIDOS
   ========================================================================== */
.mobile-floating-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    z-index: 99;
}

.floating-cart-content {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    box-sizing: border-box;
    min-width: 0;
}

.floating-cart-info {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.floating-cart-total {
    font-size: 1.1rem;
    font-weight: 900;
    color: #10B981;
    white-space: nowrap;
}

.floating-cart-items-count {
    font-size: 0.76rem;
    color: #94A3B8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-floating-send {
    padding: 9px 15px;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    border: none;
    color: #000;
    border-radius: 10px;
    font-weight: 900;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
    flex-shrink: 0;
    white-space: nowrap;
}

/* Cart Drawer / Bottom Sheet */
.cart-drawer-card {
    max-width: 600px;
    width: 95%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    padding: 16px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.cart-items-scrollable {
    flex: 1;
    overflow-y: auto;
    max-height: 48vh;
    margin-bottom: 12px;
    padding-right: 4px;
}

/* Estilos para Tarjetas del Selector de Instalación como APP */
.pwa-choice-card {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    width: 100%;
    box-sizing: border-box;
}

.pwa-choice-card:hover {
    background: rgba(30, 41, 59, 0.95) !important;
    border-color: #10B981 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.pwa-choice-card:active {
    transform: scale(0.98);
}

#checkoutModal {
    z-index: 1100;
}


/* ========================================================
   UNIVERSAL COLOR EMOJI IMAGE SUPPORT (Twemoji)
   Garantiza que todos los iconos de comida y bebida carguen
   como imágenes SVG de alta definición en cualquier dispositivo
   ======================================================== */
img.emoji {
    height: 1.25em;
    width: 1.25em;
    margin: 0 .08em;
    vertical-align: -0.2em;
    display: inline-block;
    object-fit: contain;
}
.menu-select-card img.emoji {
    height: 1.8rem;
    width: 1.8rem;
    margin-bottom: 4px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.home-big-tile-icon img.emoji, .quick-item-icon img.emoji, .drink-tile-icon img.emoji {
    height: 2.2rem;
    width: 2.2rem;
    display: inline-block;
}
.kds-icon img.emoji {
    height: 1.4rem;
    width: 1.4rem;
    vertical-align: middle;
}
.batch-chip img.emoji, .order-ing-item img.emoji {
    height: 1.1em;
    width: 1.1em;
    vertical-align: -0.15em;
}
.cart-item-name img.emoji, .modal-title img.emoji, .menu-group-title img.emoji {
    height: 1.2em;
    width: 1.2em;
    vertical-align: -0.15em;
}

/* Cuadro individual de mesa (compatible con .table-tile y .table-tile-btn) */
.table-tile,
.table-tile-btn {
    aspect-ratio: 1 / 1;
    min-height: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    color: #F8FAFC;
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.table-tile:hover,
.table-tile-btn:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.table-tile:active,
.table-tile-btn:active {
    transform: scale(0.92);
}

/* EFECTO MARCADO ACTIVO / SELECCIONADO (VERDE ESMERALDA BRILLANTE) */
.table-tile.active,
.table-tile-btn.active {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    border: 2.5px solid #6EE7B7 !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.8), inset 0 1px 2px rgba(255, 255, 255, 0.5) !important;
    transform: scale(1.08) !important;
    z-index: 5;
    animation: tilePulseEffect 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes tilePulseEffect {
    0% { transform: scale(0.90); }
    50% { transform: scale(1.16); }
    100% { transform: scale(1.08); }
}

.table-tile .table-tile-sub,
.table-tile-btn .table-tile-sub {
    font-size: 0.58rem;
    font-weight: 800;
    color: #94A3B8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 2px;
    pointer-events: none;
}

.table-tile.active .table-tile-sub,
.table-tile-btn.active .table-tile-sub {
    color: #D1FAE5 !important;
}

.table-tile .table-tile-num,
.table-tile-btn .table-tile-num {
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
}

/* Mesa con comanda pendiente / ocupada */
.table-tile.has-order,
.table-tile-btn.has-order,
.table-tile.occupied,
.table-tile-btn.occupied {
    border-color: #F59E0B;
    background: rgba(245, 158, 11, 0.15);
}

.table-tile.has-order.active,
.table-tile-btn.has-order.active {
    background: linear-gradient(135deg, #10B981, #059669) !important;
    border-color: #FDE68A !important;
}

.table-tile .table-tile-badge,
.table-tile-btn .table-tile-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    font-size: 0.65rem;
    line-height: 1;
    pointer-events: none;
}
.service-selection-indicator.pulse-feedback {
    animation: indicatorFlash 0.35s ease-out;
}

@keyframes indicatorFlash {
    0% { transform: scale(0.98); border-color: #10B981; box-shadow: 0 0 14px rgba(16, 185, 129, 0.5); }
    50% { transform: scale(1.02); border-color: #34D399; box-shadow: 0 0 20px rgba(16, 185, 129, 0.7); }
    100% { transform: scale(1); }
}


/* ==========================================================================
   OPTIMIZED FULL-VIEW MODAL DÓNDE SE SIRVE (SIN SCROLL - 10 COLUMNAS)
   ========================================================================== */
.modal-donde-sirve-card {
    max-width: 790px !important;
    width: 96% !important;
    max-height: 94vh !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 12px 18px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
}

.btn-barra-huge {
    width: 100% !important;
    min-height: 42px !important;
    height: 42px !important;
    margin-bottom: 8px !important;
    font-size: 1.05rem !important;
    border-radius: 12px !important;
}

.table-tiles-grid {
    display: grid !important;
    grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin: 4px 0 8px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 2px !important;
    max-height: none !important;
    overflow: visible !important;
}

/* ==========================================================================
   AJUSTE RESPONSIVO MÓVIL PARA ¿DÓNDE SE SIRVE? (TODO VISIBLE SIN CORTES)
   ========================================================================== */
@media (max-width: 680px) {
    .modal-donde-sirve-card {
        padding: 10px 12px 12px 12px !important;
        max-height: 94vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .modal-donde-sirve-card .close-modal-btn {
        top: 8px !important;
        right: 12px !important;
        font-size: 1.4rem !important;
        padding: 4px !important;
        line-height: 1 !important;
    }

    .modal-donde-sirve-card h3 {
        font-size: 1.1rem !important;
    }

    .btn-barra-huge {
        min-height: 38px !important;
        height: 38px !important;
        margin-bottom: 6px !important;
        font-size: 0.95rem !important;
        border-radius: 10px !important;
    }

    .table-tiles-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: 4px !important;
        margin: 3px 0 6px 0 !important;
        padding: 1px !important;
        max-height: 255px !important;
        overflow-y: auto !important;
    }

    .table-tile,
    .table-tile-btn {
        min-height: 38px !important;
        height: 38px !important;
        border-radius: 8px !important;
        padding: 1px !important;
    }

    .table-tile .table-tile-sub,
    .table-tile-btn .table-tile-sub {
        font-size: 0.46rem !important;
        margin-bottom: 0px !important;
    }

    .table-tile .table-tile-num,
    .table-tile-btn .table-tile-num {
        font-size: 0.96rem !important;
    }

    .service-selection-indicator {
        padding: 4px 10px !important;
        margin-bottom: 5px !important;
        font-size: 0.78rem !important;
        border-radius: 8px !important;
    }

    .order-comments-box {
        margin-top: 4px !important;
        margin-bottom: 6px !important;
    }

    .order-comments-box label {
        font-size: 0.72rem !important;
        margin-bottom: 2px !important;
    }

    .order-comments-box textarea {
        height: 36px !important;
        min-height: 36px !important;
        padding: 6px 10px !important;
        font-size: 0.82rem !important;
        border-radius: 8px !important;
    }

    /* BOTONES DE ACCIÓN: EN UNA SOLA FILA PARA AHORRAR 50PX VERTICALES Y STICKY */
    .donde-sirve-actions {
        display: grid !important;
        grid-template-columns: 1fr 1.35fr !important;
        gap: 8px !important;
        margin-top: 6px !important;
        position: sticky !important;
        bottom: -12px !important;
        background: #0F172A !important;
        padding-top: 6px !important;
        padding-bottom: 2px !important;
        z-index: 10 !important;
        box-shadow: 0 -8px 16px rgba(15, 23, 42, 0.9) !important;
    }

    .btn-cobrar-mega {
        min-height: 44px !important;
        height: 44px !important;
        font-size: 0.92rem !important;
        padding: 0 6px !important;
        border-radius: 10px !important;
        white-space: nowrap !important;
    }

    .btn-lanzar-mega {
        min-height: 44px !important;
        height: 44px !important;
        font-size: 0.74rem !important;
        padding: 2px 6px !important;
        border-radius: 10px !important;
        white-space: normal !important;
        text-align: center !important;
        line-height: 1.15 !important;
        letter-spacing: -0.2px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
    }
}

.table-tile,
.table-tile-btn {
    aspect-ratio: auto !important;
    min-height: 46px !important;
    height: 48px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 10px !important;
    color: #F8FAFC !important;
    cursor: pointer !important;
    transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
    touch-action: manipulation !important;
    padding: 2px !important;
}

.table-tile:hover,
.table-tile-btn:hover {
    background: rgba(30, 41, 59, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    transform: translateY(-2px) !important;
}

.table-tile:active,
.table-tile-btn:active {
    transform: scale(0.92) !important;
}

.table-tile.active,
.table-tile-btn.active {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    border: 2px solid #6EE7B7 !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.8), inset 0 1px 2px rgba(255, 255, 255, 0.5) !important;
    transform: scale(1.06) !important;
    z-index: 5 !important;
}

.table-tile .table-tile-sub,
.table-tile-btn .table-tile-sub {
    font-size: 0.52rem !important;
    font-weight: 800 !important;
    color: #94A3B8 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    margin-bottom: 2px !important;
    pointer-events: none !important;
}

.table-tile.active .table-tile-sub,
.table-tile-btn.active .table-tile-sub {
    color: #D1FAE5 !important;
}

.table-tile .table-tile-num,
.table-tile-btn .table-tile-num {
    font-size: 1.15rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    pointer-events: none !important;
}

.service-selection-indicator {
    padding: 8px 14px !important;
    margin-bottom: 8px !important;
    font-size: 0.86rem !important;
    border-radius: 10px !important;
}

.btn-lanzar-mega {
    min-height: 48px !important;
    height: 48px !important;
    font-size: 1.12rem !important;
    border-radius: 12px !important;
}


/* ==========================================================================
   SWITCH TOGGLE & PRINTER SETTINGS STYLES
   ========================================================================== */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}
.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.switch-toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #334155;
    transition: .22s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 28px;
    border: 1.5px solid rgba(255,255,255,0.2);
}
.switch-toggle .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 2.5px;
    background-color: white;
    transition: .22s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.switch-toggle input:checked + .slider {
    background: linear-gradient(135deg, #10B981, #059669);
    border-color: #34D399;
    box-shadow: 0 0 12px rgba(16,185,129,0.5);
}
.switch-toggle input:checked + .slider:before {
    transform: translateX(23px);
}
.printer-toggle-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1.5px solid rgba(255,255,255,0.14);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}
.printer-toggle-card:hover {
    border-color: rgba(255,255,255,0.3);
    background: rgba(30, 41, 59, 0.9);
}


/* BOTON COBRAR EN MODAL DONDE SE SIRVE */
.btn-cobrar-mega {
    width: 100%;
    min-height: 48px;
    height: 48px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    border: none;
    color: #FFF;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s ease;
    text-transform: uppercase;
}
.btn-cobrar-mega:active {
    transform: scale(0.98);
}
.btn-cobrar-mega:hover {
    filter: brightness(1.08);
}
/* Optimización móvil para botones de acción en ¿Dónde se sirve? */
@media (max-width: 480px) {
    .donde-sirve-actions {
        grid-template-columns: 1fr 1.35fr !important;
        gap: 8px !important;
    }
}
