/* Yo-Picho · Menú en línea
   Dirección: taquería nocturna con aplomo de saloon (ref. Maverick's Corral):
   carbón ahumado, resplandor del trompo, grotesca espaciada en mayúsculas.
   Color: 5 tokens. Tipografía: Space Grotesk (display y etiquetas) + Work Sans (cuerpo). */

:root {
  --carbon:   #0d0b0a;  /* fondo */
  --masa:     #f6efe4;  /* texto principal (color tortilla) */
  --humo:     #b3a899;  /* texto secundario */
  --amarillo: #f2b324;  /* acción: botones, precios activos, foco (amarillo del logo) */
  --rojo:     #c9171e;  /* marca: resplandores y la firma (rojo del trompo) */

  --sup: rgba(246, 239, 228, .045);       /* superficies */
  --linea: rgba(246, 239, 228, .11);
  --linea-suave: rgba(246, 239, 228, .065);
  --texto-suave: rgba(246, 239, 228, .82);

  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Work Sans", "Segoe UI", system-ui, sans-serif;

  --top: 68px;
  --radio: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--carbon);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--carbon);
  color: var(--masa);
  font: 400 1rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Resplandor fijo del trompo, como el cobre de Maverick's */
.glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 12% 6%, rgba(201, 23, 30, .16), transparent 70%),
    radial-gradient(55% 40% at 92% 22%, rgba(242, 179, 36, .07), transparent 70%),
    radial-gradient(70% 50% at 50% 110%, rgba(201, 23, 30, .1), transparent 70%);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; text-wrap: balance; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--amarillo);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--amarillo);
  color: var(--carbon);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* Etiquetas en mayúsculas con ícono de línea */
.eyebrow,
.label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font: 500 .76rem/1 var(--display);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--humo);
}
.eyebrow .ico,
.label .ico { color: var(--amarillo); }
.eyebrow--plain { margin-bottom: 8px; }

/* ---------- Botones cápsula ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  min-height: 48px;
  padding: 0 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 500 .78rem/1 var(--display);
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .2s var(--ease);
}
.pill:active { transform: scale(.97); }
.pill--gold {
  background: var(--amarillo);
  color: var(--carbon);
  font-weight: 600;
}
.pill--gold:hover { filter: brightness(1.08); }
.pill--gold:disabled { opacity: .45; cursor: not-allowed; }
.pill--ghost {
  border-color: rgba(246, 239, 228, .3);
  background: rgba(13, 11, 10, .4);
  color: var(--masa);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.pill--ghost:hover { border-color: var(--masa); }
.pill--block { width: 100%; min-height: 56px; }
.pill--grow { flex: 1; min-height: 52px; }

/* ---------- Barra superior ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: var(--top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.topbar.is-solid {
  background: rgba(13, 11, 10, .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--linea);
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font: 600 .8rem/1 var(--display);
  letter-spacing: .26em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.mark img { width: 40px; height: 40px; }
.topbar.is-solid .mark { opacity: 1; transform: none; pointer-events: auto; }

.burger,
.x {
  position: relative;
  width: 18px;
  height: 12px;
}
.burger::before,
.burger::after,
.x::before,
.x::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
}
.burger::before { top: 2px; }
.burger::after { bottom: 2px; }
.x::before, .x::after { top: 50%; }
.x::before { transform: rotate(45deg); }
.x::after { transform: rotate(-45deg); }

/* ---------- Menú a pantalla completa ---------- */

.overlay {
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0 16px calc(28px + env(safe-area-inset-bottom));
  border: 0;
  background:
    radial-gradient(60% 40% at 50% 30%, rgba(201, 23, 30, .18), transparent 70%),
    var(--carbon);
  color: var(--masa);
  opacity: 0;
  transition: opacity .35s var(--ease), overlay .35s allow-discrete, display .35s allow-discrete;
}
.overlay[open] {
  display: flex;
  flex-direction: column;
  opacity: 1;
}
@starting-style {
  .overlay[open] { opacity: 0; }
}
.overlay::backdrop { background: transparent; }
.overlay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--top);
  padding-top: env(safe-area-inset-top);
}
.overlay-top img { width: 44px; height: 44px; }
.overlay-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.overlay-links a {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  font: 500 clamp(2rem, 9.6vw, 4.4rem)/1 var(--display);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .25s var(--ease), opacity .45s var(--ease), transform .45s var(--ease);
}
.overlay-links a:hover { color: var(--amarillo); }
.overlay[open] .overlay-links a { opacity: 1; transform: none; }
@starting-style {
  .overlay[open] .overlay-links a { opacity: 0; transform: translateY(18px); }
}
.overlay-links a:nth-child(2) { transition-delay: 0s, .05s, .05s; }
.overlay-links a:nth-child(3) { transition-delay: 0s, .1s, .1s; }
.overlay-links a:nth-child(4) { transition-delay: 0s, .15s, .15s; }
.overlay-links a:nth-child(5) { transition-delay: 0s, .2s, .2s; }
.overlay-tel {
  align-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 500 .78rem/1 var(--display);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--humo);
  text-decoration: none;
}
.overlay-tel:hover { color: var(--amarillo); }

/* ---------- Portada ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: calc(var(--top) + 8px) 16px 104px;
  overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.4) saturate(1.1);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 45% at 50% 42%, rgba(13, 11, 10, .55), transparent 75%),
    radial-gradient(70% 50% at 50% 100%, rgba(201, 23, 30, .28), transparent 70%),
    linear-gradient(180deg, rgba(13, 11, 10, .5) 0%, rgba(13, 11, 10, 0) 30%, rgba(13, 11, 10, 0) 70%, var(--carbon) 100%);
}
.hero-inner {
  display: grid;
  justify-items: center;
}
.hero-logo img {
  width: min(78vw, 330px);
  height: auto;
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, .65));
}
.tagline {
  margin: 18px 0 0;
  font: 500 clamp(1.05rem, 5vw, 1.6rem)/1.2 var(--display);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--masa);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin: 14px 0 28px;
  font: 500 .74rem/1.4 var(--display);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--humo);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* ---------- Frase firma ---------- */

.statement {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 16px 24px;
}
.statement::before,
.info::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: 48px;
  background: linear-gradient(90deg, transparent, var(--linea), transparent);
}
.roast {
  max-width: 17ch;
  font: 700 clamp(2.3rem, 10.5vw, 4.6rem)/1.02 var(--display);
  letter-spacing: -.025em;
}
/* El título se "asa" al hacer scroll (lo activa app.js) */
.roast .w { display: inline-block; white-space: nowrap; }
.roast .l {
  color: rgba(246, 239, 228, .16);
  transition: color .4s var(--ease), text-shadow .4s var(--ease);
}
.roast .l.on { color: var(--masa); }
.roast .l.hot {
  color: var(--amarillo);
  text-shadow: 0 0 22px rgba(201, 23, 30, .9), 0 0 4px rgba(242, 179, 36, .6);
}

.strip {
  display: flex;
  gap: 12px;
  margin: 40px -16px 0;
  padding: 0 16px 8px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 16px;
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip li {
  flex: none;
  width: 62vw;
  max-width: 260px;
  scroll-snap-align: start;
}
.strip figure { margin: 0; }
.strip img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--linea);
}
.strip figcaption {
  margin-top: 10px;
  font: 500 .7rem/1.4 var(--display);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--humo);
}

/* ---------- Menú ---------- */

.menu {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 16px 40px;
}
.menu-head h2,
.info h2 {
  font: 700 clamp(2.3rem, 10vw, 3.8rem)/1.02 var(--display);
  letter-spacing: -.025em;
}
.menu-intro {
  margin: 12px 0 0;
  color: var(--humo);
}
.menu-intro b { color: var(--amarillo); font-weight: 500; }

.search {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 28px;
}
.search .ico {
  position: absolute;
  left: 18px;
  color: var(--humo);
  pointer-events: none;
}
.search input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px 0 50px;
  border: 1px solid var(--linea);
  border-radius: 999px;
  background: var(--sup);
  font-size: 1rem;
  -webkit-appearance: none;
  appearance: none;
}
.search input::placeholder { color: rgba(179, 168, 153, .85); }
.search input:focus { border-color: var(--amarillo); outline: none; }

.tabs-wrap {
  position: sticky;
  top: calc(var(--top) + 6px);
  z-index: 20;
  margin: 12px -16px 0;
  padding: 0 16px;
}
.tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid var(--linea);
  border-radius: 999px;
  background: rgba(13, 11, 10, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font: 500 .74rem/1 var(--display);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--humo);
  transition: color .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease);
}
.tabs button:hover { color: var(--masa); }
.tabs button[aria-pressed="true"] {
  border-color: rgba(242, 179, 36, .5);
  background: rgba(242, 179, 36, .12);
  color: var(--amarillo);
}

.noscript,
.empty {
  margin: 28px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--linea);
  border-radius: 16px;
  color: var(--texto-suave);
}

.cat {
  padding-top: 56px;
  scroll-margin-top: calc(var(--top) + 72px);
}
.cat--compact { padding-top: 64px; }
.cat-photo {
  margin: 0 0 28px;
  aspect-ratio: 16 / 11;
  border-radius: var(--radio);
  overflow: hidden;
  border: 1px solid var(--linea);
  box-shadow: 0 40px 70px -40px rgba(201, 23, 30, .55);
}
.cat-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat-head {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--linea);
}
.cat-head .eyebrow { margin-bottom: 10px; }
.cat-head h3 {
  font: 700 clamp(2rem, 8.5vw, 3rem)/1.02 var(--display);
  letter-spacing: -.02em;
}

.items {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 64px;
}
.item {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 16px;
  row-gap: 6px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--linea-suave);
}
.item h4 {
  grid-column: 1;
  font: 600 1.2rem/1.25 var(--display);
  letter-spacing: -.005em;
}
.item .price {
  grid-column: 2;
  justify-self: end;
  font: 600 1.2rem/1.25 var(--display);
  font-variant-numeric: tabular-nums;
  color: var(--amarillo);
}
.item p {
  grid-column: 1;
  margin: 0;
  color: var(--humo);
  max-width: 46ch;
}
.item .variants {
  font: 500 .7rem/1.5 var(--display);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--texto-suave);
}
.item .add {
  grid-column: 2;
  grid-row: 2 / span 2;
  justify-self: end;
  align-self: start;
}

/* Botón agregar: se llena y muestra cuántos llevas */
.add {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(246, 239, 228, .3);
  background: transparent;
  color: var(--masa);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
}
.add::before,
.add::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: opacity .2s, transform .3s var(--ease);
}
.add::after { transform: rotate(90deg); }
.add:hover { border-color: var(--amarillo); color: var(--amarillo); }
.add:active { transform: scale(.92); }
.add-qty {
  font: 600 .95rem/1 var(--display);
  opacity: 0;
  transform: scale(.4);
  transition: opacity .2s, transform .3s var(--ease);
}
.add.has-qty {
  background: var(--amarillo);
  border-color: var(--amarillo);
  color: var(--carbon);
}
.add.has-qty::before,
.add.has-qty::after { opacity: 0; transform: rotate(180deg) scale(.4); }
.add.has-qty .add-qty { opacity: 1; transform: none; }
.add.is-bump { animation: bump .45s var(--ease); }
@keyframes bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ---------- Ubicación ---------- */

.info {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 16px 40px;
}
.info h2 { max-width: 16ch; }
.info-grid {
  display: grid;
  gap: 0;
  margin-top: 40px;
}
.info-cell {
  padding: 24px 0;
  border-top: 1px solid var(--linea);
}
.info-cell p { margin: 0; }
.info-cell .label { margin-bottom: 12px; }
.info-cell .muted { color: var(--humo); }
.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--amarillo);
  text-decoration: underline;
  text-decoration-color: rgba(242, 179, 36, .45);
  text-underline-offset: 5px;
}
.link--big {
  font: 600 1.6rem/1 var(--display);
  letter-spacing: .02em;
  color: var(--masa);
  text-decoration: none;
}

/* ---------- Pie ---------- */

.footer {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 48px 16px 140px;
  text-align: center;
}
.footer img { width: 72px; height: 72px; }
.footer-name {
  margin: 0;
  font: 500 .76rem/1.4 var(--display);
  letter-spacing: .28em;
  text-transform: uppercase;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 12px;
  margin: 6px 0 0;
  font-size: .9rem;
  color: var(--humo);
}
.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(242, 179, 36, .5);
}

/* ---------- Barra del pedido ---------- */

.cartbar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 520px;
  min-height: 60px;
  margin: 0 auto;
  padding: 8px 22px 8px 8px;
  border: 0;
  border-radius: 999px;
  background: var(--amarillo);
  color: var(--carbon);
  box-shadow: 0 22px 44px -16px rgba(0, 0, 0, .9), 0 10px 34px -14px rgba(201, 23, 30, .6);
  transform: translateY(160%);
  visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s linear .5s;
}
.cartbar.is-visible {
  transform: none;
  visibility: visible;
  transition: transform .5s var(--ease), visibility 0s;
}
.cartbar-count {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--carbon);
  color: var(--amarillo);
  font: 600 1rem/1 var(--display);
}
.cartbar-count.is-bump { animation: bump .45s var(--ease); }
.cartbar-label {
  flex: 1;
  text-align: left;
  font: 600 .78rem/1 var(--display);
  letter-spacing: .22em;
  text-transform: uppercase;
}
.cartbar-total {
  font: 700 1.25rem/1 var(--display);
  font-variant-numeric: tabular-nums;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom));
  z-index: 26;
  margin: 0;
  max-width: calc(100% - 32px);
  padding: 10px 18px;
  border: 1px solid var(--linea);
  border-radius: 999px;
  background: color-mix(in srgb, var(--masa) 7%, var(--carbon));
  color: var(--masa);
  font-size: .95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .35s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Hojas (dialog) ---------- */

.sheet {
  width: 100%;
  max-width: 100%;
  max-height: 92svh;
  margin: auto 0 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--linea);
  border-radius: 24px 24px 0 0;
  background: color-mix(in srgb, var(--masa) 5%, var(--carbon));
  color: var(--masa);
  overflow: hidden;
  transform: translateY(100%);
  transition: transform .42s var(--ease), overlay .42s allow-discrete, display .42s allow-discrete;
}
.sheet[open] { transform: none; }
@starting-style {
  .sheet[open] { transform: translateY(100%); }
}
.sheet::backdrop {
  background: rgba(5, 4, 3, .72);
  opacity: 0;
  transition: opacity .42s, overlay .42s allow-discrete, display .42s allow-discrete;
}
.sheet[open]::backdrop { opacity: 1; }
@starting-style {
  .sheet[open]::backdrop { opacity: 0; }
}
.sheet-form {
  display: flex;
  flex-direction: column;
  max-height: 92svh;
  margin: 0;
}
.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 20px 16px;
  border-bottom: 1px solid var(--linea);
}
.sheet-head h2 {
  font: 700 1.6rem/1.15 var(--display);
  letter-spacing: -.01em;
}
.sheet-price {
  margin: 6px 0 0;
  font: 600 1.15rem/1 var(--display);
  color: var(--amarillo);
}
.close {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--linea);
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
}
.close:hover { border-color: var(--amarillo); color: var(--amarillo); }
.sheet-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 20px 8px;
}
.sheet-foot {
  padding: 16px 20px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--linea);
  background: color-mix(in srgb, var(--masa) 5%, var(--carbon));
}
.sheet-foot--row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.item-desc {
  margin: 0 0 6px;
  color: var(--humo);
}

.field {
  display: block;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.field legend,
.field-label {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  font: 500 .72rem/1.3 var(--display);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--humo);
}
.field small {
  letter-spacing: .04em;
  text-transform: none;
}
.field input[type="text"],
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid rgba(246, 239, 228, .16);
  border-radius: 14px;
  background: var(--sup);
  font-size: 1rem;
  line-height: 1.4;
  resize: vertical;
  transition: border-color .2s;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(179, 168, 153, .8); }
.field input:focus,
.field textarea:focus { border-color: var(--amarillo); outline: none; }
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--amarillo); outline-offset: 2px; }

.chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.chip,
.seg label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 52px;
  padding: 8px 14px;
  border: 1px solid rgba(246, 239, 228, .16);
  border-radius: 14px;
  line-height: 1.25;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.chip input,
.seg input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.chip b { font-weight: 500; color: var(--humo); font-size: .95rem; }
.chip:has(input:checked),
.seg label:has(input:checked) {
  border-color: var(--amarillo);
  background: rgba(242, 179, 36, .1);
}
.chip:has(input:checked) b { color: var(--amarillo); }
.chip:has(input:focus-visible),
.seg label:has(input:focus-visible) { outline: 2px solid var(--amarillo); outline-offset: 2px; }

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.seg label {
  justify-content: center;
  min-height: 56px;
  text-align: center;
}
.seg small { display: block; color: var(--humo); font-size: .85rem; }

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(246, 239, 228, .2);
  border-radius: 999px;
}
.stepper button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 1.3rem;
  line-height: 1;
}
.stepper button:hover { color: var(--amarillo); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output,
.stepper span {
  min-width: 2ch;
  text-align: center;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.lines:empty::before {
  content: "Tu carrito está vacío. Agrega algo sabroso del menú.";
  display: block;
  padding: 24px 0;
  color: var(--humo);
}
.line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--linea-suave);
}
.line h3 { font: 600 1.05rem/1.3 var(--display); }
.line-price {
  font: 600 1.05rem/1.3 var(--display);
  font-variant-numeric: tabular-nums;
}
.line-meta {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--humo);
  font-size: .95rem;
}
.line-controls {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}
.line-remove {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--humo);
  font-size: .95rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.line-remove:hover { color: var(--masa); }

.totals { margin: 0 0 12px; }
.totals div {
  display: flex;
  justify-content: space-between;
  padding: 1px 0;
  font-size: .95rem;
  color: var(--humo);
}
.totals dt, .totals dd { margin: 0; }
.totals dd { font-variant-numeric: tabular-nums; }
.totals .totals-grand {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--linea);
  align-items: baseline;
  color: var(--masa);
}
.totals-grand dt { font: 500 .76rem/1 var(--display); letter-spacing: .22em; text-transform: uppercase; }
.totals-grand dd { font: 700 1.6rem/1 var(--display); }

.status {
  margin: 10px 0 0;
  font-size: .95rem;
  color: var(--amarillo);
}
.status:empty { display: none; }
.fine {
  margin: 20px 0 8px;
  font-size: .85rem;
  line-height: 1.45;
  color: var(--humo);
}
.fine a { color: var(--masa); text-underline-offset: 3px; }

/* ---------- Tableta y escritorio ---------- */

@media (min-width: 760px) {
  .topbar { padding: 0 32px; }
  .hero-logo img { width: min(42vh, 380px); }
  .statement,
  .menu,
  .info { padding-left: 40px; padding-right: 40px; }
  .strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin: 48px 0 0;
    padding: 0;
    overflow: visible;
  }
  .strip li { width: auto; max-width: none; }
  .tabs-wrap { margin: 12px 0 0; padding: 0; display: flex; }
  .tabs { display: inline-flex; max-width: 100%; }
  .cat-photo { aspect-ratio: 21 / 8; }
  .info-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .menu-head { max-width: 640px; }
  .search { max-width: 520px; }

  .sheet--item {
    width: min(540px, calc(100% - 48px));
    margin: auto;
    border: 1px solid var(--linea);
    border-radius: 24px;
    transform: translateY(18px) scale(.98);
    opacity: 0;
    transition: transform .35s var(--ease), opacity .3s, overlay .35s allow-discrete, display .35s allow-discrete;
  }
  .sheet--item[open] { transform: none; opacity: 1; }
  @starting-style {
    .sheet--item[open] { transform: translateY(18px) scale(.98); opacity: 0; }
  }
  .sheet--item .sheet-foot { padding-bottom: 18px; }
}

@media (min-width: 980px) {
  .items { grid-template-columns: 1fr 1fr; }
  .item h4, .item .price { font-size: 1.3rem; }
  .sheet--cart {
    width: 460px;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0 0 0 auto;
    border-top: 0;
    border-left: 1px solid var(--linea);
    border-radius: 0;
    transform: translateX(100%);
  }
  .sheet--cart[open] { transform: none; }
  @starting-style {
    .sheet--cart[open] { transform: translateX(100%); }
  }
  .sheet--cart .sheet-form { height: 100%; max-height: 100dvh; }
}

/* Teléfonos bajos (iPhone SE): el logo cede espacio a los botones */
@media (max-width: 759px) and (max-height: 760px) {
  .hero-logo img { width: min(62vw, 250px); }
  .hero-meta { margin-bottom: 20px; }
}
