/* =========================================================
   NONNA Burgers — estilos
   Estética de la carta impresa: papel arrugado gris claro,
   negro + amarillo, banderas inclinadas y grafiti.
   ========================================================= */

:root {
  --ink: #0e0e0e;
  --yellow: #FFD21F;
  --paper: #dddddb;
  --paper-light: #efefec;
  --muted: #2b2b2b;
  --ok: #18a058;
  --warn: #f08c00;
  --bad: #e03131;
  --header-h: 64px;
  --tabs-h: 64px;
  --radius: 4px;
  --font-display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  /* papel arrugado: ruido fractal iluminado (sin imágenes externas) */
  --paper-img:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640'%3E%3Cfilter id='p' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008 .011' numOctaves='5' seed='17' stitchTiles='stitch'/%3E%3CfeDiffuseLighting lighting-color='%23ffffff' surfaceScale='2.4' diffuseConstant='1.02'%3E%3CfeDistantLight azimuth='225' elevation='58'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--tabs-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.35), transparent 60%), var(--paper-img);
  background-size: auto, 640px 640px;
  font-family: var(--font-cond);
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.has-bar { padding-bottom: 88px; }
body.cart-open { overflow: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--yellow); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 12px 16px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.ico { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Bandera (como en la carta) ---------- */
.flag {
  display: inline-block;
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--font-cond);
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1;
  padding: .26em .95em .2em .75em;
  clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
  transform: rotate(-2.5deg);
  transform-origin: left center;
}
.flag-sm { font-size: 1.25rem; }
.flag-xl { font-size: clamp(2.4rem, 11vw, 4.6rem); padding: .16em .8em .12em .6em; }

/* ---------- Grafiti ---------- */
.g { display: block; color: var(--ink); pointer-events: none; overflow: visible; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .55em 1.25em;
  border: 3px solid var(--ink); border-radius: var(--radius);
  font-family: var(--font-cond); font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: 1.15rem; letter-spacing: .02em; text-decoration: none; line-height: 1.05;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, color .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--yellow); color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.btn-primary:hover { background: var(--ink); color: var(--yellow); }
.btn-primary:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn-outline { background: var(--paper-light); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--yellow); }
.btn-lg { font-size: 1.4rem; min-height: 58px; padding: .5em 1.4em; }
.btn-sm { min-height: 44px; font-size: 1rem; padding: .35em .9em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-btn { background: none; border: 0; padding: 10px 0; min-height: 44px; text-decoration: underline; font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: var(--header-h);
  background: var(--ink); color: #fff;
  border-bottom: 4px solid var(--yellow);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 10px; }
.logo { display: flex; flex-direction: column; text-decoration: none; line-height: .86; margin-right: auto; padding: 4px 0; }
.nav { display: flex; gap: 2px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  color: #fff; text-decoration: none; font-weight: 800; text-transform: uppercase; font-size: 1.05rem; letter-spacing: .03em;
}
.nav a:hover { color: var(--yellow); }
.btn-cart {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 10px 0 12px;
  background: var(--yellow); color: var(--ink); border: 0; border-radius: var(--radius);
  font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 1.05rem;
}
.btn-cart:hover { background: #fff; }
.site-header :focus-visible { outline-color: var(--yellow); box-shadow: none; }
.badge {
  min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px;
  display: inline-grid; place-items: center;
  background: var(--ink); color: var(--yellow);
  font-family: var(--font-display); font-style: normal; font-size: .95rem; letter-spacing: .02em;
}
.badge.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }
@media (max-width: 400px) {
  .nav a { padding: 0 7px; font-size: .98rem; }
  .btn-cart .ico { display: none; }
  .logo-mark-sm { font-size: 1.35rem; }
}

/* ---------- Hero ---------- */
.hero { padding: calc(var(--header-h) + 28px) 0 44px; position: relative; }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
@media (min-width: 900px) {
  .hero { padding: calc(var(--header-h) + 48px) 0 72px; min-height: min(88vh, 820px); display: flex; align-items: center; }
}

.status {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 10px; padding: 8px 16px 8px 12px; min-height: 44px;
  background: var(--ink); color: #fff; border-radius: 999px;
  font-weight: 700; font-size: 1.1rem; letter-spacing: .01em;
}
.status .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 3px rgba(255,255,255,.18); flex: none; }
.status[data-estado="abierto"] .dot { background: #2fd27a; }
.status[data-estado="ultimos"] .dot { background: var(--yellow); }
.status[data-estado="ultimos"] { color: var(--yellow); }

/* ---------- Logo (amarillo, contorno negro y volumen 3D, inclinado) ---------- */
.logo-mark {
  display: inline-flex; flex-direction: column; align-items: center;
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  color: var(--yellow);
  line-height: .9; letter-spacing: .01em;
  transform: rotate(-6deg);
  -webkit-text-stroke: .04em var(--ink);
  paint-order: stroke fill;
  text-shadow:
    0.006em 0.006em 0 var(--ink), 0.012em 0.012em 0 var(--ink), 0.018em 0.018em 0 var(--ink), 0.024em 0.024em 0 var(--ink), 0.030em 0.030em 0 var(--ink), 0.036em 0.036em 0 var(--ink), 0.042em 0.042em 0 var(--ink), 0.048em 0.048em 0 var(--ink), 0.054em 0.054em 0 var(--ink), 0.060em 0.060em 0 var(--ink), 0.066em 0.066em 0 var(--ink), 0.072em 0.072em 0 var(--ink), 0.078em 0.078em 0 var(--ink), 0.084em 0.084em 0 var(--ink), 0.090em 0.090em 0 var(--ink), 0.096em 0.096em 0 var(--ink),
    .11em .13em .06em rgba(0,0,0,.28);
}
.logo-mark .lm-1 { font-size: 1em; }
.logo-mark .lm-2 { font-size: .74em; margin-top: -.02em; }
.logo-wrap { position: relative; margin: 26px 0 30px; padding: 0 8px; }
#hero-title { font-size: clamp(5.6rem, 31vw, 10.5rem); }
@media (min-width: 900px) { .logo-wrap { margin: 22px 0 40px; } }
.logo-wrap .s1 { position: absolute; width: 54px; height: 60px; left: -14px; top: -18px; transform: rotate(-14deg); }
.logo-wrap .h1 { position: absolute; width: 50px; height: 50px; right: -10px; top: -14px; transform: rotate(10deg); }
.logo-wrap .s2 { position: absolute; width: 38px; height: 42px; right: -4px; bottom: -6px; transform: rotate(18deg); }
@media (min-width: 900px) {
  .logo-wrap .s1 { width: 84px; height: 92px; left: -70px; top: -10px; }
  .logo-wrap .h1 { width: 76px; height: 76px; right: -70px; top: -20px; }
  .logo-wrap .s2 { width: 56px; height: 62px; right: -40px; bottom: 0; }
}
/* versión chica (header y footer, sobre fondo negro) */
.logo-mark-sm {
  font-size: 1.55rem; transform: rotate(-4deg);
  -webkit-text-stroke: 0; text-shadow: .05em .05em 0 rgba(255,210,31,.25);
  line-height: .86;
}

.hero-lead { font-size: 1.3rem; font-weight: 600; max-width: 36ch; margin: 6px 0 18px; line-height: 1.3; }

.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 0 0 26px; }
.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px;
  border: 2.5px solid var(--ink); border-radius: 999px; background: var(--paper-light);
  font-weight: 800; text-transform: uppercase; font-size: 1rem; letter-spacing: .02em;
}
.chip-yellow { background: var(--yellow); }

.hero-cta { display: flex; align-items: center; gap: 12px; padding-left: 96px; }
.g-arrow-cta { width: 84px; height: 46px; transform: rotate(160deg) scaleY(-1); }
@media (max-width: 400px) { .hero-cta { padding-left: 0; } .g-arrow-cta { display: none; } }

/* ---------- Encabezados de sección ---------- */
.section-head { position: relative; padding-top: 12px; margin-bottom: 18px; }
.section-title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(3.4rem, 16vw, 6rem); line-height: .9; letter-spacing: .01em;
  position: relative; z-index: 1;
}
.section-sub { margin: 10px 0 0; font-size: 1.15rem; font-weight: 600; }
.g-hash-title, .g-star-title { position: absolute; width: 74px; height: 74px; left: clamp(150px, 46vw, 260px); top: 0; transform: rotate(10deg); opacity: .95; }
.g-star-title { left: clamp(230px, 66vw, 400px); width: 60px; height: 66px; }

/* ---------- Menú ---------- */
.menu { padding: 40px 0 24px; }
.tabs {
  position: sticky; top: var(--header-h); z-index: 30;
  background: rgba(221, 221, 219, .94);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--ink);
}
.tabs-inner { display: flex; gap: 8px; padding-top: 9px; padding-bottom: 9px; overflow-x: auto; scrollbar-width: none; }
.tabs-inner::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 16px;
  border: 2.5px solid var(--ink); border-radius: var(--radius); background: var(--paper-light);
  font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 1.15rem; text-decoration: none; letter-spacing: .02em;
}
@media (min-width: 720px) { .tab { flex: 1 1 0; min-width: 0; padding: 0 10px; } }
.tab:hover { background: #fff; }
.tab.is-active { background: var(--ink); color: var(--yellow); }

.cat { padding-top: 36px; }
.cat-title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.3rem, 10vw, 3.4rem); letter-spacing: .01em; margin-bottom: 20px;
}
.g-star-cat { width: 38px; height: 42px; flex: none; transform: rotate(-10deg); }

.grid { display: grid; grid-template-columns: 1fr; gap: 30px 28px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card { position: relative; display: flex; flex-direction: column; padding: 4px 2px 0; }
.card-name { font-size: clamp(1.75rem, 7.5vw, 2.1rem); align-self: flex-start; margin: 0 0 14px -2px; }
.ingredientes {
  margin: 0 0 14px; padding-top: 10px;
  border-top: 1.5px solid var(--ink);
  text-transform: uppercase; font-weight: 600; font-size: 1.04rem; letter-spacing: .025em; line-height: 1.28;
  flex: 1;
}
.card-actions { display: flex; gap: 10px; }
.btn-add {
  flex: 1 1 0; min-height: 52px;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 12px;
  background: var(--paper-light); color: var(--ink);
  border: 2.5px solid var(--ink); border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .1s ease, box-shadow .1s ease, background-color .12s ease, color .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-add:hover { background: var(--yellow); }
.btn-add:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.add-label { font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 1.1rem; white-space: nowrap; }
.add-price { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: .02em; white-space: nowrap; }
.btn-add-one { flex: 0 1 260px; }

/* Destacada: Premium */
.card-featured {
  background: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 26px 18px 20px;
  margin: 10px 8px 8px 0;
}
.card-featured .card-name { font-size: clamp(2.6rem, 12vw, 3.6rem); }
.card-featured .ingredientes { font-size: 1.2rem; font-weight: 700; border-top-width: 2.5px; }
.card-featured .btn-add { background: var(--ink); color: var(--yellow); box-shadow: 4px 4px 0 rgba(0,0,0,.35); min-height: 58px; }
.card-featured .btn-add:hover { background: #fff; color: var(--ink); }
.card-featured .add-price { font-size: 1.6rem; }
.card-featured .btn-add:focus-visible { box-shadow: 0 0 0 6px #fff; }
.stamp {
  position: absolute; top: -16px; right: 14px;
  background: var(--ink); color: #fff;
  padding: 4px 12px; transform: rotate(3deg);
  font-weight: 900; font-style: italic; text-transform: uppercase; font-size: .95rem; letter-spacing: .06em;
}
.g-star-feat { position: absolute; width: 64px; height: 70px; right: 18px; top: 30px; transform: rotate(12deg); }
@media (min-width: 640px) {
  .card-featured { grid-column: 1 / -1; }
  .card-featured .ingredientes { max-width: 40ch; }
}
@media (min-width: 1024px) {
  .card-featured { grid-column: span 2; grid-row: span 2; justify-content: center; padding: 36px 32px 30px; }
  .card-featured .card-name { font-size: 4.6rem; }
  .card-featured .ingredientes { font-size: 1.45rem; flex: 0 0 auto; margin-bottom: 26px; }
  .g-star-feat { width: 110px; height: 120px; right: 34px; top: 40px; }
}

/* ---------- Info ---------- */
.info { padding: 48px 0 56px; }
.info-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 720px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .info-card-map { grid-column: 1 / -1; }
  .info-card:nth-child(3) { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .info-grid { grid-template-columns: repeat(3, 1fr); }
  .info-card:nth-child(3) { grid-column: auto; }
}
.info-card-map .info-big { margin-bottom: 14px; }
.mapa {
  position: relative; overflow: hidden;
  height: 300px;
  border: 3px solid var(--ink); border-radius: var(--radius);
  background: #cfcfcc;
}
@media (min-width: 720px) { .mapa { height: 380px; } }
.mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.info-card {
  background: var(--paper-light);
  border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 22px 18px 20px;
}
.info-card .flag { font-size: 1.6rem; margin-bottom: 14px; }
.info-card .flag-sm { font-size: 1.25rem; margin-top: 18px; }
.info-note { margin: 0 0 6px; font-weight: 800; text-transform: uppercase; }
.info-big { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; margin: 0 0 16px; letter-spacing: .01em; }
.horarios { margin: 0; }
.horarios div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding: 10px 0; border-top: 1.5px solid var(--ink); }
.horarios dt { font-weight: 800; text-transform: uppercase; }
.horarios dd { margin: 0; font-family: var(--font-display); font-size: 1.3rem; letter-spacing: .02em; }
.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li { padding: 8px 0 8px 28px; position: relative; border-top: 1.5px solid var(--ink); }
.tick-list li::before { content: "★"; position: absolute; left: 2px; top: 7px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 32px 0 36px; border-top: 4px solid var(--yellow); }
.footer-inner { display: grid; gap: 6px; }
.footer-inner p { margin: 0; font-weight: 600; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.footer-brand .logo-mark-sm { font-size: 2.2rem; }
.footer-small { color: #c8c8c8; font-size: 1rem; margin-top: 6px !important; }

/* ---------- Barra inferior (celular) ---------- */
.bottom-bar {
  position: fixed; z-index: 35;
  left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  min-height: 58px; padding: 8px 18px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--ink); color: var(--yellow);
  border: 3px solid var(--yellow); border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 1.2rem; letter-spacing: .02em;
}
.bottom-bar strong { font-family: var(--font-display); font-style: normal; font-weight: 400; font-size: 1.35rem; }
.bottom-bar:focus-visible { outline-color: var(--yellow); box-shadow: 0 0 0 6px var(--ink); }
@media (min-width: 900px) {
  .bottom-bar { display: none !important; }
  body.has-bar { padding-bottom: 0; }
}

/* ---------- Aviso corto (toast) ---------- */
.toast {
  position: fixed; z-index: 80; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--yellow); color: var(--ink);
  border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  padding: 10px 18px; max-width: calc(100% - 32px);
  font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 1.15rem; white-space: nowrap;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { .toast { bottom: 28px; } }

/* ---------- Panel del carrito ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(14,14,14,.55); }
.cart {
  position: fixed; z-index: 60; inset: 0;
  display: flex; flex-direction: column;
  background-color: var(--paper);
  background-image: var(--paper-img);
  background-size: 640px 640px;
}
@media (min-width: 720px) {
  .cart { inset: 0 0 0 auto; width: min(460px, 100%); border-left: 4px solid var(--ink); box-shadow: -10px 0 30px rgba(0,0,0,.25); }
}
@media (prefers-reduced-motion: no-preference) {
  .cart:not([hidden]) { animation: entrar .22s ease-out; }
  .overlay:not([hidden]) { animation: aparecer .2s ease-out; }
}
@keyframes entrar { from { transform: translateX(40px); opacity: 0; } }
@keyframes aparecer { from { opacity: 0; } }

.cart-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 12px 12px 18px; padding-top: calc(12px + env(safe-area-inset-top));
  background: var(--ink); border-bottom: 4px solid var(--yellow);
}
.cart-head .flag { background: var(--yellow); color: var(--ink); font-size: 1.7rem; }
.icon-btn {
  width: 48px; height: 48px; display: grid; place-items: center;
  background: transparent; color: #fff; border: 2.5px solid #fff; border-radius: var(--radius);
  font-size: 1.4rem; font-weight: 800;
}
.icon-btn:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.cart-head :focus-visible { outline-color: var(--yellow); box-shadow: none; }

.cart-body { flex: 1; overflow-y: auto; padding: 16px 18px 24px; overscroll-behavior: contain; }
.aviso { margin: 0 0 14px; padding: 12px 14px; border: 2.5px solid var(--ink); border-radius: var(--radius); background: var(--yellow); font-weight: 600; line-height: 1.3; }
.aviso-mp { background: var(--paper-light); margin: 0; }

.cart-empty { text-align: center; padding: 18px 0 22px; border-bottom: 1.5px solid var(--ink); margin-bottom: 16px; }
.cart-empty p { margin: 0 0 14px; font-weight: 700; font-size: 1.2rem; }

.cart-items { list-style: none; margin: 0; padding: 0; }
.line {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "info total" "qty total";
  gap: 6px 12px; align-items: center;
  padding: 12px 0; border-bottom: 1.5px solid var(--ink);
}
.line:first-child { border-top: 1.5px solid var(--ink); }
.line-info { grid-area: info; display: flex; flex-direction: column; }
.line-name { font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 1.3rem; line-height: 1.05; }
.line-meta { font-weight: 600; font-size: 1rem; color: var(--muted); }
.qty { grid-area: qty; display: inline-flex; align-items: center; justify-self: start; border: 2.5px solid var(--ink); border-radius: var(--radius); background: var(--paper-light); }
.qty-btn { width: 44px; height: 44px; background: transparent; border: 0; font-size: 1.5rem; font-weight: 800; line-height: 1; }
.qty-btn:hover { background: var(--yellow); }
.qty-btn:disabled { opacity: .35; cursor: not-allowed; }
.qty-n { min-width: 34px; text-align: center; font-family: var(--font-display); font-size: 1.25rem; }
.line-total { grid-area: total; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: .02em; }

.order-form { margin-top: 20px; display: grid; gap: 18px; }
.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field legend { display: block; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 6px; padding: 0; }
.req { color: #b00000; }
.opt { font-weight: 600; text-transform: none; color: var(--muted); }
.field input[type="text"], .field input[type="tel"], .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  background: #fff; border: 2.5px solid var(--ink); border-radius: var(--radius);
  font-size: 1.15rem; font-weight: 600;
}
.field textarea { resize: vertical; min-height: 72px; }
.field input::placeholder, .field textarea::placeholder { color: #6b6b6b; font-weight: 500; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; box-shadow: 0 0 0 5px var(--yellow); }
.input-money { display: flex; align-items: center; gap: 8px; }
.input-money span { font-family: var(--font-display); font-size: 1.4rem; }
.hint { margin: 6px 0 0; font-weight: 600; font-size: 1rem; color: var(--muted); }
.hint:empty { display: none; }
.hint.warn { color: #a10000; font-weight: 800; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg-3 { grid-template-columns: repeat(3, 1fr); }
.seg-3 label { font-size: .98rem; padding: 6px 4px; }
.seg label {
  position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 6px 10px;
  border: 2.5px solid var(--ink); border-radius: var(--radius); background: var(--paper-light);
  font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.05rem; line-height: 1.1; cursor: pointer;
}
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg label:has(input:checked) { background: var(--ink); color: var(--yellow); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--yellow); }

.alias-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 2.5px solid var(--ink); border-radius: var(--radius); background: var(--paper-light); }
.alias-box strong { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; letter-spacing: .02em; word-break: break-all; }

.cart-foot {
  border-top: 3px solid var(--ink);
  background: var(--paper-light);
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
}
.totales { margin: 0 0 8px; }
.totales div { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 0; font-weight: 700; }
.totales dd { margin: 0; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .02em; }
.totales .total { border-top: 1.5px solid var(--ink); margin-top: 4px; padding-top: 6px; }
.totales .total dt { font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 1.35rem; }
.totales .total dd { font-size: 1.7rem; }
.faltan { list-style: none; margin: 0 0 10px; padding: 0; font-weight: 700; font-size: 1rem; color: #8a0000; }
.faltan:empty { display: none; }
.faltan li { padding-left: 16px; position: relative; }
.faltan li::before { content: "•"; position: absolute; left: 2px; }
.faltan .faltan-title { padding-left: 0; color: var(--ink); text-transform: uppercase; }
.faltan .faltan-title::before { content: none; }
.btn-wa { width: 100%; min-height: 56px; background: var(--yellow); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); font-size: 1.25rem; cursor: pointer; }
.btn-wa:hover { background: var(--ink); color: var(--yellow); }
.btn-wa.is-disabled { background: #c9c9c6; color: #3a3a3a; border-color: #6f6f6f; box-shadow: none; cursor: not-allowed; }
.btn-wa.is-disabled:hover { background: #c9c9c6; color: #3a3a3a; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Con el panel abierto, el aviso va arriba para no tapar el total */
body.cart-open .toast { bottom: auto; top: calc(84px + env(safe-area-inset-top)); }

/* Producto sin stock (se marca desde el panel) */
.card-sin-stock .card-name, .card-sin-stock .ingredientes { opacity: .45; }
.btn-add:disabled { background: #cfcfcc; color: #3a3a3a; box-shadow: none; border-style: dashed; cursor: not-allowed; justify-content: center; }
.card-featured .btn-add:disabled { background: rgba(0,0,0,.18); color: var(--ink); }

/* ---------- Envío del pedido ---------- */
.btn-wa[aria-busy="true"] { opacity: .7; cursor: progress; }
.link-dudas {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; margin-top: 6px; font-weight: 700; font-size: 1.05rem; text-decoration: underline;
}
.envio-error { margin: 0 0 10px; padding: 10px 12px; border: 2.5px solid #a10000; border-radius: var(--radius); background: #fff1f0; }
.envio-error p { margin: 0 0 8px; line-height: 1.3; }

/* ---------- Seguimiento del pedido ---------- */
.seguimiento { flex: 1; overflow-y: auto; padding: 20px 18px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 18px; }
.seg-top { text-align: center; }
.seg-ok { margin: 0; font-family: var(--font-display); font-size: 2.3rem; line-height: 1; text-transform: uppercase; letter-spacing: .01em; outline: none; }
.seg-num { margin: 6px 0 0; font-size: 1.25rem; font-weight: 700; }
.seg-num strong { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; background: var(--ink); color: var(--yellow); padding: 0 .35em; }
.pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; position: relative; }
.pasos li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-weight: 700; font-size: .95rem; line-height: 1.1; color: #6a6a68; position: relative; }
.pasos li::before { content: ""; position: absolute; top: 12px; left: -50%; right: 50%; height: 4px; background: #b9b9b6; z-index: 0; }
.pasos li:first-child::before { display: none; }
.pasos li.hecho::before, .pasos li.actual::before { background: var(--ink); }
.paso-dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; border: 3px solid #b9b9b6; background: var(--paper-light); }
.pasos li.hecho, .pasos li.actual { color: var(--ink); }
.pasos li.hecho .paso-dot { background: var(--ink); border-color: var(--ink); }
.pasos li.actual .paso-dot { background: var(--yellow); border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255,210,31,.45); }
@media (prefers-reduced-motion: no-preference) { .pasos li.actual .paso-dot { animation: latido 1.6s ease-in-out infinite; } }
@keyframes latido { 50% { box-shadow: 0 0 0 9px rgba(255,210,31,.15); } }
.seg-msg { margin: 0; padding: 12px 14px; border: 2.5px solid var(--ink); border-radius: var(--radius); background: var(--yellow); font-weight: 700; font-size: 1.15rem; line-height: 1.3; text-align: center; }
.seg-pago { padding: 12px 14px; border: 2.5px solid var(--ink); border-radius: var(--radius); background: var(--paper-light); }
.seg-pago p { margin: 0 0 8px; font-weight: 600; }
.seg-pago .hint { margin: 8px 0 0; }
.seg-resumen ul { list-style: none; margin: 0 0 8px; padding: 0; border-top: 1.5px solid var(--ink); }
.seg-resumen li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1.5px solid var(--ink); font-weight: 600; }
.seg-resumen li span:last-child { font-family: var(--font-display); font-weight: 400; letter-spacing: .02em; }
.seg-resumen .seg-total { font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 1.2rem; }
.seg-resumen .seg-total span:last-child { font-size: 1.4rem; font-style: normal; }
.seg-resumen p { margin: 4px 0; font-weight: 600; }
.seg-acciones { display: grid; gap: 10px; margin-top: auto; }

/* ---------- Papas, extras, bebidas y postres ---------- */
.cat-nota { margin: -8px 0 18px; font-weight: 600; font-size: 1.05rem; }
.card-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; }
.card-head .card-name { margin-right: 0; }
.card-detalle { font-weight: 800; text-transform: uppercase; font-size: 1rem; letter-spacing: .02em; }
.lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0 36px; }
@media (min-width: 760px) { .lista { grid-template-columns: repeat(2, 1fr); } }
.fila { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1.5px solid var(--ink); }
.fila-name { font-size: clamp(1.2rem, 5vw, 1.45rem); margin-right: auto; }
.fila .card-detalle { margin-right: auto; }
.fila-name + .card-detalle { margin-left: -4px; }
.btn-add-row { flex: 0 0 auto; min-width: 118px; min-height: 48px; padding: 4px 12px; }
.btn-add-row .add-label { font-size: 1.3rem; }
.btn-add-row:disabled { min-width: 118px; }
.lista-grupo { margin: 22px 0 6px; }
.lista-grupo span { display: inline-block; padding: 4px 14px; background: var(--ink); color: #fff; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: .04em; font-size: 1.05rem; transform: rotate(-2deg); }

/* ---------- Pie del carrito compacto (que el formulario tenga lugar en el celular) ---------- */
.cart { outline: none; }
.cart-foot { padding-top: 10px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.foot-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.foot-total-label { font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 1.2rem; }
.foot-total-label small { display: block; font-style: normal; text-transform: none; font-weight: 600; font-size: .9rem; color: var(--muted); }
.foot-total strong { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; letter-spacing: .02em; }
p.faltan { margin: 0 0 8px; font-size: .98rem; line-height: 1.25; }
.totales-detalle { margin: 22px 0 4px; padding-top: 10px; border-top: 2px solid var(--ink); }
.cart-body .link-dudas { margin-top: 4px; }
@media (max-height: 700px) {
  .cart-head { padding-top: calc(8px + env(safe-area-inset-top)); padding-bottom: 8px; }
  .cart-head .flag { font-size: 1.4rem; }
  .icon-btn { width: 44px; height: 44px; }
  .btn-wa { min-height: 50px; }
}
