/* =========================================================
   Pelícanos - Menú Público
   Paleta derivada del logotipo y menús PDF originales
   ========================================================= */

:root {
    --cream: #F3E9CF;
    --cream-soft: #FAF3E0;
    --cream-dark: #E8DCBA;
    --teal: #2D7A6F;
    --teal-dark: #1F5850;
    --teal-light: #4A9E90;
    --gold: #C9A55B;
    --gold-dark: #A38338;
    --red-accent: #C4452C;
    --text: #2A2A28;
    --text-muted: #6B6358;
    --border: rgba(45, 122, 111, 0.18);
    --shadow-sm: 0 2px 6px rgba(45, 50, 40, 0.06);
    --shadow-md: 0 6px 18px rgba(45, 50, 40, 0.08);
    --shadow-lg: 0 12px 40px rgba(45, 50, 40, 0.12);
    --shadow-xl: 0 24px 60px rgba(45, 50, 40, 0.25);
    --radius: 10px;
    --radius-lg: 18px;
    --radius-pill: 999px;

    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--cream);
    background-image:
        radial-gradient(circle at 20% 10%, rgba(201, 165, 91, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(45, 122, 111, 0.06) 0%, transparent 40%);
    min-height: 100vh;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* ============= HEADER ============= */
.site-header {
    background: linear-gradient(180deg, var(--cream-soft) 0%, var(--cream) 100%);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-color: rgba(250, 243, 224, 0.94);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.brand { display: flex; align-items: center; }
.brand-logo {
    height: 68px;
    width: auto;
    display: block;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-switch {
    display: inline-flex;
    background: var(--cream-dark);
    border-radius: var(--radius-pill);
    padding: 4px;
    border: 1px solid var(--border);
}
.lang-btn {
    border: none;
    background: transparent;
    padding: 0.4rem 0.9rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.08em;
}
.lang-btn[aria-pressed="true"] {
    background: var(--teal);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* ============= FILTERS BAR ============= */
.filters-bar[hidden] { display: none !important; }
.filters-bar {
    background: var(--cream-soft);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
}
.filters-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.filters-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}
.filters-chips {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    flex: 1;
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-sans);
    font-weight: 700;
}
.filter-chip:hover {
    border-color: var(--teal);
    color: var(--teal);
}
.filter-chip.active {
    background: var(--red-accent);
    color: white;
    border-color: var(--red-accent);
}
.filter-chip .icon { font-size: 0.95rem; }
.filters-clear {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    cursor: pointer;
    text-decoration: underline;
    font-family: var(--font-sans);
    padding: 0.2rem 0.5rem;
}
.filters-clear:hover { color: var(--red-accent); }

/* ============= TABS ============= */
.menu-tabs {
    background: var(--cream-soft);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 92px;
    z-index: 40;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.menu-tabs::-webkit-scrollbar { display: none; }
.tabs-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    gap: 0.75rem;
    min-width: max-content;
}
.tab-btn {
    background: transparent;
    border: 1.5px solid var(--border);
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.tab-btn:hover { background: var(--cream-dark); border-color: var(--teal-light); }
.tab-btn.active {
    background: var(--teal);
    color: white;
    border-color: var(--teal);
    box-shadow: var(--shadow-sm);
}
.tab-btn.inactive { opacity: 0.55; }
.tab-btn .tab-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    display: inline-block;
    background: #c44;
}
.tab-btn.active .tab-dot,
.tab-btn.tab-available .tab-dot { background: #4BA85A; }
.tab-btn.inactive .tab-dot { background: #c44; }

/* ============= MAIN ============= */
.menu-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.25rem 6rem;
}
.loading { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }
.spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--cream-dark);
    border-top-color: var(--teal);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============= MENU HEADER ============= */
.menu-header { text-align: center; margin-bottom: 2.5rem; padding: 1.5rem 1rem; }
.menu-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--teal);
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.menu-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
}
.menu-status.active { background: rgba(75, 168, 90, 0.15); color: #2E7A3C; }
.menu-status.inactive { background: rgba(196, 69, 44, 0.12); color: #A13820; }
.menu-status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px currentColor;
}
.menu-status.active .menu-status-dot { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(75, 168, 90, 0.4); }
    50%      { box-shadow: 0 0 0 6px rgba(75, 168, 90, 0); }
}
.menu-hours-info { margin-top: 0.75rem; font-size: 0.85rem; color: var(--text-muted); }

/* ============= SEARCH ============= */
.search-bar { position: relative; max-width: 480px; margin: 0 auto 2rem; }
.search-bar input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.6rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    background: var(--cream-soft);
    color: var(--text);
    transition: all 0.2s ease;
}
.search-bar input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(45, 122, 111, 0.12);
}
.search-bar::before {
    content: '';
    position: absolute;
    left: 1rem; top: 50%;
    transform: translateY(-50%);
    width: 16px; height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236B6358' stroke-width='2'%3E%3Ccircle cx='9' cy='9' r='6'/%3E%3Cpath d='m14 14 4 4'/%3E%3C/svg%3E") no-repeat center / contain;
    pointer-events: none;
}

/* ============= CATEGORIES ============= */
.category { margin-bottom: 3rem; }
.category-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--teal);
    margin-bottom: 1.5rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--gold);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
}
.category-title::before {
    content: '';
    flex: 0 0 auto;
    width: 6px; height: 22px;
    background: var(--gold);
    border-radius: 2px;
}

/* ============= ITEMS GRID ============= */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.item-card {
    background: var(--cream-soft);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem 1.25rem;
    transition: all 0.25s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.item-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal-light);
}
.item-card.in-selection {
    border-color: var(--teal);
    background: linear-gradient(180deg, var(--cream-soft) 0%, rgba(45, 122, 111, 0.04) 100%);
    box-shadow: 0 4px 14px rgba(45, 122, 111, 0.12);
}
.item-card.in-selection::before {
    content: '✓ ' attr(data-selected-label);
    position: absolute;
    top: -10px;
    right: 14px;
    background: var(--teal);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.22rem 0.65rem;
    border-radius: var(--radius-pill);
    letter-spacing: 0.03em;
    box-shadow: var(--shadow-sm);
}

.item-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}
.item-name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--teal-dark);
    font-weight: 700;
    line-height: 1.2;
    flex: 1;
}
.item-price {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold-dark);
    white-space: nowrap;
}
.item-desc { color: var(--text-muted); font-size: 0.88rem; line-height: 1.5; }
.item-allergens { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.3rem; }
.allergen-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--cream-dark);
    padding: 0.18rem 0.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.allergen-chip .icon { font-size: 0.9rem; display: inline-flex; align-items: center; }
.allergen-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}
.allergen-legend-item .icon { font-size: 1.15rem; display: inline-flex; align-items: center; }
.allergen-legend-item .allergen-icon-img {
    width: 22px;
    height: 22px;
}

/* ============= ADD BUTTON / QUANTITY ============= */
.item-action {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.btn-add {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: var(--teal);
    color: white;
    border: none;
    padding: 0.65rem 1rem;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-add:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-add:active { transform: scale(0.97); }
.btn-add .plus {
    font-size: 1.2rem;
    line-height: 1;
    font-weight: 300;
}

.qty-control {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    background: white;
    border: 1.5px solid var(--teal);
    border-radius: var(--radius);
    padding: 0.25rem;
}
.qty-btn {
    width: 34px; height: 34px;
    border: none;
    background: transparent;
    color: var(--teal);
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.qty-btn:hover { background: var(--cream-dark); }
.qty-btn.plus { background: var(--teal); color: white; }
.qty-btn.plus:hover { background: var(--teal-dark); }
.qty-num {
    font-weight: 700;
    color: var(--teal-dark);
    font-size: 1rem;
    min-width: 24px;
    text-align: center;
}

.btn-note {
    background: transparent;
    color: var(--text-muted);
    border: 1.5px dashed var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 0.65rem;
    font-size: 0.78rem;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.15s;
    white-space: nowrap;
}
.btn-note:hover {
    border-color: var(--teal);
    color: var(--teal);
    border-style: solid;
}
.btn-note.has-note {
    border-style: solid;
    border-color: var(--gold);
    color: var(--gold-dark);
    background: rgba(201, 165, 91, 0.08);
}

/* ============= NO RESULTS ============= */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ============= ALLERGEN LEGEND ============= */
.allergen-legend[hidden] { display: none !important; }
.allergen-legend {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 1.75rem 1.25rem;
    background: var(--cream-soft);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.allergen-legend h3 {
    font-family: var(--font-serif);
    color: var(--teal);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
}
.allergen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.allergen-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--cream);
    border-radius: var(--radius);
    font-size: 0.85rem;
}
.allergen-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border);
}

/* ============= FOOTER ============= */
.site-footer {
    background: var(--teal-dark);
    color: var(--cream);
    padding: 2rem 1.25rem 4.5rem;
    text-align: center;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}
.footer-brand {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    letter-spacing: 0.03em;
}
.footer-meta { font-size: 0.85rem; opacity: 0.75; }
.footer-admin a {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.8rem;
    opacity: 0.6;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.footer-admin a:hover { opacity: 1; }

/* ============================================================
   MI SELECCIÓN - Burbuja flotante
   ============================================================ */
.selection-fab[hidden] { display: none !important; }
.selection-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.2rem 0.85rem 1rem;
    background: var(--teal);
    color: white;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    transform-origin: bottom right;
    animation: fabIn 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes fabIn {
    from { transform: scale(0.3); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.selection-fab:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 16px 50px rgba(45, 122, 111, 0.4);
}
.selection-fab.pulse { animation: fabPulse 0.45s ease; }
@keyframes fabPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.12); }
}
.fab-icon { color: white; flex-shrink: 0; }
.fab-badge {
    background: var(--gold);
    color: var(--teal-dark);
    min-width: 22px;
    height: 22px;
    border-radius: var(--radius-pill);
    padding: 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.1rem;
}
.fab-label { letter-spacing: 0.02em; }

/* ============================================================
   MI SELECCIÓN - Panel lateral
   ============================================================ */
.selection-overlay[hidden] { display: none !important; }
.selection-overlay {
    position: fixed; inset: 0;
    background: rgba(30, 35, 30, 0.5);
    z-index: 70;
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: blur(2px);
}
.selection-overlay.visible { opacity: 1; }

.selection-panel[hidden] { display: none !important; }
.selection-panel {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(440px, 100%);
    background: var(--cream-soft);
    z-index: 80;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.05);
}
.selection-panel.visible { transform: translateX(0); }

.selection-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--cream);
    flex-shrink: 0;
}
.selection-head h2 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--teal);
    font-weight: 700;
}
.selection-close {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--cream-dark);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}
.selection-close:hover { background: var(--red-accent); color: white; }

.selection-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
}
.selection-body::-webkit-scrollbar { width: 6px; }
.selection-body::-webkit-scrollbar-thumb { background: var(--cream-dark); border-radius: 3px; }

.selection-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}
.selection-empty svg {
    width: 60px; height: 60px;
    color: var(--cream-dark);
    margin-bottom: 1rem;
}
.selection-empty h3 {
    font-family: var(--font-serif);
    color: var(--teal);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.selection-empty p { font-size: 0.88rem; }

.selection-group {
    margin-bottom: 1.25rem;
}
.selection-group-title {
    font-size: 0.72rem;
    color: var(--gold-dark);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.selection-group-count {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0;
    text-transform: none;
}

.selection-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.selection-item-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}
.selection-item-info { flex: 1; min-width: 0; }
.selection-item-name {
    font-weight: 700;
    color: var(--teal-dark);
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
    line-height: 1.3;
}
.selection-item-price {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.selection-item-subtotal {
    font-weight: 700;
    color: var(--gold-dark);
    font-size: 0.95rem;
    white-space: nowrap;
}
.selection-item-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
    padding: 0.4rem 0.6rem;
    background: var(--cream-soft);
    border-radius: 6px;
    border-left: 3px solid var(--gold);
}
.selection-item-note textarea {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    resize: none;
    background: var(--cream-soft);
    font-style: normal;
}
.selection-item-note textarea:focus {
    outline: none;
    border-color: var(--teal);
    background: white;
}

.selection-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.selection-qty {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--cream-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 2px;
}
.selection-qty button {
    width: 28px; height: 28px;
    border: none;
    border-radius: 50%;
    background: white;
    color: var(--teal);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}
.selection-qty button:hover { background: var(--cream-dark); }
.selection-qty button.plus { background: var(--teal); color: white; }
.selection-qty-num { min-width: 20px; text-align: center; font-weight: 700; color: var(--teal-dark); font-size: 0.9rem; }

.selection-item-actions {
    display: flex;
    gap: 0.5rem;
}
.btn-link-small {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    cursor: pointer;
    padding: 0.25rem 0.4rem;
    text-decoration: underline;
    font-family: var(--font-sans);
}
.btn-link-small:hover { color: var(--teal); }
.btn-link-small.danger:hover { color: var(--red-accent); }

.selection-foot[hidden] { display: none !important; }
.selection-foot {
    flex-shrink: 0;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    background: var(--cream);
}
.selection-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.85rem;
}
.selection-total span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 700;
}
.selection-total strong {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--gold-dark);
    font-weight: 700;
}
.selection-actions { display: flex; gap: 0.5rem; }
.btn-ghost {
    flex-shrink: 0;
    background: transparent;
    color: var(--text-muted);
    border: 1.5px solid var(--border);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--red-accent); color: var(--red-accent); }
.btn-waiter {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--teal);
    color: white;
    border: none;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.btn-waiter:hover { background: var(--teal-dark); transform: translateY(-1px); }

/* ============================================================
   MODO MESERO - Vista pantalla completa
   ============================================================ */
.waiter-view[hidden] { display: none !important; }
.waiter-view {
    position: fixed;
    inset: 0;
    background: var(--cream);
    z-index: 100;
    display: flex;
    flex-direction: column;
    animation: waiterIn 0.3s ease;
}
@keyframes waiterIn {
    from { opacity: 0; transform: scale(0.98); }
    to   { opacity: 1; transform: scale(1); }
}
.waiter-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1.5px solid var(--border);
    background: var(--cream-soft);
    flex-shrink: 0;
}
.waiter-logo img { height: 60px; width: auto; display: block; }
.waiter-close {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--cream-dark);
    color: var(--text);
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.2s;
}
.waiter-close:hover { background: var(--red-accent); color: white; }

.waiter-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 1.5rem 3rem;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}
.waiter-scroll h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--teal);
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.waiter-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: clamp(1rem, 2vw, 1.15rem);
    margin-bottom: 2.5rem;
    font-style: italic;
}

.waiter-group {
    margin-bottom: 2.5rem;
}
.waiter-group-title {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--gold-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold);
}
.waiter-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px dashed var(--border);
    align-items: baseline;
}
.waiter-qty-circle {
    min-width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--teal);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    align-self: center;
    flex-shrink: 0;
    padding: 0 0.5rem;
}
.waiter-item-body { min-width: 0; }
.waiter-item-name {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.8vw, 1.7rem);
    color: var(--teal-dark);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.15rem;
}
.waiter-item-note {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--red-accent);
    font-style: italic;
    margin-top: 0.35rem;
    padding-left: 0.6rem;
    border-left: 3px solid var(--gold);
}
.waiter-item-price {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2.4vw, 1.4rem);
    font-weight: 700;
    color: var(--gold-dark);
    white-space: nowrap;
}
.waiter-total {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--teal);
    border-radius: var(--radius-lg);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}
.waiter-total-label {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 0.02em;
}
.waiter-total-amount {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 700;
}

/* ============= RESPONSIVE ============= */
@media (max-width: 640px) {
    .header-inner { padding: 0.55rem 1rem; }
    .brand-logo { height: 52px; }
    .menu-tabs { top: 76px; }
    .tabs-inner { padding: 0.6rem 1rem; gap: 0.5rem; }
    .tab-btn { padding: 0.5rem 0.85rem; font-size: 0.82rem; }
    .menu-main { padding: 1.25rem 1rem 6rem; }
    .menu-header { margin-bottom: 1.5rem; padding: 1rem 0; }
    .items-grid { grid-template-columns: 1fr; gap: 0.85rem; }
    .item-card { padding: 1rem; }
    .category-title { font-size: 1.3rem; }

    .selection-fab {
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem 1rem 0.75rem 0.85rem;
        font-size: 0.9rem;
    }
    .fab-label { display: none; }
    .selection-fab.has-items .fab-label { display: inline; }

    .filters-inner { padding: 0 1rem; }
    .filters-label { font-size: 0.7rem; }

    .waiter-head { padding: 0.75rem 1rem; }
    .waiter-logo img { height: 48px; }
    .waiter-close { width: 42px; height: 42px; }
    .waiter-scroll { padding: 1.5rem 1.25rem 2.5rem; }
}

@media (max-width: 380px) {
    .brand-logo { height: 46px; }
}

/* ============= PRINT ============= */
@media print {
    .site-header, .menu-tabs, .search-bar, .site-footer,
    .selection-fab, .selection-panel, .selection-overlay,
    .filters-bar, .item-action {
        display: none !important;
    }
    body { background: white; color: black; }
    .item-card { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
}
