/* Dessy's Burgers · Menú en línea · versión blanca
   Dirección: carta de restaurante sobre papel blanco; la madera y el fuego del
   logo viven en la tinta (nogal), en las fotos enmarcadas y en el pie.
   Color: 5 tokens. Tipografía: Fraunces (display) + Jost (cuerpo y etiquetas). */

:root {
  --blanco:       #ffffff;  /* fondo y superficies */
  --nogal:        #2a1a10;  /* tinta principal y franjas oscuras (madera del logo) */
  --dorado:       #e0ad48;  /* acento de marca: rellenos, nunca texto sobre blanco */
  --dorado-tinta: #8c5e14;  /* el mismo dorado, tostado para texto sobre blanco (5.6:1) */
  --ceniza:       #6e6259;  /* texto secundario (5.9:1 sobre blanco) */

  --linea: rgba(42, 26, 16, .13);
  --linea-suave: rgba(42, 26, 16, .07);
  --texto-suave: rgba(42, 26, 16, .82);
  --sombra: 0 28px 60px -34px rgba(42, 26, 16, .55);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --top: 64px;
  --radio: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

/* Lo oculto se queda oculto aunque una clase le dé display */
[hidden] { display: none !important; }

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

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

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

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

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

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

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65em;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 .8rem/1 var(--body);
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease);
}
.pill:active { transform: scale(.97); }

.pill--gold {
  background: var(--dorado);
  color: var(--nogal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 14px 28px -16px rgba(140, 94, 20, .8);
}
.pill--gold:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 18px 34px -16px rgba(140, 94, 20, .95); }
.pill--gold:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

.pill--ghost {
  border-color: rgba(42, 26, 16, .22);
  background: var(--blanco);
  color: var(--nogal);
}
.pill--ghost:hover { border-color: var(--dorado-tinta); }

.pill--block { width: 100%; min-height: 56px; }
.pill--grow { flex: 1; min-height: 52px; }

.pill-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--nogal);
  color: var(--dorado);
  letter-spacing: 0;
  font-size: .78rem;
}

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

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: var(--top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  padding-top: env(safe-area-inset-top);
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.topbar.is-solid {
  border-bottom-color: var(--linea);
  box-shadow: 0 10px 30px -24px rgba(42, 26, 16, .5);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  min-height: 44px;
  align-content: center;
  padding-top: 6px;
  text-decoration: none;
}
.wordmark-name {
  font: italic 400 1.65rem/1 var(--display);
  color: var(--dorado-tinta);
}
.wordmark-sub {
  font: 600 .62rem/1 var(--body);
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--nogal);
}

.topbar-hours { display: none; }

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

.hero {
  display: flex;
  flex-direction: column;
  padding: calc(var(--top) + 8px) 16px 96px; /* deja libre el botón aunque aparezca la barra del pedido */
}

/* La foto vive enmarcada; las brasas suben dentro del marco */
.hero-frame {
  position: relative;
  isolation: isolate;
  height: clamp(300px, 47svh, 520px);
  border-radius: 28px;
  overflow: hidden;
  background: var(--nogal);
  box-shadow: var(--sombra);
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 74%;
}
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(42, 26, 16, 0) 55%, rgba(42, 26, 16, .45) 100%);
  pointer-events: none;
}

.embers {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 640px;
}

/* Teléfonos bajos (iPhone SE y similares): foto más corta para que el botón quede a la vista */
@media (max-width: 759px) and (max-height: 760px) {
  .hero-frame { height: 31svh; }
  .hero-badge { width: 72px; height: 72px; margin-top: -40px; margin-bottom: 14px; }
  .hero h1 { font-size: 3.6rem; }
  .lead { margin-top: 10px; }
  .hero-hours { margin: 12px 0 18px; }
}

.hero-badge {
  position: relative;
  z-index: 3;
  width: 84px;
  height: 84px;
  margin: -46px 0 18px 18px;
  border-radius: 50%;
  border: 4px solid var(--blanco);
  box-shadow: 0 14px 30px -12px rgba(42, 26, 16, .6);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 10px;
  font: 600 .74rem/1 var(--body);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--dorado-tinta);
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}
.eyebrow--plain::before { display: none; }

h1, h2, h3 { font-weight: 400; margin: 0; }

.hero h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(3.9rem, 19vw, 5.2rem);
  line-height: .95;
  letter-spacing: -.025em;
  font-optical-sizing: auto;
}

.lead {
  margin: 16px 0 0;
  max-width: 34ch;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--texto-suave);
}

.hero-hours {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 18px 0 26px;
  font: 500 .78rem/1.4 var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ceniza);
}
.hero-hours span + span { color: var(--nogal); }

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

.menu {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px 120px;
}

.catnav {
  position: sticky;
  top: calc(var(--top) + 8px);
  z-index: 20;
  margin: 8px -16px 0;
  padding: 0 16px;
}
.catnav-track {
  position: relative;
  display: flex;
  gap: 2px;
  padding: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid var(--linea);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 36px -26px rgba(42, 26, 16, .55);
}
.catnav-track::-webkit-scrollbar { display: none; }

.catnav a {
  position: relative;
  z-index: 1;
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font: 500 .76rem/1 var(--body);
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ceniza);
  transition: color .3s var(--ease);
}
.catnav a:hover { color: var(--nogal); }
.catnav a.is-active { color: var(--dorado); }

/* La categoría activa se marca con una ficha de nogal: la madera del logo */
.catnav-indicator {
  position: absolute;
  top: 6px;
  left: 0;
  height: calc(100% - 12px);
  width: 0;
  border-radius: 999px;
  background: var(--nogal);
  opacity: 0;
  transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s;
}

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

/* Categoría */
.cat {
  padding-top: 48px;
  scroll-margin-top: calc(var(--top) + 64px);
}

.cat-photo {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radio);
  overflow: hidden;
  background: var(--nogal);
  box-shadow: var(--sombra);
  clip-path: inset(0 round var(--radio));
  transition: clip-path 1s var(--ease);
}
.cat-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
/* Revelado de la foto al entrar en pantalla (lo activa app.js) */
.cat-photo.is-pending { clip-path: inset(7% 5% round var(--radio)); }
.cat-photo.is-pending img { transform: scale(1.12); }

.cat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 16px;
  padding: 26px 0 14px;
  border-bottom: 1px solid var(--nogal);
}
.cat-head h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.3rem, 10vw, 3.4rem);
  line-height: 1;
  letter-spacing: -.02em;
}
.cat-note {
  margin: 0;
  font: italic 300 1.15rem/1.2 var(--display);
  color: var(--dorado-tinta);
}

.cat--compact { padding-top: 64px; }

.items {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 72px;
}

.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 h3 {
  grid-column: 1;
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.item .price {
  grid-column: 2;
  justify-self: end;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.2;
  font-variant-numeric: lining-nums tabular-nums;
}
.item p {
  grid-column: 1;
  margin: 0;
  color: var(--ceniza);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 44ch;
}
.item .add {
  grid-column: 2;
  justify-self: end;
}

.item--simple {
  grid-template-columns: 1fr auto auto;
  align-items: center;
}
.item--simple .price { grid-column: 2; }
.item--simple .add { grid-column: 3; }

/* Botón agregar: círculo que se llena de dorado y muestra la cantidad */
.add {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(140, 94, 20, .45);
  background: var(--blanco);
  color: var(--dorado-tinta);
  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 { background: rgba(224, 173, 72, .16); border-color: var(--dorado-tinta); }
.add:active { transform: scale(.92); }

.add-qty {
  font: 600 .95rem/1 var(--body);
  opacity: 0;
  transform: scale(.4);
  transition: opacity .2s, transform .3s var(--ease);
}
.add.has-qty {
  background: var(--dorado);
  border-color: var(--dorado);
  color: var(--nogal);
}
.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); }
}

/* Extras */
.extras-note {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--linea);
  border-radius: 20px;
  background: var(--blanco);
}
.extras-note h3 {
  font: 600 .76rem/1.4 var(--body);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--dorado-tinta);
}
.extras-note h3 span {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: none;
  font-size: .95rem;
  color: var(--ceniza);
}
.extras-note ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.extras-note li {
  padding: 8px 14px;
  border: 1px solid var(--linea);
  border-radius: 999px;
  font-size: .95rem;
  color: var(--texto-suave);
}
.extras-note b { font-weight: 500; color: var(--nogal); margin-left: 4px; }

/* ---------- Pie: franja de madera ---------- */

.footer {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 64px 16px 140px;
  background: var(--nogal);
  color: var(--blanco);
  text-align: center;
}
.footer-badge {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px solid rgba(224, 173, 72, .7);
  margin-bottom: 6px;
}
.footer-name {
  margin: 0;
  font: 300 2rem/1.1 var(--display);
}
.footer-hours {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, .72);
}
.footer-hours span { display: inline-block; white-space: nowrap; }
.footer .pill--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .3);
  color: var(--blanco);
}
.footer .pill--ghost:hover { border-color: var(--dorado); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 12px;
  margin: 18px 0 0;
  font-size: .9rem;
  color: rgba(255, 255, 255, .72);
}
.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration-color: rgba(224, 173, 72, .7);
  text-underline-offset: 4px;
}
.footer :focus-visible { outline-color: var(--dorado); }

/* ---------- 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(--dorado);
  color: var(--nogal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 22px 40px -18px rgba(42, 26, 16, .7);
  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(--nogal);
  color: var(--dorado);
  font: 600 1rem/1 var(--body);
}
.cartbar-count.is-bump { animation: bump .45s var(--ease); }
.cartbar-label {
  flex: 1;
  text-align: left;
  font: 600 .8rem/1 var(--body);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.cartbar-total {
  font: 500 1.3rem/1 var(--display);
  font-variant-numeric: lining-nums 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-radius: 999px;
  background: var(--nogal);
  color: var(--blanco);
  font-size: .95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 14px 30px -14px rgba(42, 26, 16, .7);
  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-radius: 24px 24px 0 0;
  background: var(--blanco);
  color: var(--nogal);
  overflow: hidden;
  box-shadow: 0 -20px 50px -20px rgba(42, 26, 16, .4);
  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(42, 26, 16, .5);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  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: 300 1.9rem/1.1 var(--display);
  letter-spacing: -.01em;
}
.sheet-head .eyebrow { margin-bottom: 8px; }
.sheet-price {
  margin: 6px 0 0;
  font: 400 1.2rem/1 var(--display);
  color: var(--dorado-tinta);
}

.close {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--linea);
  background: var(--blanco);
  font-size: 1.5rem;
  line-height: 1;
}
.close:hover { border-color: var(--dorado-tinta); color: var(--dorado-tinta); }

.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: var(--blanco);
}
.sheet-foot--row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.item-desc {
  margin: 0 0 8px;
  color: var(--ceniza);
}

/* Campos */
.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: 600 .74rem/1.3 var(--body);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ceniza);
}
.field small {
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: none;
}

.field input[type="text"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid rgba(42, 26, 16, .2);
  border-radius: 14px;
  background: var(--blanco);
  font-size: 1rem;
  line-height: 1.4;
  resize: vertical;
  transition: border-color .2s;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(110, 98, 89, .85); }
.field input:focus,
.field textarea:focus { border-color: var(--dorado-tinta); outline: none; }
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--dorado-tinta); outline-offset: 2px; }

/* Extras como fichas */
.chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid rgba(42, 26, 16, .16);
  border-radius: 14px;
  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(--ceniza); font-size: .95rem; }
.chip:has(input:checked) {
  border-color: var(--dorado-tinta);
  background: rgba(224, 173, 72, .16);
}
.chip:has(input:checked) b { color: var(--dorado-tinta); }
.chip:has(input:focus-visible),
.seg label:has(input:focus-visible) { outline: 2px solid var(--dorado-tinta); outline-offset: 2px; }

/* Selector recoger / domicilio */
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.seg label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 8px 12px;
  border: 1px solid rgba(42, 26, 16, .16);
  border-radius: 14px;
  text-align: center;
  line-height: 1.25;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.seg small { display: block; color: var(--ceniza); font-size: .85rem; }
.seg label:has(input:checked) {
  border-color: var(--dorado-tinta);
  background: rgba(224, 173, 72, .16);
}

/* Contador */
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(42, 26, 16, .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(--dorado-tinta); }
.stepper output,
.stepper span {
  min-width: 2ch;
  text-align: center;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Líneas del pedido */
.lines:empty::before {
  content: "Tu pedido está vacío. Toca el + de cualquier platillo para agregarlo.";
  display: block;
  padding: 24px 0;
  color: var(--ceniza);
}
.line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--linea-suave);
}
.line h3 {
  font: 400 1.2rem/1.2 var(--display);
}
.line-price {
  font: 400 1.15rem/1.2 var(--display);
  font-variant-numeric: lining-nums tabular-nums;
}
.line-meta {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ceniza);
  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(--ceniza);
  font-size: .95rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(110, 98, 89, .5);
}
.line-remove:hover { color: var(--nogal); }

.checkout { padding-bottom: 8px; }

/* Pedido recibido: el folio en grande, como número de comanda */
.done {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 8px 0 24px;
}
.done .eyebrow { margin: 0; }
.done-folio {
  margin: 0;
  font: 300 3rem/1 var(--display);
  letter-spacing: -.02em;
}
.done-folio span { color: var(--dorado-tinta); }
.done-text {
  margin: 0 0 8px;
  max-width: 38ch;
  color: var(--texto-suave);
}

/* Totales */
.totals { margin: 0 0 12px; }
.totals div {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  color: var(--ceniza);
}
.totals div:not(.totals-grand) { font-size: .95rem; padding: 1px 0; }
.totals dt, .totals dd { margin: 0; }
.totals dd { font-variant-numeric: tabular-nums; }
.totals-grand {
  margin-top: 6px;
  padding-top: 10px !important;
  border-top: 1px solid var(--linea);
  color: var(--nogal) !important;
  align-items: baseline;
}
.totals-grand dt { font: 600 .78rem/1 var(--body); letter-spacing: .22em; text-transform: uppercase; }
.totals-grand dd { font: 400 1.7rem/1 var(--display); }

.status {
  margin: 10px 0 0;
  font-size: .95rem;
  color: var(--dorado-tinta);
}
.status:empty { display: none; }

.fine {
  margin: 20px 0 8px;
  font-size: .85rem;
  line-height: 1.45;
  color: var(--ceniza);
}
.fine a { color: var(--nogal); text-underline-offset: 3px; text-decoration-color: rgba(140, 94, 20, .6); }

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

@media (min-width: 760px) {
  .topbar { padding: 0 32px; }
  .hero { padding: calc(var(--top) + 16px) 32px 56px; }
  .hero-frame { height: clamp(420px, 56vh, 620px); }
  .hero h1 { font-size: clamp(5rem, 10vw, 8.5rem); }
  .lead { font-size: 1.3rem; }
  .hero-hours { flex-direction: row; gap: 14px; }
  .hero-hours span + span::before { content: "—"; margin-right: 14px; color: var(--dorado-tinta); }

  .menu { padding: 0 40px 140px; }
  .catnav { margin: 8px 0 0; padding: 0; display: flex; justify-content: center; }
  .catnav-track { display: inline-flex; max-width: 100%; }
  .cat { padding-top: 72px; }
  .cat-photo { aspect-ratio: 21 / 8; }
  .cat-head { padding-top: 36px; }
  .extras-note { display: flex; align-items: center; gap: 32px; padding: 22px 28px; }
  .extras-note ul { margin: 0; }
  .extras-note h3 { flex: none; max-width: 220px; }

  .sheet--item {
    width: min(540px, calc(100% - 48px));
    margin: auto;
    border-radius: 24px;
    box-shadow: 0 40px 80px -30px rgba(42, 26, 16, .55);
    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; }
}

/* Escritorio: texto a la izquierda, foto enmarcada a la derecha */
@media (min-width: 980px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: center;
    gap: 64px;
    max-width: 1260px;
    min-height: min(100vh, 900px);
    margin: 0 auto;
    padding: calc(var(--top) + 24px) 40px 48px;
  }
  .hero-inner { order: 1; }
  .hero-frame {
    order: 2;
    height: min(76vh, 720px);
    border-radius: 32px;
  }
  .hero-badge {
    width: 96px;
    height: 96px;
    margin: 0 0 26px;
  }

  .topbar-hours {
    display: block;
    margin: 0;
    font: 500 .74rem/1 var(--body);
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ceniza);
  }
  .items { grid-template-columns: 1fr 1fr; }
  .item h3 { font-size: 1.6rem; }
  .item .price { font-size: 1.45rem; }

  .sheet--cart {
    width: 460px;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0 0 0 auto;
    border-radius: 0;
    box-shadow: -30px 0 60px -30px rgba(42, 26, 16, .5);
    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; }
}

/* Error junto al campo (p. ej. falta elegir el sabor del refresco) */
.field-error {
  margin: 10px 0 0;
  font-size: .95rem;
  color: var(--dorado-tinta);
}
.field-error:empty { display: none; }
