:root {
  --bg: #fbf7f2;
  --surface: #ffffff;
  --text: #1f1a17;
  --muted: #6b625c;
  --accent: #d9381e;
  --accent-soft: #fdebd8;
  --border: #eee4da;
  --open: #1f9d55;
  --closed: #8a817b;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

body {
  font-family: "Poppins", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding-bottom: 96px; /* room for the sticky cart bar */
}

.container { max-width: 560px; margin: 0 auto; padding: 0 16px; }

/* Header */
.hero { text-align: center; padding: 40px 0 24px; }
.brand {
  font-size: clamp(2.25rem, 9vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.brand span { color: var(--accent); }
.tagline { color: var(--muted); margin-top: 4px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
}
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--closed);
}
.status.is-open { color: var(--open); }
.status.is-open::before { background: var(--open); }
.status.is-closed { color: var(--closed); }


/* Includes */
.includes {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.9rem;
  text-align: center;
}
.includes strong { font-weight: 600; }

/* Menu */
.menu { display: grid; gap: 12px; margin: 20px 0; }

.dish {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 14px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}
.dish-thumb {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 2.25rem;
  overflow: hidden;
}
.dish-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dish-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.dish-name { font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.dish-size {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 0.75rem;
  font-weight: 600;
}
.dish-description { font-size: 0.85rem; color: var(--muted); }
.dish-price { font-size: 1.15rem; font-weight: 800; white-space: nowrap; }

.notice {
  text-align: center;
  color: var(--muted);
  padding: 24px 16px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.notice a { color: var(--accent); font-weight: 600; }

/* Contact */
.contact { display: grid; gap: 10px; margin: 24px 0; }
.contact-secondary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.contact-secondary .btn { flex-direction: column; gap: 4px; font-size: 0.85rem; }
.menu-hint { text-align: center; font-size: 0.9rem; color: var(--muted); margin-top: 16px; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s, transform 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; font-size: 1.05rem; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }
.btn-outline { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--text); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

footer { text-align: center; color: var(--muted); font-size: 0.8rem; padding: 16px 0; }


/* Quantity stepper */
.dish-side { display: grid; justify-items: end; gap: 8px; }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.stepper .add { background: var(--accent); border-color: var(--accent); color: #fff; }
.stepper button:disabled { opacity: 0.35; cursor: default; }
.stepper .qty { min-width: 1.25rem; text-align: center; font-weight: 600; }

/* Order */
.order {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  margin-top: 20px;
  display: grid;
  gap: 16px;
}
.order[hidden] { display: none; }
.order h2 { font-size: 1.2rem; font-weight: 800; }
.order-total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.1rem;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.order-hint { font-size: 0.8rem; color: var(--muted); }

.field { display: grid; gap: 6px; }
.field > span, .field legend { font-size: 0.85rem; font-weight: 600; }
.field input[type="text"], .field textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
}
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
fieldset.field { border: 0; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
}
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { accent-color: var(--accent); }

.alias {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--accent-soft);
  font-size: 0.9rem;
}
.alias[hidden] { display: none; }
.alias button {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: var(--surface);
  color: var(--accent);
  cursor: pointer;
}

.closed-note {
  font-size: 0.85rem;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f1ece7;
  color: var(--muted);
}
.closed-note[hidden] { display: none; }

button.btn { border: 0; cursor: pointer; width: 100%; }

/* Sticky cart bar */
.cart-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 528px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--text);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.cart-bar[hidden] { display: none; }

a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Cart page */
.cart-header { display: grid; gap: 8px; padding: 24px 0 8px; }
.back-link { color: var(--accent); font-weight: 600; text-decoration: none; justify-self: start; }
.back-link:hover { text-decoration: underline; }
.cart-header h1 { font-size: 1.75rem; font-weight: 800; line-height: 1.2; }

.cart-content { display: grid; gap: 16px; margin-top: 12px; }
.cart-lines { list-style: none; display: grid; gap: 10px; }
.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}
.cart-line-name { font-weight: 600; line-height: 1.3; }
.cart-line-subtotal { font-weight: 800; white-space: nowrap; text-align: right; }
.cart-line .stepper { justify-self: start; }
.cart-line-remove {
  justify-self: end;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.cart-line-remove:hover { color: var(--accent); border-color: var(--accent); }

.cart-total-box { display: grid; gap: 4px; }

.empty-state {
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
  padding: 40px 16px;
  margin-top: 16px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.empty-state h2 { font-size: 1.2rem; font-weight: 800; }
.empty-state .btn { width: auto; }

/* Extras ("Sumá a tu pedido") */
.extras { display: grid; gap: 10px; }
.extras[hidden] { display: none; }
.extras-title { font-size: 1.1rem; font-weight: 800; }
.extras-groups { display: grid; gap: 16px; }
.extras-group { display: grid; gap: 8px; }
.extras-group-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.extras-list { list-style: none; display: grid; gap: 8px; }
.extra-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 4px 12px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.extra-info { display: grid; min-width: 0; }
.extra-name { font-weight: 600; line-height: 1.3; font-size: 0.95rem; }
.extra-description { font-size: 0.8rem; color: var(--muted); }
.extra-price { font-weight: 800; white-space: nowrap; font-size: 0.95rem; }
@media (max-width: 380px) {
  .extra-row { grid-template-columns: 1fr auto; }
  .extra-price { grid-column: 1; grid-row: 2; }
  .extra-row .stepper { grid-column: 2; grid-row: 1 / span 2; }
}

/* Mercado Pago */
.choice-wide { grid-column: 1 / -1; }
.btn-mp { background: #009ee3; color: #fff; font-size: 1.05rem; }
.btn-mp:hover { background: #0086c3; }
.btn-mp:disabled { opacity: 0.7; cursor: default; }
.mp-note {
  font-size: 0.85rem;
  padding: 10px 12px;
  border-radius: 10px;
  background: #e6f5fc;
  color: #00587a;
}
.pay-error {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fde8e4;
  color: #9b1c0a;
}
.pay-result {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 20px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.pay-result h2 { font-size: 1.2rem; font-weight: 800; }
.pay-result.is-ok { border-color: var(--open); }
.pay-result.is-fail { border-color: var(--accent); }
.pay-result .btn { width: auto; }
