:root {
        color-scheme: light dark;
        --bg: #faf6f0;
        --surface: #ffffff;
        --surface-2: #f3eadd;
        --ink: #2b1d14;
        --ink-2: #6f5b4a;
        --line: #e7dac8;
        --accent: #b23a17;
        --accent-ink: #ffffff;
        --accent-soft: #fbe9e0;
        --wa: #1da851;
        --wa-dark: #157a3c;
        --gold: #c07f13;
        --gold-soft: #faf0d7;
        --shadow: 0 10px 30px rgba(64, 34, 12, 0.13);
        --radius: 16px;
      }
      @media (prefers-color-scheme: dark) {
        :root {
          --bg: #171008;
          --surface: #241a10;
          --surface-2: #2e2115;
          --ink: #f5ead9;
          --ink-2: #c4ab90;
          --line: #40301e;
          --accent: #e2603a;
          --accent-soft: #3d2115;
          --gold-soft: #382b10;
          --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
        }
      }
      html { scroll-behavior: smooth; }
      body {
        margin: 0;
        background: var(--bg);
        color: var(--ink);
        font-family: "Public Sans", system-ui, sans-serif;
        font-size: 16px;
        line-height: 1.5;
        -webkit-font-smoothing: antialiased;
      }
      h1, h2, h3, p, ul, figure { margin: 0; }
      ul { padding: 0; list-style: none; }
      button { font: inherit; cursor: pointer; }
      img { display: block; max-width: 100%; }
      .wrap { max-width: 1060px; margin: 0 auto; padding: 0 16px; }

      /* ---------- Header ---------- */
      .topbar {
        position: sticky; top: 0; z-index: 40;
        background: color-mix(in srgb, var(--bg) 88%, transparent);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--line);
      }
      .topbar-in { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
      .brand { display: flex; align-items: center; gap: 10px; min-width: 0; background: none; border: 0; padding: 2px 0; color: inherit; text-align: left; }
      .brand-text { display: block; min-width: 0; }
      .brand-chev { flex: none; color: var(--ink-2); transition: transform 0.25s; }
      .brand[aria-expanded="true"] .brand-chev { transform: rotate(180deg); }
      .brand-mark {
        width: 38px; height: 38px; flex: none; border-radius: 50%;
        background: var(--accent); color: #fff;
        display: grid; place-items: center;
        font-family: "Lora", serif; font-weight: 700; font-size: 19px;
      }
      .brand-name { display: block; font-family: "Lora", serif; font-weight: 700; font-size: 21px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
      .brand-sub { font-size: 12px; color: var(--ink-2); }
      .topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
      .status-pill {
        display: inline-flex; align-items: center; gap: 7px;
        font-size: 12.5px; font-weight: 600;
        padding: 6px 11px; border-radius: 999px;
        background: var(--surface); border: 1px solid var(--line); white-space: nowrap;
      }
      .status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); flex: none; }
      .status-pill.closed .status-dot, .status-inline.closed .status-dot { background: var(--accent); }
      .status-inline { display: none; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
      @media (max-width: 640px) {
        .status-pill { display: none; }
        .brand-sub { display: none; }
        .status-inline { display: inline-flex; }
        .brand-name { font-size: 18.5px; }
      }

      /* ---------- Hero ---------- */
      .hero { padding: 14px 0 2px; }
      .hero-card {
        position: relative; border-radius: 22px; overflow: hidden;
        min-height: 248px; display: flex; align-items: flex-end;
        box-shadow: var(--shadow);
      }
      .hero-card img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
      .hero-card::after {
        content: ""; position: absolute; inset: 0;
        background: linear-gradient(to top, rgba(24, 10, 2, 0.86) 0%, rgba(24, 10, 2, 0.42) 52%, rgba(24, 10, 2, 0.05) 100%);
      }
      .hero-content { position: relative; z-index: 1; padding: 26px 22px; color: #fff; max-width: 560px; }
      .hero-tag {
        display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
        background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.35);
        padding: 5px 11px; border-radius: 999px; margin-bottom: 12px;
      }
      .hero-content h1 { font-family: "Lora", serif; font-size: clamp(34px, 8.5vw, 54px); line-height: 1.05; font-weight: 700; }
      .hero-content h1 em { font-style: italic; color: #ffc98a; }
      .hero-content p { margin-top: 10px; font-size: 15.5px; color: rgba(255,255,255,0.88); max-width: 44ch; }
      .hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
      .btn {
        display: inline-flex; align-items: center; gap: 8px; border-radius: 999px;
        padding: 12px 20px; font-weight: 700; font-size: 15px; border: 0; text-decoration: none;
      }
      .btn-wa { background: var(--wa); color: #fff; }
      .btn-wa:hover { background: var(--wa-dark); }
      .btn-ghost { background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.45); }

      /* ---------- Panel desplegable: horarios y ubicación ---------- */
      .info-panel {
        display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease;
        background: var(--surface); border-bottom: 1px solid transparent;
      }
      .info-panel.open { grid-template-rows: 1fr; border-bottom-color: var(--line); }
      .panel-clip { overflow: hidden; min-height: 0; }
      .panel-in { padding-top: 16px; padding-bottom: 18px; }
      .panel-grid { display: grid; gap: 18px; }
      @media (min-width: 760px) { .panel-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
      .panel-card h3 { font-family: "Lora", serif; font-size: 17px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
      .panel-card h3 svg { color: var(--accent); flex: none; }
      .panel-card p { font-size: 14px; color: var(--ink-2); }
      .panel-card p b { color: var(--ink); }
      .panel-card .stack { display: grid; gap: 10px; }
      .today-line { font-size: 13.5px; margin-bottom: 6px; }
      .today-line b { color: var(--accent); }
      .maps-link {
        display: inline-flex; align-items: center; gap: 7px; justify-self: start;
        background: var(--accent); color: #fff; text-decoration: none;
        font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 999px;
      }
      .maps-link:active { transform: scale(0.98); }

      /* ---------- Promos ---------- */
      .section-head { display: flex; align-items: baseline; gap: 12px; margin: 30px 0 14px; }
      .section-head h2 { font-family: "Lora", serif; font-size: 24px; font-weight: 700; }
      .section-head .rule { flex: 1; border-top: 2px dotted var(--line); transform: translateY(-4px); }
      .promo-grid { display: grid; gap: 12px; }
      @media (min-width: 760px) { .promo-grid { grid-template-columns: repeat(3, 1fr); } }
      .promo {
        border-radius: var(--radius); padding: 18px; position: relative; overflow: hidden;
        background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
      }
      .promo .promo-tag {
        display: inline-block; background: var(--gold); color: #fff; font-size: 11px; font-weight: 800;
        letter-spacing: 0.07em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; margin-bottom: 10px;
      }
      .promo h3 { font-family: "Lora", serif; font-size: 19px; line-height: 1.2; }
      .promo p { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
      .promo .promo-action { margin-top: 13px; }
      .btn-small {
        display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px;
        background: var(--ink); color: var(--bg); padding: 8px 14px; font-size: 13px; font-weight: 700;
      }

      /* ---------- Category nav ---------- */
      .catnav {
        position: sticky; top: 67px; z-index: 30; margin: 20px -16px 0; padding: 10px 16px;
        background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--line);
      }
      .catnav-in { display: flex; gap: 8px; align-items: center; }
      .chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; padding-bottom: 2px; }
      .chips::-webkit-scrollbar { display: none; }
      .chip {
        flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
        border-radius: 999px; padding: 8px 15px; font-size: 14px; font-weight: 600;
      }
      .chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
      .search-box { position: relative; flex: none; }
      .search-box input {
        width: 148px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
        border-radius: 999px; padding: 8px 12px 8px 33px; font: inherit; font-size: 14px;
      }
      .search-box svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-2); }
      @media (max-width: 560px) { .search-box input { width: 104px; } }

      /* ---------- Menu ---------- */
      .menu-section { scroll-margin-top: 140px; padding-top: 22px; }
      .menu-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
      .menu-section h2 { font-family: "Lora", serif; font-size: 22px; font-weight: 700; margin-bottom: 4px; }
      .menu-section .cat-desc { font-size: 13.5px; color: var(--ink-2); }
      .car-btns { display: flex; gap: 6px; flex: none; padding-bottom: 2px; }
      .car-btn {
        width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
        background: var(--surface); color: var(--ink); display: grid; place-items: center;
      }
      .car-btn:active { background: var(--surface-2); }
      .items {
        display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
        margin: 0 -16px; padding: 2px 16px 12px; scrollbar-width: none;
      }
      .items::-webkit-scrollbar { display: none; }
      .item {
        background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
        overflow: hidden; display: flex; flex-direction: column;
        flex: 0 0 min(74vw, 248px); scroll-snap-align: start;
      }
      @media (min-width: 760px) { .item { flex-basis: 264px; } }
      .item figure { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
      .item figure img { width: 100%; height: 100%; object-fit: cover; }
      .item-body { padding: 14px 15px 15px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
      .item-top { display: flex; align-items: flex-start; gap: 8px; }
      .item h3 { font-size: 16.5px; font-weight: 700; line-height: 1.25; flex: 1; }
      .badge-pop {
        flex: none; font-size: 10.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
        background: var(--accent-soft); color: var(--accent); padding: 3px 8px; border-radius: 6px; margin-top: 2px;
      }
      .item .desc { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; flex: 1; }
      .item-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }
      .price { font-size: 17px; font-weight: 800; }
      .price small { font-size: 12px; font-weight: 600; color: var(--ink-2); }
      .add-btn {
        display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px;
        background: var(--accent); color: #fff; padding: 9px 16px; font-weight: 700; font-size: 14px;
      }
      .add-btn:active { transform: scale(0.97); }
      .stepper {
        display: inline-flex; align-items: center; gap: 2px; border-radius: 999px;
        background: var(--accent); color: #fff; padding: 3px;
      }
      .stepper button {
        width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.18);
        color: #fff; font-size: 17px; font-weight: 700; display: grid; place-items: center; line-height: 1;
      }
      .stepper .qty { min-width: 26px; text-align: center; font-weight: 800; font-size: 14.5px; }
      .no-results { display: none; text-align: center; color: var(--ink-2); padding: 34px 0 6px; font-size: 15px; }

      /* ---------- Hours (dentro del panel desplegable) ---------- */
      .hours li { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
      .hours li:last-child { border-bottom: 0; }
      .hours li.today { font-weight: 800; color: var(--accent); }

      footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 22px 0 110px; }
      footer .foot-in { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: 13px; color: var(--ink-2); }
      footer a { color: var(--accent); font-weight: 600; text-decoration: none; }
      .demo-note { width: 100%; font-size: 12px; color: var(--ink-2); opacity: 0.85; }

      /* ---------- Floating cart bar (mobile) ---------- */
      .cart-bar {
        position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45;
        display: none; align-items: center; gap: 12px;
        background: var(--ink); color: var(--bg); border: 0; border-radius: 16px;
        padding: 14px 18px; box-shadow: var(--shadow); font-size: 15px; text-align: left; width: calc(100% - 24px);
      }
      .cart-bar.show { display: flex; }
      .cart-bar b { font-size: 16px; }
      .cart-bar .go { margin-left: auto; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
      @media (min-width: 760px) { .cart-bar { left: auto; width: 340px; } }

      /* ---------- Cart drawer ---------- */
      .overlay {
        position: fixed; inset: 0; background: rgba(20, 8, 0, 0.55); z-index: 50;
        opacity: 0; pointer-events: none; transition: opacity 0.2s;
      }
      .overlay.open { opacity: 1; pointer-events: auto; }
      .drawer {
        position: fixed; z-index: 51; background: var(--bg); display: flex; flex-direction: column;
        right: 0; top: 0; bottom: 0; width: min(430px, 100%);
        transform: translateX(105%); transition: transform 0.25s ease;
        box-shadow: var(--shadow);
      }
      @media (max-width: 560px) {
        .drawer { top: auto; left: 0; right: 0; width: 100%; max-height: 92dvh; border-radius: 20px 20px 0 0; transform: translateY(105%); }
        .drawer.open { transform: translateY(0); }
      }
      @media (min-width: 561px) { .drawer.open { transform: translateX(0); } }
      .drawer-head {
        display: flex; align-items: center; gap: 10px; padding: 16px 18px;
        border-bottom: 1px solid var(--line);
      }
      .drawer-head h2 { font-family: "Lora", serif; font-size: 20px; flex: 1; }
      .close-btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
      .drawer-body { overflow-y: auto; padding: 16px 18px; flex: 1; }
      .empty-cart { text-align: center; color: var(--ink-2); padding: 36px 10px; font-size: 15px; }
      .cart-line { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
      .cart-line .cl-info { flex: 1; min-width: 0; }
      .cart-line .cl-name { font-weight: 700; font-size: 14.5px; }
      .cart-line .cl-unit { font-size: 12.5px; color: var(--ink-2); }
      .cart-line .cl-total { font-weight: 800; font-size: 14.5px; min-width: 62px; text-align: right; }
      .stepper.sm { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
      .stepper.sm button { background: var(--surface); color: var(--ink); width: 26px; height: 26px; font-size: 15px; }
      .stepper.sm .qty { color: var(--ink); }
      .fulfil { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0 6px; }
      .fulfil button {
        border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
        border-radius: 12px; padding: 11px 8px; font-weight: 700; font-size: 14px;
        display: flex; align-items: center; justify-content: center; gap: 7px;
      }
      .fulfil button.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
      .field { margin-top: 12px; }
      .field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
      .field input, .field textarea {
        width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px;
        background: var(--surface); color: var(--ink); padding: 10px 12px; font: inherit; font-size: 14.5px;
      }
      .field textarea { resize: vertical; min-height: 56px; }
      .totals { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 6px; font-size: 14.5px; }
      .totals .row { display: flex; justify-content: space-between; }
      .totals .row.grand { font-size: 17px; font-weight: 800; }
      .totals .free { color: var(--wa-dark); font-weight: 700; }
      .free-ship-note { font-size: 12.5px; color: var(--ink-2); }
      .drawer-foot { padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
      .send-btn {
        width: 100%; display: flex; align-items: center; justify-content: center; gap: 9px;
        background: var(--wa); color: #fff; border: 0; border-radius: 14px; padding: 15px;
        font-size: 16px; font-weight: 800;
      }
      .send-btn:disabled { opacity: 0.45; cursor: not-allowed; }
      .send-hint { text-align: center; font-size: 12px; color: var(--ink-2); margin-top: 8px; }
      @media (prefers-reduced-motion: reduce) {
        html { scroll-behavior: auto; }
        .drawer, .overlay, .info-panel, .brand-chev { transition: none; }
        .items { scroll-behavior: auto; }
      }
