/* Sushi Mootho — colores tomados del logo */
:root {
  --bg: #0a0a0a;
  --surface: #161616;
  --surface-2: #222120;
  --ink: #f4f4f2;
  --muted: #b8b2a9;
  --on-light: #0a0a0a;
  --on-light-muted: #4a4641;
  --red: #e8574a;
  --red-press: #d44638;
  --green: #5bc236;
  --green-press: #4aa82a;

  --m: clamp(16px, 2.6vw, 40px);
  --gap: clamp(12px, 1.6vw, 24px);

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-hero: clamp(2.25rem, 1.3rem + 3vw, 3.75rem);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --fab-h: 60px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: var(--step-body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
::selection { background: var(--red); color: var(--on-light); }

h1, h2, h3 {
  font-stretch: 112%;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.02;
}
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); letter-spacing: -0.015em; }

.wrap { padding-inline: var(--m); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -60px; z-index: 50; background: var(--ink); color: var(--on-light); padding: 10px 16px; }
.skip:focus { top: 16px; }

/* Botones: cuadrados, un solo color plano */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 0; border-radius: 0;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease-out), background-color .18s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-red { background: var(--red); color: var(--on-light); }
.btn-red:hover { background: var(--red-press); }
.btn-green { background: var(--green); color: var(--on-light); }
.btn-green:hover { background: var(--green-press); }
.btn-ghost { background: var(--surface-2); color: var(--ink); }
.btn-ghost:hover { background: #2e2d2b; }
.btn-block { width: 100%; }

/* ---------- PORTADA ---------- */
/* Regla de fotos: ninguna se muestra más grande que su tamaño real (800 px de ancho). */
.hero {
  min-height: 100svh; display: flex; flex-direction: column;
  /* degradado suave detrás de la foto, sin foto de fondo */
  background: radial-gradient(55% 60% at 74% 55%, rgba(232, 87, 74, .16), rgba(232, 87, 74, 0) 70%), var(--bg); /* taste-skill-ignore: pedido por el cliente */
}
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 76px; background: #000;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-stretch: 125%; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.bar-links { display: flex; gap: 32px; font-weight: 600; }
.bar-links a, .bar-cta { text-decoration: none; position: relative; }
.bar-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out);
}
.bar-links a:hover::after { transform: scaleX(1); }
.bar-cta { background: var(--red); color: var(--on-light); padding: 10px 22px; font-weight: 600; transition: transform .18s var(--ease-out), background-color .2s; }
.bar-cta:hover { background: var(--red-press); }
.bar-cta:active { transform: scale(.96); }

.hero-inner {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px); align-items: center;
  padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(56px, 7vw, 96px);
}
.hero-figure { justify-self: end; width: 100%; max-width: 640px; }
.hero-figure img { width: 100%; height: auto; aspect-ratio: 800 / 837; object-fit: cover; background: var(--surface); }
.hero-figure figcaption { margin-top: 12px; color: var(--muted); font-size: var(--step-small); }

.hero-logo { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; background: #000; }
.hero h1 { margin-top: 28px; font-size: var(--step-hero); font-weight: 650; }
.hero h1 span { display: block; white-space: nowrap; }
.hero-place { margin-top: 16px; font-size: var(--step-lead); font-weight: 600; font-stretch: 112%; color: var(--green); }
.hero-lead { margin-top: 20px; max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- DESTACADOS ---------- */
.feature { padding-top: clamp(120px, 14vw, 200px); }
.feature-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: end; margin-bottom: 56px; }
.feature-head p { max-width: 36ch; justify-self: end; }

/* Foto de fondo a pantalla completa con oscurecido suave encima: las fotos del catálogo
   son de 800 px, el velo y un leve desenfoque disimulan que se estiran. */
.frame { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: #000; }
.frame-bg {
  position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px);
  object-fit: cover; filter: blur(2px);
}
.frame::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); pointer-events: none; }
.frame-2 .frame-bg { object-position: 50% 0; } /* deja fuera la franja lisa de burger-salmon */
.frame-card {
  --col: calc((100vw - 2 * var(--m) - 3 * var(--gap)) / 4);
  position: absolute; z-index: 1; top: 50%; transform: translateY(-50%);
  width: var(--col); min-width: 300px;
  display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 10px;
  padding: 28px 22px;
  background: var(--ink); color: var(--on-light);
}
.frame-1 .frame-card { left: var(--m); }
.frame-2 .frame-card { right: var(--m); }
.frame-3 .frame-card { left: var(--m); }
.ask { font-weight: 600; color: #b3372b; }
.frame-card h3 { font-size: clamp(1.75rem, 1.2rem + 1vw, 2.25rem); }
.frame-desc { color: var(--on-light-muted); font-size: 1rem; }
.frame-price { font-size: var(--step-lead); font-weight: 700; font-variant-numeric: tabular-nums; }
.frame-thumb { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin: 6px 0 10px; }
.frame-thumb.crop { object-position: 50% 0; }

/* ---------- CARTA ---------- */
.menu {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap);
  padding-top: clamp(120px, 14vw, 200px);
  padding-bottom: clamp(120px, 14vw, 200px);
}
.menu-photo { grid-column: 1 / 6; position: sticky; top: 12vh; align-self: start; width: 100%; max-width: 520px; aspect-ratio: 800 / 860; overflow: hidden; background: var(--surface); }
.menu-photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.menu-photo img.swap { opacity: 0; }
.menu-body { grid-column: 6 / 13; }
.menu-head p { margin-top: 16px; color: var(--muted); }

.tabs {
  display: flex; gap: 8px; margin: 40px 0 32px;
  flex-wrap: wrap;
  position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 12px 0;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; border: 0; border-radius: 0; cursor: pointer;
  min-height: 48px; padding: 0 18px;
  background: var(--surface); color: var(--ink); font-weight: 600;
  transition: background-color .2s, color .2s, transform .18s var(--ease-out);
}
.tab:hover { background: var(--surface-2); }
.tab:active { transform: scale(.96); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--on-light); }

.panel h3 { margin-bottom: 8px; }
.panel-note { color: var(--muted); margin-bottom: 20px; }
/* Fila: texto a la izquierda; a la derecha una columna fija con miniatura (si hay) y botón,
   así los botones quedan alineados con o sin foto. */
.items { --side: 124px; }
.items li {
  display: grid; grid-template-columns: minmax(0, 1fr) var(--side); align-items: start; gap: 24px;
  padding: 18px 12px; margin-inline: -12px;
  transition: background-color .2s;
}
.items li:hover { background: var(--surface); }
.item-text { display: flex; flex-direction: column; gap: 4px; }
.item-name { font-size: clamp(1.1875rem, 1rem + .5vw, 1.5rem); font-weight: 600; line-height: 1.2; }
.item-detail { color: var(--muted); font-size: 1rem; line-height: 1.45; max-width: 46ch; }
.item-price { margin-top: 6px; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 1.125rem; }
.item-side { display: flex; flex-direction: column; gap: 8px; }
.item-thumb { display: block; aspect-ratio: 1; overflow: hidden; background: var(--surface-2); }
.item-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
/* fotos del catálogo con franja lisa abajo (~14%): se ancla arriba y se amplía para dejarla fuera */
.item-thumb.crop img { object-position: 50% 0; transform: scale(1.18); transform-origin: 50% 0; }
.items li:hover .item-thumb img { transform: scale(1.05); }
.items li:hover .item-thumb.crop img { transform: scale(1.24); }
.add {
  width: 100%;
  min-height: 44px; padding: 0 12px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--red); color: var(--on-light); font-weight: 600; font-size: .9375rem;
  transition: transform .18s var(--ease-out), background-color .2s;
}
.add:hover { background: var(--red-press); }
.add:active { transform: scale(.94); }
.add.done { background: var(--green); }
.panel[hidden] { display: none; }
.panel.enter { animation: panelIn .45s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px); } }
.noscript { color: var(--muted); }

/* ---------- CÓMO PEDIR ---------- */
.steps-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: end; margin-bottom: 56px; }
.steps-head p { max-width: 36ch; justify-self: end; }
.step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin: 0 0 var(--gap); list-style: none; }
.step {
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  min-height: clamp(280px, 28vw, 400px); padding: clamp(24px, 2.6vw, 40px);
  background: linear-gradient(160deg, #1d1c1b 0%, #101010 100%); /* taste-skill-ignore: pedido por el cliente */
}
.verb {
  font-size: clamp(64px, 8.4vw, 150px); line-height: .95; font-weight: 800; font-stretch: 100%;
  letter-spacing: -0.04em; color: #fff;
}
.step-text { max-width: 34ch; font-size: 1.0625rem; }
.ahead {
  display: grid; grid-template-columns: 5fr 5fr 3fr; gap: var(--gap); align-items: center;
  padding-top: 64px; padding-bottom: 64px;
  margin: 0 var(--m); padding-inline: clamp(24px, 2.6vw, 40px); background: var(--surface);
}
.ahead h3 { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); }

/* ---------- UBICACIÓN ---------- */
.visit {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center;
  margin-top: clamp(120px, 14vw, 200px);
}
.visit-card {
  padding: 32px; background: var(--ink); color: var(--on-light);
  display: flex; flex-direction: column; gap: 10px;
}
.visit-card h2 { font-size: clamp(1.75rem, 1.2rem + 1vw, 2.25rem); }
.visit-card h3 { font-size: 1.125rem; margin-top: 14px; }
.visit-phone { font-size: var(--step-lead); font-weight: 700; margin: 10px 0 0; }
.visit-phone a { text-decoration: none; }
.rating {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px;
  color: var(--on-light); text-decoration: none; font-size: 1rem;
}
.rating strong { font-size: 1.375rem; font-variant-numeric: tabular-nums; }
.rating span:last-child { color: var(--on-light-muted); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.rating:hover span:last-child { color: var(--on-light); }
/* 4,4 de 5 estrellas = 88 % rellenas */
.stars { position: relative; display: inline-block; color: #c9c4bc; letter-spacing: 2px; font-size: 1.125rem; line-height: 1; }
.stars::before { content: "★★★★★"; position: absolute; left: 0; top: 0; width: 88%; overflow: hidden; color: #e8a10a; white-space: nowrap; }
.visit-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.btn-ink { background: var(--on-light); color: var(--ink); }
.btn-ink:hover { background: #2a2826; }
.visit-map { height: clamp(320px, 34vw, 460px); border-radius: 18px; overflow: hidden; background: var(--surface); }
.visit-map iframe { display: block; width: 100%; height: 100%; border: 0; filter: invert(.92) hue-rotate(180deg) grayscale(.35) contrast(.95); }

/* ---------- PIE ---------- */
.foot { display: grid; grid-template-columns: 1fr 1fr; min-height: 90svh; margin-top: clamp(120px, 14vw, 200px); }
.foot-photo {
  display: grid; place-items: center; padding: clamp(32px, 5vw, 80px);
  background: radial-gradient(70% 60% at 50% 50%, #1e1d1c, #0a0a0a 75%); /* taste-skill-ignore: pedido por el cliente */
}
.foot-photo img { width: 100%; max-width: 520px; height: auto; aspect-ratio: 800 / 837; object-fit: cover; }
.foot-body {
  display: flex; flex-direction: column; gap: 56px;
  padding: 80px var(--m) calc(var(--fab-h) + 48px) clamp(24px, 6vw, 96px);
  background: var(--surface);
}
.foot-menu { display: grid; gap: 20px; }
.foot-menu a {
  display: inline-block; text-decoration: none;
  font-size: clamp(2rem, 1rem + 2.6vw, 3.25rem); font-weight: 600; font-stretch: 112%; letter-spacing: -0.025em; line-height: 1.05;
  transition: transform .25s var(--ease-out), color .25s;
}
.foot-menu:hover a { color: var(--muted); }
.foot-menu a:hover, .foot-menu a:focus-visible { color: var(--ink); transform: translateX(12px); }
.foot-info { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; font-size: 1rem; }
.foot-info h3 { font-size: 1rem; font-stretch: 100%; letter-spacing: 0; color: var(--green); margin-bottom: 8px; }
.foot-info a { text-decoration-color: var(--red); text-underline-offset: 4px; }
.foot-info a:hover { color: var(--red); }
.legal { margin-top: auto; color: var(--muted); font-size: var(--step-small); }

/* ---------- CARRITO FLOTANTE ---------- */
.cart-fab {
  position: fixed; z-index: 40;
  right: calc(var(--m) + env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 14px;
  height: var(--fab-h); padding: 0 22px;
  border: 0; border-radius: 0; cursor: pointer;
  background: var(--red); color: var(--on-light); font-weight: 700;
  transition: transform .3s var(--ease-out), background-color .2s, opacity .3s;
}
.cart-fab.is-empty { opacity: 0; transform: translateY(140%); pointer-events: none; }
.cart-fab.is-empty .cart-fab-count { background: var(--bg); }
.cart-fab:hover { background: var(--red-press); }
.cart-fab:active { transform: scale(.96); }
.cart-fab-count {
  display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px;
  background: var(--on-light); color: var(--ink); font-variant-numeric: tabular-nums;
}
.cart-fab-total { font-variant-numeric: tabular-nums; font-size: 1.125rem; }
.cart-fab.bump { animation: bump .45s var(--ease-out); }
@keyframes bump { 30% { transform: scale(1.08); } }

/* ---------- DIÁLOGOS ---------- */
dialog { padding: 0; border: 0; color: var(--ink); background: var(--surface); }
dialog::backdrop { background: rgba(0, 0, 0, .65); }

.sheet {
  margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(460px, 100vw); max-width: 100vw;
  box-shadow: -20px 0 60px rgba(0, 0, 0, .5); /* taste-skill-ignore: dialog flotante */
}
.sheet[open] { animation: sheetIn .4s var(--ease-out); }
@keyframes sheetIn { from { transform: translateX(100%); } }
.sheet-inner { display: flex; flex-direction: column; gap: 20px; min-height: 100%; padding: 24px var(--m) calc(32px + env(safe-area-inset-bottom)); }
.sheet-top { display: flex; align-items: center; justify-content: space-between; }
.sheet-top h2 { font-size: 2rem; }
.icon-btn {
  width: 48px; height: 48px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--surface-2); font-size: 1.75rem; line-height: 1;
  transition: transform .18s var(--ease-out), background-color .2s;
}
.icon-btn:hover { background: #2e2d2b; }
.icon-btn:active { transform: scale(.92); }

.lines { display: grid; gap: 8px; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 16px; background: var(--surface-2); }
.line-name { font-weight: 600; line-height: 1.25; }
.line-opt { display: block; color: var(--green); font-size: .9375rem; font-weight: 500; }
.line-sub { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.qty { grid-column: 1 / -1; display: flex; align-items: center; gap: 4px; }
.qty button {
  width: 44px; height: 40px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--bg); font-size: 1.25rem; font-weight: 600;
  transition: transform .15s var(--ease-out), background-color .2s;
}
.qty button:hover { background: #000; }
.qty button:active { transform: scale(.9); }
.qty output { min-width: 40px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.qty .unit { margin-left: auto; color: var(--muted); font-size: .9375rem; }

.empty { display: grid; gap: 16px; justify-items: start; padding: 24px 0; color: var(--muted); }
.empty[hidden] { display: none; }

.order { display: grid; gap: 18px; }
.order[hidden] { display: none; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.25rem; padding: 4px 0; }
.total-row strong { font-size: 2rem; font-stretch: 112%; font-variant-numeric: tabular-nums; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.field > span, .field legend { font-weight: 600; }
.field em { font-style: normal; color: var(--muted); font-weight: 400; }
.field input[type="text"], .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  background: var(--bg); border: 2px solid #3a3835; border-radius: 0;
  font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 72px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field[hidden] { display: none; }
.err { color: var(--red); font-size: .9375rem; }
.choice { grid-template-columns: 1fr 1fr; }
.choice legend { margin-bottom: 8px; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: grid; place-items: center; min-height: 52px; padding: 0 8px; text-align: center;
  background: var(--bg); font-weight: 600; border: 2px solid #3a3835;
  transition: background-color .2s, color .2s, border-color .2s;
}
.choice input:checked + span { background: var(--ink); color: var(--on-light); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }

.preview summary { cursor: pointer; color: var(--muted); font-size: .9375rem; }
.preview pre {
  margin: 12px 0 0; padding: 14px 16px; white-space: pre-wrap; word-break: break-word;
  background: #0f1f0b; color: #dff5d4; font-family: inherit; font-size: .9375rem; line-height: 1.45;
}
.btn-send { min-height: 58px; font-size: 1.0625rem; }

.picker { width: min(380px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); /* taste-skill-ignore: dialog flotante */ }
.picker[open] { animation: popIn .3s var(--ease-out); }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.picker-inner { display: grid; gap: 16px; padding: 28px 24px 24px; }
.picker-inner h2 { font-size: 1.75rem; }
.picker-price { color: var(--muted); margin-top: -8px; }
.picker-opts { display: grid; gap: 8px; }
.picker-opts label { position: relative; cursor: pointer; }
.picker-opts input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.picker-opts span {
  display: flex; align-items: center; min-height: 52px; padding: 0 16px;
  background: var(--bg); font-weight: 600; border: 2px solid #3a3835;
  transition: background-color .2s, color .2s;
}
.picker-opts input:checked + span { background: var(--ink); color: var(--on-light); border-color: var(--ink); }
.picker-opts input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.picker-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.picker-opts[hidden], .pick-changes[hidden] { display: none; }
.pick-changes { display: grid; gap: 12px; }

/* Envío calculado según la dirección */
.ship-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: -10px; color: var(--muted); }
.ship-row[hidden] { display: none; }
.ship-row > span { display: grid; gap: 2px; }
.ship-row small { font-size: .8125rem; }
.ship-row strong { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ship legend { margin-bottom: 8px; }
.btn-geo { min-height: 58px; font-size: 1.0625rem; }
.btn-geo[aria-busy="true"], #calcBtn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.ship-or { margin-top: 2px; }
.ship-addr, .ship-ref { display: grid; gap: 8px; }
.ship-addr > span:first-child, .ship-ref > span { font-weight: 600; }
.ship-line { display: grid; grid-template-columns: 1fr auto; }
.ship-line .btn { padding: 0 16px; min-height: 52px; }
.ship-status { padding: 12px 14px; background: var(--bg); border-left: 4px solid var(--muted); line-height: 1.4; font-size: .9375rem; }
.ship-status[hidden] { display: none; }
.ship-status b { font-variant-numeric: tabular-nums; }
.ship-status.is-ok { border-color: var(--green); }
.ship-status.is-wait { border-color: #e0b341; }
.ship-status.is-out { border-color: var(--red); }
@media (max-width: 380px) {
  .ship-line { grid-template-columns: 1fr; gap: 8px; }
}
/* Pago */
.choice .err, .cash-other { grid-column: 1 / -1; }
.choice .err[hidden], .cash-other[hidden] { display: none; }
.cash input:disabled + span { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.cash-other { display: grid; gap: 6px; }
.choice .cash-other input { position: static; opacity: 1; cursor: text; }
.hint { color: var(--muted); font-size: var(--step-small); }
.hint a { color: var(--green); text-underline-offset: 3px; }

/* Cambios en promociones: se despliegan con "¿Quieres cambiar algo?" */
.line-chgs { grid-column: 1 / -1; display: grid; gap: 2px; color: var(--muted); font-size: .9375rem; line-height: 1.35; }
.line-chgs:empty { display: none; }
.line-chgs li { display: flex; justify-content: space-between; gap: 12px; }
.line-chgs li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.chg-toggle {
  grid-column: 1 / -1; justify-self: start; min-height: 44px; padding: 0; border: 0; cursor: pointer;
  background: none; color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 4px;
}
.chg { grid-column: 1 / -1; display: grid; gap: 14px; padding: 14px; background: var(--bg); }
.chg-back {
  justify-self: start; min-height: 44px; padding: 0 14px; cursor: pointer;
  background: var(--surface-2); color: var(--ink); border: 0; font-weight: 600;
}
.chg-back:hover { background: #2e2d2b; }
.chg-title { display: grid; gap: 2px; font-size: 1.125rem; font-weight: 700; line-height: 1.25; outline: none; }
.chg-title span { color: var(--muted); font-size: .9375rem; font-weight: 500; }
.chg-price { color: var(--muted); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* paso 1: dos botones grandes */
.chg-menu { display: grid; gap: 8px; }
.chg-big {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 64px; padding: 12px 16px; cursor: pointer; text-align: left;
  background: var(--surface); color: var(--ink); font-size: 1.0625rem; font-weight: 700; border: 2px solid #3a3835;
}
.chg-big::after { content: "›"; font-size: 1.5rem; line-height: 1; color: var(--muted); }
.chg-count { margin-left: auto; padding: 2px 8px; white-space: nowrap; background: var(--green); color: #0b1a06; font-size: .8125rem; font-weight: 700; }
/* lista de rolls */
.chg-rolls { display: grid; gap: 8px; }
.chg-roll { display: flex; align-items: stretch; gap: 6px; }
.chg-pick {
  flex: 1; display: grid; gap: 2px; min-height: 60px; padding: 10px 14px; cursor: pointer; text-align: left;
  background: var(--surface); color: var(--ink); border: 2px solid #3a3835; line-height: 1.3;
}
.chg-roll-name { font-weight: 700; }
.chg-roll-now { color: var(--muted); font-size: .9375rem; }
.chg-roll-now b { color: var(--ink); font-weight: 700; white-space: nowrap; }
.chg-roll.is-changed .chg-pick { border-color: var(--green); }
.chg-x {
  flex: 0 0 52px; cursor: pointer; border: 0;
  background: var(--surface-2); color: var(--ink); font-size: 1.75rem; line-height: 1;
}
.chg-x:hover { background: var(--red); }
/* envolturas de un roll */
.chg-btn {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px;
  min-height: 60px; padding: 8px 6px; cursor: pointer; text-align: center; line-height: 1.2;
  background: var(--surface); color: var(--ink); font-weight: 600; border: 2px solid #3a3835;
}
.chg-btn .chg-price { font-size: .8125rem; }
.chg-btn[aria-pressed="true"] { background: var(--ink); color: var(--on-light); border-color: var(--ink); }
.chg-btn[aria-pressed="true"] .chg-price { color: var(--on-light); opacity: .75; }
.wrap-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 6px; }
.chg-big:active, .chg-pick:active, .chg-btn:active, .chg-x:active, .chg-back:active { transform: scale(.98); }
.chg-big:focus-visible, .chg-pick:focus-visible, .chg-btn:focus-visible, .chg-x:focus-visible, .chg-back:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
/* relleno */
.chg-field { display: grid; gap: 6px; }
.chg-field > span { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.chg-done { min-height: 56px; width: 100%; font-size: 1.0625rem; }
.chg-done:disabled, .chg-done:disabled:hover { background: #2e2d2b; color: #7d7870; cursor: not-allowed; transform: none; }
.chg-saved {
  justify-self: start; padding: 8px 14px; background: var(--green); color: #0b1a06; font-weight: 700;
  animation: savedIn .35s var(--ease-out);
}
@keyframes savedIn { from { opacity: 0; transform: translateY(-6px); } }
/* resumen */
.chg-sum { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid #3a3835; font-size: .9375rem; }
.chg-sum-head { font-weight: 700; }
.chg-sum ul { display: grid; gap: 4px; color: var(--muted); }
.chg-sum li { display: flex; justify-content: space-between; gap: 12px; }
.chg-sum li b { color: var(--ink); font-weight: 600; }
.chg-sum li span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.chg-none { color: var(--muted); }
.chg-sum-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; font-weight: 600; }
.chg-sum-total strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.line-chgs b { color: var(--ink); font-weight: 600; }
.chg-input {
  width: 100%; min-height: 48px; padding: 10px 12px;
  background: var(--surface); color: var(--ink); border: 2px solid #3a3835; border-radius: 0; font-size: 1rem;
}
.chg-input:focus { outline: none; border-color: var(--green); }
.chg-input[aria-invalid="true"] { border-color: var(--red); }

.toast {
  /* anclado a ambos lados y centrado con margin: el texto largo baja de línea sin salirse de la pantalla */
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: calc(var(--fab-h) + 36px + env(safe-area-inset-bottom));
  width: fit-content; max-width: min(560px, calc(100vw - 32px)); margin-inline: auto;
  transform: translateY(20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; background: var(--ink); color: var(--on-light); font-weight: 600;
  text-align: center; overflow-wrap: anywhere;
  transition: opacity .25s, transform .35s var(--ease-out);
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ---------- MOVIMIENTO ---------- */
.js .reveal > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.in > * { opacity: 1; transform: none; }
.js .reveal.in > *:nth-child(2) { transition-delay: 70ms; }
.js .reveal.in > *:nth-child(3) { transition-delay: 140ms; }
.js .reveal.in > *:nth-child(4) { transition-delay: 210ms; }
.js .reveal.in > *:nth-child(5) { transition-delay: 280ms; }
.js .reveal.in > *:nth-child(n+6) { transition-delay: 350ms; }

.js .shutter { clip-path: inset(0 0 0 100%); }
.js .shutter.open { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease-out); }
.js .hero-copy > * { animation: rise .8s var(--ease-out) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .08s; }
.js .hero-copy > :nth-child(3) { animation-delay: .16s; }
.js .hero-copy > :nth-child(4) { animation-delay: .24s; }
.js .hero-copy > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal > * { transform: none !important; opacity: 1 !important; }
  .js .shutter { clip-path: none; }
}

/* ---------- TABLET ---------- */
@media (max-width: 1024px) {
  .frame-card { --col: 40vw; }
  .visit { grid-template-columns: 1fr 1fr; }
  .visit-actions { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  .step { min-height: 0; flex-direction: row; align-items: center; gap: 32px; }
  .verb { font-size: clamp(56px, 11vw, 110px); min-width: 4.2ch; }
  .menu-photo { grid-column: 1 / 6; }
  .menu-body { grid-column: 6 / 13; }
  .ahead { grid-template-columns: 1fr 1fr; }
  .ahead .btn { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- CELULAR ---------- */
@media (max-width: 760px) {
  :root { --fab-h: 58px; }
  .bar { height: 64px; }
  .brand { font-size: 1rem; gap: 10px; }
  .brand img { width: 40px; height: 40px; }
  .bar-links { display: none; }
  .bar-cta { padding: 10px 18px; }

  .hero { min-height: 0; background: var(--bg); }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; padding-top: 16px; padding-bottom: 64px; }
  .hero-figure { order: -1; justify-self: stretch; max-width: none; }
  .hero-figure figcaption { font-size: .875rem; }
  .hero-logo { display: none; }
  .hero h1 { margin-top: 0; font-size: clamp(2rem, 9vw, 2.5rem); }
  .hero-place { margin-top: 12px; font-size: 1.25rem; }
  .hero-lead { margin-top: 14px; }
  .hero-actions { margin-top: 24px; }
  .hero-actions .btn { flex: 1 1 100%; min-height: 56px; }

  .feature { padding-top: 96px; }
  .feature-head, .steps-head { grid-template-columns: 1fr; margin-bottom: 32px; gap: 12px; }
  .feature-head p, .steps-head p { justify-self: start; }
  .frame { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .frame-bg { position: relative; inset: auto; width: 100%; height: 56svh; min-height: 340px; filter: none; }
  .frame::after { bottom: auto; height: 56svh; min-height: 340px; background: rgba(0, 0, 0, .2); }
  .frame-card, .frame-2 .frame-card, .frame-3 .frame-card {
    position: relative; top: auto; left: auto; right: auto; transform: none;
    width: auto; min-width: 0; margin: -72px 16px 16px;
    display: grid; grid-template-columns: 1fr 96px; text-align: left; gap: 6px 16px; padding: 22px 20px 20px;
  }
  .frame-card > * { grid-column: 1; }
  .frame-thumb { grid-column: 2; grid-row: 1 / 4; width: 96px; aspect-ratio: 1; margin: 0; align-self: start; }
  .frame-card .btn { grid-column: 1 / -1; margin-top: 8px; min-height: 54px; }
  .frame-card h3 { font-size: 1.75rem; }
  .frame + .frame { margin-top: 8px; }

  .menu { display: block; padding-top: 96px; padding-bottom: 96px; }
  .menu-photo { position: relative; top: 0; max-width: none; margin: 0 0 32px; }
  .tabs { flex-wrap: wrap; margin: 24px calc(-1 * var(--m)) 20px; padding: 10px var(--m); }
  .tab { min-height: 44px; padding: 0 14px; }
  .items { --side: 100px; }
  .items li { gap: 16px; padding: 16px 12px; }
  .item-name { font-size: 1.1875rem; }
  .item-detail { font-size: .9375rem; }
  .item-price { font-size: 1.0625rem; }
  .add { min-height: 48px; }

  .step { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 20px; }
  .verb { font-size: 18vw; min-width: 0; }
  .step-text { font-size: 1rem; }
  .ahead { grid-template-columns: 1fr; margin: 0; padding: 48px var(--m); gap: 16px; }
  .ahead .btn { width: 100%; }

  .visit { grid-template-columns: 1fr; margin-top: 96px; gap: 16px; }
  .visit-card { padding: 24px 20px; }
  .visit-card .btn { min-height: 56px; }
  .visit-actions { grid-template-columns: 1fr; }
  .visit-map { height: 280px; border-radius: 14px; }

  .foot { grid-template-columns: 1fr; margin-top: 96px; min-height: 0; }
  .foot-photo { padding: 32px var(--m); }
  .foot-body { padding: 48px var(--m) calc(var(--fab-h) + 48px); gap: 40px; }
  .foot-menu a { font-size: 2.25rem; }
  .foot-info { grid-template-columns: 1fr; gap: 24px; }

  .cart-fab { left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom)); justify-content: space-between; }
  .cart-fab-label { margin-right: auto; }


  .sheet { width: 100vw; }
  .sheet[open] { animation-name: sheetUp; }
  @keyframes sheetUp { from { transform: translateY(100%); } }
}

/* Contacto: WhatsApp del local y tarjetas */
.visit-card .cards { font-weight: 600; margin-bottom: 6px; }
.visit-card p a.js-wa-direct { font-weight: 600; text-decoration-color: var(--red); text-underline-offset: 3px; }
.foot-wa { align-self: flex-start; margin-top: -24px; }
@media (max-width: 760px) {
  .foot-wa { align-self: stretch; margin-top: -16px; min-height: 56px; }
}

/* Carta: la foto grande sigue al producto tocado o apuntado */
.menu-photo img.crop { height: 118%; object-position: 50% 0; } /* esconde la franja lisa de abajo sin ampliar */
.items li.is-shown { background: var(--surface); }

/* Agotados (planilla de stock): en gris, con etiqueta y botón desactivado */
.sold-tag {
  align-self: flex-start; padding: 3px 8px;
  background: var(--ink); color: var(--on-light);
  font-size: var(--step-small); font-weight: 700; letter-spacing: .02em;
}
.items li.is-out .item-name, .items li.is-out .item-detail, .items li.is-out .item-price { opacity: .5; }
.items li.is-out .item-thumb img { filter: grayscale(1); opacity: .5; }
.add:disabled, .add:disabled:hover { background: var(--surface-2); color: var(--muted); cursor: not-allowed; transform: none; }
.frame.is-out .frame-bg { filter: blur(2px) grayscale(1); }
.frame-card.is-out .sold-tag { align-self: center; justify-self: start; background: var(--on-light); color: var(--ink); }
.frame-card.is-out .frame-desc, .frame-card.is-out .frame-price { opacity: .5; }
.frame-card.is-out .frame-thumb { filter: grayscale(1); opacity: .6; }
.frame-card .btn:disabled, .frame-card .btn:disabled:hover { background: #d6d1ca; color: var(--on-light-muted); cursor: not-allowed; transform: none; }
.menu-photo.is-out img { filter: grayscale(1) brightness(.6); }
.menu-photo.is-out::after {
  content: "Agotado hoy"; position: absolute; top: 16px; left: 16px; z-index: 1;
  padding: 6px 12px; background: var(--ink); color: var(--on-light); font-weight: 700;
}
@media (max-width: 760px) {
  /* en celular la foto queda fija arriba mientras se recorre la carta */
  .menu-photo { position: sticky; top: 0; z-index: 6; width: auto; height: 30svh; aspect-ratio: auto; margin: 0 calc(-1 * var(--m)) 24px; }
  .tabs { top: 30svh; }
}
@media (max-width: 767px) {
  /* en celular la foto se ve entera: alto fijo, ancho según la proporción de cada foto, centrada */
  .menu { padding-top: 32px; } /* sin franja vacía sobre la foto */
  .menu-photo { display: flex; justify-content: center; align-items: flex-start; background: var(--bg); }
  .menu-photo img, .menu-photo img.crop { width: auto; max-width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%; }
}
.link-btn { display: inline; padding: 0; border: 0; background: none; color: var(--green); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
