/* NDNS Carta — Cream cantina theme (matched con /static/public.css 2026-04-07) */

:root {
    /* Paleta ndns-* unificada — café espresso sobre crema hueso */
    --bg: #FBF6EC;
    --surface: #FFFFFF;
    --border: #E5D6B8;
    --accent: #C9881F;
    --accent2: #E0A12E;
    --text: #1F1410;
    --text2: #5B463A;
    --text3: #8E7A6D;
    --radius: 12px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 14px 20px;
    text-align: center;
}

.header-title {
    font-family: 'Fraunces', 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.04em;
}

.header-dot { color: var(--text3); }

/* Macro pills bar (Cantina | Lonchería | Promos | Comedia) — 2026-04-07
   site-header en public.css es height: 60px → top: 60px exacto. */
.macro-bar {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 10px 12px 10px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.macro-bar::-webkit-scrollbar { display: none; }
.macro-pill {
    appearance: none;
    flex-shrink: 0;
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text2);
    font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 8px 16px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}
.macro-pill:hover {
    border-color: var(--accent);
    color: var(--text);
}
.macro-pill--active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(201,136,31,0.28);
}

/* Search — corrido para acomodar macro-bar arriba */
.search-bar {
    position: fixed;
    top: 116px;
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--bg);
    padding: 8px 16px 8px;
}

.search-bar input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    font-size: 16px; /* iOS zoom-prevention: keep >=16px on all inputs */
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
    min-height: 44px;
}

.search-bar input::placeholder { color: var(--text3); }
.search-bar input:focus { border-color: var(--accent); }

/* Category Tabs — corrido para acomodar macro-bar */
.tabs {
    position: fixed;
    top: 160px;
    left: 0;
    right: 0;
    z-index: 98;
    background: var(--bg);
    display: flex;
    gap: 6px;
    padding: 6px 16px 10px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--border);
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
    flex-shrink: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.75rem;
    color: var(--text2);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab:hover { border-color: var(--accent); }

.tab.active {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    font-weight: 600;
}

.tab.active .tab-emoji { filter: none; }
.tab-emoji { font-size: 0.85rem; }

/* Main menu area — padding-top considera macro-bar(56)+search(44)+tabs(44)+gap = ~210 */
.menu {
    padding: 210px 16px 24px;
}

/* Category sections */
.category {
    margin-bottom: 32px;
}

.category-title {
    font-family: 'Fraunces', 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent2);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

/* Item cards */
.items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.item {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 12px 14px;
    position: relative;
    transition: opacity 0.2s;
}

.item-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.item-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
}

.item-price {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}
.price-dual {
    font-size: 0.78rem;
    font-weight: 500;
}

.item-desc {
    font-size: 0.8rem;
    color: var(--text2);
    margin-top: 4px;
    line-height: 1.4;
}

.item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(201, 136, 31, 0.12);
    color: #8a5a14;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Unavailable / Agotado */
.item--unavailable {
    opacity: 0.4;
}

.item--unavailable .item-name,
.item--unavailable .item-price {
    text-decoration: line-through;
    text-decoration-color: var(--text3);
}

.badge-agotado {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #F3D6D0;
    color: #B43326;
    padding: 2px 8px;
    border-radius: 8px;
}

/* Badges para items NUEVO y Recomendación de Isa (menu comedia) */
.badge-new, .badge-rec {
    display: inline-block;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 7px;
    border-radius: 100px;
    margin-left: 6px;
    vertical-align: middle;
    line-height: 1.4;
}
.badge-new {
    background: #d4a843;
    color: #2a1f00;
}
.badge-rec {
    background: rgba(180, 51, 38, 0.15);
    color: #B43326;
    border: 1px solid rgba(180, 51, 38, 0.3);
}

/* Hidden by search */
.item.hidden,
.category.hidden {
    display: none;
}

/* Footer */
.footer {
    text-align: center;
    padding: 32px 16px 48px;
    border-top: 1px solid var(--border);
}

.footer-name {
    font-family: 'Fraunces', 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 4px;
}

.footer-addr {
    font-size: 0.8rem;
    color: var(--text3);
    margin-bottom: 2px;
}

.footer-ig {
    font-size: 0.8rem;
    color: var(--text2);
}

.footer-hecho {
    font-size: 0.7rem;
    color: var(--text3);
    margin-top: 8px;
}

/* Header layout */
.header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.header-nav {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 6px;
}

.header-nav a {
    color: var(--text3);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.2s;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--accent);
    border-color: var(--accent);
}

/* Language switcher */
.lang-switcher { display: flex; gap: 4px; font-size: 0.75rem; }
.lang-switcher a { color: var(--text3); padding: 2px 6px; border-radius: 4px; text-decoration: none; transition: color 0.2s; }
.lang-switcher a.active { color: var(--accent); font-weight: 600; }
.lang-switcher a:hover { color: var(--text); }

/* Smooth transitions for search */
.category, .item {
    transition: opacity 0.15s ease;
}
