  * { box-sizing: border-box; }
  body {
    margin: 0;
    color: #2b201a;
    background: #f8f2e8;
    font: 16px/1.4 system-ui, sans-serif;
  }
  main { width: min(100%, 840px); padding: 24px 20px 32px; margin: auto; }
  header {
    color: #a42e25;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.04em;
    margin-bottom: 16px;
  }
  .products { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  @media (max-width: 340px) {
    .products { grid-template-columns: 1fr; }
  }
  @media (max-width: 520px) {
    .products { gap: 10px; }
    .details { padding: 12px; }
    .title h2, .title .price { font-size: 18px; }
  }
  article {
    overflow: hidden;
    border: 1px solid #e9ded1;
    border-radius: 22px;
    background: #fffdfa;
    box-shadow: 0 6px 20px #683e2910;
  }
  .photo { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
  .photo img {
    position: absolute;
    width: var(--photo-width, 137.142857%);
    max-width: none;
    height: auto;
    left: var(--photo-left, -17.857143%);
    top: var(--photo-top, -22.619048%);
  }
  .details { padding: 16px; display: grid; gap: 12px; }
  .title { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 8px; flex-wrap: wrap; }
  .title h2, .price { margin: 0; font-size: 22px; letter-spacing: -.025em; font-weight: 750; }
  .price { color: #9e2b22; }
  button {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    background: #a42e25;
    color: white;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
  }
  dialog {
    width: min(370px, calc(100% - 32px));
    border: 1px solid #e9ded1;
    border-radius: 18px;
    padding: 20px;
    color: inherit;
    background: #fffdfa;
  }
  dialog::backdrop { background: #2b201a66; }
  dialog h2 { margin: 0 0 10px; font-size: 21px; }
  fieldset { border: 0; padding: 0; margin: 0 0 16px; }
  legend { margin-bottom: 6px; font-weight: 650; }
  label { display: block; padding: 4px 0; }
  input { accent-color: #a42e25; }
  .quantity { display: flex; align-items: center; justify-content: space-between; }
  input[type=number] { width: 64px; padding: 8px; font: inherit; }
  [hidden] { display: none !important; }
  select, textarea { display: block; width: 100%; padding: 8px; font: inherit; }
  .total { font-weight: 700; }

  main { padding-bottom: 96px; }
  header p { margin: 0 0 10px; }
  header h1 { color: #2b201a; font-size: clamp(25px, 5vw, 36px); line-height: 1.1; margin: 0 0 8px; }
  header span, .helper, .order-item p { color: #654e42; font-size: 14px; font-weight: 400; letter-spacing: 0; }
  .section-title { margin: 24px 0 10px; font-size: 21px; }
  .photo img { width: 100%; height: 100%; inset: 0; object-fit: cover; }
  .order-bar { position: fixed; bottom: 0; inset-inline: 0; z-index: 1; display: grid; justify-items: center; padding: 10px 20px max(10px, env(safe-area-inset-bottom)); background: #f8f2e8; border-top: 1px solid #e9ded1; }
  .order-bar button { width: min(100%, 800px); min-height: 48px; }
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  dialog { width: min(470px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: auto; }
  .dialog-actions { display: grid; gap: 8px; }
  .order-lines { list-style: none; padding: 0; margin: 0; }
  .order-item { border-bottom: 1px solid #e9ded1; padding: 10px 0; overflow-wrap: anywhere; }
  .order-item p { margin: 4px 0; }
  .line-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
  .line-actions button { width: auto; min-width: 44px; padding-inline: 8px; font-size: 13px; }
  .secondary { color: #80251e; background: #f5e8df; }
  .whatsapp { background: #206746; }
  button:disabled { opacity: .45; cursor: default; }
  input[type=text] { display: block; width: 100%; min-height: 44px; padding: 8px; font: inherit; border: 1px solid #b09b8b; border-radius: 8px; }
  .error { color: #9e2b22; }
  .error:empty { display: none; }

/* Menú táctil y paneles de pedido */
html { scroll-padding-top: 12px; }
body:has(dialog[open]) { overflow: hidden; }
:focus-visible { outline: 3px solid #22694c; outline-offset: 3px; }
main { padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
header { padding-top: env(safe-area-inset-top); }
header h1 { letter-spacing: -.055em; }
.categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  margin: 0 0 16px;
  padding: 4px 3px 8px;
}
.categories a {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fffdfa;
  border: 1px solid #e9ded1;
  color: #80251e;
  text-decoration: none;
  font-weight: 650;
  font-size: 14px;
}
article:target { border-color: #a42e25; }
.products article { display: flex; flex-direction: column; }
.details { flex: 1; align-content: space-between; }
.title .price { white-space: nowrap; }
.dialog-photo { aspect-ratio: 16 / 7; overflow: hidden; border-radius: 12px; margin-bottom: 14px; }
.dialog-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
#ingredients { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; }
#ingredients label, #broth-option, #fries-option { display: flex; align-items: center; gap: 8px; min-height: 44px; }
input[type=checkbox] { inline-size: 18px; block-size: 18px; margin: 0; flex: none; }
.stepper { display: grid; grid-template-columns: 44px 62px 44px; align-items: center; gap: 6px; }
.stepper input[type=number] { width: 100%; min-height: 44px; text-align: center; appearance: textfield; }
.stepper input::-webkit-inner-spin-button { appearance: none; }
.stepper button { font-size: 21px; }
select, textarea, .stepper input { border: 1px solid #b09b8b; border-radius: 8px; color: #2b201a; background: #fffdfa; }
select, textarea { margin-top: 4px; }
select { min-height: 44px; }
.line-summary { display: flex; gap: 10px; align-items: start; }
.line-summary img { width: 54px; height: 48px; object-fit: cover; border-radius: 8px; }
.line-summary div { min-width: 0; }
.total { display: flex; justify-content: space-between; }
.status { margin: 0 0 6px; color: #206746; font-size: 14px; font-weight: 700; }
.status:empty { display: none; }
#product-form .dialog-actions { margin-top: 14px; }
@media (max-width: 560px) {
  dialog {
    max-height: calc(100dvh - env(safe-area-inset-top) - 10px);
    width: 100%;
    max-width: none;
    margin: auto 0 0;
    padding: 16px 16px max(16px, env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    overscroll-behavior: contain;
  }
  .dialog-actions {
    position: sticky;
    bottom: 0;
    background: #fffdfa;
    padding-top: 6px;
  }
}
@media (max-width: 380px) {
  .details { padding: 10px; }
  .title h2, .title .price { font-size: 16px; }
}

.payment { margin: 12px 0; }
.payment-options { display: flex; flex-wrap: wrap; gap: 6px; }
.payment-options label {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 6px 8px;
  border: 1px solid #b09b8b;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
}
.payment-options label:has(input:checked) { border-color: #a42e25; background: #f5e8df; }
.payment-options input { margin: 0; width: 16px; height: 16px; }
.transfer-details { padding: 10px; margin-top: 8px; background: #f8f2e8; border-radius: 10px; }
.transfer-copy { display: grid; gap: 8px; }
#transfer-clabe { font-variant-numeric: tabular-nums; letter-spacing: .035em; }
#copy-status { margin: 6px 0 0; }
#copy-status:empty { display: none; }
.bank-details { margin: 0 0 6px; }
.bank-details div { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.bank-details dt { font-weight: 650; }
.bank-details dd { margin: 0; }

header .card-notice {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 6px 10px;
  color: #175341;
  background: #e5eee4;
  border: 1px solid #c7ded1;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 720;
  letter-spacing: 0;
}
.card-icon {
  width: 23px;
  height: 15px;
  position: relative;
  display: inline-block;
  flex: none;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  overflow: hidden;
  vertical-align: middle;
  animation: card-arrival 460ms cubic-bezier(.2,.8,.3,1.2) both;
}
.card-icon::before {
  content: "";
  display: block;
  height: 3px;
  margin-top: 3px;
  background: currentColor;
  opacity: .8;
}
.card-icon::after {
  content: "";
  position: absolute;
  top: 0;
  width: 40%;
  height: 100%;
  transform: translateX(-130%) skewX(-18deg);
  background: #fff9;
  animation: card-glint 650ms 380ms ease-out both;
}
.card-payment { background: #edf4ed; border-color: #8db09c !important; }
.card-payment span { color: #175341; font-weight: 750; }
.payment-options label:has(input:checked) {
  border-color: #206746 !important;
  background: #e1eee4;
  box-shadow: inset 0 0 0 1px #206746;
}
.payment-options input { accent-color: #206746; }
.review-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.review-heading h2 { margin: 0; font-size: 20px; line-height: 1.2; }
.check-badge, .order-feedback::before {
  display: inline-grid;
  place-items: center;
  color: #176047;
  background: #dcece1;
  border-radius: 50%;
  font-weight: 800;
  flex: none;
}
.check-badge { width: 34px; height: 34px; }
#payment-check:not([hidden]) { animation: order-confirm 360ms cubic-bezier(.2,.8,.3,1.25) both; }
.order-feedback {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 4px;
  background: #edf5ed;
  border: 1px solid #c7ded1;
  border-radius: 999px;
  animation: order-confirm 340ms cubic-bezier(.2,.8,.3,1.14) both;
}
.order-feedback::before { content: "✓"; width: 20px; height: 20px; }
button:enabled { transition: transform 140ms ease, filter 140ms ease; }
button:enabled:active { transform: scale(.97); filter: brightness(.94); }
@keyframes card-arrival {
  from { transform: translateY(4px) rotate(-12deg); opacity: .2; }
  to { transform: translateY(0) rotate(0); opacity: 1; }
}
@keyframes card-glint {
  from { transform: translateX(-130%) skewX(-18deg); }
  to { transform: translateX(320%) skewX(-18deg); }
}
@keyframes order-confirm {
  from { transform: translateY(4px) scale(.86); opacity: .2; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .card-icon, .card-icon::after, #payment-check:not([hidden]), .order-feedback { animation: none; }
  button:enabled { transition: none; }
  button:enabled:active { transform: none; }
}

#order { background: #f8f2e8; }
#order .review-heading { margin-bottom: 14px; }
#order .review-heading h2 { font-size: 26px; letter-spacing: -.04em; }
.cart-count { margin-left: auto; font-size: 13px; color: #654e42; font-weight: 650; white-space: nowrap; }
#cart-lines { display: grid; gap: 8px; }
#cart-lines .order-item {
  padding: 10px;
  background: #fffdfa;
  border: 1px solid #e9ded1;
  border-radius: 14px;
}
.line-summary .line-info { flex: 1; }
.line-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.line-price { white-space: nowrap; color: #80251e; }
#cart-lines .line-actions { align-items: center; justify-content: space-between; }
.line-quantity, .line-management { display: flex; align-items: center; }
.line-quantity { border: 1px solid #e9ded1; border-radius: 10px; font-size: 14px; font-weight: 700; }
.line-quantity span { min-width: 18px; text-align: center; }
.line-quantity button { background: transparent; font-size: 16px; }
.line-management .line-link { color: #573f36; background: transparent; padding-inline: 6px; }
.line-management .remove-line { color: #8c3027; }
#order-total-row {
  align-items: center;
  margin: 12px 0 16px;
  padding: 11px 13px;
  background: #2b201a;
  color: #fffdfa;
  border-radius: 12px;
}
#order-total { font-size: 25px; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
#order .payment legend { font-size: 17px; margin-bottom: 8px; }
#order #continue { background: transparent; color: #573f36; }
#order #send-order { min-height: 48px; }
#order .dialog-actions { background: #f8f2e8; }
#order .dialog-actions { position: static; }
