:root {
  --red: #c8221f;
  --red-dark: #9e1714;
  --green: #0d6b3c;
  --green-dark: #08492a;
  --yellow: #f7c51e;
  --cream: #fbf6ec;
  --ink: #24170f;
  --muted: #6d5c4f;
  --line: #e8dccb;
  --card: #ffffff;
  --head: "Alfa Slab One", Georgia, serif;
  --body: "Work Sans", system-ui, -apple-system, Segoe UI, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.5em; border-radius: 999px; font-weight: 700; text-decoration: none; letter-spacing: .02em; border: 2px solid transparent; transition: transform .15s, background .15s; cursor: pointer; font-size: 15px; }
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* Header */
header { position: sticky; top: 0; z-index: 50; background: rgba(251,246,236,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--yellow); }
.brand span { font-family: var(--head); color: var(--red); font-size: 22px; line-height: 1; }
.brand small { display: block; font-family: var(--body); font-weight: 700; color: var(--green); font-size: 10px; letter-spacing: .18em; margin-top: 4px; }
.links { display: flex; align-items: center; gap: 28px; }
.links a:not(.btn) { text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.links a:not(.btn):hover { color: var(--red); }
.menu-toggle { display: none; background: none; border: 0; font-size: 28px; cursor: pointer; color: var(--ink); }

/* Hero */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: url("images/hero-carne-asada.jpg") 65% center/cover; transform: scale(1.03); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,10,5,.88) 0%, rgba(20,10,5,.55) 55%, rgba(20,10,5,.15) 100%); }
.hero .wrap { position: relative; z-index: 1; padding: 80px 0; }
.eyebrow { color: var(--yellow); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: 13px; }
.hero h1 { font-family: var(--head); font-weight: 400; font-size: clamp(44px, 7vw, 84px); line-height: 1; margin: 14px 0 18px; max-width: 12ch; }
.hero p { font-size: 19px; max-width: 34ch; margin: 0 0 32px; color: #f3e9dc; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Ticker */
.ticker { background: var(--green); color: #fff; padding: 16px 0; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; }
.ticker .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.ticker span::after { content: "•"; color: var(--yellow); margin-left: 22px; }
.ticker span:last-child::after { content: ""; margin: 0; }

/* Sections */
section { padding: 96px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
h2 { font-family: var(--head); font-weight: 400; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; margin: 10px 0 14px; color: var(--ink); }
.section-head p { color: var(--muted); margin: 0; }
.eyebrow.red { color: var(--red); }

/* Intro numbers */
.intro { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.intro div { border-top: 3px solid var(--red); padding-top: 18px; }
.intro b { font-family: var(--head); color: var(--red); font-size: 32px; font-weight: 400; }
.intro p { margin: 8px 0 0; color: var(--muted); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; grid-auto-flow: dense; gap: 12px; margin-top: 64px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 14px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(36,23,15,.82); color: #fff; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

/* Story */
.story { background: var(--ink); color: #f3e9dc; }
.story-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.story-photo { position: relative; }
.story-photo img { border-radius: 18px; width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center 30%; }
.story-photo .badge { position: absolute; right: -14px; bottom: -22px; background: var(--yellow); color: var(--ink); border-radius: 14px; padding: 14px 20px; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.story-photo .badge b { display: block; font-family: var(--head); font-weight: 400; font-size: 30px; line-height: 1; }
.story h2 { color: #fff; }
.story p { color: #e2d5c4; }
.story .sig { font-family: var(--head); color: var(--yellow); font-size: 20px; margin-top: 24px; }

/* Featured dishes */
.dishes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dish { background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: 0 2px 0 var(--line); border: 1px solid var(--line); display: flex; flex-direction: column; }
.dish img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.dish div { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.dish h3 { margin: 0 0 6px; font-size: 20px; display: flex; justify-content: space-between; gap: 12px; }
.dish h3 span { color: var(--red); }
.dish p { margin: 0 0 16px; color: var(--muted); font-size: 15px; flex: 1; }
.dish a { color: var(--green); font-weight: 700; text-decoration: none; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.dish a:hover { color: var(--red); }

/* Order banner */
.banner { background: var(--red); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; position: relative; }
.banner h2 { color: #fff; margin: 0; font-size: clamp(28px, 4vw, 42px); }
.banner p { margin: 6px 0 0; color: #ffe1dc; }

/* Menu */
.menu-section { background: #fff; }
.menu-tabs { position: sticky; top: 72px; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.menu-tabs .wrap { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0; scrollbar-width: thin; }
.menu-tabs a { flex: none; text-decoration: none; padding: 8px 16px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); font-size: 14px; font-weight: 600; white-space: nowrap; }
.menu-tabs a:hover, .menu-tabs a.active { background: var(--green); color: #fff; border-color: var(--green); }
.menu-grid { columns: 2; column-gap: 56px; }
.menu-cat { break-inside: avoid; margin-bottom: 44px; }
.menu-cat h3 { font-family: var(--head); font-weight: 400; color: var(--red); font-size: 26px; margin: 0 0 4px; padding-bottom: 8px; border-bottom: 3px solid var(--yellow); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.menu-cat h3 a { font-family: var(--body); font-size: 12px; font-weight: 700; color: var(--green); text-decoration: none; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.menu-cat h3 a:hover { color: var(--red); }
.menu-cat .note { color: var(--muted); font-size: 14px; margin: 8px 0 0; font-style: italic; }
.item { display: flex; align-items: baseline; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line); text-decoration: none; }
.item:hover .name { color: var(--red); }
.item .name { font-weight: 600; }
.item .desc { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.item .dots { flex: 1; }
.item .price { font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }
.menu-foot { text-align: center; margin-top: 24px; color: var(--muted); font-size: 14px; }
.menu-foot .btn { margin-bottom: 16px; }

/* Visit */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.visit-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.visit-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.visit-info { padding: 28px 30px 32px; display: grid; gap: 20px; }
.visit-info h4 { margin: 0 0 4px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.visit-info p { margin: 0; }
.visit-info a { color: var(--green); font-weight: 600; }
.map { border: 0; width: 100%; height: 100%; min-height: 420px; border-radius: 18px; }

/* Footer */
footer { background: var(--green-dark); color: #d7e8dd; padding: 56px 0 28px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
footer h4 { color: var(--yellow); margin: 0 0 12px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
footer p { margin: 0 0 6px; }
footer a { color: #fff; }
.foot-brand { font-family: var(--head); color: #fff; font-size: 28px; margin-bottom: 8px; }
.legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #a9c7b4; }

/* Mobile order bar */
.mobile-order { display: none; }

@media (max-width: 900px) {
  .links { position: fixed; inset: 72px 0 auto 0; background: var(--cream); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .25s; z-index: -1; }
  .links.open { transform: none; }
  .links a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .links .btn { margin-top: 14px; justify-content: center; }
  .menu-toggle { display: block; }
  .intro, .dishes, .story-grid, .visit-grid, .foot-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .menu-grid { columns: 1; }
  section { padding: 72px 0; }
  .hero { min-height: 560px; }
  .story-photo .badge { right: 12px; }
  .mobile-order { display: block; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; text-align: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
  footer { padding-bottom: 96px; }
}
