/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --coal: #1a1714;
  --coal-2: #26211d;
  --bone: #f6f1e7;
  --bone-2: #ece4d4;
  /* Colores del logo: rojo, amarillo y negro */
  --ember: #d9140f;
  --ember-dark: #a80e0a;
  --amber: #ffc400;
  --ink: #2b2521;
  --muted: #6f655c;
  --line: rgba(26, 23, 20, .12);
  --wa: #25d366;

  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 64px;
  --cartbar-h: 72px;
  --gutter: 1rem;
  --shadow: 0 10px 30px -12px rgba(26, 23, 20, .35);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); overflow-x: clip; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { line-height: 1.05; text-wrap: balance; }
::selection { background: var(--ember); color: var(--bone); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--bone); color: var(--coal); z-index: 9999; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 1rem; }
[hidden] { display: none !important; }

/* =============================================================
   4. Typography
   ============================================================= */
.eyebrow { font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ember); margin-bottom: .5rem; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 7vw, 3.4rem); text-transform: uppercase; letter-spacing: .01em; color: var(--coal); }
.section { padding-block: clamp(3.5rem, 9vw, 6rem); }
.section-head { margin-bottom: 1.75rem; }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 50px; padding: .8rem 1.5rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1.1; text-align: center;
  transition: transform .25s var(--ease-out), background-color .2s, color .2s, box-shadow .25s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ember); color: var(--bone); box-shadow: 0 8px 22px -10px rgba(178, 58, 30, .8); }
.btn-primary:hover { background: var(--ember-dark); transform: translateY(-2px); }
.btn-primary:disabled { background: #9b8f85; box-shadow: none; cursor: not-allowed; transform: none; }
.btn-outline { border: 2px solid rgba(246, 241, 231, .85); color: var(--bone); }
.btn-outline:hover { background: var(--bone); color: var(--coal); }
.btn-outline-dark { border: 2px solid var(--coal); color: var(--coal); }
.btn-outline-dark:hover { background: var(--coal); color: var(--bone); }
.btn-dark { background: var(--coal); color: var(--bone); }
.btn-dark:hover { background: #000; transform: translateY(-2px); }
.btn-sm { min-height: 44px; padding: .6rem 1.1rem; font-size: .95rem; }
.btn-block { width: 100%; }

/* Placeholder de foto: se ve el fondo cálido hasta que exista la foto real */
.media {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(232, 163, 61, .55), transparent 60%),
    radial-gradient(90% 80% at 80% 90%, rgba(178, 58, 30, .7), transparent 65%),
    linear-gradient(160deg, #3a2a20, #1a1714);
}
.media::before {
  content: "📷 " attr(data-label);
  position: absolute; inset: auto 0 0 0; padding: .7rem .9rem;
  font-size: .8rem; font-weight: 500; color: rgba(246, 241, 231, .8);
}
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

/* =============================================================
   6. Sections
   ============================================================= */

/* ---- Header ---- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(26, 23, 20, .97); color: var(--bone); }
@supports (backdrop-filter: blur(10px)) {
  .header { background: rgba(26, 23, 20, .88); backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%); }
}
.header-inner { display: flex; align-items: center; gap: .75rem; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: .5rem; margin-right: auto; }
.logo-mark { width: 46px; height: 46px; flex: none; }
.logo-badge { width: 104px; height: 104px; display: block; }
.hero-logo { width: 88px; height: 88px; display: block; margin-bottom: 1rem; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .5)); }
.logo-word { font-family: var(--display); font-size: 1.45rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1; }
.logo-word b { font-weight: 400; color: var(--amber); margin-left: .25rem; }

.nav { display: none; }
.nav.is-open {
  display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--coal); padding: .5rem var(--gutter) 1.25rem; border-top: 1px solid rgba(246, 241, 231, .1);
}
.nav a { padding: .85rem .25rem; font-weight: 500; border-bottom: 1px solid rgba(246, 241, 231, .08); }
.nav a:hover { color: var(--amber); }
.nav-phone { color: var(--amber); }

.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: .45rem;
  min-height: 44px; padding: .5rem .85rem; border-radius: 999px;
  background: var(--ember); color: var(--bone); font-weight: 700; font-size: .92rem;
}
.cart-btn svg { width: 20px; height: 20px; }
.cart-btn-label { display: none; }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--bone); color: var(--ember); font-size: .78rem; display: grid; place-items: center;
}
.cart-btn.bump { animation: bump .45s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.15); } }

.burger { width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--bone); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.closed-strip { background: var(--amber); color: var(--coal); text-align: center; font-weight: 700; font-size: .85rem; padding: .45rem var(--gutter); }

/* ---- Hero ---- */
.hero { position: relative; min-height: 64svh; display: flex; align-items: flex-end; color: var(--bone); background: var(--coal); }
.hero-media { position: absolute; inset: 0; }
.hero-media::before { content: none; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(26, 23, 20, .35) 0%, rgba(26, 23, 20, .55) 45%, rgba(26, 23, 20, .92) 100%);
}
.hero-content { position: relative; z-index: 3; padding-block: 3rem 2.5rem; }
.kicker { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 500; background: rgba(26, 23, 20, .55); padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1rem; }
.dot-live { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }
.dot-live.is-open { background: var(--wa); box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
.hero h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.6rem, 11vw, 5.4rem); line-height: .95; max-width: 14ch; letter-spacing: .005em; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero-sub { font-size: clamp(1.05rem, 3.6vw, 1.3rem); margin-top: .9rem; opacity: .95; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-seal { display: inline-block; margin-top: 1.25rem; font-size: .9rem; padding: .45rem .9rem; border-radius: 10px; border: 1px solid rgba(232, 163, 61, .5); background: rgba(26, 23, 20, .55); }
.hero-seal strong { color: var(--amber); }

/* ---- Menú ---- */
.menu { padding-top: 2.25rem; }
.tabs {
  position: sticky; top: calc(var(--header-h) - 1px); z-index: 20;
  display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding: .7rem var(--gutter);
  background: var(--bone);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: .6rem 1.05rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
  background: var(--bone-2); color: var(--coal); transition: background-color .2s, color .2s;
}
.tab[aria-selected="true"] { background: var(--coal); color: var(--bone); }
.cat-title { font-family: var(--display); font-weight: 400; font-size: 1.6rem; text-transform: uppercase; margin: 1.25rem 0 1rem; color: var(--ember); }
.js .menu-panel:not(.is-active) { display: none; }
.js .cat-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.dish-grid { display: grid; gap: 1rem; margin-top: .75rem; }
.dish {
  position: relative; display: grid; grid-template-columns: 112px 1fr; overflow: hidden;
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.dish .media { min-height: 132px; }
.dish .media::before { font-size: .68rem; padding: .5rem; }
.dish .badge {
  position: absolute; top: .5rem; left: .5rem; z-index: 2;
  background: var(--amber); color: var(--coal); font-size: .68rem; font-weight: 700;
  padding: .25rem .5rem; border-radius: 999px; white-space: nowrap;
}
.dish-body { padding: .85rem .9rem; display: flex; flex-direction: column; gap: .3rem; }
.dish h4 { font-size: 1.05rem; font-weight: 700; color: var(--coal); }
.dish p { font-size: .88rem; color: var(--muted); line-height: 1.4; }
.dish-foot { margin-top: auto; padding-top: .45rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.price { font-weight: 700; font-size: 1.15rem; color: var(--coal); }
.btn-add {
  min-height: 40px; padding: .4rem 1rem; border-radius: 999px;
  background: var(--ember); color: var(--bone); font-weight: 700; font-size: .9rem;
  transition: background-color .2s, transform .2s var(--ease-out);
}
.btn-add:hover { background: var(--ember-dark); }
.stepper { display: inline-flex; align-items: center; background: var(--coal); color: var(--bone); border-radius: 999px; }
.stepper button { width: 38px; height: 40px; font-size: 1.2rem; font-weight: 700; }
.stepper output { min-width: 1.6rem; text-align: center; font-weight: 700; }
.dish.in-cart { border-color: var(--ember); }
.dish.no-photo { display: flex; flex-direction: column; }
.dish.no-photo .dish-body { padding: 1rem; flex: 1; }
.dish.no-photo .badge { position: static; align-self: flex-start; margin: 1rem 1rem -.4rem; }
.co-item input.needs-note { border-color: var(--ember); background: #fff4ef; }
.co-item .note-error { color: var(--ember); font-size: .8rem; font-weight: 700; margin-top: .35rem; }

/* ---- Beneficios ---- */
.perks { background: var(--coal); color: var(--bone); padding-block: 2.75rem; }
.perks-grid { display: grid; gap: 1rem; }
.perk { background: var(--coal-2); border-radius: var(--radius); padding: 1.35rem; border: 1px solid rgba(246, 241, 231, .08); }
.perk-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: rgba(232, 163, 61, .14); font-size: 1.5rem; margin-bottom: .8rem; }
.perk h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.35rem; letter-spacing: .02em; margin-bottom: .3rem; color: var(--amber); }
.perk p { opacity: .85; font-size: .95rem; }

/* ---- Historia ---- */
.zig { display: grid; gap: 1.25rem; align-items: center; margin-bottom: 2.5rem; }
.zig:last-child { margin-bottom: 0; }
.zig-media { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.zig-text h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.5rem, 5vw, 2rem); margin-bottom: .6rem; color: var(--coal); }
.zig-text p { margin-bottom: .8rem; color: var(--ink); }
/* Sin fotos: la historia va en tarjetas de texto con acento */
.zig:not(:has(.zig-media)) { display: block; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--ember); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem; }
.zig-text .btn { margin-top: .4rem; }

/* ---- Galería ---- */
.gallery { background: var(--bone-2); }
.masonry { columns: 2; column-gap: .75rem; }
.masonry .media { break-inside: avoid; margin-bottom: .75rem; border-radius: var(--radius-sm); aspect-ratio: 1; }
.masonry .m-tall { aspect-ratio: 3 / 4.3; }
.masonry .m-wide { aspect-ratio: 4 / 3; }

/* ---- Testimonios ---- */
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 1rem;
  overflow-x: auto; overflow-y: visible; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-block: .25rem 1rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
}
.carousel-track::-webkit-scrollbar { display: none; }
.review { position: relative; scroll-snap-align: start; background: #fff; border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--line); box-shadow: var(--shadow); }
.review p { font-size: 1.05rem; }
.review .stars { color: var(--amber); letter-spacing: .15em; margin-bottom: .6rem; }
.review footer { margin-top: 1rem; font-weight: 700; color: var(--muted); }
.review-tag { position: absolute; top: 1rem; right: 1rem; font-size: .7rem; font-weight: 700; text-transform: uppercase; background: var(--bone-2); padding: .2rem .5rem; border-radius: 6px; color: var(--muted); }
.review .star-off { color: var(--bone-2); }
.g-rating { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .9rem; padding: .5rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .9rem; font-weight: 500; }
.g-rating strong { font-size: 1.1rem; color: var(--coal); }
.g-stars { color: var(--amber); letter-spacing: .08em; }
.g-rating:hover { border-color: var(--coal); }
.carousel-ctrl { display: flex; gap: .6rem; justify-content: flex-end; margin-top: .5rem; }
.round-btn { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--coal); font-size: 1.1rem; font-weight: 700; transition: background-color .2s, color .2s; }
.round-btn:hover { background: var(--coal); color: var(--bone); }

/* ---- Ubicación ---- */
.location { background: var(--bone-2); }
.loc-grid { display: grid; gap: 1.5rem; }
.loc-list { display: grid; gap: .9rem; margin: 1.25rem 0 1.5rem; }
.loc-list dt { font-weight: 700; color: var(--coal); }
.loc-list dd { margin: .1rem 0 0; color: var(--ink); }
.loc-list a { color: var(--ember); font-weight: 700; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 300px; background: var(--bone); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 300px; border: 0; display: block; }

/* ---- CTA final ---- */
.final-cta { background: var(--ember); color: var(--bone); padding-block: 3.5rem; text-align: center; }
.final-cta h2 { color: var(--bone); font-size: clamp(2.4rem, 10vw, 4.4rem); }
.final-cta p { margin: .5rem 0 1.5rem; font-size: 1.1rem; opacity: .95; }

/* ---- Footer ---- */
.footer { background: var(--coal); color: var(--bone); padding-block: 3rem calc(1.5rem + var(--cartbar-h)); }
.footer-grid { display: grid; gap: 1.75rem; }
.footer h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: .5rem; }
.footer p { opacity: .85; line-height: 1.7; }
.footer a:hover { color: var(--amber); }
.logo-foot .logo-word { font-size: 1.8rem; }
.foot-note { margin-top: .4rem; }
.foot-bottom { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(246, 241, 231, .12); font-size: .85rem; }
.foot-bottom a { text-decoration: underline; }

/* ---- Barra carrito (celular) ---- */
.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  min-height: var(--cartbar-h); padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: var(--coal); color: var(--bone); box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, .4);
  animation: slideUp .4s var(--ease-out);
}
.cartbar-info { font-size: .95rem; }
.cartbar-info strong { font-size: 1.1rem; color: var(--amber); }
@keyframes slideUp { from { transform: translateY(100%); } }

/* ---- WhatsApp flotante ---- */
.wa-float {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 55;
  width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45);
  transition: bottom .35s var(--ease-out), transform .25s var(--ease-out);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.07); }
body.has-cartbar .wa-float { bottom: calc(var(--cartbar-h) + 1rem + env(safe-area-inset-bottom)); }

/* ---- Checkout ---- */
/* Altura fija (no "auto"): en Safari de iPhone una hoja con altura automática
   colapsaba la lista del pedido a 0 px y no se podía desplazar. */
.checkout {
  position: fixed; inset: auto 0 0 0; z-index: 100;
  margin: 0; width: 100%; max-width: 100%; padding: 0;
  height: 88vh; height: 88svh; max-height: none;
  border: 0; border-radius: 22px 22px 0 0; background: var(--bone); color: var(--ink);
  display: none; flex-direction: column; overflow: hidden;
}
.checkout[open] { display: flex; animation: sheetIn .4s var(--ease-out); }
.checkout::backdrop { background: rgba(26, 23, 20, .6); }
@keyframes sheetIn { from { transform: translateY(40px); opacity: 0; } }
.co-head { display: flex; align-items: center; gap: .5rem; padding: 1rem var(--gutter) .5rem; }
.co-head h2 { font-size: 1.7rem; margin-right: auto; }
.co-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--bone-2); font-size: 1.05rem; font-weight: 700; }
.co-steps { list-style: none; display: flex; gap: .4rem; padding: 0 var(--gutter) .75rem; font-size: .8rem; font-weight: 700; color: var(--muted); }
.co-steps li { flex: 1; text-align: center; padding-top: .45rem; border-top: 3px solid var(--bone-2); }
.co-steps li.is-on { color: var(--ember); border-color: var(--ember); }
.co-closed { margin: 0 var(--gutter) .75rem; background: var(--amber); color: var(--coal); border-radius: var(--radius-sm); padding: .7rem .9rem; font-weight: 700; font-size: .9rem; }
.co-head, .co-steps, .co-closed, .co-foot { flex: none; }
.co-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 var(--gutter) 1rem; overscroll-behavior: contain; }
.co-items { list-style: none; padding: 0; display: grid; gap: .75rem; }
.co-item { background: #fff; border-radius: var(--radius-sm); padding: .85rem; border: 1px solid var(--line); }
.co-item-top { display: flex; align-items: center; gap: .75rem; }
.co-item-name { flex: 1; font-weight: 700; line-height: 1.25; }
.co-item-name small { display: block; font-weight: 400; color: var(--muted); }
.co-item-sub { font-weight: 700; min-width: 4rem; text-align: right; }
.co-item input { margin-top: .6rem; width: 100%; padding: .55rem .75rem; border-radius: 10px; border: 1px solid var(--line); background: var(--bone); font-size: .9rem; }
.co-empty { text-align: center; padding: 2rem 0; display: grid; gap: 1rem; justify-items: center; color: var(--muted); }
.co-foot { padding: .85rem var(--gutter) calc(.85rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); display: grid; gap: .6rem; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.co-total strong { font-size: 1.35rem; color: var(--coal); }

.seg { border: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1rem; }
.seg legend, .pay legend { font-weight: 700; margin-bottom: .6rem; color: var(--coal); }
.seg label, .pay-opts label { position: relative; }
.seg input, .pay-opts input { position: absolute; opacity: 0; pointer-events: none; }
.seg span, .pay-opts span {
  display: flex; align-items: center; justify-content: center; min-height: 52px; padding: .6rem;
  border-radius: var(--radius-sm); border: 2px solid var(--bone-2); background: #fff; font-weight: 700; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.seg input:checked + span, .pay-opts input:checked + span { border-color: var(--ember); background: #fff4ef; color: var(--ember-dark); }
.seg input:focus-visible + span, .pay-opts input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.pay { border: 0; padding: 0; margin-bottom: 1rem; }
.pay-opts { display: grid; gap: .5rem; }
.field { display: grid; gap: .3rem; margin-bottom: .85rem; }
.field label { font-weight: 700; font-size: .9rem; color: var(--coal); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem; border-radius: var(--radius-sm);
  border: 2px solid var(--bone-2); background: #fff; font-size: 1rem;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--amber); outline: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--ember); }
.field-error { color: var(--ember); font-size: .82rem; font-weight: 700; }
.hint { font-size: .88rem; color: var(--muted); }
.summary { background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line); padding: 1rem; font-size: .92rem; }
.summary h3 { font-size: 1rem; margin-bottom: .6rem; color: var(--coal); }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem .75rem; margin-bottom: .75rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 500; }
.summary ul { list-style: none; padding: 0; border-top: 1px dashed var(--line); padding-top: .6rem; display: grid; gap: .35rem; }
.summary li { display: flex; justify-content: space-between; gap: .75rem; }
.summary li em { display: block; color: var(--muted); font-size: .82rem; }
.summary .sum-lines { border-top: 1px dashed var(--line); margin-top: .6rem; padding-top: .6rem; }
.summary .sum-total { font-weight: 700; font-size: 1.1rem; color: var(--coal); }
.co-done { text-align: center; padding: 1.5rem 0; display: grid; gap: .9rem; justify-items: center; }
.done-emoji { font-size: 3rem; }
.co-done h3 { font-family: var(--display); font-weight: 400; font-size: 2rem; text-transform: uppercase; }

/* ---- Toast ---- */
.toast {
  position: fixed; left: 50%; top: calc(var(--header-h) + 12px); z-index: 70;
  transform: translate(-50%, -20px); opacity: 0; pointer-events: none;
  background: var(--coal); color: var(--bone); padding: .6rem 1rem; border-radius: 999px; font-weight: 700; font-size: .9rem;
  transition: opacity .25s, transform .35s var(--ease-out); white-space: nowrap;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* =============================================================
   7. Effects (fade-in on scroll; solo con JS activo)
   ============================================================= */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* =============================================================
   8. Responsive (mobile-first)
   ============================================================= */
@media (min-width: 540px) {
  .dish-grid { grid-template-columns: 1fr 1fr; }
  .dish { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .dish .media { aspect-ratio: 4 / 3; min-height: 0; }
  .dish .badge { font-size: .75rem; top: .75rem; left: .75rem; }
  .carousel-track { grid-auto-columns: 60%; }
  .masonry { columns: 3; }
}
@media (min-width: 720px) {
  :root { --gutter: 1.5rem; }
  .perks-grid { grid-template-columns: repeat(3, 1fr); }
  .zig { grid-template-columns: 1.1fr 1fr; gap: 2.5rem; }
  .zig-rev .zig-media { order: 2; }
  .story .container:not(:has(.zig-media)) { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: stretch; }
  .story .container:not(:has(.zig-media)) .section-head { grid-column: 1 / -1; margin-bottom: .5rem; }
  .story .container:not(:has(.zig-media)) .zig { margin-bottom: 0; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .checkout { inset: 0; margin: auto; max-width: 520px; height: min(760px, 88vh); height: min(760px, 88svh); border-radius: 22px; }
}
@media (min-width: 960px) {
  :root { --header-h: 72px; }
  .burger { display: none; }
  .nav { display: flex; gap: 1.75rem; margin-right: 1rem; }
  .nav a { padding: 0; border: 0; }
  .cart-btn-label { display: inline; }
  .hero { min-height: 70svh; }
  .hero-content { padding-block: 4rem; }
  .hero-logo { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%) rotate(-6deg); width: min(34vw, 380px); height: auto; aspect-ratio: 1; margin: 0; }
  .dish-grid { grid-template-columns: repeat(3, 1fr); }
  .dish:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
  .dish .media img { transition: transform .6s var(--ease-out); }
  .dish:hover .media img { transform: scale(1.06); }
  .carousel-track { grid-auto-columns: calc((100% - 2rem) / 3); }
  .masonry { columns: 3; column-gap: 1rem; }
  .masonry .media { margin-bottom: 1rem; }
  .loc-grid { grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: stretch; }
  .map, .map iframe { min-height: 420px; }
  .footer { padding-bottom: 2rem; }
  /* En escritorio la barra inferior no se usa: el botón del header abre el carrito */
  .cartbar { display: none !important; }
  body.has-cartbar .wa-float { bottom: 1.25rem; }
}

/* =============================================================
   9. Reduced-motion (solo lo intrusivo)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot-live.is-open { animation: none; }
}
