/* Demo re-skin de la web de pedidos de Tsunami. Dirección: "carta de izakaya de noche: laca negra, filo dorado"
   (docs/decisiones-visuales.md), refinada con cortex-ui-design. Mobile first; en desktop, columna centrada. */
:root {
  --bg: #0A0C12;
  --surround: #05060A;
  --surface: #12151D;
  --surface-2: #191D27;
  --ink: #EFE8D8;
  --muted: #9A968C;
  --gold: #D4AF5A;
  --gold-deep: #B8923D;
  --red: #E5483B;
  --ok: #6FAE7E;
  --line: rgb(212 175 90 / .12);
  --line-strong: #5C584A;
  --display: "Marcellus", Georgia, serif;
  --text: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --r: 4px;
  --r-lg: 8px;
  --col: 440px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--surround); color-scheme: dark; scrollbar-gutter: stable; }
body {
  margin: 0; min-height: 100dvh; color: var(--ink);
  background: radial-gradient(120% 55% at 50% -5%, rgb(212 175 90 / .06), transparent 60%), var(--surround);
  font: 400 16px/1.5 var(--text); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: var(--r); }
.tnum { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Columna tipo celular (sin bisel ni sombra: sobre oscuro no se ve y es un tell) */
.app { position: relative; width: min(100%, var(--col)); min-height: 100dvh; margin-inline: auto;
  background: var(--bg); border-inline: 1px solid rgb(212 175 90 / .14); padding-bottom: 96px; }

/* — Cabecera (sólida, sin blur) — */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; height: 56px; padding: 0 16px; }
.back { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); text-decoration: none; justify-self: start; }
.back svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; }
/* Compacto para entrar en el alto del header (56px mobile) sin que "SUSHI & WOKS" se salga */
.brand { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.brand .mark { width: 22px; height: 22px; }
.brand .name { font-family: var(--display); font-size: 15px; letter-spacing: .16em; line-height: 1; text-transform: uppercase; text-indent: .16em; }
.brand .name small { display: block; font-size: 8px; letter-spacing: .2em; color: var(--gold); margin-top: 2px; text-indent: .2em; }
/* Selector de idioma (bandera AR + menú ES/EN/PT) */
.lang { justify-self: end; position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: var(--r); padding: 5px 8px 5px 7px; color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.lang-btn .flag { width: 20px; height: 13px; display: inline-flex; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgb(0 0 0 / .2); }
.lang-btn .flag svg { width: 100%; height: 100%; display: block; }
.lang-btn .lang-code { color: var(--ink); font-weight: 600; }
.lang-btn .chev { width: 13px; height: 13px; color: var(--muted); transition: transform .2s var(--ease); }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; margin: 0; padding: 6px; list-style: none; min-width: 150px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: 0 16px 34px -16px #000; }
.lang-menu li { padding: 10px 12px; border-radius: var(--r); font-size: 14px; color: var(--ink); cursor: pointer; }
.lang-menu li:hover, .lang-menu li:focus-visible { background: rgb(212 175 90 / .12); outline: none; }
.lang-menu li[aria-selected="true"] { color: var(--gold); font-weight: 600; }
.lang-menu[hidden] { display: none; }

/* Estado del local: línea en el flujo, no sticky */
.status { display: flex; align-items: center; gap: 9px; padding: 9px 20px; font-size: 13px; color: var(--muted);
  background: rgb(212 175 90 / .06); border-bottom: 1px solid var(--line); }
.status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex: none; }
.status.abierto .dot { background: var(--ok); }
.status b { color: var(--ink); font-weight: 600; }

/* Barra de categorías (sólida) */
.cats { position: sticky; top: 56px; z-index: 19; background: var(--bg); border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
.cats ul { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0; padding: 0 10px; list-style: none; scroll-snap-type: x proximity; }
.cats ul::-webkit-scrollbar { display: none; }
.cats button { position: relative; white-space: nowrap; height: 44px; padding: 0 12px; font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); scroll-snap-align: center; transition: color .2s; }
.cats button::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: center; transition: transform .25s var(--ease); }
.cats button[aria-current="true"] { color: var(--gold); }
.cats button[aria-current="true"]::after { transform: scaleX(1); }

/* Secciones */
.sec { padding: 0 20px; scroll-margin-top: 104px; }
.sec-head { display: flex; align-items: center; gap: 12px; margin: 36px 0 12px; }
.sec:first-of-type .sec-head { margin-top: 20px; }
.sec-head h2 { font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin: 0; white-space: nowrap; }
.sec-head .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); opacity: .55; }
.sec-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; margin: 0 0 4px; aspect-ratio: 2.4/1; border: 1px solid var(--line); }
.sec-photo img { width: 100%; height: 100%; object-fit: cover; }
.sec-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, transparent 48%, rgb(10 12 18 / .45) 82%, var(--bg)); }

/* Fila de plato: nombre + descripción a la izquierda; precio + "+" a la derecha */
.item { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; align-items: center; padding: 14px 0;
  border-top: 1px solid var(--line); min-height: 64px; }
.sec-photo + .item, .item:first-of-type { border-top: 0; }
.item .name { grid-column: 1; font-weight: 500; font-size: 16px; line-height: 1.37; color: var(--ink); }
.item .desc { grid-column: 1; font-size: 13px; line-height: 1.46; color: var(--muted); margin: 2px 0 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price-wrap { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 12px; }
.price { font-weight: 500; font-variant-numeric: tabular-nums; font-size: 15px; color: var(--ink); white-space: nowrap; text-align: right; }
.price .pre { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Botón "+" con contorno (área táctil 44 vía ::after) y stepper */
.rnd { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); flex: none; transition: transform .1s var(--ease), background .18s; }
.rnd::after { content: ""; position: absolute; inset: -5px; }
.rnd svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; }
.rnd:active { transform: scale(.9); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--gold); border-radius: 999px; }
.stepper button { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; color: var(--gold); font-size: 19px; }
.stepper .q { min-width: 20px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }

/* Barra inferior "Ver mi pedido" */
.cartbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 25; width: min(100%, var(--col));
  border-top: 1px solid var(--gold); background: var(--surface); }
.cartbar button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 18px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
.cartbar .count { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 7px;
  border-radius: 999px; background: var(--gold); color: var(--bg); font-weight: 700; font-size: 13px; transition: transform .16s var(--ease); }
.cartbar.bump .count { transform: scale(1.18); }
.cartbar .lbl { font-family: var(--display); letter-spacing: .06em; font-size: 17px; }
.cartbar .sub { display: block; font-size: 10.5px; letter-spacing: .04em; color: var(--muted); margin-top: 2px; font-family: var(--text); }
.cartbar .tot { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 17px; }
.cartbar[hidden] { display: none; }

/* — Carrito (misma piel), columna centrada — */
.cart { position: fixed; inset: 0; left: 50%; transform: translate(-50%, 100%); width: min(100%, var(--col));
  z-index: 40; background: var(--bg); overflow-y: auto; overflow-x: hidden; padding-bottom: 150px; transition: transform .32s var(--ease); }
.cart.open { transform: translate(-50%, 0); }
.cart-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px;
  background: var(--bg); border-bottom: 1px solid var(--line); }
.cart-top h1 { font-family: var(--display); font-size: 21px; letter-spacing: .05em; margin: 0; font-weight: 400; }
.cart-top .close { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; margin-left: -8px; }
.cart-top .close svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 1.8; }
.cart-body { padding: 16px 20px; }

.notice { display: flex; gap: 10px; padding: 14px; border: 1px solid var(--gold); border-radius: var(--r-lg);
  background: rgb(212 175 90 / .08); font-size: 13.5px; line-height: 1.45; margin-bottom: 18px; }
.notice svg { width: 20px; height: 20px; flex: none; stroke: var(--gold); fill: none; stroke-width: 1.6; margin-top: 1px; }
.notice b { color: var(--gold); font-weight: 600; }

.block { padding: 16px 0; border-bottom: 1px solid var(--line); }
.block > h3 { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 13px; font-weight: 600; }
.sucursal { display: flex; align-items: center; gap: 12px; }
.sucursal .pin { width: 42px; height: 42px; border-radius: var(--r-lg); background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.sucursal .pin svg { width: 20px; height: 20px; stroke: var(--gold); fill: none; stroke-width: 1.6; }
.sucursal .data { flex: 1; } .sucursal .data b { display: block; font-size: 15px; } .sucursal .data span { font-size: 13px; color: var(--muted); }
.sucursal .change { color: var(--gold); font-size: 13.5px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 15px; }

.line { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line .pname { flex: 1; min-width: 0; } .line .pname b { font-weight: 500; } .line .pname span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.line .mini { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; flex: none; }
.line .mini button { width: 33px; height: 36px; color: var(--gold); font-size: 18px; display: inline-flex; align-items: center; justify-content: center; }
.line .mini .q { min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.line .amt { font-variant-numeric: tabular-nums; min-width: 72px; text-align: right; font-weight: 600; flex: none; }
.line .del { color: var(--red); width: 30px; height: 36px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.line .del svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.6; }

.totals { display: grid; gap: 9px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.totals .r { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.totals .r span.tnum { color: var(--ink); }
.totals .r.grand { border-top: 1px solid var(--line); padding-top: 13px; margin-top: 3px; align-items: baseline; }
.totals .r.grand b { font-family: var(--display); font-size: 21px; letter-spacing: .04em; color: var(--ink); font-weight: 400; }
.totals .r.grand .tnum { font-size: 21px; color: var(--gold); font-weight: 600; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.seg button { padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-lg); text-align: left; transition: border-color .18s, background .18s; }
.seg button b { display: block; font-weight: 600; font-size: 14.5px; } .seg button span { font-size: 12.5px; color: var(--muted); }
.seg button[aria-pressed="true"] { border-color: var(--gold); background: rgb(212 175 90 / .09); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chips button { white-space: nowrap; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; color: var(--muted); }
.chips button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); background: rgb(212 175 90 / .08); }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-lg); color: var(--ink); font: inherit; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in oklab, var(--muted) 60%, transparent); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.confirm-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 42; width: min(100%, var(--col));
  padding: 11px 20px calc(11px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
.confirm-note { margin: 0 0 9px; font-size: 12.5px; color: var(--gold); display: flex; align-items: center; gap: 7px; justify-content: center; }
.confirm-note svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.btn-gold { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; border-radius: var(--r-lg);
  background: var(--gold); color: var(--bg); font-family: var(--display); font-size: 17px; letter-spacing: .05em; transition: transform .1s var(--ease), background .18s; }
.btn-gold:active { transform: scale(.98); }
.btn-gold svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Hoja (variantes / confirmación) */
.sheet-bg { position: fixed; inset: 0; z-index: 50; background: rgb(0 0 0 / .62); opacity: 0; transition: opacity .25s; }
.sheet-bg.open { opacity: 1; }
.sheet { position: fixed; left: 50%; transform: translate(-50%, 100%); bottom: 0; z-index: 51; width: min(100%, var(--col));
  background: var(--surface); border-radius: 18px 18px 0 0; border-top: 1px solid var(--line-strong);
  padding: 16px 20px calc(20px + env(safe-area-inset-bottom)); transition: transform .3s var(--ease); max-height: 82dvh; overflow-y: auto; }
.sheet.open { transform: translate(-50%, 0); }
.sheet .grab { width: 40px; height: 4px; border-radius: 999px; background: var(--line-strong); margin: 0 auto 14px; }
.sheet h3 { font-family: var(--display); font-weight: 400; font-size: 21px; letter-spacing: .04em; margin: 0 0 4px; }
.sheet p.sub { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; }
.sheet .opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 15px 0; border-bottom: 1px solid var(--line); text-align: left; }
.sheet .opt:last-of-type { border-bottom: 0; }
.sheet .opt .on { font-weight: 500; font-size: 15.5px; } .sheet .opt .op { font-variant-numeric: tabular-nums; color: var(--muted); }
.sheet .opt .r { display: flex; align-items: center; gap: 12px; }

.done { text-align: center; padding: 8px 6px 4px; }
.done .tick { width: 62px; height: 62px; border-radius: 50%; border: 2px solid var(--gold); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.done .tick svg { width: 28px; height: 28px; stroke: var(--gold); fill: none; stroke-width: 2; }
.done h3 { font-family: var(--display); font-weight: 400; font-size: 23px; margin-bottom: 6px; }
.done p { color: var(--muted); font-size: 14px; margin: 0 auto 14px; max-width: 32ch; }
.done .sim { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 11px; }

@media (prefers-reduced-motion: reduce) {
  .cart, .sheet, .sheet-bg, .cats button::after, .rnd, .btn-gold, .cartbar .count { transition: none !important; }
}

/* ————————————————————— Home / landing ————————————————————— */
.home { padding-bottom: 0; }
.home .wa { justify-self: start; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--r-lg); }
.home .wa svg { width: 18px; height: 18px; stroke: var(--gold); fill: none; stroke-width: 1.6; }

.hero { position: relative; min-height: 560px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px 22px 36px; text-align: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgb(10 12 18 / .15) 0%, rgb(10 12 18 / .45) 40%, var(--bg) 96%), url("../assets/fotos/foto-1.jpg") center/cover; }
.hero > * { position: relative; z-index: 1; }
.hero .kick { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 11.5vw, 52px); line-height: 1.06; letter-spacing: .02em; margin: 16px 0 14px; text-wrap: balance; }
.hero h1 .l { display: block; color: inherit; }
.hero p.sub { color: var(--ink); max-width: 28ch; margin: 0 auto 24px; font-size: 15px; }
.hero-cta { display: flex; flex-direction: column; gap: 10px; max-width: 300px; margin: 0 auto; }
.hero-stats { display: flex; justify-content: center; gap: 0; margin-top: 30px; }
.hero-stats .st { flex: 1; min-width: 0; padding: 0 8px; } .hero-stats .st + .st { border-left: 1px solid var(--line); }
.hero-stats .v { font-family: var(--display); font-size: 26px; color: var(--gold); white-space: nowrap; } .hero-stats .d { font-size: 12px; color: var(--muted); margin-top: 3px; letter-spacing: .02em; }

.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: var(--r-lg);
  border: 1px solid rgb(239 232 216 / .5); color: var(--ink); font-size: 15px; text-decoration: none; }
.btn-solid { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: var(--r-lg);
  background: var(--gold); color: var(--bg); font-family: var(--display); letter-spacing: .04em; font-size: 16px; text-decoration: none; }
.btn-solid svg, .btn-ghost svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.home-sec { padding: 40px 22px; }
/* Ritmo: fondos que alternan (negro / negro azulado); el cambio de tono separa, sin línea */
.home main .home-sec:nth-of-type(2n) { background: #0D1019; }
/* "Sushi premium" rompe el patrón: editorial */
.home-sec.editorial .feats { }
.home-sec .kick { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.home-sec h2 { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.12; letter-spacing: .02em; margin: 10px 0 12px; text-wrap: balance; }
.home-sec p.lead { color: var(--muted); font-size: 15px; margin: 0 0 4px; text-wrap: pretty; }

.feats { display: grid; gap: 2px; margin-top: 22px; }
.feat { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--line); }
.feat .ic { width: 34px; height: 34px; flex: none; border: 1px solid var(--gold); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.feat .ic svg { width: 17px; height: 17px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.feat b { display: block; font-weight: 600; font-size: 15px; } .feat span { font-size: 13px; color: var(--muted); }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.card { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; border: 1px solid var(--line); text-decoration: none; display: block; }
.card img { width: 100%; height: 100%; object-fit: cover; }
.card .lab { transition: transform .25s var(--ease); }
.card:hover .lab { transform: translateX(4px); }
.card .lab b { display: inline-block; border-bottom: 1px solid transparent; transition: border-color .25s var(--ease); }
.card:hover .lab b { border-color: var(--gold); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgb(10 12 18 / .88)); }
.card .lab { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; }
.card .lab b { font-family: var(--display); font-size: 19px; letter-spacing: .04em; color: var(--ink); display: block; }
.card .lab span { font-size: 12px; color: var(--gold); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 22px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }

.local-card { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.local-card .map { aspect-ratio: 16/9; background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; position: relative; }
.local-card .rows { padding: 16px; display: grid; gap: 12px; }
.local-card .row { display: flex; gap: 12px; align-items: center; } .local-card .row svg { width: 18px; height: 18px; stroke: var(--gold); fill: none; stroke-width: 1.5; flex: none; }
.local-card .row b { font-weight: 500; } .local-card .row span { font-size: 13px; color: var(--muted); display: block; }

.steps { display: grid; gap: 14px; margin-top: 22px; counter-reset: s; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; counter-increment: s; }
.step .n { font-family: var(--display); font-size: 30px; color: var(--gold); line-height: 1; } .step .n::before { content: "0" counter(s); }
.step b { display: block; font-weight: 600; font-size: 15.5px; margin-bottom: 2px; } .step span { font-size: 13.5px; color: var(--muted); }

.revs { display: grid; gap: 12px; margin-top: 22px; }
.rev { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.rev .stars { color: var(--gold); letter-spacing: 2px; font-size: 13px; margin-bottom: 8px; }
.rev p { font-size: 14px; margin: 0 0 10px; color: var(--ink); } .rev .who { font-size: 12.5px; color: var(--muted); }
.gnote { font-size: 12px; color: var(--muted); margin-top: 12px; text-align: center; }

.home-cta { padding: 72px 22px; text-align: center; background: linear-gradient(180deg, var(--bg), #0d1a2a 55%, var(--sea)); border-top: 1px solid var(--line); }
.home-cta h2 { font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1.08; letter-spacing: .02em; margin: 0 0 20px; }
.home-cta .btn-solid { max-width: 300px; margin: 0 auto; }
.home-foot { padding: 22px; text-align: center; font-size: 12px; color: var(--muted); letter-spacing: .04em; border-top: 1px solid var(--line); }

/* Reservar */
.resv { padding: 26px 22px 40px; }
.resv h1 { font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: .03em; margin: 0 0 6px; }
.resv p.sub { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.resv .block { border-bottom: 0; padding: 0 0 20px; }
.resv .suc { border: 1px solid var(--gold); border-radius: var(--r-lg); padding: 14px; background: rgb(212 175 90 / .07); }
.resv .suc b { display: block; } .resv .suc span { font-size: 13px; color: var(--muted); }
.resv .grid-d { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.resv .day { border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 10px 6px; text-align: center; }
.resv .day[aria-pressed="true"] { border-color: var(--gold); background: rgb(212 175 90 / .09); color: var(--gold); }
.resv .day b { display: block; font-size: 16px; } .resv .day span { font-size: 11px; color: var(--muted); }

/* ————————————————————— Web / responsive (≥720 y ≥1040) ————————————————————— */
:root { --content: 1120px; }

@media (min-width: 720px) {
  .app, .app.home { max-width: none; width: 100%; border-inline: 0; }

  /* Barras full-width con el contenido centrado */
  .top-row { max-width: var(--content); margin-inline: auto; height: 64px; }
  .status { justify-content: center; text-align: center; }
  .cats ul { max-width: var(--content); margin-inline: auto; justify-content: center; padding: 0 20px; }
  .cats { top: 64px; }
  .cats button { height: 48px; font-size: 13px; }

  /* Menú en una columna centrada (carta), no estirado */
  #menu { max-width: 760px; margin-inline: auto; padding: 8px 24px 48px; }
  .sec-head { margin: 44px 0 10px; }
  .sec:first-of-type .sec-head { margin-top: 26px; }
  .sec-head h2 { font-size: 24px; }
  .sec-photo { aspect-ratio: 3/1; }
  .item { min-height: 72px; }

  /* Barra inferior: contenido centrado al ancho de la carta */
  .cartbar { width: 100%; left: 0; transform: none; }
  .cartbar button { max-width: 760px; margin-inline: auto; }

  /* Carrito como panel lateral derecho */
  .cart { left: auto; right: 0; transform: translateX(100%); width: min(100%, 460px);
    border-left: 1px solid var(--line); box-shadow: -30px 0 80px -40px rgb(0 0 0 / .9); }
  .cart.open { transform: none; }
  .confirm-bar { left: auto; right: 0; transform: none; width: min(100%, 460px); }

  /* Hoja: modal centrado */
  .sheet { max-width: 460px; }

  /* ——— Home ——— */
  .hero { min-height: 620px; padding: 140px 22px 72px; border-bottom: 1px solid var(--line); }
  .hero h1 { font-size: clamp(48px, 6vw, 72px); }
  .hero p.sub { font-size: 18px; max-width: 34ch; }
  .hero-cta { flex-direction: row; max-width: none; justify-content: center; }
  .hero-cta a { min-width: 220px; }
  .hero-stats { max-width: 560px; margin-inline: auto; margin-top: 44px; }
  .hero-stats .v { font-size: 30px; }

  .home-sec { max-width: var(--content); margin-inline: auto; padding: 64px 24px; }
  .home-sec > .kick { text-align: center; display: block; }
  .home-sec > h2 { text-align: center; font-size: 36px; }
  .home-sec > p.lead { text-align: center; max-width: 52ch; margin-inline: auto; }
  .feats { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
  .feat { flex-direction: column; text-align: center; border-top: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); align-items: center; }
  .cards { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .cards .card { aspect-ratio: 4/5; }
  .local-card { display: grid; grid-template-columns: 1.3fr 1fr; }
  .local-card .map { aspect-ratio: auto; height: 100%; min-height: 260px; }
  .local-card .rows { align-content: center; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .step { grid-template-columns: 1fr; text-align: center; gap: 6px; } .step .n { font-size: 36px; }
  .revs { grid-template-columns: repeat(3, 1fr); }
  .home-cta { padding: 80px 24px; } .home-cta h2 { font-size: 40px; }
}

@media (min-width: 1040px) {
  .hero h1 { font-size: 78px; }
  #menu { max-width: 780px; }
}

/* En pantallas anchas, el fondo exterior oscuro enmarca el contenido full-bleed de la demo */
@media (min-width: 720px) { body { background: var(--bg); } }

/* ————————————————————— Accesibilidad (cortex-accessibility) ————————————————————— */
:root { --field-border: #6F6B5E; } /* borde de input ≥3:1 sobre surface */
.field input, .field textarea { border-color: var(--field-border); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); } /* placeholder pleno (≥4.5:1) */
[tabindex="-1"]:focus { outline: none; }
.sr { margin: -1px; padding: 0; border: 0; white-space: nowrap; }
/* Estados seleccionados: no solo color */
.seg button[aria-checked="true"] b, .chips button[aria-checked="true"] { font-weight: 700; }
.cats button[aria-current="true"] { font-weight: 600; }
/* Foco no recortado en scrollers horizontales */
.cats button:focus-visible, .chips button:focus-visible { outline-offset: -3px; }
/* El elemento enfocado no queda tapado por las barras fijas */
html { scroll-padding-top: 112px; scroll-padding-bottom: 86px; }
.cart { scroll-padding-bottom: 130px; }
/* Botón cerrar de la hoja */
.sheet-close { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); font-size: 16px; border-radius: 50%; flex: none; }
/* Card "Rolls" sobre mantel claro: scrim más fuerte para el dorado chico */
.card.light::after { background: linear-gradient(180deg, transparent 25%, rgb(10 12 18 / .92) 85%); }
@media (prefers-reduced-motion: reduce) { .card img { transition: none !important; } html { scroll-behavior: auto; } }

/* Botones: que el texto no toque los bordes */
.btn-solid, .btn-ghost { padding-inline: 24px; white-space: nowrap; }

/* Historias de Instagram en la home (mockeadas) */
.stories-row { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 22px -22px 0; padding: 0 22px 6px; scroll-snap-type: x proximity; }
.stories-row::-webkit-scrollbar { display: none; }
.story { flex: none; width: 150px; aspect-ratio: 9/16; border-radius: var(--r-lg); overflow: hidden; position: relative; border: 1px solid var(--line); scroll-snap-align: start; }
.story img { width: 100%; height: 100%; object-fit: cover; }
.story .ring { position: absolute; top: 10px; left: 10px; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--gold); display: grid; place-items: center; }
.story .ring span { font-family: var(--display); font-size: 10px; color: var(--gold); }
.story .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 10px; font-size: 12px; color: #fff; background: linear-gradient(transparent, rgb(0 0 0 / .82)); }
@media (min-width: 720px) { .stories-row { margin: 28px 0 0; padding: 0; justify-content: center; flex-wrap: wrap; } }

/* Ola de Kanagawa de fondo (detalle blanco muy sutil) en la home */
.app.home { position: relative; }
.wave-bg { position: fixed; left: 0; right: 0; bottom: 0; z-index: 0; width: 100%; max-width: var(--col); margin: 0 auto;
  opacity: .05; pointer-events: none; }
.wave-bg img { width: 100%; height: auto; display: block; }
.home main, .home .home-foot { position: relative; z-index: 1; }
.home .hero, .home-cta { position: relative; z-index: 1; }
@media (min-width: 720px) { .wave-bg { max-width: none; opacity: .045; } }

/* Azul profundo de la ola de Kanagawa como detalle (profundidad de mar) */
:root { --sea: #16304c; }
.sea-glow { position: fixed; left: 0; right: 0; bottom: 0; height: 46vh; z-index: 0; pointer-events: none; width: 100%; max-width: var(--col); margin: 0 auto;
  background: radial-gradient(130% 120% at 50% 135%, rgb(22 48 76 / .6), transparent 72%); }
.wave-bg { opacity: .08; }
@media (min-width: 720px) { .sea-glow { max-width: none; } .wave-bg { opacity: .06; } }

/* Reels "Detrás de la barra" */
.reels { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 22px -22px 0; padding: 0 22px 6px; scroll-snap-type: x proximity; }
.reels::-webkit-scrollbar { display: none; }
.reel { flex: none; width: 164px; aspect-ratio: 9/16; border-radius: var(--r-lg); overflow: hidden; position: relative; border: 1px solid var(--line); scroll-snap-align: start; }
.reel img { width: 100%; height: 100%; object-fit: cover; }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 12 18 / .25), transparent 40%, rgb(10 12 18 / .7)); }
.reel .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--ink); display: grid; place-items: center; z-index: 1; background: rgb(10 12 18 / .25); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.reel .play svg { width: 18px; height: 18px; fill: var(--ink); margin-left: 2px; }
.reel figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 12px; font-size: 12.5px; color: #fff; z-index: 1; }
@media (min-width: 720px) { .reels { margin: 28px 0 0; padding: 0; justify-content: center; } }

/* Reservar: columna centrada (no estirada) sobre una foto de fondo oscurecida */
.resv-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(rgb(10 12 18 / .8), rgb(10 12 18 / .93) 70%, var(--bg)), url("../assets/fotos/foto-3.jpg") center / cover no-repeat; }
.resv { position: relative; z-index: 1; max-width: 640px; margin-inline: auto; padding-top: 18px; }
.resv h1 { font-size: 26px; margin-bottom: 4px; }
.resv .sub { margin-bottom: 16px; }
.resv fieldset.block, .resv .block { padding: 12px 0; }
.resv .grid-d { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
.resv .day { padding: 8px 6px; }
@media (min-width: 720px) { .resv .two { grid-template-columns: 1fr 1fr; } }
/* En desktop: 2 columnas, sin scroll */
@media (min-width: 820px) and (min-height: 640px) {
  .resv { max-width: 860px; }
  #r-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; align-items: start; }
  #r-form > section:first-child, #r-form > button, #r-form > .done { grid-column: 1 / -1; }
  .resv fieldset.block { border-bottom: 0; }
  .resv .block[style], .resv > .block { } /* datos */
}

/* Velo detrás del carrito */
.cart-scrim { position: fixed; inset: 0; z-index: 39; background: rgb(0 0 0 / .5); opacity: 0; transition: opacity .3s var(--ease); }
.cart-scrim.open { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .cart-scrim { transition: none; } }

/* Fieldsets (carrito y reservar): sin el borde/caja default del navegador.
   min-width:0 corrige el min-width:min-content que traen los <fieldset> y hacía scrollear el carrito. */
fieldset.block { border: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 16px 0; min-width: 0; }
fieldset.block:last-of-type { border-bottom: 0; }
legend.leg { padding: 0; margin: 0 0 13px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.coupon { display: flex; gap: 8px; }
.coupon input { flex: 1; }
.coupon button { padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r-lg); color: var(--gold); font-weight: 600; white-space: nowrap; }
.totals .note { font-size: 12px; color: var(--muted); margin-top: 2px; }
.field textarea { resize: vertical; min-height: 54px; }

/* Contenido por encima de la ola/mar de fondo en carta y reservar */
#menu, .resv { position: relative; z-index: 1; }

/* "Sushi premium" en editorial (desktop): título a la izquierda, lista al costado */
@media (min-width: 720px) {
  .home-sec.editorial { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; align-items: start; }
  .home-sec.editorial > .kick, .home-sec.editorial > h2, .home-sec.editorial > p.lead { grid-column: 1; text-align: left; margin-inline: 0; }
  .home-sec.editorial > h2 { font-size: 40px; }
  .home-sec.editorial .feats { grid-column: 2; grid-row: 1 / span 3; grid-template-columns: 1fr; gap: 0; margin-top: 0; }
  .home-sec.editorial .feat { flex-direction: row; text-align: left; align-items: flex-start; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 16px 0; }
  .home-sec.editorial .feat:first-child { border-top: 0; }
}

/* Horario en 2 filas (se ven todos los horarios, sin scroll oculto) */
.chips.wrap { flex-wrap: wrap; overflow: visible; }
/* Feedback al sumar al pedido */
@keyframes popGold { 0% { transform: scale(1); } 38% { transform: scale(1.16); } 100% { transform: scale(1); } }
.just-added .price { animation: popGold .46s var(--ease); color: var(--gold); }
.just-added .rnd { animation: popGold .46s var(--ease); background: var(--gold); color: var(--bg); }
@media (prefers-reduced-motion: reduce) { .just-added .price, .just-added .rnd { animation: none; } }

/* Fade a izquierda y derecha en los carruseles de la home (indica que hay más contenido) */
.reels, .stories-row {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 26px, #000 calc(100% - 26px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 26px, #000 calc(100% - 26px), transparent);
}
@media (min-width: 720px) {
  /* En desktop se centran/acomodan y no hace falta el fade */
  .reels, .stories-row { -webkit-mask-image: none; mask-image: none; }
  /* Logo un poco más grande (el header mide 64) */
  .brand .mark { width: 26px; height: 26px; }
  .brand .name { font-size: 17px; letter-spacing: .18em; }
  .brand .name small { font-size: 9px; }
}
