/* Café Shamán · estilos compartidos */
:root {
  --night: #12201d;
  --night-2: #1a2e2a;
  --night-3: #24403a;
  --clay: #9c5a3c;
  --terra: #c06c47;
  --blush: #f3ddd0;
  --blush-2: #ead0c1;
  --cream: #fbf6f0;
  --paper: #fffdf9;
  --ink: #221a16;
  --ink-2: #5d4f47;
  --muted: #8a7a70;
  --gold: #e3a93c;
  --lantern: #e9a7c8;
  --jade: #3f9d7f;
  --line: rgba(34, 26, 22, .12);
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(18, 32, 29, .35);
  --display: 'Marcellus SC', 'Marcellus', Georgia, serif;
  --body: 'Montserrat', system-ui, -apple-system, Segoe UI, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--cream); line-height: 1.5; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .02em; line-height: 1.1; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.row { display: flex; align-items: center; }
.gap { gap: .6rem; }
.end { justify-content: flex-end; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.mt { margin-top: 1rem; }
.hidden { display: none !important; }
.paw { width: 1em; height: 1em; }

/* ---------- botones / inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 0; border-radius: 999px; padding: .8rem 1.3rem; background: var(--night); color: var(--cream); font-weight: 600; font-size: .95rem; text-decoration: none; transition: transform .12s ease, background .2s; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.terra { background: var(--terra); }
.btn.gold { background: var(--gold); color: var(--night); }
.btn.jade { background: var(--jade); }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.light { background: var(--cream); color: var(--night); }
.btn.sm { padding: .45rem .85rem; font-size: .82rem; }
.btn.danger { background: #b5452f; }
.input, select.input, textarea.input { width: 100%; font: inherit; padding: .75rem .9rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); }
.input:focus { outline: 2px solid var(--terra); outline-offset: 1px; border-color: transparent; }
label.field { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-2); margin: .9rem 0 .35rem; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- toasts ---------- */
#toasts { position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); z-index: 200; display: grid; gap: .5rem; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--night); color: var(--cream); padding: .85rem 1.1rem; border-radius: 14px; box-shadow: var(--shadow); font-size: .92rem; transition: opacity .4s, transform .4s; }
.toast.ok { background: var(--jade); }
.toast.err { background: #b5452f; }
.toast.out { opacity: 0; transform: translateY(8px); }

/* ---------- hojas / modales ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 100; background: rgba(10, 18, 16, .55); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .2s; backdrop-filter: blur(3px); }
.sheet-wrap.open { opacity: 1; }
.sheet { position: relative; width: min(100%, 560px); max-height: 92vh; overflow-y: auto; background: var(--paper); color: var(--ink); border-radius: 24px 24px 0 0; padding: 1.4rem 1.3rem calc(1.3rem + env(safe-area-inset-bottom)); transform: translateY(30px); transition: transform .25s ease; }
.sheet.wide { width: min(100%, 860px); }
.sheet-wrap.open .sheet { transform: none; }
@media (min-width: 700px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 24px; } }
.sheet-x { position: absolute; top: .7rem; right: .8rem; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--blush); color: var(--ink); font-size: 1.4rem; line-height: 1; z-index: 2; }
.sheet-title { font-size: 1.6rem; margin: .2rem 2.4rem .4rem 0; }
.ps-img { height: 200px; margin: -1.4rem -1.3rem 1rem; background: center/cover; border-radius: 24px 24px 0 0; }
.opt-group { margin-top: 1.1rem; }
.opt-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin-bottom: .5rem; }
.opt-label small { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip-opt input { position: absolute; opacity: 0; pointer-events: none; }
.chip-opt span { display: inline-block; padding: .55rem .85rem; border-radius: 999px; border: 1.5px solid var(--line); font-size: .9rem; cursor: pointer; transition: all .15s; }
.chip-opt span b { font-weight: 600; color: var(--clay); margin-left: .2rem; }
.chip-opt input:checked + span { background: var(--night); color: var(--cream); border-color: var(--night); }
.chip-opt input:checked + span b { color: var(--gold); }
.chip-opt input:focus-visible + span { outline: 2px solid var(--terra); }
.ps-foot { display: flex; gap: .8rem; align-items: center; margin-top: 1.4rem; position: sticky; bottom: -1.3rem; background: var(--paper); padding: .8rem 0 0; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.stepper button { width: 40px; height: 42px; border: 0; background: none; font-size: 1.25rem; color: var(--ink); }
.stepper span { min-width: 1.6rem; text-align: center; font-weight: 700; }
.stepper.sm button { width: 30px; height: 30px; font-size: 1rem; }

/* ---------- banner demo ---------- */
.demo-banner { position: relative; z-index: 60; display: flex; flex-wrap: wrap; gap: .4rem 1rem; justify-content: space-between; align-items: center; padding: .5rem 1rem; background: var(--gold); color: var(--night); font-size: .8rem; }
.demo-banner code { background: rgba(0, 0, 0, .12); padding: 0 .3rem; border-radius: 4px; }
.demo-links { display: flex; gap: .8rem; align-items: center; }
.demo-links a { font-weight: 700; }
.demo-links button { border: 0; background: var(--night); color: var(--cream); border-radius: 999px; padding: .2rem .7rem; font-size: .75rem; }

/* =========================================================
   SITIO PARA CLIENTES
   ========================================================= */
.site-head { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem clamp(1rem, 4vw, 2.5rem); background: rgba(18, 32, 29, .92); color: var(--cream); backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand .paw { width: 30px; height: 30px; color: var(--blush); }
.brand b { font-family: var(--display); font-weight: 400; font-size: 1.25rem; letter-spacing: .12em; }
.site-nav { display: flex; gap: 1.4rem; align-items: center; font-size: .9rem; }
.site-nav a { text-decoration: none; opacity: .85; }
.site-nav a:hover { opacity: 1; }
@media (max-width: 720px) { .site-nav a.hide-m { display: none; } }
.acct-btn { position: relative; background: var(--blush); color: var(--night); border: 0; border-radius: 999px; padding: .45rem .95rem; font-weight: 700; font-size: .85rem; }
.acct-btn .dot { position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--terra); border: 2px solid var(--night); }

.hero { position: relative; min-height: min(88vh, 760px); display: grid; align-items: end; color: var(--cream); background: var(--night) center/cover; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 32, 29, .2) 0%, rgba(18, 32, 29, .55) 45%, rgba(18, 32, 29, .96) 100%); }
.hero-in { position: relative; padding: 0 clamp(1.2rem, 5vw, 4rem) clamp(2.5rem, 7vw, 5rem); max-width: 900px; }
.eyebrow { display: inline-flex; gap: .5rem; align-items: center; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .22em; color: var(--lantern); }
.hero h1 { font-size: clamp(2.8rem, 9vw, 6.2rem); margin: .6rem 0 .8rem; letter-spacing: .04em; }
.hero h1 em { font-style: normal; color: var(--blush); display: block; font-size: .5em; letter-spacing: .1em; }
.hero p { font-size: clamp(1rem, 2.4vw, 1.2rem); max-width: 34rem; opacity: .9; margin: 0 0 1.6rem; }
.mesa-pill { display: inline-flex; gap: .4rem; align-items: center; background: var(--gold); color: var(--night); font-weight: 700; padding: .35rem .8rem; border-radius: 999px; font-size: .85rem; margin-bottom: 1rem; }

.origin { background: var(--night); color: var(--blush); padding: 1.2rem clamp(1rem, 4vw, 2.5rem); display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: center; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; border-top: 1px solid rgba(255, 255, 255, .08); }
.origin b { color: var(--gold); font-weight: 700; }

.section { padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2.5rem); max-width: 1180px; margin: 0 auto; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.6rem; }
.section-head h2 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.section-head p { margin: .3rem 0 0; color: var(--ink-2); max-width: 32rem; }

/* menú */
.cat-bar { position: sticky; top: 58px; z-index: 40; display: flex; gap: .4rem; overflow-x: auto; padding: .7rem 0; margin: 0 0 1rem; background: var(--cream); scrollbar-width: none; }
.cat-bar::-webkit-scrollbar { display: none; }
.cat-bar button { flex: none; border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: .5rem .95rem; font-size: .88rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.cat-bar button.on { background: var(--night); color: var(--cream); border-color: var(--night); }
.search { position: relative; max-width: 320px; width: 100%; }
.search input { padding-left: 2.4rem; border-radius: 999px; }
.search svg { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); width: 18px; color: var(--muted); }
.cat-block { margin: 2.2rem 0 0; scroll-margin-top: 120px; }
.cat-block h3 { font-size: 1.8rem; display: flex; align-items: center; gap: .7rem; }
.cat-block h3::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.cat-note { margin: .3rem 0 0; color: var(--clay); font-size: .88rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: .8rem; margin-top: 1rem; }
.pcard { display: flex; gap: .9rem; align-items: stretch; text-align: left; border: 0; background: var(--paper); border-radius: var(--radius); padding: .75rem; box-shadow: 0 1px 0 var(--line), 0 6px 18px -14px rgba(18, 32, 29, .5); transition: transform .15s, box-shadow .2s; color: var(--ink); width: 100%; }
.pcard:hover { transform: translateY(-2px); box-shadow: 0 1px 0 var(--line), 0 14px 24px -16px rgba(18, 32, 29, .55); }
.pcard.off { opacity: .5; }
.pthumb { flex: none; width: 84px; height: 84px; border-radius: 12px; background: var(--blush) center/cover; display: grid; place-items: center; color: var(--clay); font-family: var(--display); font-size: 2rem; overflow: hidden; position: relative; }
.pthumb.ph { background: radial-gradient(circle at 30% 25%, var(--blush) 0, var(--blush-2) 60%, #dcb7a3 100%); }
.pthumb.ph::after { content: ''; position: absolute; inset: 6px; border: 1px dashed rgba(156, 90, 60, .35); border-radius: 9px; }
.pinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pinfo b { font-weight: 700; font-size: 1rem; }
.pinfo small { color: var(--muted); font-size: .82rem; margin-top: .15rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pprice { margin-top: auto; padding-top: .4rem; display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--clay); }
.pprice .from { font-size: .72rem; font-weight: 600; color: var(--muted); margin-right: .25rem; }
.plus { width: 32px; height: 32px; border-radius: 50%; background: var(--night); color: var(--cream); display: grid; place-items: center; font-size: 1.2rem; }
.tag-out { font-size: .7rem; font-weight: 700; background: #b5452f; color: #fff; padding: .1rem .5rem; border-radius: 999px; }

/* el lugar */
.place { background: var(--night); color: var(--cream); }
.place .section-head p { color: rgba(251, 246, 240, .75); }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: .7rem; }
.gallery figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; background: var(--night-2) center/cover; }
.gallery figure::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 18, 16, .85)); }
.gallery figcaption { position: absolute; z-index: 1; left: 1rem; bottom: .8rem; right: 1rem; }
.gallery figcaption b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.35rem; }
.gallery figcaption span { font-size: .82rem; opacity: .8; }
.g1 { grid-column: span 7; grid-row: span 4; } .g2 { grid-column: span 5; grid-row: span 2; } .g3 { grid-column: span 5; grid-row: span 2; }
.g4 { grid-column: span 4; grid-row: span 3; } .g5 { grid-column: span 4; grid-row: span 3; } .g6 { grid-column: span 4; grid-row: span 3; }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; } .gallery figure { grid-column: span 1 !important; grid-row: span 1 !important; } .gallery .g1 { grid-column: span 2 !important; grid-row: span 2 !important; } }
.vibes { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.vibes span { border: 1px solid rgba(243, 221, 208, .3); border-radius: 999px; padding: .45rem .9rem; font-size: .85rem; color: var(--blush); }

.visit { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.visit .card { background: var(--paper); border-radius: var(--radius); padding: 1.4rem; box-shadow: 0 1px 0 var(--line); }
.visit .card h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.foot { text-align: center; padding: 2.5rem 1rem 7rem; color: var(--muted); font-size: .85rem; }
.foot .paw { width: 34px; height: 34px; color: var(--clay); margin: 0 auto .5rem; }

/* carrito flotante */
.cart-fab { position: fixed; z-index: 45; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(150%); width: min(92vw, 460px); display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 0; border-radius: 999px; padding: .55rem .6rem .55rem 1.3rem; background: var(--terra); color: #fff; box-shadow: 0 16px 40px -12px rgba(156, 90, 60, .7); transition: transform .3s cubic-bezier(.2, .9, .3, 1.2); font-weight: 600; }
.cart-fab.show { transform: translateX(-50%); }
.cart-fab .count { background: #fff; color: var(--terra); border-radius: 999px; padding: .5rem .9rem; font-weight: 800; }

/* carrito / cuenta */
.line { display: flex; gap: .8rem; padding: .85rem 0; border-bottom: 1px dashed var(--line); }
.line .grow b { display: block; }
.line .grow small { color: var(--muted); display: block; }
.line .amt { font-weight: 700; white-space: nowrap; }
.totals { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.15rem; padding: 1rem 0 .3rem; }
.paychoice { display: grid; gap: .5rem; }
.paychoice label { display: flex; gap: .8rem; align-items: flex-start; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; }
.paychoice label:has(input:checked) { border-color: var(--night); background: var(--blush); }
.paychoice input { margin-top: .25rem; accent-color: var(--night); }
.paychoice small { display: block; color: var(--muted); }
.subchoice { display: flex; gap: .5rem; margin-top: .5rem; }
.ronda { border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; margin-top: .8rem; }
.ronda-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.steps { display: flex; gap: .3rem; margin: .7rem 0 .3rem; }
.steps i { flex: 1; height: 5px; border-radius: 4px; background: var(--blush-2); }
.steps i.on { background: var(--jade); }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: var(--blush); color: var(--clay); text-transform: uppercase; letter-spacing: .04em; }
.badge.ok { background: #d8efe6; color: #1f6b52; }
.badge.warn { background: #fbe8c4; color: #8a5a07; }
.badge.bad { background: #f6d5cc; color: #9b3a24; }
.badge.dark { background: var(--night); color: var(--cream); }
.balance { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 1rem 0; text-align: center; }
.balance div { background: var(--cream); border-radius: 12px; padding: .7rem .4rem; }
.balance small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.balance b { font-size: 1.15rem; }

/* =========================================================
   PANTALLAS DEL PERSONAL (barra / admin)
   ========================================================= */
body.staff { background: #0d1715; color: #eef2ef; }
body.staff .muted { color: #8fa29c; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.login-box { width: min(100%, 360px); background: var(--night-2); border-radius: 22px; padding: 2rem 1.6rem; text-align: center; box-shadow: var(--shadow); }
.login-box .paw { width: 48px; height: 48px; color: var(--blush); margin: 0 auto .6rem; }
.login-box h1 { font-size: 1.8rem; color: var(--cream); }
.pin-dots { display: flex; gap: .6rem; justify-content: center; margin: 1.4rem 0; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--blush); }
.pin-dots i.on { background: var(--blush); }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.pinpad button { height: 58px; border: 0; border-radius: 14px; background: var(--night-3); color: var(--cream); font-size: 1.4rem; font-weight: 600; }
.pinpad button:active { background: var(--terra); }

.topbar { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: space-between; padding: .7rem 1rem; background: var(--night); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.topbar .brand b { font-size: 1.05rem; }
.tabs { display: flex; gap: .3rem; background: rgba(255, 255, 255, .06); padding: .25rem; border-radius: 999px; overflow-x: auto; }
.tabs button { border: 0; background: transparent; color: #c6d1cd; padding: .45rem .95rem; border-radius: 999px; font-weight: 600; font-size: .88rem; white-space: nowrap; }
.tabs button.on { background: var(--blush); color: var(--night); }
.tabs button .n { display: inline-block; min-width: 1.3rem; margin-left: .3rem; padding: 0 .35rem; border-radius: 999px; background: var(--terra); color: #fff; font-size: .72rem; }
.top-actions { display: flex; gap: .5rem; align-items: center; font-size: .82rem; }
.kpi { background: rgba(255, 255, 255, .06); padding: .35rem .75rem; border-radius: 999px; }
.kpi b { color: var(--gold); }
.iconbtn { border: 0; background: rgba(255, 255, 255, .08); color: #eef2ef; border-radius: 999px; padding: .4rem .75rem; font-size: .82rem; font-weight: 600; text-decoration: none; }
.iconbtn.on { background: var(--jade); }

.filters { display: flex; gap: .4rem; padding: .8rem 1rem 0; flex-wrap: wrap; align-items: center; }
.filters button { border: 1px solid rgba(255, 255, 255, .15); background: transparent; color: #c6d1cd; border-radius: 999px; padding: .35rem .85rem; font-size: .82rem; font-weight: 600; }
.filters button.on { background: #eef2ef; color: var(--night); }

.board { display: grid; grid-template-columns: repeat(3, minmax(280px, 1fr)); gap: 1rem; padding: 1rem; align-items: start; overflow-x: auto; }
.col h2 { font-family: var(--body); font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; display: flex; align-items: center; gap: .5rem; margin: 0 0 .7rem; color: #c6d1cd; }
.col h2 .n { background: rgba(255, 255, 255, .1); border-radius: 999px; padding: .05rem .55rem; }
.col[data-col=nuevo] h2::before, .col[data-col=preparando] h2::before, .col[data-col=listo] h2::before { content: ''; width: 10px; height: 10px; border-radius: 50%; }
.col[data-col=nuevo] h2::before { background: var(--terra); }
.col[data-col=preparando] h2::before { background: var(--gold); }
.col[data-col=listo] h2::before { background: var(--jade); }
.col .stack { display: grid; gap: .7rem; }
.empty { border: 1.5px dashed rgba(255, 255, 255, .12); border-radius: 16px; padding: 1.4rem; text-align: center; color: #6f837d; font-size: .88rem; }
.ticket { background: #f6f1ea; color: var(--ink); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 22px -14px #000; }
.ticket.flash { animation: flash 1.2s ease 3; }
@keyframes flash { 50% { box-shadow: 0 0 0 4px var(--gold); } }
.t-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; padding: .8rem .9rem .6rem; background: #fff; border-bottom: 2px dashed #e4d9cf; }
.t-head .who { font-weight: 800; font-size: 1.15rem; line-height: 1.15; }
.t-head .who small { display: block; font-weight: 600; font-size: .78rem; color: var(--muted); }
.t-head .num { text-align: right; font-weight: 800; font-size: 1.05rem; }
.t-head .num small { display: block; font-weight: 600; font-size: .74rem; color: var(--muted); }
.t-head .num small.late { color: #b5452f; }
.t-items { padding: .5rem .9rem; }
.t-item { display: flex; gap: .55rem; padding: .4rem 0; border-bottom: 1px solid #ebe2d8; align-items: flex-start; }
.t-item:last-child { border-bottom: 0; }
.t-item .q { flex: none; min-width: 1.9rem; height: 1.9rem; border-radius: 8px; background: var(--night); color: #fff; display: grid; place-items: center; font-weight: 800; }
.t-item .d { flex: 1; font-size: .92rem; }
.t-item .d b { display: block; }
.t-item .d small { display: block; color: var(--ink-2); }
.t-item .d .note { color: #9b3a24; font-weight: 600; }
.st { flex: none; font-size: .64rem; font-weight: 800; letter-spacing: .08em; padding: .15rem .45rem; border-radius: 6px; text-transform: uppercase; }
.st.barra { background: #d9e9f5; color: #1d4f73; }
.st.cocina { background: #fbe1cf; color: #8c3f12; }
.t-note { margin: 0 .9rem .5rem; padding: .5rem .7rem; background: #fbe8c4; border-radius: 10px; font-size: .85rem; }
.t-foot { display: flex; gap: .4rem; align-items: center; justify-content: space-between; padding: .6rem .9rem .8rem; flex-wrap: wrap; }
.t-foot .btn { padding: .55rem 1rem; }
.linkbtn { border: 0; background: none; color: var(--muted); font-size: .8rem; text-decoration: underline; padding: .3rem; }
.dim .t-item.hide { display: none; }
details.done { margin: 0 1rem 2rem; }
details.done summary { cursor: pointer; color: #8fa29c; font-weight: 600; padding: .5rem 0; }
.done-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .7rem; }
.done-grid .ticket { opacity: .75; }
@media (max-width: 900px) { .board { grid-template-columns: 1fr; } }

/* cuentas / caja */
.accts { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 1rem; padding: 1rem; align-items: start; }
@media (max-width: 860px) { .accts { grid-template-columns: 1fr; } }
.acct-list { display: grid; gap: .5rem; }
.acct-item { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .8rem 1rem; border-radius: 14px; background: var(--night-2); border: 1.5px solid transparent; color: inherit; text-align: left; width: 100%; }
.acct-item.on { border-color: var(--blush); }
.acct-item b { display: block; font-size: 1rem; }
.acct-item small { color: #8fa29c; }
.acct-item .bal { font-weight: 800; color: var(--gold); white-space: nowrap; }
.acct-item .bal.zero { color: var(--jade); }
.panel { background: #f6f1ea; color: var(--ink); border-radius: 18px; padding: 1.2rem; }
.panel h2 { font-size: 1.8rem; }
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.methods label span { display: block; text-align: center; padding: .7rem .3rem; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 700; font-size: .88rem; cursor: pointer; }
.methods input { position: absolute; opacity: 0; }
.methods input:checked + span { background: var(--night); color: var(--cream); border-color: var(--night); }

/* toma de pedido en caja */
.picker { display: grid; grid-template-columns: 1fr 300px; gap: 1rem; }
@media (max-width: 760px) { .picker { grid-template-columns: 1fr; } }
.picker-list { max-height: 50vh; overflow-y: auto; display: grid; gap: .35rem; padding-right: .3rem; }
.pick { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .6rem .8rem; border-radius: 10px; background: var(--cream); border: 0; text-align: left; color: var(--ink); width: 100%; }
.pick:hover { background: var(--blush); }
.pick b { font-weight: 600; }
.pick small { color: var(--clay); font-weight: 700; }
.mini-cart { background: var(--cream); border-radius: 14px; padding: .8rem; align-self: start; }

/* admin */
.admin-main { padding: 1rem; max-width: 1200px; margin: 0 auto; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem; }
.stat { background: var(--night-2); border-radius: 16px; padding: 1rem 1.1rem; }
.stat small { display: block; color: #8fa29c; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.stat b { font-size: 1.8rem; font-family: var(--display); font-weight: 400; color: var(--cream); }
.box { background: var(--night-2); border-radius: 18px; padding: 1.1rem; margin-top: 1rem; }
.box h3 { font-family: var(--body); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: #c6d1cd; margin-bottom: .8rem; }
.bars { display: grid; gap: .45rem; }
.bar { display: grid; grid-template-columns: 9rem 1fr 6rem; gap: .6rem; align-items: center; font-size: .85rem; }
.bar .track { height: 12px; background: rgba(255, 255, 255, .06); border-radius: 6px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--terra); border-radius: 6px; }
.bar span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.bar span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #8fa29c; padding: .5rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.tbl td { padding: .55rem .5rem; border-bottom: 1px solid rgba(255, 255, 255, .06); vertical-align: middle; }
.tbl tr.cat-row td { padding-top: 1.2rem; font-family: var(--display); font-size: 1.2rem; color: var(--blush); border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
body.staff .input { background: #0f1b19; color: #eef2ef; border-color: rgba(255, 255, 255, .14); }
body.staff .sheet .input { background: var(--paper); color: var(--ink); border-color: var(--line); }
.input.price { width: 6.5rem; text-align: right; padding: .45rem .6rem; }
.thumb-s { width: 42px; height: 42px; border-radius: 8px; background: var(--night-3) center/cover; flex: none; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #4b5d58; border-radius: 999px; transition: .2s; cursor: pointer; }
.switch span::after { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--jade); }
.switch input:checked + span::after { transform: translateX(18px); }
.opt-rows { display: grid; gap: .4rem; }
.opt-row { display: grid; grid-template-columns: 1fr 7rem 2.2rem; gap: .4rem; }
.opt-row button { border: 0; border-radius: 10px; background: var(--blush); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .8rem; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.low { color: var(--gold); font-weight: 700; }
.out { color: #ff8a70; font-weight: 700; }
.qr-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-top: 1rem; }
.qr-card { background: #fff; color: var(--night); border-radius: 18px; padding: 1.1rem; text-align: center; }
.qr-card .paw { width: 26px; height: 26px; color: var(--clay); margin: 0 auto; }
.qr-card h4 { font-family: var(--display); font-weight: 400; font-size: 1.25rem; margin: .2rem 0 .1rem; letter-spacing: .1em; }
.qr-card img, .qr-card canvas { width: 100%; height: auto; image-rendering: pixelated; margin: .5rem 0; }
.qr-card p { margin: 0; font-size: .78rem; color: var(--ink-2); }
.qr-card .mesa { font-weight: 800; font-size: 1rem; color: var(--clay); }

@media print {
  body.staff { background: #fff; }
  .topbar, .demo-banner, .no-print { display: none !important; }
  .qr-sheet { grid-template-columns: repeat(3, 1fr); }
  .qr-card { border: 1px solid #ddd; break-inside: avoid; }
}

/* ajustes tras revisión */
.bar .track, .bar .fill { display: block; }
body.staff .panel .input { background: var(--paper); color: var(--ink); border-color: var(--line); }
.brand b { white-space: nowrap; }
@media (max-width: 420px) { .brand b { font-size: 1.02rem; letter-spacing: .08em; } .site-nav { gap: .8rem; } }
section[id], .section[id] { scroll-margin-top: 64px; }
