/* Menú mobile (QR en las mesas): misma estética que la pantalla, en una columna. */
:root {
  --brown: #6b4522;
  --red: #a3382b;
  --logo: #7a5534;
  --ink: #141210;
  --cream: #fbf4ea;
  --paper: #efebe3;
  --muted: #5d554b;
  --line: rgba(28, 24, 19, .18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: 'DM Sans', system-ui, sans-serif;
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .40 0 0 0 0 .33 0 0 0 .14 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 50% 0%, #f6f3ec 0%, #ebe6dc 70%, #e2dccf 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.serif { font-family: 'Playfair Display', Georgia, serif; font-weight: 900; }

/* Logo animado */
.logo { color: var(--logo); overflow: visible; transform-origin: 50% 92%; animation: sway 7s ease-in-out infinite; }
.shine { animation: shine 6s ease-in-out infinite; }
.logo--img { position: relative; display: inline-block; }
.logo--img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-shine {
  position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.logo-shine i {
  position: absolute; top: -10%; bottom: -10%; left: 0; width: 22%;
  background: rgba(255, 246, 228, .7);
  transform: skewX(-18deg);
  animation: shineImg 6s ease-in-out infinite;
}
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes shine { 0%, 50% { transform: translateX(-120px); } 80%, 100% { transform: translateX(360px); } }
@keyframes shineImg { 0%, 50% { left: -40%; } 80%, 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) {
  .logo, .shine, .logo-shine i { animation: none; }
}

/* Cabecera */
.hero { display: flex; justify-content: center; padding: 36px 16px 20px; }

/* Navegación de secciones */
.cats {
  position: sticky; top: 0; z-index: 5;
  display: flex; gap: 8px;
  overflow-x: auto;
  padding: 10px 16px;
  background: rgba(239, 235, 227, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cats:empty { display: none; }
.cats a {
  flex: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--brown);
  color: var(--brown);
  font-size: 13px; font-weight: 700; letter-spacing: .5px;
  text-decoration: none;
  white-space: nowrap;
}
.cats a.on { background: var(--brown); color: var(--cream); }

main { max-width: 640px; margin: 0 auto; padding: 8px 16px 24px; }
.status { text-align: center; color: var(--muted); padding: 40px 0; }

/* Etiquetas tipo cartel */
.tag {
  display: inline-block;
  margin: 0;
  padding: 7px 16px 9px;
  color: var(--cream);
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
  letter-spacing: .5px;
}
.tag--brown { background: var(--brown); }
.tag--red { background: var(--red); }
.price-tag {
  display: inline-block;
  margin: 0;
  padding: 5px 10px 6px;
  background: var(--brown);
  color: var(--cream);
  font-weight: 700;
  line-height: 1;
}

/* Promos */
.promos { display: grid; gap: 18px; margin: 12px 0 8px; }
.promo {
  overflow: hidden;
  border-radius: 18px;
  background: #fbf8f2;
  box-shadow: 0 10px 28px rgba(40, 28, 16, .12);
}
.promo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.promo-body { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 16px 22px; }
.promo .tag { font-size: 20px; transform: rotate(-2deg); }
.promo-title { margin: 12px 0 0; font-size: 46px; line-height: .95; letter-spacing: -1px; }
.promo-title span { color: var(--red); }
.promo-detail { margin: 12px 0 0; font-size: 13px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.promo .price-tag { margin-top: 14px; font-size: 30px; padding: 6px 14px 8px; }

/* Secciones de la carta */
.cat { padding-top: 28px; }
.cat-head { text-align: center; margin-bottom: 8px; }
.item {
  display: flex; gap: 14px; align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.item:last-child { border-bottom: 0; }
.item img { flex: none; width: 76px; height: 76px; object-fit: contain; }
.item-text { flex: 1; min-width: 0; }
.item-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.item-name { margin: 0; font-size: 22px; line-height: 1.05; }
.item-price { margin: 0; font-weight: 700; font-size: 19px; white-space: nowrap; }
.item-desc { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; font-weight: 500; line-height: 1.35; text-transform: uppercase; letter-spacing: .2px; }

.foot {
  max-width: 640px; margin: 0 auto;
  padding: 24px 16px calc(36px + env(safe-area-inset-bottom));
  text-align: center; color: var(--muted); font-size: 13px;
}
.foot a { color: var(--brown); font-weight: 700; text-decoration: none; }
.foot p { margin: 6px 0; }
