/* Base del documento */
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
/* Layout: one centered column, gold-framed header, sticky category chips, menu rows with a small picture, fixed WhatsApp bar */
:root {
  --bg: #0a0806;
  --surface: #14100b;
  --surface-2: #1c150d;
  --gold: #e2b256;
  --gold-hi: #f7de9c;
  --gold-lo: #a37a28;
  --line: rgba(226, 178, 86, .34);
  --line-soft: rgba(226, 178, 86, .16);
  --text: #f2e8d2;
  --muted: #b4a587;
  --wa: #25d366;
  --wa-ink: #05240f;
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  background: var(--bg); z-index: 30;
}
.wrap {
  max-width: 640px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

/* ---------- Hero ---------- */
.hero { padding-block: 22px 8px; }
.frame {
  position: relative; text-align: center;
  border: 1px solid var(--line);
  padding: 30px 18px 26px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(226,178,86,.13), transparent 60%),
    var(--surface);
}
.frame::before {
  content: ""; position: absolute; inset: 6px; border: 1px solid var(--line-soft); pointer-events: none;
}
.band {
  height: 14px; margin: 0 auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M14 1L21 7L14 13L7 7Z' fill='none' stroke='%23e2b256' stroke-width='1.2'/%3E%3Cpath d='M0 7H4M24 7H28' stroke='%23e2b256' stroke-width='1'/%3E%3C/svg%3E") repeat-x center;
  opacity: .85;
}
.eyebrow {
  font-family: var(--head); font-weight: 500; font-size: .8rem;
  letter-spacing: .28em; text-transform: uppercase; color: var(--gold);
  margin: 16px 0 6px;
}
h1.brand {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.5rem, 11.5vw, 4.4rem); line-height: 1.04;
  text-wrap: balance;
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 55%, var(--gold-lo) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}
.rule { display: block; width: min(220px, 60%); height: 1px; margin: 12px auto 10px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.kinds {
  font-family: var(--head); font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  font-size: .92rem; color: var(--gold-hi);
}
.tagline { color: var(--muted); margin-top: 8px; text-wrap: balance; }
.hero-cta { display: grid; justify-items: center; gap: 10px; margin: 20px 0 18px; }
.phone-line { font-family: var(--head); letter-spacing: .08em; color: var(--muted); font-size: .95rem; }
.phone-line b { color: var(--gold-hi); font-weight: 500; user-select: all; }

/* WhatsApp button */
.wa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--wa); color: var(--wa-ink); text-decoration: none;
  font-family: var(--head); font-weight: 600; font-size: 1.05rem; letter-spacing: .07em; text-transform: uppercase;
  box-shadow: 0 6px 22px rgba(37, 211, 102, .28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.wa-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(37, 211, 102, .4); }
.wa-btn:active { transform: translateY(0); }
.wa-ico { width: 26px; height: 26px; flex: none; color: var(--wa-ink); }

/* ---------- Promo ---------- */
.promo {
  margin-top: 18px; text-align: center; padding: 18px 14px;
  border: 1px solid var(--gold); position: relative;
  background: linear-gradient(180deg, rgba(226,178,86,.1), rgba(226,178,86,.03));
}
.promo .tag {
  font-family: var(--head); font-size: .74rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--bg); background: var(--gold); display: inline-block; padding: 2px 12px;
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%); white-space: nowrap;
}
.promo .l1 { font-family: var(--head); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; font-size: 1.1rem; color: var(--gold-hi); margin-top: 4px; }
.promo .l2 {
  font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
  font-size: clamp(1.55rem, 7vw, 2.2rem); line-height: 1.15; text-wrap: balance;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Photos ---------- */
.ph { background-size: cover; background-position: center; background-repeat: no-repeat; background-color: var(--surface-2); }
.ph.ph-quesa { background-image: url("../images/quesabirrias-cartel.jpg"); }
.ph.ph-consome { background-image: url("../images/consome-cartel.jpg"); }
.feature { aspect-ratio: 720 / 316; border: 1px solid var(--line); margin-top: 18px; max-width: 100%; }
.feature.small { aspect-ratio: 320 / 172; max-width: 360px; margin: 0 auto 6px; }
.feature.sq { aspect-ratio: 1 / 1; max-width: 360px; margin: 6px auto 4px; }
.ph.ph-p1 { background-image: url("../images/quesabirrias-de-maiz.jpg"); }
.ph.ph-p2 { background-image: url("../images/tacos-de-birria.jpg"); }
.ph.ph-p3 { background-image: url("../images/tortas-de-birria.jpg"); }
.ph.ph-p4 { background-image: url("../images/gordiquesabirrias.jpg"); }
.ph.ph-p5a { background-image: url("../images/sopes-de-birria.jpg"); }
.ph.ph-p5b { background-image: url("../images/huaraches-de-birria.jpg"); }
.ph.ph-p6 { background-image: url("../images/consome-de-birria.jpg"); }
.ph.ph-p7 { background-image: url("../images/tortas-de-asado-blanco.jpg"); }
.ph.ph-p8 { background-image: url("../images/tacos-de-asado-blanco.jpg"); }
.ph.ph-p10 { background-image: url("../images/burros-medianos.jpg"); }
.ph.ph-p11 { background-image: url("../images/sopes.jpg"); }
.ph.ph-p12 { background-image: url("../images/huaraches.jpg"); }
.ph.ph-p13 { background-image: url("../images/gorditas.jpg"); }
.ph.ph-p14 { background-image: url("../images/quesadillas.jpg"); }
.ph.ph-p9 { background-image: url("../images/antojitos-y-guisos.jpg"); }
.cap { margin-top: 8px; text-align: center; color: var(--muted); font-size: .85rem; text-wrap: balance; }
.cap b { color: var(--gold-hi); font-weight: 500; }

/* ---------- Category chips ---------- */
.tabs {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--bg); border-bottom: 1px solid var(--line-soft);
  margin-top: 22px;
}
.tabs .wrap { display: flex; gap: 8px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.tabs .wrap::-webkit-scrollbar { display: none; }
.tab {
  flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--gold-hi); border: 1px solid var(--line);
  font-family: var(--head); font-weight: 500; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase;
}
.tab[aria-current="true"] { background: var(--gold); color: var(--bg); border-color: var(--gold); }

/* ---------- Menu ---------- */
main { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
.menu-sec { padding-top: 34px; scroll-margin-top: calc(56px + env(safe-area-inset-top, 0px)); }
.sec-head { text-align: center; margin-bottom: 8px; }
.sec-head h2 {
  font-family: var(--head); font-weight: 600; font-size: clamp(1.7rem, 7.5vw, 2.3rem);
  letter-spacing: .08em; text-transform: uppercase; line-height: 1.1;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec-head p { color: var(--muted); font-size: .9rem; margin-top: 4px; text-wrap: balance; }
.sec-head::after { content: ""; display: block; height: 14px; margin-top: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M14 1L21 7L14 13L7 7Z' fill='none' stroke='%23e2b256' stroke-width='1.2'/%3E%3Cpath d='M0 7H4M24 7H28' stroke='%23e2b256' stroke-width='1'/%3E%3C/svg%3E") repeat-x center; opacity: .6; }

.item {
  display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 16px 0; border-bottom: 1px solid var(--line-soft);
}
.items .item:last-child { border-bottom: 0; }
.thumb {
  width: 84px; height: 84px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 38%, #34261a, #130e09 75%);
}
.thumb svg { width: 100%; height: 100%; display: block; }
.thumb.ph { background-size: cover; }
.thumb.ph-quesa { background-position: 38% 50%; }
.thumb.ph-consome { background-position: 55% 50%; }
.info { min-width: 0; }
h3 {
  font-family: var(--head); font-weight: 500; font-size: 1.08rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--gold-hi); line-height: 1.25;
}
.note { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.row { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.row.head { margin-top: 0; }
.row.head h3 { flex: 0 1 auto; }
.leader { flex: 1 1 12px; min-width: 12px; border-bottom: 1px dotted var(--line); transform: translateY(-4px); }
.price { font-family: var(--head); font-weight: 600; font-size: 1.15rem; color: var(--gold); font-variant-numeric: tabular-nums; flex: none; }
.opts { margin-top: 6px; display: grid; gap: 4px; }
.oname { font-size: .95rem; min-width: 0; }

.guisos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding: 14px; border: 1px solid var(--line); background: var(--surface); }
.g-label { font-family: var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-right: 4px; }
.chip-static { padding: 4px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--gold-hi); font-size: .9rem; }

footer { text-align: center; padding-top: 36px; color: var(--muted); font-size: .85rem; }
footer .big { font-family: var(--head); letter-spacing: .1em; color: var(--gold-hi); font-size: 1.1rem; margin-bottom: 4px; }
footer p + p { margin-top: 6px; }

/* ---------- Fixed order bar ---------- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  padding: 12px max(16px, env(safe-area-inset-left, 0px)) calc(12px + env(safe-area-inset-bottom, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: linear-gradient(180deg, rgba(10,8,6,0), var(--bg) 38%);
}
.bar .wa-btn { display: flex; width: 100%; max-width: 608px; margin: 0 auto; }

@media (min-width: 560px) {
  .item { grid-template-columns: 104px minmax(0, 1fr); }
  .thumb { width: 104px; height: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wa-btn { transition: none; }
}
