/* ===========================
   La Otra · Resto Parrilla al Paso
   =========================== */
:root {
  --brand: #d9261c;
  --brand-600: #bf1f16;
  --brand-700: #9c1911;
  --brand-50: #fbe9e6;
  --ember: #e0703a;
  --bg: #f6f1ea;
  --surface: #ffffff;
  --surface-2: #f1ebe2;
  --line: #e6ddd0;
  --text: #1d1916;
  --muted: #6f665d;
  --shadow: 0 1px 2px rgba(40, 20, 10, .06), 0 6px 20px rgba(40, 20, 10, .07);
  --shadow-lg: 0 20px 60px rgba(20, 10, 5, .3);
  --radius: 18px;
  --wa: #25a45a;
  --card-img: radial-gradient(ellipse 80% 70% at 50% 60%, #fff 0%, #f1e9dd 100%);
}
:root[data-theme="dark"] {
  --bg: #121010;
  --surface: #1b1816;
  --surface-2: #24201d;
  --line: #332d28;
  --text: #f3ede6;
  --muted: #a89e94;
  --brand-50: #3a1714;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 20px rgba(0, 0, 0, .3);
  --card-img: radial-gradient(ellipse 80% 70% at 50% 62%, #2e2622 0%, #1b1816 100%);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}
body.lock { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:disabled { cursor: not-allowed; }
input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.muted { color: var(--muted); }
.green { color: var(--wa); }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.label-caps { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; border-radius: 14px; padding: 14px 22px; transition: transform .15s, box-shadow .2s, background .2s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%); color: #fff; box-shadow: 0 8px 22px rgba(217, 38, 28, .35); }
.btn-primary:hover { box-shadow: 0 10px 28px rgba(217, 38, 28, .5); }
.btn-primary:disabled { opacity: .45; box-shadow: none; }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .15); }
.btn-block { width: 100%; justify-content: space-between; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 22px rgba(37, 164, 90, .35); flex: 1; }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; font-size: 14px; color: var(--muted); transition: background .2s; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.pill-dark { background: rgba(0, 0, 0, .25); padding: 4px 10px; border-radius: 8px; margin-left: auto; }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 10px clamp(16px, 3vw, 32px);
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.topbar.scrolled { background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { display: block; height: 64px; width: auto; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .45)); transition: height .3s; }
.brand .logo-dark { display: none; }
:root:not([data-theme="dark"]) .topbar.scrolled .logo-light { display: none; }
:root:not([data-theme="dark"]) .topbar.scrolled .logo-dark { display: block; filter: none; }
.topbar.scrolled .brand img { height: 48px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: none; }

.theme-toggle { width: 60px; height: 32px; border-radius: 999px; background: #ffe8d6; border: 1px solid #f3c7a4; position: relative; }
.theme-toggle .knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); display: grid; place-items: center; transition: transform .3s cubic-bezier(.6, -0.3, .3, 1.4); color: var(--ember); }
.theme-toggle .ic { width: 14px; height: 14px; grid-area: 1 / 1; transition: opacity .2s; }
.theme-toggle .moon { opacity: 0; }
:root[data-theme="dark"] .theme-toggle { background: #2a2320; border-color: #3d332d; }
:root[data-theme="dark"] .theme-toggle .knob { transform: translateX(28px); background: #1b1816; color: #e8d9c8; }
:root[data-theme="dark"] .theme-toggle .sun { opacity: 0; }
:root[data-theme="dark"] .theme-toggle .moon { opacity: 1; }

.cart-btn { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border-radius: 14px; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 8px 22px rgba(217, 38, 28, .4); transition: transform .15s; }
.cart-btn:hover { transform: translateY(-1px); }
.cart-btn.bump { animation: bump .45s; }
@keyframes bump { 30% { transform: scale(1.08); } 60% { transform: scale(.96); } }
.cart-ic { position: relative; display: grid; }
.cart-count { position: absolute; top: -8px; right: -9px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #ffd9a8; color: var(--brand-700); font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.cart-total { background: rgba(0, 0, 0, .25); padding: 4px 9px; border-radius: 8px; font-size: 13px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: #0d0a09; color: #fff; overflow: hidden; min-height: min(92vh, 800px); display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; background: url("img/hero-bg.webp") center 70% / cover no-repeat; transform: scale(1.06); animation: breathe 14s ease-in-out infinite alternate; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(10, 7, 6, .94) 0%, rgba(10, 7, 6, .78) 38%, rgba(10, 7, 6, .25) 70%, rgba(10, 7, 6, .15) 100%),
  linear-gradient(180deg, rgba(10, 7, 6, .7) 0%, rgba(10, 7, 6, 0) 28%, rgba(10, 7, 6, 0) 65%, rgba(10, 7, 6, .85) 100%); }
@keyframes breathe { to { transform: scale(1.12) translateY(-1%); } }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: linear-gradient(90deg, var(--brand), var(--ember), var(--brand)); z-index: 3; }

/* Brasas que suben */
.embers { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.embers i { position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: #ffb35c; box-shadow: 0 0 8px 2px rgba(255, 120, 40, .8); opacity: 0; animation: ember 7s linear infinite; }
.embers i:nth-child(1) { left: 8%; animation-delay: 0s; }
.embers i:nth-child(2) { left: 18%; animation-delay: 2.1s; animation-duration: 8s; }
.embers i:nth-child(3) { left: 31%; animation-delay: 4.3s; }
.embers i:nth-child(4) { left: 44%; animation-delay: 1.2s; animation-duration: 9s; }
.embers i:nth-child(5) { left: 56%; animation-delay: 3.4s; width: 3px; height: 3px; }
.embers i:nth-child(6) { left: 64%; animation-delay: .6s; animation-duration: 6s; }
.embers i:nth-child(7) { left: 73%; animation-delay: 5.2s; }
.embers i:nth-child(8) { left: 82%; animation-delay: 2.8s; animation-duration: 8.5s; width: 3px; height: 3px; }
.embers i:nth-child(9) { left: 90%; animation-delay: 4.7s; }
.embers i:nth-child(10) { left: 96%; animation-delay: 1.7s; animation-duration: 7.5s; }
@keyframes ember {
  0% { opacity: 0; transform: translate(0, 0); }
  10% { opacity: 1; }
  50% { transform: translate(18px, -45vh); }
  100% { opacity: 0; transform: translate(-12px, -90vh); }
}

.hero-inner { position: static; z-index: 2; width: 100%; max-width: 1280px; margin: 0 auto; padding: 110px clamp(16px, 4vw, 48px) 70px; }
.hero-copy { position: relative; z-index: 2; max-width: 620px; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #5bd06b; box-shadow: 0 0 0 0 rgba(91, 208, 107, .6); animation: pulse 2s infinite; }
.badge.closed .dot { background: #e0644e; animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(91, 208, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(91, 208, 107, 0); } }
.script { font-family: "Mrs Saint Delafield", cursive; font-size: clamp(30px, 3.4vw, 42px); color: #f5914f; margin: 0 0 4px; line-height: 1.1; transform: rotate(-3deg); transform-origin: left; opacity: 0; animation: rise .8s .08s cubic-bezier(.2, .8, .2, 1) forwards; }
.hero h1 { margin: 0; font-family: Anton, Impact, sans-serif; font-weight: 400; text-transform: uppercase; line-height: .95; font-size: clamp(34px, 6.2vw, 84px); white-space: nowrap; letter-spacing: .01em; text-shadow: 0 6px 30px rgba(0, 0, 0, .5); }
.hero h1 span { display: block; opacity: 0; transform: translateY(30px); animation: rise .8s .14s cubic-bezier(.2, .8, .2, 1) forwards; }
.hero h1 span:nth-child(2) { animation-delay: .26s; }
.hero h1 .accent { color: transparent; background: linear-gradient(180deg, #ffd27a 0%, #ff8a3a 50%, #f0412a 100%); -webkit-background-clip: text; background-clip: text; padding-top: .12em; margin-top: -.12em; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-sub { max-width: 460px; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .8); margin: 22px 0 28px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.scroll-down { display: inline-flex; flex-direction: column; gap: 10px; margin-top: 44px; font-size: 10px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.mouse { width: 18px; height: 28px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 10px; position: relative; }
.mouse::after { content: ""; position: absolute; left: 50%; top: 5px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: wheel 1.6s infinite; }
@keyframes wheel { to { transform: translateY(8px); opacity: 0; } }

.hero-art { position: absolute; z-index: 1; right: clamp(0px, 5vw, 90px); top: 50%; width: min(38vw, 520px); transform: translateY(-46%); pointer-events: none; }
.hero-art::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: 8%; height: 30%; background: radial-gradient(ellipse at center, rgba(255, 110, 30, .45), transparent 70%); filter: blur(30px); z-index: -1; }
.hero-art img { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); opacity: 0; animation: meatIn 1.1s .25s cubic-bezier(.2, .8, .2, 1) forwards, float 6s 1.4s ease-in-out infinite; }
@keyframes meatIn { from { opacity: 0; transform: translateY(80px) rotate(8deg) scale(.92); } to { opacity: 1; transform: rotate(-3deg); } }
@keyframes float { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-1deg) translateY(-18px); } }

/* ---------- Category bar ---------- */
.catbar { position: sticky; top: 68px; z-index: 40; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.catbar-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 12px clamp(16px, 3vw, 32px); }
.menu-pill { display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; font-size: 13px; box-shadow: 0 6px 16px rgba(217, 38, 28, .35); flex: none; }
.menu-pill .ic { width: 16px; height: 16px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; white-space: nowrap; transition: all .2s; }
.chip .n { font-family: "JetBrains Mono", monospace; font-size: 10px; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; color: var(--muted); }
.chip:hover { border-color: var(--brand); }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip.active .n { background: rgba(255, 255, 255, .15); color: inherit; }
:root[data-theme="dark"] .chip.active .n { background: rgba(0, 0, 0, .12); }

/* ---------- Menu sections ---------- */
.content { max-width: 1280px; margin: 0 auto; padding: 24px clamp(16px, 3vw, 32px) 60px; }
.cat-section { padding-top: 26px; }
.cat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line); position: relative; }
.cat-head::before { content: ""; width: 6px; height: 28px; border-radius: 3px; background: linear-gradient(180deg, var(--ember), var(--brand)); }
.cat-head h2 { margin: 0; font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: 32px; letter-spacing: .02em; text-transform: uppercase; }
.cat-head .script-note { font-family: "Mrs Saint Delafield", cursive; font-size: 30px; color: var(--ember); line-height: 1; margin-left: 4px; transform: translateY(4px); }
.cat-head .count { font-family: "JetBrains Mono", monospace; font-size: 11px; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.cat-head p { margin: 0 0 0 auto; font-size: 13px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; cursor: pointer; transition: transform .25s, box-shadow .25s, border-color .25s; opacity: 0; transform: translateY(16px); }
.card.in { opacity: 1; transform: none; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(40, 15, 5, .18); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.card.flash { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(217, 38, 28, .25); }
.card-img { aspect-ratio: 4 / 3; background: var(--card-img); display: grid; place-items: center; position: relative; overflow: hidden; }
.card-img svg { width: 80%; height: 80%; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.card:hover .card-img svg { transform: scale(1.06) rotate(-2deg); }
.tag { position: absolute; top: 12px; left: 12px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--brand); color: #fff; }
.tag.two { background: #ffd9a8; color: #6b2a07; }
.card-body { padding: 16px 16px 14px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 0 0 6px; font-family: "Bebas Neue", Anton, sans-serif; font-weight: 400; font-size: 23px; letter-spacing: .02em; line-height: 1; }
.card-body p { margin: 0 0 14px; font-size: 13px; color: var(--muted); line-height: 1.45; flex: 1; }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--line); padding-top: 12px; }
.card-foot .price { font-size: 17px; font-weight: 700; }
.card-foot small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.choose { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-size: 13px; font-weight: 700; transition: all .2s; }
.choose .ic { width: 15px; height: 15px; }
.card:hover .choose { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- Info / footer ---------- */
.info { background: var(--surface); border-top: 1px solid var(--line); }
.info-grid { max-width: 1280px; margin: 0 auto; padding: 48px clamp(16px, 3vw, 32px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-card h3 { font-family: Anton, Impact, sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .02em; font-size: 22px; margin: 0 0 12px; }
.info-card p, .info-card li { font-size: 14px; line-height: 1.6; margin: 0 0 6px; }
.info-card ul { list-style: none; padding: 0; margin: 0; }
.info-card li { display: flex; justify-content: space-between; gap: 12px; max-width: 320px; border-bottom: 1px dashed var(--line); padding: 4px 0; }
.info-card li span:last-child { text-align: right; }
.info-card li.today { font-weight: 700; color: var(--brand); }
.link { font-weight: 700; color: var(--brand); }
.partners { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px) 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-family: "Bebas Neue", sans-serif; font-size: 22px; letter-spacing: .06em; color: var(--muted); }
.partners .label-caps { font-family: Inter, sans-serif; }
.footer { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Overlays / modals ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(12, 8, 6, .6); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.modal { position: fixed; z-index: 70; left: 50%; top: 50%; width: min(540px, calc(100% - 24px)); max-height: calc(100vh - 40px); background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; opacity: 0; pointer-events: none; transform: translate(-50%, -46%) scale(.96); transition: opacity .25s, transform .3s cubic-bezier(.2, .8, .2, 1); }
.modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; border-radius: 50%; }
.modal-media { height: 210px; background: var(--card-img); display: grid; place-items: center; flex: none; }
.modal-media svg { height: 88%; }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.modal-title h2 { margin: 0; font-family: Anton, Impact, sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .01em; font-size: 28px; line-height: 1.05; }
.modal-title .price { color: var(--brand); font-size: 20px; font-weight: 700; white-space: nowrap; }
.modal-body > p { margin: 6px 0 16px; font-size: 14px; line-height: 1.5; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.group { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.group-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.group-head .req { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.group-head .req.ok { background: rgba(37, 164, 90, .14); color: var(--wa); }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.opt { text-align: left; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2); transition: all .15s; display: flex; flex-direction: column; gap: 2px; }
.opt b { display: block; font-size: 14px; }
.opt span { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--brand); font-weight: 700; }
.opt.active { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(217, 38, 28, .12); }
.opt:disabled { opacity: .4; }
.notes { display: flex; flex-direction: column; gap: 8px; }
textarea, .co-body input { width: 100%; border: 1px solid var(--line); background: var(--surface-2); border-radius: 12px; padding: 12px 14px; font-size: 14px; outline: 0; resize: vertical; transition: border-color .2s, box-shadow .2s; }
textarea:focus, .co-body input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(217, 38, 28, .15); }
.modal-foot { display: flex; gap: 12px; padding: 14px 22px 20px; border-top: 1px solid var(--line); flex: none; }
.qty { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.qty button { width: 32px; height: 32px; border-radius: 9px; font-size: 18px; transition: background .15s; }
.qty button:hover { background: var(--surface-2); }
.qty span { min-width: 26px; text-align: center; font-weight: 700; }
.btn-add { flex: 1; }

/* ---------- Drawer ---------- */
.drawer { position: fixed; z-index: 70; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--surface); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.dh-left { display: flex; gap: 12px; align-items: center; }
.dh-left h3 { margin: 0; font-size: 18px; }
.dh-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; }
.drawer-mode { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--muted); transition: all .2s; }
.seg button .ic { width: 16px; height: 16px; }
.seg button.active { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(217, 38, 28, .3); }
.seg.big button { padding: 12px; }
.freeship { margin-top: 12px; }
.fs-row { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.fs-row b { color: var(--brand); }
.fs-bar { height: 7px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.fs-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #ffb35c, var(--ember), var(--brand)); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.drawer-items { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.line { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); animation: slidein .3s; }
@keyframes slidein { from { opacity: 0; transform: translateX(20px); } }
.line-img { width: 56px; height: 56px; border-radius: 10px; background: var(--card-img); display: grid; place-items: center; }
.line-img svg { width: 92%; }
.line-top { display: flex; justify-content: space-between; gap: 8px; }
.line-top b { font-size: 14px; }
.line small { display: block; font-size: 12px; color: var(--brand); font-weight: 600; margin-top: 2px; line-height: 1.4; }
.line em { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.line-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.line .qty { padding: 2px; border-radius: 10px; }
.line .qty button { width: 26px; height: 26px; font-size: 15px; }
.trash { color: var(--muted); padding: 2px; }
.trash:hover { color: #c0392b; }
.trash .ic { width: 16px; height: 16px; }
.empty-cart { margin: auto; text-align: center; color: var(--muted); padding: 30px; }
.empty-cart svg { width: 140px; opacity: .7; margin-bottom: 10px; }
.drawer-foot { padding: 14px 20px 20px; border-top: 1px solid var(--line); }
.coupon { display: flex; gap: 8px; }
.coupon label { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.coupon .ic { width: 15px; height: 15px; }
.coupon input { border: 0; outline: 0; background: none; width: 100%; height: 38px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text); }
.coupon button { padding: 0 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.coupon-msg { font-size: 12px; margin: 6px 0 4px; min-height: 16px; }
.coupon-msg.ok { color: var(--wa); } .coupon-msg.err { color: #c0392b; }
.sum { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 3px 0; }
.sum.total { color: var(--text); font-size: 17px; font-weight: 800; border-top: 1px solid var(--line); margin-top: 6px; padding: 10px 0 14px; }
.sum.total .mono { color: var(--brand); }

/* ---------- Checkout ---------- */
.checkout { width: min(560px, calc(100% - 24px)); }
.co-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.co-head h2 { margin: 0 0 2px; font-family: Anton, Impact, sans-serif; font-weight: 400; text-transform: uppercase; font-size: 24px; }
.co-body { padding: 8px 22px 16px; overflow-y: auto; }
.co-body fieldset { border: 0; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.co-body legend { padding: 0; margin-bottom: 10px; }
.co-body label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; margin-top: 10px; }
.co-body fieldset > label:first-of-type, .grid2 label { margin-top: 0; }
.co-body > label { margin-top: 14px; }
.co-body input.invalid { border-color: #c0392b; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid2.wide-first { grid-template-columns: 2fr 1fr; }
.pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pay button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2); font-size: 12px; font-weight: 700; transition: all .15s; }
.pay button.active { border-color: var(--brand); background: var(--brand-50); color: var(--brand); }
.form-err { color: #c0392b; font-size: 13px; font-weight: 600; margin: 10px 0 0; min-height: 1em; }
.co-foot { display: flex; align-items: center; gap: 16px; padding: 14px 22px 20px; border-top: 1px solid var(--line); }
.co-total { display: flex; flex-direction: column; font-size: 12px; }
.co-total b { font-size: 20px; color: var(--brand); }

/* ---------- Category sheet ---------- */
.cat-sheet { position: fixed; z-index: 70; top: 0; left: 0; bottom: 0; width: min(340px, 90%); background: var(--surface); box-shadow: var(--shadow-lg); transform: translateX(-100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; }
.cat-sheet.open { transform: none; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.sheet-head h3 { margin: 0; font-family: Anton, Impact, sans-serif; font-weight: 400; text-transform: uppercase; font-size: 24px; }
.cat-list { padding: 10px; overflow-y: auto; }
.cat-list button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 14px 14px; border-radius: 12px; font-weight: 600; font-size: 15px; text-align: left; }
.cat-list button:hover, .cat-list button.active { background: var(--brand-50); color: var(--brand); }
.cat-list .n { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--muted); }

/* ---------- Toast ---------- */
.toast { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); transition: all .3s cubic-bezier(.2, .8, .2, 1); display: flex; gap: 8px; align-items: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { min-height: auto; flex-direction: column; align-items: stretch; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(10, 7, 6, .85) 0%, rgba(10, 7, 6, .72) 55%, rgba(10, 7, 6, .5) 80%, rgba(10, 7, 6, .9) 100%); }
  .hero-inner { padding-top: 120px; padding-bottom: 10px; }
  .hero-art { position: relative; top: auto; right: auto; transform: none; width: min(72%, 380px); margin: 0 auto 30px; }
  .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .brand img, .topbar.scrolled .brand img { height: 44px; }
  .cart-label { display: none; }
  .catbar { top: 64px; }
  .hero-inner { padding-top: 100px; }
  .hero h1 { font-size: 12.4vw; }
  .scroll-down { display: none; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-body { padding: 12px; }
  .card-body h3 { font-size: 19px; }
  .card-body p { font-size: 12px; -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .choose { justify-content: center; }
  .cat-head { flex-wrap: wrap; }
  .cat-head .count { display: none; }
  .hero-art { width: min(62%, 260px); margin: 10px auto 24px; }
  .cat-head h2 { font-size: 26px; }
  .cat-head p { display: none; }
  .modal { top: auto; bottom: 0; left: 0; width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; transform: translateY(100%); }
  .modal.open { transform: none; }
  .opts { grid-template-columns: 1fr 1fr; }
  .grid2, .grid2.wide-first { grid-template-columns: 1fr; }
  .co-foot { flex-direction: column; align-items: stretch; }
  .co-total { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero h1 span, .card, .hero-art img, .script { opacity: 1; transform: none; }
  .embers { display: none; }
}

/* Contraste sobre el hero */
.topbar:not(.scrolled) .cart-btn { box-shadow: 0 8px 22px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .25); }

/* ---------- Integración Atentika ---------- */
body:not(.api-mode) [data-only="api"], body.api-mode [data-only="local"] { display: none !important; }
.loading { padding: 18px 0; }
.loading.center { text-align: center; padding: 80px 16px; }
.card-img.photo, .modal-media.photo, .line-img.photo { padding: 0; overflow: hidden; }
.card-img img, .modal-media img, .line-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.card:hover .card-img img { transform: scale(1.04); }
.old { display: block; font-size: 12px; color: var(--muted); }
.min-msg { font-size: 12px; font-weight: 600; color: var(--ember); margin: 0 0 10px; }
.btn-primary:disabled, .btn-wa:disabled { opacity: .5; box-shadow: none; }
.btn.busy { pointer-events: none; opacity: .7; }
.btn.busy .ic { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-ghost-dark { margin-top: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 13px; padding: 10px 14px; }
.pay.one { grid-template-columns: minmax(0, 200px); }
.co-body select { width: 100%; border: 1px solid var(--line); background: var(--surface-2); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 14px; color: var(--text); outline: 0; }
.co-body select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(217, 38, 28, .15); }
.asap { font-size: 13px; margin: 0; align-self: end; padding-bottom: 12px; }
#authSet .seg { margin-bottom: 12px; }
#authSet .grid2 + .grid2 { margin-top: 10px; }
.user-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--brand-50); font-size: 13px; font-weight: 600; }
.user-box > span { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.user-box .ic { width: 16px; height: 16px; color: var(--brand); }
.addr-list { display: grid; gap: 8px; margin-bottom: 12px; }
.addr { text-align: left; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2); display: flex; flex-direction: column; gap: 2px; transition: all .15s; }
.addr b { font-size: 14px; }
.addr span { font-size: 12px; color: var(--muted); }
.addr.active { border-color: var(--brand); background: var(--brand-50); }
#addrNew > label { margin-top: 10px; }
.co-track { padding: 18px 0 8px; }
.steps { list-style: none; margin: 0 0 14px; padding: 0; }
.steps li { display: flex; gap: 14px; position: relative; padding-bottom: 18px; color: var(--muted); }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: ""; position: absolute; left: 9px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.steps li:last-child::before { display: none; }
.steps i { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); position: relative; z-index: 1; }
.steps b { display: block; font-size: 14px; }
.steps small { font-size: 12px; }
.steps li.done { color: var(--text); }
.steps li.done i { background: var(--wa); border-color: var(--wa); }
.steps li.done::before { background: var(--wa); }
.steps li.now { color: var(--text); }
.steps li.now i { border-color: var(--brand); background: var(--brand); animation: ring 1.6s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(217, 38, 28, .5); } 70% { box-shadow: 0 0 0 9px rgba(217, 38, 28, 0); } 100% { box-shadow: 0 0 0 0 rgba(217, 38, 28, 0); } }
.small { font-size: 12px; }
.track-items { list-style: none; padding: 14px 0 0; margin: 14px 0 0; border-top: 1px solid var(--line); }
.track-items li { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 3px 0; }
.track-sum { margin-top: 10px; }
.track-cancel { padding: 14px; border-radius: 12px; background: var(--brand-50); }
.track-cancel p { margin: 6px 0 0; font-size: 13px; }
.api-mode .btn-wa { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%); box-shadow: 0 8px 22px rgba(217, 38, 28, .35); }
