:root {
  --bg: #0e0a08;
  --bg-2: #17110d;
  --card: #1d1510;
  --line: #3a2a1f;
  --text: #fbf3e6;
  --muted: #bfae98;
  --fire: #f59e0b;
  --fire-2: #ea580c;
  --ember: #c2410c;
  --wa: #25d366;
  --radius: 18px;
  --display: "Bagel Fat One", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; margin: 0; letter-spacing: .01em; }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; gap: 24px;
  padding: 10px clamp(16px, 4vw, 48px);
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.topbar.scrolled { background: rgba(14, 10, 8, .82); backdrop-filter: blur(12px); border-color: var(--line); }
.brand img { width: 84px; height: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--text); color: var(--bg); border: 0; border-radius: 999px;
  padding: 10px 16px; font-weight: 700;
}
.cart-btn svg { width: 20px; height: 20px; }
.cart-count {
  min-width: 22px; height: 22px; border-radius: 11px; padding: 0 6px;
  background: var(--fire-2); color: #fff; font-size: 13px; display: grid; place-items: center;
}
.cart-count.bump { animation: bump .4s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  overflow: hidden; background: var(--bg);
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14,10,8,.88) 0%, rgba(14,10,8,.55) 38%, rgba(14,10,8,0) 62%),
    linear-gradient(0deg, var(--bg) 0%, rgba(14,10,8,0) 22%);
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-content {
  position: relative; z-index: 2;
  padding: 120px clamp(16px, 6vw, 96px) 80px;
  max-width: 680px;
  opacity: 0; transform: translateY(24px);
  transition: opacity 1s ease, transform 1s ease;
}
.hero.revealed .hero-shade,
.hero.revealed .hero-content { opacity: 1; transform: none; }
.hero h1 { font-size: clamp(44px, 7vw, 92px); }
.hero h1 span { color: var(--fire); text-shadow: 0 0 40px rgba(234, 88, 12, .5); }
.hero-sub { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 30em; margin: 20px 0 32px; }
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-meta { color: var(--muted); font-weight: 500; }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(23, 17, 13, .7); font-size: 14px; font-weight: 500;
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-pill.open .dot { background: var(--wa); box-shadow: 0 0 0 4px rgba(37, 211, 102, .2); }
.status-pill.closed .dot { background: #ef4444; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px; padding: 15px 28px;
  font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .15s, filter .2s;
}
.btn:active { transform: scale(.97); }
.btn-fire { background: linear-gradient(135deg, var(--fire), var(--fire-2)); color: #1a0d04; box-shadow: 0 10px 30px -10px rgba(234, 88, 12, .7); }
.btn-fire:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-wa { background: var(--wa); color: #06260f; }
.btn-wa svg { width: 22px; height: 22px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.grow { flex: 1; }

/* ---------- Info strip ---------- */
.strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line); background: var(--bg-2);
}
.strip-item { padding: 22px clamp(16px, 4vw, 48px); display: flex; flex-direction: column; gap: 2px; }
.strip-item + .strip-item { border-left: 1px solid var(--line); }
.strip-item strong { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--fire); }
.strip-item span { font-size: 18px; font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) clamp(16px, 4vw, 48px) 0; max-width: 1280px; margin: 0 auto; }
.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: clamp(38px, 5vw, 64px); }
.section-head p { color: var(--muted); margin: 10px 0 0; max-width: 36em; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: #5a3f2b; }
.card-img {
  aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 18px 18px 0;
  background: radial-gradient(60% 55% at 50% 60%, rgba(234, 88, 12, .28), transparent 70%);
}
.card-img img { width: 82%; height: 100%; object-fit: contain; transition: transform .4s; filter: drop-shadow(0 18px 24px rgba(0,0,0,.55)); }
.card:hover .card-img img { transform: scale(1.06) rotate(-2deg); }
.card-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 24px; }
.card-body p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.price { font-weight: 700; font-size: 20px; }
.add {
  border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 700;
  background: var(--text); color: var(--bg);
}
.add:hover { background: var(--fire); }
.tag {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--fire-2); color: #fff;
}

.drinks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.drink {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.drink-can { width: 14px; height: 44px; border-radius: 6px; flex: none; }
.drink-info { flex: 1; }
.drink-info b { display: block; }
.drink-info span { color: var(--muted); font-size: 14px; }

/* ---------- Stepper ---------- */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.stepper button { width: 40px; height: 40px; border: 0; background: transparent; font-size: 20px; border-radius: 50%; }
.stepper button:hover { color: var(--fire); }
.stepper output { min-width: 26px; text-align: center; font-weight: 700; }
.stepper.sm button { width: 32px; height: 32px; font-size: 17px; }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 96px 16px 120px; color: var(--muted); }
.footer img { width: 120px; margin: 0 auto 16px; opacity: .6; }
.footer p { margin: 6px 0; }

/* ---------- Floating cart (mobile) ---------- */
.floating-cart {
  position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 25;
  display: flex; justify-content: space-between; align-items: center;
  border: 0; border-radius: 999px; padding: 16px 22px;
  background: linear-gradient(135deg, var(--fire), var(--fire-2)); color: #1a0d04; font-weight: 500;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.8);
}
.floating-cart[hidden] { display: none; }

/* ---------- Modal ---------- */
.modal {
  padding: 0; border: 0; background: transparent; color: var(--text);
  width: min(560px, 100%); max-height: min(92svh, 900px); margin: auto;
}
.modal::backdrop { background: rgba(5, 3, 2, .72); backdrop-filter: blur(4px); }
.modal[open] { animation: rise .3s ease; }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } }
.modal-inner {
  position: relative; display: flex; flex-direction: column; max-height: min(92svh, 900px);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
}
.close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.5); font-size: 24px; line-height: 1;
}
.pm-hero { flex: none; height: 200px; display: grid; place-items: center; background: radial-gradient(50% 60% at 50% 60%, rgba(234,88,12,.35), transparent 70%); }
.pm-hero img { height: 180px; width: auto; filter: drop-shadow(0 14px 20px rgba(0,0,0,.6)); }
.pm-body { overflow-y: auto; padding: 4px 24px 16px; }
.pm-body h3 { font-size: 32px; }
.pm-desc { color: var(--muted); margin: 8px 0 4px; }
.pm-price { font-weight: 700; font-size: 20px; margin: 0 0 8px; }
.opt { border: 0; padding: 0; margin: 20px 0 0; }
.opt legend { font-weight: 700; font-size: 17px; padding: 0; margin-bottom: 10px; }
.opt legend small, .notes small { font-weight: 400; color: var(--muted); }
.opt-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.opt-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.opt-row + .opt-row { border-top: 1px solid var(--line); }
.opt-row .name { flex: 1; }
.opt-row .plus { color: var(--muted); font-size: 14px; }
.opt-row input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--fire-2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label, .seg label { position: relative; }
.chips input, .seg input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  font-weight: 500; transition: background .2s, border-color .2s; cursor: pointer;
}
.chips input:checked + span { background: var(--fire); border-color: var(--fire); color: #1a0d04; }
.chips input:focus-visible + span, .seg input:focus-visible + span { outline: 2px solid var(--fire); outline-offset: 2px; }
.seg { display: inline-flex; margin-top: 12px; padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.seg span { display: block; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--muted); }
.seg input:checked + span { background: var(--text); color: var(--bg); }
.seg.is-disabled { opacity: .45; pointer-events: none; }
.seg-full { display: flex; margin: 0 0 14px; }
.seg-full label { flex: 1; text-align: center; }

.notes { display: block; margin-top: 20px; }
.notes > span { display: block; font-weight: 700; margin-bottom: 8px; }
textarea, .field input {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; resize: vertical;
}
textarea:focus, .field input:focus { outline: none; border-color: var(--fire); }
.pm-foot { flex: none; display: flex; gap: 12px; padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg-2); }

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(5,3,2,.7); opacity: 0; transition: opacity .3s; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%);
  display: flex; flex-direction: column;
  background: var(--bg-2); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.drawer.open { pointer-events: auto; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { position: relative; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 28px; }
.drawer-head .close { top: 16px; right: 16px; background: var(--card); }
.drawer-scroll { flex: 1; overflow-y: auto; padding: 8px 24px 24px; }
.empty { text-align: center; padding: 60px 0; color: var(--muted); }

.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 64px; height: 64px; object-fit: contain; }
.cart-item h5 { margin: 0; font-size: 16px; }
.cart-item .detail { color: var(--muted); font-size: 13px; margin: 2px 0 8px; }
.cart-item .right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.cart-item .line-total { font-weight: 700; }
.remove { border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; padding: 0; }
.swatch { width: 64px; height: 64px; display: grid; place-items: center; }
.swatch i { width: 18px; height: 54px; border-radius: 6px; }

.checkout h4 { margin: 28px 0 12px; font-size: 18px; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.field input.invalid { border-color: #ef4444; }
.field[hidden], .delivery-only[hidden] { display: none; }
.preview { margin-top: 24px; border: 1px solid var(--line); border-radius: 12px; }
.preview summary { padding: 12px 14px; cursor: pointer; color: var(--muted); font-size: 14px; }
.preview pre { margin: 0; padding: 0 14px 14px; white-space: pre-wrap; font-family: var(--body); font-size: 14px; color: var(--text); }

.drawer-foot { padding: 16px 24px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.drawer-foot[hidden] { display: none; }
.totals > div { display: flex; justify-content: space-between; }
.totals b { font-size: 20px; }
.totals .muted { color: var(--muted); font-size: 14px; }
.closed-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(239,68,68,.12); color: #fca5a5; font-size: 14px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 50; transform: translate(-50%, 20px);
  background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 700;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav, .cart-label { display: none; }
  .cart-btn { margin-left: auto; padding: 9px 12px; }
  .brand img { width: 70px; }
  .hero { display: block; min-height: 0; }
  .hero-video { position: relative; height: 62svh; min-height: 420px; object-position: 84% center; }
  .hero-shade { inset: auto 0 0 0; height: 62svh; min-height: 420px; top: 0; opacity: 1;
    background: linear-gradient(0deg, var(--bg) 0%, rgba(14,10,8,0) 35%), linear-gradient(180deg, rgba(14,10,8,.6) 0%, rgba(14,10,8,0) 22%); }
  .hero-content { padding: 0 16px 48px; margin-top: -72px; }
  .strip { grid-template-columns: 1fr; }
  .strip-item + .strip-item { border-left: 0; border-top: 1px solid var(--line); }
  .strip-item { flex-direction: row; justify-content: space-between; align-items: baseline; padding-block: 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 12px 14px 14px; }
  .card-body h3 { font-size: 19px; }
  .card-body p { font-size: 13px; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .modal { max-width: 100%; margin: auto 0 0; }
  .modal-inner { border-radius: 24px 24px 0 0; }
  .pm-hero { height: 150px; }
  .pm-hero img { height: 135px; }
  .pm-body, .pm-foot { padding-inline: 16px; }
  .drawer-scroll, .drawer-head, .drawer-foot { padding-inline: 16px; }
}
@media (min-width: 761px) { .floating-cart { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Ajustes finos ---------- */
.pm-foot .stepper { flex: none; }
.pm-foot .btn { white-space: nowrap; padding-inline: 18px; }
.opt-row .name .plus { display: block; font-size: 13px; }
.opt-row .stepper { flex: none; }
