:root {
  --black: #080808;
  --card: #121212;
  --surface: #1c1c1c;
  --border: #272727;
  --gold: #F6B500;
  --gold-hover: #dfa300;
  --text: #fff;
  --text-2: #b8b8b8;
  --muted: #8a8a8a;
  --red: #b91c1c;
  --wa: #059669;
  --wa-hover: #10b981;
  --font-title: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --topbar-h: 62px;
  --tools-h: 112px;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { background: var(--black); color: var(--text); font-family: var(--font-body); font-size: 14px; line-height: 1.4; padding-bottom: 90px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, .brand-name, .btn, .tabs button, .cart-btn b { font-family: var(--font-title); text-transform: uppercase; letter-spacing: .03em; }

.app { max-width: 428px; margin: 0 auto; min-height: 100vh; position: relative; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* topbar */
.topbar { position: sticky; top: 0; z-index: 30; height: var(--topbar-h); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: rgba(10,10,10,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand > div { min-width: 0; }
.brand-name, .brand-sub { white-space: nowrap; }
.wa-chip { flex: none; margin-left: 8px; }
@media (max-width: 350px) { .topbar .brand img { display: none; } .brand-name { font-size: 15px; } }
.brand-name { font-size: 17px; font-weight: 700; line-height: 1; }
.brand-sub { font-size: 11px; color: var(--gold); letter-spacing: .15em; text-transform: uppercase; font-weight: 600; }
.wa-chip { font-size: 12px; font-weight: 600; color: #34d399; border: 1px solid rgba(52,211,153,.4); background: #1f2c22; padding: 7px 12px; border-radius: 999px; }

/* hero */
.hero { padding: 24px 16px; text-align: center; border-bottom: 1px solid var(--border); background: radial-gradient(ellipse at top, #1a1608 0%, var(--black) 70%); }
.badge { display: inline-block; font-size: 12px; font-weight: 600; color: var(--gold); background: var(--surface); border: 1px solid rgba(246,181,0,.3); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.hero-logo { width: 96px; height: 96px; margin: 0 auto 10px; padding: 8px; border-radius: 18px; background: #0e0e0e; border: 1px solid var(--border); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.hero h1 { font-size: 34px; line-height: 1.05; }
.hero-sub { color: var(--gold); letter-spacing: .2em; text-transform: uppercase; font-weight: 600; font-size: 13px; margin: 4px 0 8px; }
.hero-tag { color: var(--text-2); margin-bottom: 18px; }
.hero-cta { display: flex; gap: 10px; max-width: 300px; margin: 0 auto; }
.hero-cta .btn { flex: 1; }
.hero-values { margin-top: 16px; font-size: 11px; color: var(--muted); letter-spacing: .15em; text-transform: uppercase; }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 16px; border-radius: 12px; font-weight: 700; font-size: 14px; text-align: center; border: 1px solid transparent; transition: transform .1s, background .15s; }
.btn:active { transform: scale(.96); }
.btn-gold { background: var(--gold); color: #000; box-shadow: 0 6px 18px rgba(246,181,0,.2); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-dark { background: var(--surface); border-color: var(--border); }
.btn-dark:hover { background: #262626; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.block-btn { width: 100%; padding: 14px; font-size: 16px; }

/* herramientas sticky */
.sticky-tools { position: sticky; top: var(--topbar-h); z-index: 20; background: rgba(8,8,8,.96); backdrop-filter: blur(10px); padding: 10px 16px 0; border-bottom: 1px solid var(--border); }
.search { position: relative; }
.search input { width: 100%; padding: 11px 36px 11px 14px; background: #141414; border: 1px solid var(--border); border-radius: 12px; font-size: 14px; }
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.search input::placeholder { color: var(--muted); }
.clear { position: absolute; right: 0; top: 0; bottom: 0; width: 38px; color: var(--muted); }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; padding: 7px 13px; border-radius: 12px; font-size: 12px; font-weight: 600; background: var(--surface); color: var(--text-2); border: 1px solid var(--border); }
.tabs button.active { background: var(--gold); color: #000; border-color: var(--gold); font-weight: 700; }

/* bloques */
.block { padding: 20px 16px 4px; }
.block-title { font-size: 18px; }
.block-sub { font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.muted { color: var(--text-2); font-size: 12px; }
.tiny { color: var(--muted); font-size: 11px; margin-top: 6px; }
.gold-text { color: var(--gold); font-weight: 600; font-size: 12px; margin: 4px 0; }
.eyebrow { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 4px; }

.featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feat { background: #131313; border: 1px solid var(--border); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.feat .top { display: flex; justify-content: space-between; align-items: center; }
.tag { display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); background: rgba(246,181,0,.1); padding: 2px 6px; border-radius: 4px; }
.feat h3 { font-size: 16px; line-height: 1.1; }
.price { font-family: var(--font-title); font-size: 22px; font-weight: 700; }
.price small { font-family: var(--font-body); font-size: 11px; color: var(--text-2); font-weight: 400; margin-left: 3px; }
.add { padding: 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-family: var(--font-title); font-weight: 700; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; transition: background .15s, color .15s; }
.add:hover, .add:focus-visible { background: var(--gold); color: #000; }
.add:active { transform: scale(.95); }
.feat .add { width: 100%; }

.parrilla-box { background: linear-gradient(90deg, #171717, #121212); border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
.parrilla-box h2 { font-size: 21px; margin-bottom: 2px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.quick-grid button { background: #1f1f1f; border: 1px solid var(--border); border-radius: 12px; padding: 10px; text-align: left; font-weight: 600; font-size: 12px; }
.quick-grid button:hover { background: #282828; }

/* catálogo */
.cat { scroll-margin-top: calc(var(--topbar-h) + var(--tools-h)); margin-bottom: 26px; }
.cat-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(39,39,39,.7); padding-bottom: 8px; margin-bottom: 10px; }
.cat-head h2 { font-size: 20px; }
.cat-head span { font-size: 11px; color: var(--muted); }
.item { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; margin-bottom: 9px; transition: box-shadow .2s; }
.item.hl { box-shadow: 0 0 0 2px var(--gold); }
.item h3 { font-size: 16px; line-height: 1.2; }
.imp { font-family: var(--font-body); font-size: 9px; font-weight: 800; letter-spacing: .08em; color: #fca5a5; background: rgba(127,29,29,.6); border: 1px solid rgba(239,68,68,.3); padding: 1px 6px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.no-results { text-align: center; color: var(--text-2); padding: 30px 24px; }

/* tarjetas */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.card h2 { font-size: 20px; margin-bottom: 4px; }
.card.center { text-align: center; }
.card.center .btn { margin-top: 14px; }
.gold-border { border-color: rgba(246,181,0,.25); }
.icon-circle { width: 40px; height: 40px; border-radius: 50%; background: rgba(16,185,129,.1); display: grid; place-items: center; margin: 0 auto 8px; font-size: 20px; }
.addr { font-weight: 600; font-size: 13px; }
.stars { color: var(--gold); font-size: 20px; letter-spacing: .15em; }
.row { display: flex; gap: 8px; margin-top: 14px; }
.row .btn { flex: 1; font-size: 12px; }

.footer { text-align: center; padding: 28px 16px 20px; margin-top: 20px; border-top: 1px solid var(--border); }
.footer img { margin: 0 auto 8px; opacity: .85; }
.footer .muted { margin-top: 4px; }
.footer strong { color: #fff; }

/* barra inferior */
.appbar { gap: 2px; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: rgba(12,12,12,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--border); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-around; max-width: 428px; margin: 0 auto; }
.appbar > button, .appbar > a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); padding: 4px 6px; min-height: 44px; justify-content: center; min-width: 0; }
.appbar > button span, .appbar > a span { font-size: 19px; }
.appbar > button:first-child { color: var(--gold); }
.appbar .cart-btn { flex-direction: row; gap: 8px; background: var(--gold); color: #000; border-radius: 12px; padding: 7px 10px; box-shadow: 0 6px 18px rgba(246,181,0,.25); text-align: left; letter-spacing: 0; }
.cart-btn span { font-size: 17px !important; }
.cart-btn b { display: block; font-size: 12px; line-height: 1; }
.cart-btn i { display: block; font-style: normal; font-size: 11px; font-weight: 800; opacity: .8; }
.cart-btn > * { display: block; }
.cart-btn { align-items: center; }

/* overlays */
.overlay { position: fixed; inset: 0; z-index: 50; }
.backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.82); backdrop-filter: blur(3px); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-width: 428px; margin: 0 auto; background: #141414; border-top: 1px solid var(--border); border-radius: 24px 24px 0 0; padding: 14px 20px calc(20px + env(safe-area-inset-bottom)); max-height: 92vh; overflow-y: auto; animation: up .28s cubic-bezier(.16,1,.3,1); }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
.grip { width: 48px; height: 4px; background: var(--border); border-radius: 4px; margin: 0 auto 14px; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.sheet-head h3 { font-size: 24px; margin-top: 4px; }
.x { width: 36px; height: 36px; border-radius: 50%; background: #202020; color: var(--muted); }
.x:hover { color: #fff; }
.label { font-weight: 600; font-size: 13px; margin: 8px 0; }
.label-sm { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.pills button { padding: 11px 0; border-radius: 12px; border: 1px solid var(--border); background: #1a1a1a; font-weight: 600; font-size: 13px; }
.pills button.on { border-color: var(--gold); background: rgba(246,181,0,.1); color: var(--gold); font-weight: 700; }
.custom { background: #181818; border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.custom .row { margin-top: 4px; }
input[type=text], input[type=number], textarea, select { width: 100%; background: #101010; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); }
select { width: auto; }
.calc { display: flex; justify-content: space-between; align-items: center; background: #101010; border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 14px; }
.calc span:not(.label-sm) { font-size: 13px; font-weight: 500; }
.calc strong { font-family: var(--font-title); font-size: 24px; }

.drawer { position: absolute; top: 0; bottom: 0; right: 0; width: 100%; max-width: 420px; background: #111; border-left: 1px solid var(--border); display: flex; flex-direction: column; animation: left .28s cubic-bezier(.16,1,.3,1); }
@keyframes left { from { transform: translateX(100%); } to { transform: none; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: #141414; border-bottom: 1px solid var(--border); }
.drawer-head h3 { font-size: 21px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 16px; }
.ci { display: flex; justify-content: space-between; gap: 8px; background: #181818; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.ci h4 { font-family: var(--font-title); text-transform: uppercase; font-size: 15px; }
.ci .q { color: var(--gold); font-weight: 700; font-size: 12px; }
.ci .u { color: var(--muted); font-size: 10px; margin-left: 6px; }
.ci .s { display: block; font-family: var(--font-title); font-weight: 700; margin-top: 2px; }
.ci-ctl { display: flex; align-items: center; gap: 4px; flex: none; }
.stepper { display: flex; align-items: center; background: #101010; border: 1px solid var(--border); border-radius: 8px; }
.stepper button { width: 32px; height: 32px; color: var(--text-2); font-weight: 700; }
.stepper button:hover { color: #fff; }
.stepper span { min-width: 22px; text-align: center; font-size: 12px; font-weight: 700; }
.del { width: 32px; height: 32px; border-radius: 8px; }
.del:hover { background: rgba(127,29,29,.25); }
.empty { text-align: center; padding: 40px 0; }
.empty .big { font-size: 40px; opacity: .5; }
.empty .eb { font-family: var(--font-title); text-transform: uppercase; font-size: 18px; font-weight: 700; margin: 4px 0; }
.empty .btn { margin-top: 14px; }
.form { border-top: 1px solid var(--border); margin-top: 14px; padding-top: 14px; }
.form label { display: block; font-size: 12px; font-weight: 600; margin: 10px 0 4px; }
.radios { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.radios label { display: flex; align-items: center; gap: 6px; background: #181818; border: 1px solid var(--border); border-radius: 12px; padding: 10px; margin: 0; cursor: pointer; font-weight: 500; }
.radios input { accent-color: var(--gold); }
.radios label:has(input:checked) { border-color: var(--gold); }
textarea { resize: none; }
.drawer-foot { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: #141414; border-top: 1px solid var(--border); }
.total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.total-row strong { font-family: var(--font-title); font-size: 26px; color: #fff; }
.warn { font-size: 11px; color: var(--text-2); background: #1c1c1c; border: 1px solid var(--border); border-radius: 8px; padding: 8px; margin-bottom: 10px; }
.error { color: #fca5a5; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.link-btn { display: block; margin: 10px auto 0; font-size: 12px; color: var(--muted); text-decoration: underline; }

.toast { position: fixed; top: 74px; left: 50%; transform: translateX(-50%); z-index: 60; width: 90%; max-width: 380px; background: var(--gold); color: #000; font-weight: 600; font-size: 13px; padding: 11px 16px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.5); pointer-events: none; animation: toast 2.4s ease forwards; }
@keyframes toast { 0% { opacity: 0; margin-top: 12px; } 12%, 85% { opacity: 1; margin-top: 0; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sheet, .drawer, .toast { animation: none; }
}
@media (min-width: 429px) {
  body { background: #000; }
  .app { border-left: 1px solid var(--border); border-right: 1px solid var(--border); background: var(--black); }
}
