.menu-app { padding-bottom: 110px; overflow-x: hidden; }

/* hero */
.hero { position: relative; min-height: 230px; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); filter: saturate(1.1); }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,12,10,.25) 0%, rgba(15,12,10,.55) 50%, var(--bg) 100%); }
.hero-in { position: relative; z-index: 1; padding: 18px 18px 8px; width: 100%; max-width: 980px; margin: 0 auto; }
.hero h1 { font-size: 40px; margin-top: 40px; line-height: 1; background: linear-gradient(90deg, #fff, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 4px 0 6px; }
.table-chip { background: rgba(0,0,0,.45); backdrop-filter: blur(8px); }
#ordersBtn { background: rgba(0,0,0,.45); backdrop-filter: blur(8px); border-color: var(--line); }

/* categorías */
.cats { position: sticky; top: 0; z-index: 20; display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; background: rgba(15,12,10,.86); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.04); scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; display: flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 14px; transition: .2s; }
.cat.on { background: var(--text); color: var(--bg); border-color: transparent; }
.cat span { font-size: 18px; }

.tools { max-width: 980px; margin: 0 auto; padding: 12px 16px 0; }
.search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 12px; }
.search input { border: 0; background: transparent; padding: 12px 0; }
.filters { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.filters .chip { cursor: pointer; }
.filters .chip.on { background: var(--gold); color: #2a1a00; border-color: transparent; }

/* destacados */
.featured { max-width: 980px; margin: 0 auto; padding: 18px 0 0; }
.featured h2 { padding: 0 16px; font-size: 22px; }
.feat-row { display: flex; gap: 14px; overflow-x: auto; padding: 4px 16px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.feat { flex: none; width: 250px; scroll-snap-align: start; border-radius: 22px; padding: 14px; background: radial-gradient(120% 90% at 50% 10%, #3a2a20 0%, var(--card) 60%); border: 1px solid var(--line); position: relative; overflow: hidden; }
.feat-img { width: 100%; aspect-ratio: 1; object-fit: contain; animation: spinSlow 40s linear infinite; filter: drop-shadow(0 20px 20px rgba(0,0,0,.6)); }
.feat h3 { font-size: 18px; margin: 8px 0 2px; }
.feat .price { color: var(--gold); font-weight: 800; }
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* listado */
.list { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.sec h2 { font-size: 26px; margin: 26px 0 12px; display: flex; align-items: center; gap: 10px; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.item { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 12px; text-align: left; transition: transform .15s, border-color .2s; position: relative; }
.item:active { transform: scale(.985); }
.item:hover { border-color: #5a463a; }
.item .thumb { width: 104px; height: 104px; flex: none; position: relative; }
.item .thumb img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0,0,0,.55)); transition: transform .6s cubic-bezier(.2,.9,.3,1.2); }
.item:hover .thumb img { transform: rotate(25deg) scale(1.05); }
.item .info { flex: 1; min-width: 0; }
.item h3 { font-size: 17px; margin: 0 0 3px; }
.item p { margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.item .price { font-weight: 800; color: var(--gold); font-size: 16px; margin-right: auto; }
.item .from { font-size: 11px; color: var(--muted); font-weight: 600; }
.tag { font-size: 11px; padding: 3px 8px; border-radius: 99px; background: var(--card2); border: 1px solid var(--line); }
.tag.custom { background: rgba(255,106,61,.14); border-color: rgba(255,106,61,.4); color: #ffb59c; }
.item.soldout { opacity: .45; }
.item.soldout::after { content: 'AGOTADO'; position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 800; background: var(--danger); color: #fff; padding: 3px 8px; border-radius: 8px; }
.pop { position: absolute; top: -6px; left: 10px; font-size: 10.5px; font-weight: 800; background: var(--gold); color: #2a1a00; padding: 3px 8px; border-radius: 8px; }
.menu-foot { text-align: center; padding: 30px 0 10px; }

/* dock */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(0deg, var(--bg) 60%, transparent); max-width: 640px; margin: 0 auto; }
.dock-btn { width: 62px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; font-size: 22px; padding: 6px 0; }
.dock-btn small { font-size: 10.5px; font-weight: 700; color: var(--muted); }
.dock-cart { flex: 1; display: flex; align-items: center; gap: 12px; padding: 0 18px; border-radius: 18px; border: 0; background: linear-gradient(135deg, var(--accent), #ff9a3d); color: #1b0d05; font-weight: 800; font-size: 16px; box-shadow: 0 14px 34px -12px rgba(255,106,61,.8); transition: transform .2s; }
.dock-cart b { margin-left: auto; }
.dock-count { background: #1b0d05; color: #fff; border-radius: 10px; min-width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.dock-cart.bump { animation: bump .45s; }
@keyframes bump { 40% { transform: scale(1.06); } }
.dock.readonly .dock-cart, .dock.readonly .dock-btn { opacity: .4; pointer-events: none; }

/* sheet */
.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(5,3,2,.6); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.sheet.open { opacity: 1; pointer-events: auto; }
.sheet-in { position: absolute; left: 0; right: 0; bottom: 0; max-height: 96vh; height: 96vh; background: var(--bg2); border-radius: 26px 26px 0 0; transform: translateY(100%); transition: transform .42s cubic-bezier(.2,.9,.25,1); overflow-y: auto; overflow-x: hidden; max-width: 720px; margin: 0 auto; border: 1px solid var(--line); border-bottom: 0; }
.sheet.open .sheet-in { transform: none; }
.sheet.short .sheet-in { height: auto; }
.sheet-close { position: sticky; top: 10px; float: right; margin: 10px 10px 0 0; z-index: 5; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.5); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.sheet-pad { padding: 18px 18px 30px; }
.sheet h2 { font-size: 26px; }

/* detalle */
.stage-wrap { position: relative; background: radial-gradient(70% 60% at 50% 45%, #3b2a1f 0%, #1a1310 55%, var(--bg2) 100%); padding-top: 10px; }
.stage { width: min(100%, 520px); margin: 0 auto; }
.stage-tools { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.stage-tools .chip { background: rgba(0,0,0,.5); backdrop-filter: blur(6px); cursor: pointer; }
.stage-tools .chip.on { background: var(--gold); color: #2a1a00; }
.detail-head { display: flex; align-items: flex-start; gap: 10px; }
.detail-head h2 { flex: 1; margin-bottom: 4px; }
.detail-price { font-family: var(--display); font-size: 26px; color: var(--gold); font-weight: 800; transition: transform .25s; }
.detail-price.tick { transform: scale(1.12); }
.ingr { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.ingr .chip { font-size: 12px; cursor: pointer; }
.ingr .chip.sel { border-color: var(--accent); background: rgba(255,106,61,.14); }
.alg { font-size: 12px; color: var(--muted); margin-top: 6px; }

.group { margin-top: 22px; }
.group-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.group-h h4 { font-family: var(--sans); font-size: 16px; margin: 0; }
.group-h .rule { font-size: 12px; color: var(--muted); }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 9px; }
.opt { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--line); text-align: left; transition: .18s; min-height: 58px; }
.opt img { width: 42px; height: 42px; object-fit: contain; flex: none; filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)); }
.opt .on { display: none; }
.opt b { font-size: 13.5px; display: block; line-height: 1.2; }
.opt small { color: var(--muted); font-size: 12px; }
.opt.sel { border-color: var(--accent); background: linear-gradient(135deg, rgba(255,106,61,.2), rgba(255,106,61,.05)); }
.opt.sel::after { content: '✓'; position: absolute; top: 6px; right: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #1b0d05; font-size: 11px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.opt.off { opacity: .4; pointer-events: none; }
.opt .dots { position: absolute; bottom: 5px; right: 8px; display: flex; gap: 3px; }
.opt .dots i { width: 7px; height: 7px; border-radius: 50%; }

.split { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px; margin-top: 18px; }
.seg { display: flex; background: var(--bg2); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 9px 6px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--muted); }
.seg button.on { background: var(--text); color: var(--bg); }
.seg-n button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px; min-width: 0; }
.seg-n svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.3; opacity: .8; }
.seg-n b { font-size: 13px; line-height: 1.1; }
.seg-n small { font-size: 10px; font-weight: 600; opacity: .75; white-space: nowrap; }
.parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; margin-top: 10px; }
.parts button { border: 1.5px solid var(--line); background: var(--bg2); border-radius: 12px; padding: 7px 8px; font-weight: 700; font-size: 12.5px; display: flex; align-items: center; gap: 7px; text-align: left; min-width: 0; }
.parts button span { min-width: 0; line-height: 1.15; }
.parts button small { display: block; font-weight: 600; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.parts button.empty small { color: var(--warn, #ffb347); }
.parts button i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.split-sum { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); padding: 6px 2px 0; border-top: 1px dashed var(--line); margin-top: 8px; }
.split-sum + .split-sum { border: 0; margin-top: 0; }
.split-sum b { color: var(--text); font-family: var(--mono, monospace); }
.parts button.on { border-color: var(--gold); color: var(--gold); }

.qty { display: inline-flex; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.qty button { width: 40px; height: 44px; border: 0; background: transparent; font-size: 20px; font-weight: 700; }
.qty span { min-width: 28px; text-align: center; font-weight: 800; }
.add-bar { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(0deg, var(--bg2) 75%, transparent); }
.add-bar .btn { flex: 1; font-size: 16px; padding: 14px; }

/* carrito / pedidos */
.cart-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 62px; height: 62px; object-fit: contain; }
.cart-item .grow { min-width: 0; }
.cart-item b { display: block; }
.cart-item small { color: var(--muted); display: block; font-size: 12px; }
.upsell { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 8px; }
.upsell button { flex: none; width: 120px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px; text-align: center; }
.upsell img { width: 70px; height: 70px; object-fit: contain; }
.upsell b { display: block; font-size: 12.5px; }
.totals { margin-top: 14px; }
.totals .row { padding: 5px 0; }
.totals .big { font-size: 22px; font-weight: 800; font-family: var(--display); }

.track { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin-bottom: 12px; }
.steps { display: flex; margin: 12px 0 6px; }
.step { flex: 1; text-align: center; font-size: 11px; color: var(--muted); position: relative; }
.step::before { content: ''; display: block; width: 14px; height: 14px; margin: 0 auto 5px; border-radius: 50%; background: var(--line); position: relative; z-index: 1; }
.step::after { content: ''; position: absolute; top: 6px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.step:first-child::after { display: none; }
.step.done { color: var(--text); }
.step.done::before, .step.done::after { background: var(--ok); }
.step.now::before { box-shadow: 0 0 0 5px rgba(47,210,122,.25); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(47,210,122,0); } }

.tips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.tips button { padding: 11px 4px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); font-weight: 800; }
.tips button.on { border-color: var(--gold); background: rgba(242,196,109,.15); color: var(--gold); }
.methods { display: flex; flex-wrap: wrap; gap: 6px; }
.methods button { padding: 9px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); font-weight: 700; text-transform: capitalize; }
.methods button.on { border-color: var(--accent); color: var(--accent); }
.bill-ok { text-align: center; padding: 30px 10px; }
.bill-ok .big-emoji { font-size: 64px; animation: bump 1s infinite; }

@media (min-width: 760px) {
  .hero { min-height: 300px; }
  .hero h1 { font-size: 58px; }
  .sheet-in { bottom: 2vh; border-radius: 26px; height: 96vh; border-bottom: 1px solid var(--line); }
}
.staff-mode .hero { min-height: 120px; }
.staff-mode .hero h1 { margin-top: 10px; font-size: 28px; }
.staff-mode .menu-foot { display: none; }
.d3-hint { top: 2%; bottom: auto; }

.thumb { position: relative; }
.thumb img.lyr { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); object-fit: contain; pointer-events: none; }
.item:hover .thumb img.lyr { transform: translate(-50%, -50%) rotate(25deg) scale(1.05); }
.item .thumb img.lyr { filter: none; }

.view-seg { display: inline-flex; background: rgba(0,0,0,.5); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 99px; padding: 3px; gap: 2px; }
.view-seg button { border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 99px; cursor: pointer; transition: .2s; }
.view-seg button.on { background: var(--text); color: var(--bg); cursor: default; }

.opt em.odesc { display: block; font-style: normal; font-size: 11px; line-height: 1.25; color: var(--muted); margin: 1px 0 2px; }
.ingr .chip .cdesc { font-weight: 500; opacity: .8; }

.filters .chip.serves { display: inline-flex; align-items: center; gap: 4px; padding-right: 6px; }
.filters .chip.serves select { border: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; padding: 0 4px; width: auto; cursor: pointer; appearance: auto; }
.filters .chip.serves.on select { color: #2a1a00; }
.filters .chip.serves select option { color: #111; }
.fbar { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.fbar:not(:empty) { margin-top: 10px; }
.fbar b { color: var(--text); }
.fbar button { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 99px; padding: 5px 12px; font-weight: 700; font-size: 12px; cursor: pointer; }
.ingr .chip { white-space: normal; max-width: 100%; }
.ingr .chip .cdesc { margin-left: -4px; }
