/* Escala única: espacios 8/16/24/32/48/96 · radios 6/12 · una sombra · un acento */
:root {
  --char: #141110;
  --coal: #1d1917;
  --smoke: #27211e;
  --ash: #f3e9df;
  --muted: #b3a294;
  --ember: #ff6a1a;
  --ember-dark: #c94a0a;
  --flame: #ffb347;
  --line: rgba(243, 233, 223, .1);
  --r-sm: 6px;
  --r: 12px;
  --shadow: 0 14px 40px rgba(0, 0, 0, .45);
  --gap: 24px;
  --pad: clamp(16px, 5vw, 56px);
  --grate: repeating-linear-gradient(90deg, var(--ember) 0 28px, transparent 28px 40px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--char); color: var(--ash); font: 400 17px/1.6 "Barlow", system-ui, sans-serif; overflow-x: hidden; }
body.locked { overflow: hidden; }
main { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, .logo, .eyebrow, .btn, .chip, .price, .stamp { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .02em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- NAV ---------- */
.nav { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px var(--pad); background: rgba(20, 17, 16, .85); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-color: var(--line); }
.logo { font-size: 1.5rem; font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo em { font-style: normal; color: var(--ember); }
.logo-mark { display: inline-block; animation: flicker 2.5s infinite; }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.1) rotate(-4deg); } 60% { transform: scale(.95) rotate(3deg); } }
.nav nav { display: flex; gap: 32px; }
.nav nav a { text-decoration: none; font-weight: 600; color: var(--muted); transition: color .2s; }
.nav nav a:hover { color: var(--flame); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.cart-btn { border: 1px solid var(--ember); cursor: pointer; background: transparent; color: var(--ash); font: 600 .95rem "Barlow", sans-serif; padding: 8px 16px; border-radius: var(--r-sm); transition: background .2s; }
.cart-btn:hover { background: rgba(255, 106, 26, .12); }
.cart-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin-left: 8px; border-radius: var(--r-sm); background: var(--ember); color: var(--char); font-weight: 700; font-size: .85rem; }
.cart-btn.bump { animation: bump .45s; }
@keyframes bump { 40% { transform: scale(1.12); box-shadow: 0 0 24px var(--ember); } }
.burger { display: none; background: none; border: 0; width: 32px; height: 24px; position: relative; cursor: pointer; }
.burger span { position: absolute; left: 0; right: 0; height: 3px; background: var(--ash); transition: transform .3s; }
.burger span:first-child { top: 5px; }
.burger span:last-child { bottom: 5px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-5px) rotate(-45deg); }

/* ---------- BUTTONS ---------- */
.btn { display: inline-block; border: 0; cursor: pointer; padding: 16px 32px; border-radius: var(--r-sm); font-size: 1rem; font-weight: 700; text-decoration: none; color: var(--char); background: linear-gradient(180deg, var(--flame), var(--ember)); box-shadow: 0 0 0 rgba(255, 106, 26, 0); transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255, 106, 26, .45); }
.btn-ghost { background: transparent; color: var(--ash); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--flame); box-shadow: none; }
.btn-full { width: 100%; }

/* ---------- HERO ---------- */
.hero { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; max-width: 1200px; margin: 0 auto; padding: 48px var(--pad) 96px; }
.hero::before { content: ""; position: absolute; inset: 20% -20% -10% 30%; z-index: -1; background: radial-gradient(closest-side, rgba(255, 106, 26, .28), transparent); filter: blur(20px); animation: glow 4s ease-in-out infinite alternate; }
@keyframes glow { to { opacity: .6; transform: scale(1.08); } }
.embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.embers span { position: absolute; bottom: -10px; border-radius: 50%; background: var(--flame); box-shadow: 0 0 8px 2px var(--ember); animation: rise linear infinite; }
@keyframes rise { to { transform: translate(var(--drift), -90vh); opacity: 0; } }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; padding: 8px 16px; border-radius: var(--r-sm); background: rgba(126, 200, 110, .12); color: #9bdc8a; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
.status.closed { background: rgba(255, 90, 90, .12); color: #ff8f8f; }
.status.closed::before { animation: none; }
@keyframes pulse { 50% { opacity: .3; } }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02; margin: 24px 0; }
.fire { background: linear-gradient(90deg, var(--flame), var(--ember), #ff3d00, var(--flame)); background-size: 300% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: burn 6s linear infinite; }
@keyframes burn { to { background-position: 300% center; } }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 520px; }
.cta { display: flex; gap: 16px; flex-wrap: wrap; margin: 32px 0 24px; }
.perks { list-style: none; display: flex; gap: 8px 24px; flex-wrap: wrap; color: var(--muted); font-weight: 600; font-size: .95rem; }
.perks li::before { content: "▲ "; color: var(--ember); font-size: .7rem; vertical-align: 2px; }

.hero-art { position: relative; justify-self: center; width: min(100%, 440px); }
.hero-img { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow), 0 0 80px rgba(255, 106, 26, .2); aspect-ratio: 9/10; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; animation: zoom 18s ease-in-out infinite alternate; }
@keyframes zoom { to { transform: scale(1.1); } }
.hero-art::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: -16px; height: 6px; background: var(--grate); border-radius: 3px; opacity: .8; }
.stamp { position: absolute; top: 24px; left: -24px; display: grid; place-content: center; text-align: center; width: 96px; height: 96px; border-radius: 50%; background: var(--char); border: 2px dashed var(--ember); color: var(--ash); font-size: .8rem; line-height: 1.1; transform: rotate(-12deg); animation: spin 20s linear infinite; }
.stamp b { font-size: 1.8rem; color: var(--flame); }
@keyframes spin { to { transform: rotate(348deg); } }

/* ---------- MARQUEE ---------- */
.marquee { overflow: hidden; background: var(--ember); color: var(--char); padding: 16px 0; transform: rotate(-1.5deg); margin: 0 -10px; }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; font: 700 1.2rem "Oswald", sans-serif; text-transform: uppercase; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- SECTIONS ---------- */
.section { padding: 96px var(--pad); max-width: 1200px; margin: 0 auto; }
.section-alt { max-width: none; background: var(--coal); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-alt > * { max-width: 1088px; margin-inline: auto; }
.head { text-align: center; margin-bottom: 48px; }
.eyebrow { color: var(--ember); font-size: .9rem; font-weight: 500; letter-spacing: .2em; display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before, .eyebrow::after { content: ""; width: 24px; height: 2px; background: var(--ember); }
h2 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin-top: 8px; }
.sub { color: var(--muted); margin: 16px auto 0; max-width: 560px; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- CARTA ---------- */
.menu-tools { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--coal); color: var(--muted); font-size: .95rem; font-weight: 500; padding: 8px 16px; border-radius: var(--r-sm); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.chip:hover { color: var(--ash); border-color: var(--muted); }
.chip.active { background: var(--ember); border-color: var(--ember); color: var(--char); }
.search { flex: 0 1 280px; }
.search input { width: 100%; font: 400 16px "Barlow", sans-serif; padding: 10px 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--coal); color: var(--ash); }
.search input:focus, .order input:focus, .order textarea:focus { outline: 2px solid var(--ember); outline-offset: 1px; }

.item { background: var(--smoke); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, border-color .25s, box-shadow .25s; animation: pop .4s both; }
.item:hover { transform: translateY(-4px); border-color: rgba(255, 106, 26, .5); box-shadow: var(--shadow), 0 0 0 1px rgba(255, 106, 26, .2); }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } }
.item-img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.item-img::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(39, 33, 30, .9)); }
.item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .5s; }
.item:hover .item-img img { transform: scale(1.06); filter: saturate(1.2) brightness(1.05); }
.badge { position: absolute; top: 16px; left: 16px; z-index: 1; background: var(--ember); color: var(--char); font: 600 .75rem "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .05em; padding: 4px 8px; border-radius: var(--r-sm); }
.badge.soldout { background: var(--char); color: var(--muted); border: 1px solid var(--line); }
.item-body { padding: 16px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.item h3 { font-size: 1.2rem; line-height: 1.2; }
.item p { color: var(--muted); font-size: .92rem; line-height: 1.45; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line); }
.price { font-size: 1.4rem; font-weight: 700; color: var(--flame); }
.price s { color: var(--muted); font: 400 .9rem "Barlow", sans-serif; margin-left: 8px; }
.add { width: 40px; height: 40px; border-radius: var(--r-sm); border: 0; cursor: pointer; background: var(--ember); color: var(--char); font: 700 1.4rem "Barlow", sans-serif; transition: transform .2s, box-shadow .2s; }
.add:hover { transform: scale(1.08); box-shadow: 0 0 20px rgba(255, 106, 26, .6); }
.add:disabled { background: var(--line); color: var(--muted); box-shadow: none; cursor: not-allowed; transform: none; }
.empty { text-align: center; color: var(--muted); padding: 32px; }

.combo .item-img { aspect-ratio: 16/10; }
.combo:nth-child(2) { border-color: var(--ember); box-shadow: 0 0 40px rgba(255, 106, 26, .18); }

/* ---------- STEPS / REVIEWS / PANELS ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.steps li { padding: 32px; border-radius: var(--r); background: var(--coal); border: 1px solid var(--line); position: relative; overflow: hidden; }
.steps li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--grate); opacity: .7; }
.steps span { font: 700 2.8rem "Oswald", sans-serif; color: transparent; -webkit-text-stroke: 1.5px var(--ember); }
.steps h3 { margin: 8px 0; font-size: 1.3rem; }
.steps p { color: var(--muted); }

.review { background: var(--smoke); border: 1px solid var(--line); border-radius: var(--r); padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.review blockquote { font-size: 1.1rem; line-height: 1.55; }
.review figcaption { color: var(--muted); font-weight: 600; font-size: .95rem; }
.review figcaption span { color: var(--flame); letter-spacing: 2px; margin-right: 8px; }

.panel { background: var(--coal); border: 1px solid var(--line); border-radius: var(--r); padding: 32px; display: grid; gap: 16px; align-content: start; }
.panel h3 { font-size: 1.3rem; color: var(--flame); }
.panel p { color: var(--muted); }
.panel b { color: var(--ash); }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 600; }
.hours tr.today td { color: var(--ember); font-weight: 700; }

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; }
details { background: var(--smoke); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 24px; transition: border-color .2s; }
details[open] { border-color: rgba(255, 106, 26, .4); }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; color: var(--ember); font-size: 1.3rem; line-height: 1; transition: transform .3s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin-top: 8px; }

.footer { text-align: center; padding: 48px 16px; border-top: 6px solid transparent; border-image: var(--grate) 6; color: var(--muted); display: grid; gap: 8px; justify-items: center; }

/* ---------- DRAWER ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .6); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(420px, 100%); background: var(--coal); border-left: 1px solid var(--line); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); overflow-y: auto; }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--coal); z-index: 1; }
.drawer-head h2 { font-size: 1.6rem; margin: 0; }
.icon-btn { width: 40px; height: 40px; border-radius: var(--r-sm); border: 1px solid var(--line); background: transparent; color: var(--ash); cursor: pointer; font-size: 1rem; }
.cart-items { list-style: none; padding: 16px 24px; display: grid; gap: 16px; }
.cart-items li { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; }
.cart-items img { width: 56px; height: 56px; border-radius: var(--r-sm); object-fit: cover; }
.cart-items .name { font-weight: 700; line-height: 1.2; }
.cart-items .line { color: var(--muted); font-size: .85rem; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 32px; height: 32px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--smoke); color: var(--ash); font-weight: 700; cursor: pointer; }
.qty span { min-width: 18px; text-align: center; font-weight: 700; }
.cart-empty { padding: 32px 24px; color: var(--muted); text-align: center; }
.order { padding: 8px 24px 32px; display: grid; gap: 16px; margin-top: auto; }
.order[hidden] { display: none; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--muted); }
.totals b { color: var(--ash); }
.totals .total { font: 700 1.4rem "Oswald", sans-serif; text-transform: uppercase; color: var(--ash); margin-top: 8px; }
.totals b.total { color: var(--flame); }
.order label { display: grid; gap: 8px; font-weight: 600; font-size: .9rem; }
.order input:not([type="radio"]), .order textarea { font: 400 16px "Barlow", sans-serif; padding: 12px 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--char); color: var(--ash); resize: vertical; }
.mode { border: 0; display: grid; gap: 8px; }
.mode legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.mode label { display: flex; align-items: center; gap: 12px; font-weight: 600; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.mode label:has(input:checked) { border-color: var(--ember); background: rgba(255, 106, 26, .08); }
.mode input { accent-color: var(--ember); width: 18px; height: 18px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; translate: -50% 150%; background: var(--ash); color: var(--char); padding: 12px 24px; border-radius: var(--r-sm); font-weight: 700; box-shadow: var(--shadow); transition: translate .35s cubic-bezier(.2, .8, .2, 1); pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.show { translate: -50% 0; }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; translate: 0 24px; transition: opacity .7s ease, translate .7s ease; }
.reveal.in { opacity: 1; translate: 0 0; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .burger { display: block; }
  .nav nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--coal); border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .35s; }
  .nav nav.open { max-height: 320px; }
  .nav nav a { padding: 16px var(--pad); border-top: 1px solid var(--line); }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 32px; }
  .hero-art { order: -1; width: min(80%, 360px); }
  .hero-img { aspect-ratio: 4/3; }
  .stamp { left: -16px; top: -16px; width: 80px; height: 80px; }
  .lead { margin-inline: auto; }
  .cta, .perks { justify-content: center; }
  .grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .grid-2, .steps { grid-template-columns: 1fr; }
  .menu-tools, .chips { justify-content: center; }
  .search { flex-basis: 100%; }
}
@media (max-width: 560px) {
  :root { --gap: 16px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-3 > :last-child:nth-child(odd) { grid-column: auto; }
  .section { padding-block: 72px; }
}
@media (max-width: 480px) {
  #grid { gap: 12px; }
  #grid .item-body { padding: 12px; }
  #grid .item h3 { font-size: 1rem; }
  #grid .item p { display: none; }
  #grid .item-foot { padding-top: 8px; }
  #grid .price { font-size: 1.15rem; }
  .add { width: 36px; height: 36px; font-size: 1.2rem; }
  .logo { font-size: 1.25rem; }
  .cart-btn { padding: 8px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; translate: 0 0; }
}
