/* Marca y tipo. Cámbialos aquí. */
:root {
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --navy: #161A25;
  --red: #E8302F;
  --yellow: #FFC20E;
  --ink: #161A25;
  --paper: #f6f1e8;
  --sheet: #fffdfb;
  --muted: #5c6574;
  --line: #e5d9c8;
  --on-navy: #fffdfb;
  --on-red: #fffdfb;
  --on-yellow: #161A25;
  --radius: 28px;
  --space: 22px;
  --shadow: 7px 7px 0 var(--navy);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% -10%, rgba(255, 194, 14, .35), transparent 32%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0;
}
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--yellow);
  color: var(--on-yellow);
  padding: 8px 12px;
  border-radius: 999px;
  z-index: 5;
}
.skip:focus { top: 12px; }

.mast {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px var(--space) 22px;
  background: var(--navy);
  color: var(--on-navy);
}
.mast::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 16px;
  background: radial-gradient(circle at 12px 16px, var(--paper) 8px, var(--navy) 9px) left bottom / 24px 16px repeat-x;
  pointer-events: none;
}
.logo img {
  height: 84px;
  width: auto;
  background: var(--navy);
}
.pill, .btn, .add, .pay button, .chip {
  min-height: 48px;
  border-radius: 999px;
  border: 2px solid var(--navy);
  font-weight: 700;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  background: var(--yellow);
  color: var(--on-yellow);
  text-decoration: none;
}
main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px var(--space) 48px;
}
.hero h1 {
  font-size: clamp(2.6rem, 10vw, 5.4rem);
  max-width: 12ch;
  margin: 8px 0 14px;
}
.hero em {
  font-style: normal;
  background: var(--yellow);
  color: var(--on-yellow);
  padding: 0 .18em;
  border-radius: 10px;
  box-decoration-break: clone;
}
.kicker {
  margin: 0;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--red);
}
.lead { max-width: 38rem; color: var(--muted); margin: 0 0 18px; }
.finder label, .form label { display: block; font-weight: 700; margin: 14px 0 6px; }
.finder input, .form input, .form textarea, .sheet input, .sheet textarea {
  width: 100%;
  min-height: 56px;
  border: 2px solid var(--navy);
  border-radius: 18px;
  background: var(--sheet);
  color: var(--ink);
  padding: 12px 16px;
  font-size: 16px;
}
.form textarea { min-height: 110px; resize: vertical; }
.sheet textarea { min-height: 72px; resize: vertical; }
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 0 4px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
}
.chip.on, .pay button.on { background: var(--navy); color: var(--on-navy); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: var(--space);
  margin-top: 18px;
  align-items: start;
}
button.spot {
  display: flex;
  width: 100%;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.spot, .dish, .prosa, .sheet-card {
  background: var(--sheet);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.spot {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 12px 18px;
  text-decoration: none;
  min-width: 0;
}
.shot {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  overflow: hidden;
  background: var(--navy);
}
.shot img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.letra {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 3rem;
}
.stamp {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  transform: rotate(-8deg);
  background: var(--yellow);
  color: var(--on-yellow);
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--font-display);
  font-weight: 700;
}
.stamp.cerrado { background: var(--red); color: var(--on-red); }
.spot h2 { font-size: 2rem; padding-right: 88px; }
.cocina, .min, .vacio { margin: 0; color: var(--muted); }
.precio { color: var(--red); font-family: var(--font-display); font-size: 1.4rem; margin: 4px 0; }
.local-head { position: relative; padding: 8px 0 12px; }
.local-head h1 { font-size: clamp(2.4rem, 9vw, 4.6rem); max-width: 14ch; }
.local-head .stamp { position: static; display: inline-flex; transform: rotate(-6deg); margin-bottom: 10px; }
.aviso {
  background: var(--yellow);
  color: var(--on-yellow);
  border-radius: 18px;
  padding: 12px 14px;
  font-weight: 700;
}
.aviso.suave { background: var(--sheet); color: var(--ink); box-shadow: var(--shadow); }
.dishes { display: grid; gap: 14px; margin-top: 8px; }
.dish {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  align-items: center;
}
.shot.tiny { aspect-ratio: 1; border-radius: 16px; }
.dish h3 { font-size: 1.45rem; }
.dish p { margin: 4px 0; }
.add, .btn {
  background: var(--red);
  color: var(--on-red);
  padding: 0 16px;
}
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px var(--space) calc(10px + env(safe-area-inset-bottom));
  background: var(--navy);
  z-index: 20;
}
.dock button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--on-yellow);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}
.dock button:disabled { opacity: .45; }
.sheet {
  position: fixed;
  inset: 0;
  background: rgba(22, 26, 37, .72);
  z-index: 30;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet[hidden] { display: none; }
.aviso-socio { align-items: center; padding: 16px; }
.aviso-socio .sheet-card { border-radius: 28px; }
.aviso-puntos { margin: 12px 0 18px; padding-left: 1.15rem; text-align: left; }
.aviso-socio [data-seguir] {
  background: var(--red);
  color: var(--on-red);
  border-color: var(--navy);
}
.wa-flotante {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 24;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #1fa855;
  color: var(--on-navy);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .72rem;
  line-height: 1;
  box-shadow: 4px 4px 0 var(--navy);
}
.wa-flotante span { display: none; }
body.carta .wa-flotante { bottom: 92px; }
.sheet-card {
  width: min(560px, 100%);
  max-height: 92dvh;
  overflow: auto;
  padding: 18px 16px calc(20px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
}
.sheet-card h2 { font-size: 2.2rem; margin-bottom: 8px; }
.line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 2px solid var(--line);
}
.qty { display: flex; gap: 6px; align-items: center; }
.qty button {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid var(--navy);
  background: var(--paper);
}
.pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay button { background: var(--sheet); }
.totales { margin: 12px 0; }
.totales div { display: flex; justify-content: space-between; gap: 12px; }
.totales strong { font-family: var(--font-display); font-size: 1.6rem; }
.err { color: var(--red); font-weight: 700; min-height: 1.2em; }
.opt {
  width: 100%;
  text-align: left;
  margin: 6px 0;
  padding: 12px;
  border-radius: 16px;
  border: 2px solid var(--navy);
  background: var(--sheet);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.opt.on { background: var(--yellow); }
.site-foot {
  background: var(--navy);
  color: var(--on-navy);
  padding: 28px var(--space) 42px;
}
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.site-foot a { color: var(--yellow); }
.prosa { padding: 22px 18px 28px; max-width: 42rem; }
.prosa h1 { font-size: clamp(2.2rem, 8vw, 4rem); margin-bottom: 12px; }
.pasos { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.paso span {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  border: 2px solid var(--line);
}
.paso.hecho span, .paso.ahora span { border-color: var(--navy); }
.paso.ahora span { background: var(--yellow); }
.paso.hecho span { background: var(--navy); color: var(--on-navy); }
.resumen { padding-left: 18px; }
.resumen small { display: block; color: var(--muted); }
.total { font-family: var(--font-display); font-size: 2rem; }
.text-link { color: var(--red); font-weight: 700; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.back { margin: 0 0 8px; }
.nota-alérgenos { color: var(--muted); font-size: .92rem; }
.confirm pre {
  white-space: pre-wrap;
  background: var(--paper);
  border-radius: 16px;
  padding: 12px;
  font-family: var(--font-body);
}
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
@media (min-width: 800px) {
  .mast, main { padding-inline: 32px; }
}
body.carta main { padding-bottom: 110px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
