/* Gattopardo · carta con pedidos
   Sistema: carbón de la marca como fondo, crema de la marca para texto y botones principales,
   cobre de la madera para precios, verde solo para «agregado». Lora para títulos, Poppins para el resto.
   Forma: fotos y marcadores con esquinas de 14px; controles en píldora. */

@font-face { font-family: "Lora"; src: url(fonts/lora-latin-wght-normal.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Lora"; src: url(fonts/lora-latin-wght-italic.woff2) format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(fonts/poppins-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(fonts/poppins-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(fonts/poppins-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #12171b;
  --bg-deep: #0c1013;
  --surface: #1b2126;
  --surface-2: #242c33;
  --fg: #e5e3da;
  --muted: rgb(229 227 218 / .7);
  --faint: rgb(229 227 218 / .5);
  --line: rgb(229 227 218 / .12);
  --copper: #d6a06a;
  --green: #2f7a53;
  --wine: #b23a4a;
  --serif: "Lora", Georgia, serif;
  --sans: "Poppins", system-ui, sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --r: 14px;
  --gutter: 18px;
  --max: 1080px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1rem/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg, picture { display: block; max-width: 100%; }
picture img { width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, fieldset, legend { margin: 0; padding: 0; border: 0; }
s { text-decoration-thickness: 1.5px; }
.ic { width: 20px; height: 20px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }
[hidden] { display: none !important; }
.bs { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ph-note { font: 400 .8125rem/1.3 var(--sans); color: var(--faint); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; transition: background-color 180ms ease, scale 140ms var(--ease); }
.btn:active { scale: .97; }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-line { background: transparent; color: var(--fg); border: 1.5px solid rgb(229 227 218 / .45); }
.btn-block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #fffdf5; }
  .btn-line:hover { background: rgb(229 227 218 / .1); }
}

/* ---------- Cabecera ---------- */
.hd { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; height: 60px; padding: 0 var(--gutter); padding-top: env(safe-area-inset-top); background: var(--bg-deep); color: var(--fg); border-bottom: 1px solid var(--line); }
.hd-brand { margin-right: auto; }
.hd-brand .wordmark { width: 118px; height: auto; color: var(--fg); }
.hd-back { display: grid; place-items: center; width: 44px; height: 44px; margin-left: -10px; border-radius: 999px; }
.hd-search { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgb(229 227 218 / .3); border-radius: 999px; background: none; }
.hd-reserve { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border: 1px solid rgb(229 227 218 / .3); border-radius: 999px; text-decoration: none; font-size: .9rem; font-weight: 500; }
.hd-cart { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--fg); color: var(--bg); }
.hd-cart .ic { width: 22px; height: 22px; }
.hd-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--green); color: #fff; font-size: .75rem; font-weight: 600; line-height: 20px; text-align: center; }
@media (max-width: 420px) { .hd-reserve span { display: none; } .hd-reserve { width: 44px; padding: 0; justify-content: center; } }

/* ---------- Inicio ---------- */
.hero { position: relative; isolation: isolate; min-height: 74svh; display: grid; align-items: end; color: var(--fg); }
.hero-img { position: absolute; inset: 0; z-index: -2; }
.hero-img img { object-position: 50% 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(18 23 27 / .5) 0%, rgb(18 23 27 / .1) 30%, rgb(18 23 27 / .8) 72%, var(--bg) 100%); }
.hero-in { display: grid; justify-items: center; gap: 12px; padding: 40px var(--gutter) 28px; text-align: center; }
.hero-in .ventana { width: 40px; height: auto; }
.hero h1 { line-height: 1; }
.hero h1 .wordmark { width: min(72vw, 320px); height: auto; }
.hero-sub { font: italic 400 1.05rem/1.3 var(--serif); color: var(--muted); }
.hero-rating { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 500; text-decoration: none; }
.hero-rating .ic { width: 16px; height: 16px; color: var(--copper); }
.hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(100%, 420px); margin-top: 8px; }
.hero-cta .btn { padding: 0 14px; font-size: .95rem; }
.hero-cta--mesa { grid-template-columns: auto 1fr; align-items: center; }
.mesa-chip { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; border: 1.5px solid rgb(229 227 218 / .45); border-radius: 999px; font-weight: 500; white-space: nowrap; }
.mesa-chip b { font-weight: 600; }
.hero-reserve { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgb(229 227 218 / .45); }
.strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; padding: 12px var(--gutter); background: var(--bg-deep); color: var(--muted); font-size: .875rem; border-block: 1px solid var(--line); }
.strip li { display: inline-flex; align-items: center; gap: 8px; }
.strip .ic { width: 18px; height: 18px; color: var(--fg); }
.strip a { color: var(--fg); text-decoration: none; }

.blk { padding: 32px var(--gutter) 0; max-width: var(--max); margin: 0 auto; }
.blk h2, .co h1, .co h2 { font: 500 1.65rem/1.15 var(--serif); letter-spacing: -.01em; }
.blk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.blk-head a { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; font-size: .9rem; font-weight: 500; color: var(--copper); text-decoration: none; }
.blk-head a .ic { width: 16px; height: 16px; }

.promos { display: grid; gap: 10px; margin-top: 12px; }
.promo { display: grid; gap: 4px; padding: 16px; border-radius: var(--r); background: var(--surface); }
.promo.is-ph { background: transparent; border: 1.5px dashed rgb(229 227 218 / .3); }
.promo-title { font: 500 1.15rem/1.2 var(--serif); }
.promo-desc { font-size: .9rem; color: var(--muted); }

.feats { display: grid; grid-auto-flow: column; grid-auto-columns: 58%; gap: 12px; margin: 14px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.feats::-webkit-scrollbar { display: none; }
.feats li { scroll-snap-align: start; }
.feat { position: relative; }
.feat-open { display: grid; width: 100%; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: var(--surface); text-align: left; transition: scale 140ms var(--ease); }
.feat-open:active { scale: .98; }
.feat-media { position: relative; display: block; aspect-ratio: 4 / 3; }
.feat-text { display: grid; gap: 2px; padding: 10px 12px 12px; padding-right: 54px; }
.feat-cat { font-size: .75rem; color: var(--faint); }
.feat-name { font-weight: 600; line-height: 1.25; }
.feat .add { right: 10px; bottom: 10px; }
.price { font-weight: 500; color: var(--copper); font-size: .95rem; }
.price s { color: var(--faint); font-weight: 400; margin-left: 2px; }
.badge { position: absolute; top: 8px; left: 8px; padding: 3px 9px; border-radius: 999px; background: var(--wine); color: #fff; font-size: .7rem; font-weight: 600; letter-spacing: .02em; }
.feats--3 { grid-auto-flow: row; grid-auto-columns: auto; margin: 14px 0 0; padding: 0; overflow: visible; }
.feats--3 .feat-open { grid-template-columns: 84px minmax(0, 1fr); align-items: center; }
.feats--3 .feat-media { aspect-ratio: 1; }
.feats--3 .ph-ini { font-size: 1.4rem; }

/* Categorías: la foto manda */
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.cat { position: relative; display: grid; aspect-ratio: 1 / 1.08; border-radius: var(--r); overflow: hidden; background: var(--surface); text-decoration: none; isolation: isolate; transition: scale 160ms var(--ease); }
.cat:active { scale: .98; }
.cat .cat-img, .cat > .ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.cat .cat-img img { transition: scale 600ms var(--ease); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(18 23 27 / 0) 40%, rgb(18 23 27 / .9) 100%); }
.cat-text { position: relative; z-index: 1; align-self: end; display: grid; gap: 1px; padding: 12px; }
.cat-name { font: 500 1.2rem/1.15 var(--serif); text-wrap: balance; }
.cat-n { font-size: .78rem; color: var(--muted); }
.cat > .ph .ventana { width: 38%; }
.cat > .ph .ph-ini { font-size: 2.6rem; translate: 0 -10px; }
@media (hover: hover) and (pointer: fine) { .cat:hover .cat-img img { scale: 1.05; } }

/* Marcador sin foto */
.ph { position: relative; display: grid; place-items: center; width: 100%; height: 100%; background: var(--surface-2); color: var(--fg); overflow: hidden; }
.ph .ventana { position: absolute; width: 44%; height: auto; opacity: .22; }
.ph-ini { font: italic 500 1.9rem/1 var(--serif); }

/* Dónde estamos */
.donde { display: grid; gap: 8px; margin-top: 12px; padding: 20px; border-radius: var(--r); background: var(--surface); }
.donde-about { color: var(--muted); font-size: .95rem; padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.donde-addr { font: 500 1.15rem/1.3 var(--serif); }
.donde-hours { color: var(--muted); }
.donde-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

/* ---------- Categoría ---------- */
.ban { position: relative; isolation: isolate; min-height: 230px; display: grid; align-items: end; background: var(--surface); }
.ban-img { position: absolute; inset: 0; z-index: -2; }
.ban-ph { display: grid; place-items: center; }
.ban-ph .ventana { width: 90px; height: auto; opacity: .2; }
.ban::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(18 23 27 / .15) 0%, rgb(18 23 27 / .85) 100%); }
.ban-in { max-width: var(--max); width: 100%; margin: 0 auto; padding: 24px var(--gutter) 18px; }
.ban h1 { font: 500 clamp(2rem, 8vw, 2.75rem)/1.05 var(--serif); letter-spacing: -.01em; }
.ban-note, .ban-sizes { margin-top: 4px; font: italic 400 1rem/1.3 var(--serif); color: var(--muted); }

.chips { position: sticky; top: 60px; z-index: 15; background: rgb(18 23 27 / .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.chips ul { display: flex; gap: 6px; max-width: var(--max); margin: 0 auto; padding: 8px var(--gutter); overflow-x: auto; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.chips ul::-webkit-scrollbar { display: none; }
.chips li { flex: none; }
.chips a { display: flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface); font-size: .875rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.chips a.is-active { background: var(--fg); color: var(--bg); }

.blk--list { padding-top: 10px; }
.grp { margin: 26px 0 4px; font: 500 1.35rem/1.2 var(--serif); }
.items { display: grid; }
.item { position: relative; display: grid; border-bottom: 1px solid var(--line); }
.item-open { display: grid; grid-template-columns: minmax(0, 1fr) 100px; gap: 14px; align-items: start; width: 100%; padding: 14px 0; border: 0; background: none; text-align: left; }
.item-text { display: grid; gap: 4px; }
.item-name { font-weight: 600; line-height: 1.3; }
.item-cat { font-size: .78rem; color: var(--faint); }
.item-desc { font-size: .875rem; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-media { position: relative; width: 100px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.item-media .item-img img { scale: 1.2; }
.add { position: absolute; right: 6px; bottom: 20px; display: flex; align-items: center; }
.add.is-on { height: 36px; border-radius: 999px; background: var(--green); color: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / .4); }
.add.is-on button { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 999px; background: none; color: inherit; }
.add.is-on button::after { content: ""; position: absolute; inset: -6px; }
.add.is-on button .ic { width: 16px; height: 16px; }
.add.is-on output { min-width: 18px; text-align: center; font-weight: 600; font-size: .95rem; font-variant-numeric: tabular-nums; }
.item-add { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 999px; background: var(--fg); color: var(--bg); box-shadow: 0 2px 8px rgb(0 0 0 / .4); transition: scale 140ms var(--ease), background-color 160ms ease; }
.item-add::after { content: ""; position: absolute; inset: -6px; border-radius: 999px; }
.item-add .ic { width: 18px; height: 18px; }
.item-add:active { scale: .92; background: var(--green); color: #fff; }
.sauces { display: grid; gap: 6px; padding: 8px 0 0; font-size: .95rem; color: var(--muted); }
.sauces b { font-weight: 600; color: var(--fg); }

/* ---------- Hojas y cajones ---------- */
dialog { border: 0; padding: 0; background: transparent; color: var(--fg); max-width: none; max-height: none; }
dialog::backdrop { background: rgb(0 0 0 / .6); }
.sheet { width: 100%; margin: auto 0 0; }
.sheet-in { position: relative; max-height: 92svh; overflow: auto; border-radius: 22px 22px 0 0; background: var(--bg); border-top: 1px solid var(--line); }
.sheet-close { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 999px; background: var(--bg); color: var(--fg); }
.sheet-close .ic { width: 18px; height: 18px; }
.sheet-media { aspect-ratio: 4 / 3; max-height: 42svh; overflow: hidden; background: var(--surface-2); }
.sheet-media picture, .sheet-media .ph { width: 100%; height: 100%; }
.sheet-body { display: grid; gap: 14px; padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom)); }
.sheet-body h2 { font: 500 1.5rem/1.15 var(--serif); padding-right: 40px; }
.sheet-desc { color: var(--muted); font-size: .95rem; }
.sizes { display: grid; gap: 8px; }
.sizes legend { font-weight: 600; margin-bottom: 8px; }
.sizes label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); }
.sizes label:has(:checked) { border-color: var(--copper); }
.sizes input { accent-color: var(--copper); width: 18px; height: 18px; }
.sizes .bs { margin-left: auto; font-weight: 500; color: var(--copper); }
.note, .f { display: grid; gap: 6px; }
.note span, .f > span { font-size: .875rem; font-weight: 600; }
.note input, .f input, .f select { height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font: inherit; color: var(--fg); }
.note input::placeholder, .f input::placeholder, .search-field input::placeholder { color: var(--faint); }
.note input:focus, .f input:focus, .f select:focus, .search-field input:focus { outline: none; border-color: var(--copper); }
.sheet-foot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; margin-top: 4px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); }
.qty button { width: 44px; height: 46px; border: 0; background: none; font-size: 1.3rem; }
.qty output { min-width: 28px; text-align: center; font-weight: 600; }
.btn-add { background: var(--fg); color: var(--bg); }

.search .sheet-in { display: grid; grid-template-rows: auto auto minmax(0, 1fr); height: 92svh; }
.search-field { display: flex; align-items: center; gap: 10px; margin: 12px var(--gutter) 4px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); }
.search-field .ic { color: var(--faint); }
.search-field input { flex: 1; height: 48px; border: 0; background: none; font: inherit; color: var(--fg); }
.items--search { overflow: auto; padding: 0 var(--gutter); }

.drawer { width: min(100%, 440px); height: 100dvh; margin: 0 0 0 auto; }
.drawer-in { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; background: var(--bg); border-left: 1px solid var(--line); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px var(--gutter); border-bottom: 1px solid var(--line); }
.drawer-head h2 { font: 500 1.4rem/1.1 var(--serif); }
.drawer-head .sheet-close { position: static; }
.lines { overflow: auto; padding: 4px var(--gutter); }
.line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line-media { width: 56px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.line-media .ph-ini { font-size: 1.2rem; }
.line-text { display: grid; gap: 2px; min-width: 0; }
.line-name { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.line-meta { font-size: .8rem; color: var(--muted); }
.line-right { display: grid; justify-items: end; gap: 6px; }
.line-right .qty button { width: 34px; height: 34px; font-size: 1.1rem; }
.line-total { font-weight: 500; font-size: .95rem; color: var(--copper); }
.empty-cart { padding: 28px var(--gutter); color: var(--muted); text-align: center; }
.drawer-foot { display: grid; gap: 12px; padding: 14px var(--gutter) calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.sum { display: flex; justify-content: space-between; align-items: baseline; }
.sum b { font-weight: 600; }
.sum--big { font-size: 1.15rem; }

.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 18; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, var(--bg) 45%); }
.cartbar button { display: flex; align-items: center; gap: 12px; width: 100%; max-width: var(--max); margin: 0 auto; height: 54px; padding: 0 10px 0 16px; border: 0; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 600; box-shadow: 0 10px 24px rgb(0 0 0 / .45); }
.cartbar-n { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; background: var(--green); color: #fff; font-size: .85rem; }
.cartbar-total { margin-left: auto; padding: 0 12px; }
body.has-cart main { padding-bottom: 80px; }
body:has(main.co) .cartbar { display: none; }
body:has(main.co) main { padding-bottom: 40px; }

/* ---------- Pedido y reserva ---------- */
.co { max-width: 640px; margin: 0 auto; padding: 24px var(--gutter) 40px; display: grid; gap: 22px; }
.demo { padding: 12px 14px; border-radius: 12px; background: #3a3016; color: #f3e3b6; font-size: .9rem; }
.co-blk { display: grid; gap: 6px; }
.co-blk .lines { padding: 0; }
.co-form { display: grid; gap: 18px; }
.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 4px; border-radius: 999px; background: var(--surface); }
.modes.modes--one { grid-template-columns: 1fr; }
.modes legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.modes label { position: relative; display: grid; place-items: center; height: 44px; border-radius: 999px; font-weight: 500; font-size: .9rem; }
.modes input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.modes label:has(:checked) { background: var(--fg); color: var(--bg); }
.mode-f { display: grid; gap: 14px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: .85rem; color: var(--muted); }
.pay { display: grid; gap: 8px; }
.pay legend, .consent { font-size: .95rem; }
.pay legend { font-weight: 600; margin-bottom: 8px; }
.pay label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); }
.pay label:has(:checked) { border-color: var(--copper); }
.pay input { accent-color: var(--copper); width: 18px; height: 18px; margin-top: 3px; flex: none; }
.pay span { display: grid; gap: 2px; }
.pay small { color: var(--muted); font-size: .8125rem; }
.consent { display: flex; gap: 10px; align-items: flex-start; }
.consent input { accent-color: var(--copper); width: 18px; height: 18px; margin-top: 3px; flex: none; }
.sent { padding: 14px; border-radius: 12px; background: var(--surface-2); }

/* ---------- Pie ---------- */
.ft { display: grid; justify-items: center; gap: 12px; margin-top: 48px; padding: 44px var(--gutter) calc(40px + env(safe-area-inset-bottom)); background: var(--bg-deep); border-top: 1px solid var(--line); text-align: center; }
.ft-brand { display: grid; justify-items: center; gap: 10px; }
.ft-brand .ventana { width: 34px; height: auto; color: var(--copper); }
.ft-brand .wordmark { width: 170px; height: auto; }
.ft-brand p { font: italic 400 .95rem/1 var(--serif); color: var(--muted); }
.ft-addr { font-size: .9rem; color: var(--muted); }
.review { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 13px 22px; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 600; font-size: .95rem; text-decoration: none; }
.review .ic { width: 18px; height: 18px; color: var(--wine); }
.ft-links { display: grid; gap: 8px; width: min(100%, 320px); margin-top: 10px; }
.ft-links a { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border: 1px solid rgb(229 227 218 / .2); border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .95rem; }
.ft-links .ic { color: var(--copper); }
.ft-note { font-size: .8rem; color: var(--faint); }
.mezzita { display: inline-block; padding: 12px 8px; font-size: .75rem; color: var(--faint); text-decoration: none; }
.mezzita b { color: var(--muted); }

/* ---------- Escritorio ---------- */
@media (min-width: 760px) {
  :root { --gutter: 32px; }
  .hd { height: 68px; padding: 0 32px; }
  .hd-brand .wordmark { width: 140px; }
  .hero { min-height: 62vh; }
  .hero-in { padding-bottom: 48px; }
  .hero-cta .btn { font-size: 1rem; }
  .promos { grid-template-columns: 1fr 1fr; }
  .feats { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 14px 0 0; padding: 0; }
  .feats--3 { grid-template-columns: repeat(3, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .cat { aspect-ratio: 4 / 3; }
  .cat-name { font-size: 1.45rem; }
  .items { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .items--search { grid-template-columns: 1fr; }
  .ban { min-height: 300px; }
  .chips { top: 68px; }
  .sheet { width: min(100%, 520px); margin: auto; }
  .sheet-in { border-radius: 22px; border: 1px solid var(--line); }
  .search .sheet-in { height: min(92svh, 720px); }
  .cartbar { display: none; }
  body.has-cart main { padding-bottom: 0; }
}
@media (min-width: 1024px) { .cats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Movimiento ---------- */
@media (prefers-reduced-motion: no-preference) {
  dialog[open] .sheet-in { animation: up 320ms var(--ease); }
  dialog[open] .drawer-in { animation: side 300ms var(--ease); }
  .hero-in > * { animation: rise 600ms var(--ease) backwards; }
  .hero-in > :nth-child(2) { animation-delay: 80ms; }
  .hero-in > :nth-child(3) { animation-delay: 160ms; }
  .hero-in > :nth-child(n+4) { animation-delay: 240ms; }
  @keyframes up { from { translate: 0 24px; opacity: 0; } }
  @keyframes side { from { translate: 24px 0; opacity: 0; } }
  @keyframes rise { from { translate: 0 10px; opacity: 0; } }
}
