/* ==========================================================================
   PANEL DEL RESTAURANTE · estilos específicos de vistas
   ========================================================================== */
.tenant-card { display: flex; align-items: center; gap: .6rem; padding: .7rem; margin: 0 .2rem .4rem; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.tenant-card .avatar { background: var(--brand); color: #111; border-radius: 10px; }
.tenant-card b { color: #fff; font-size: .86rem; display: block; line-height: 1.2; }
.role-sel { width: 100%; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); color: #ddd; padding: 0 .6rem; font-size: .8rem; }
.role-sel option { color: #111; }
.top-rate { display: inline-flex; align-items: center; gap: .4rem; height: 34px; padding: 0 .8rem; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: .78rem; font-weight: 600; }
.net { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; color: var(--muted); font-weight: 500; }
.bell { position: relative; }
.bell .n { position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px; border-radius: 99px; background: var(--err); color: #fff; font-size: .62rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.drop-panel { position: absolute; right: 1rem; top: 58px; width: min(360px, calc(100vw - 2rem)); max-height: 70vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3); z-index: 80; padding: .4rem; }
.drop-panel .it { display: flex; gap: .7rem; padding: .7rem; border-radius: 10px; font-size: .84rem; }
.drop-panel .it:hover { background: var(--surface-2); }
.drop-panel .it .ic { color: var(--brand); margin-top: 2px; }

.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.page-h h2 { font-size: 1.45rem; }
.page-h p { color: var(--muted); font-size: .9rem; }
.two { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
@media (min-width: 1101px) { .two.eq { grid-template-columns: 1fr 1fr; } .two.esc { grid-template-columns: 260px 1fr; } }
@media (max-width: 1100px) { .two { grid-template-columns: 1fr; } }

.insight { display: flex; gap: .8rem; padding: .9rem; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-2); }
.insight .ii { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.insight.err .ii { background: var(--err-soft); color: var(--err); }
.insight.warn .ii { background: var(--warn-soft); color: var(--warn); }
.insight.brand .ii { background: var(--brand-soft); color: var(--brand-600); }
.insight .body { font-size: .84rem; }
.insight .body .ai-list { font-size: .82rem; }

/* ---- Pedidos (kanban) ---- */
.kanban { display: grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: 1rem; align-items: start; overflow-x: auto; }
.col { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: .7rem; min-height: 300px; }
.col-h { display: flex; align-items: center; justify-content: space-between; padding: .2rem .3rem .7rem; font-weight: 600; font-size: .9rem; }
.oc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .8rem; margin-bottom: .6rem; box-shadow: var(--sh-1); animation: fadeIn .35s var(--ease); }
.oc.new { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.oc .oh { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.oc .on { font-weight: 700; font-size: 1rem; }
.oc ul { margin: .5rem 0; font-size: .82rem; display: grid; gap: .15rem; }
.oc .note { font-size: .76rem; background: var(--warn-soft); color: var(--warn); padding: .3rem .5rem; border-radius: 8px; margin-bottom: .5rem; }
.oc .of { display: flex; gap: .4rem; align-items: center; justify-content: space-between; border-top: 1px dashed var(--line); padding-top: .6rem; margin-top: .3rem; }
.type-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); flex: none; }

/* ---- POS ---- */
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1rem; align-items: start; }
@media (max-width: 1000px) { .pos { grid-template-columns: 1fr; } }
.tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .6rem; }
.tbl { aspect-ratio: 1.15; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; font-size: .8rem; transition: .15s; position: relative; }
.tbl b { font-size: 1.05rem; }
.tbl.busy { border-color: var(--brand); background: var(--brand-soft); }
.tbl.sel { outline: 3px solid var(--text); outline-offset: 2px; }
.tbl.call::after { content: ""; position: absolute; top: 8px; right: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--err); animation: live 1.2s infinite; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: .6rem; }
.pbtn-pos { border-radius: 14px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; text-align: left; transition: transform .12s, border-color .2s; }
.pbtn-pos:hover { border-color: var(--brand); }
.pbtn-pos:active { transform: scale(.97); }
.pbtn-pos .im { aspect-ratio: 16 / 10; background: var(--surface-3); display: grid; place-items: center; color: var(--muted); }
.pbtn-pos .im img { width: 100%; height: 100%; object-fit: cover; }
.pbtn-pos .t { padding: .45rem .6rem .55rem; font-size: .78rem; font-weight: 600; line-height: 1.25; }
.pbtn-pos .t span { display: block; color: var(--brand-600); font-weight: 700; }
.ticket { position: sticky; top: 76px; }
.tk-line { display: flex; align-items: center; gap: .5rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
.qbtn { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); }
.pay-line { display: grid; grid-template-columns: 1fr 120px 32px; gap: .4rem; align-items: center; }

/* ---- KDS cocina ---- */
.kds { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .9rem; }
.kt { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.kt .kh { padding: .7rem .9rem; display: flex; justify-content: space-between; align-items: center; background: var(--ok); color: #fff; font-weight: 700; }
.kt.late .kh { background: var(--warn); }
.kt.very .kh { background: var(--err); }
.kt ul { padding: .8rem .9rem; display: grid; gap: .45rem; flex: 1; }
.kt li { display: flex; gap: .6rem; font-size: .95rem; cursor: pointer; }
.kt li.done { text-decoration: line-through; opacity: .45; }
.kt li b { min-width: 26px; height: 26px; border-radius: 8px; background: var(--surface-3); display: grid; place-items: center; font-size: .85rem; }
.kt .kf { padding: .6rem; border-top: 1px solid var(--line); }
.kds-full { position: fixed; inset: 0; z-index: 700; background: #0b0b0c; padding: 1rem; overflow: auto; }

/* ---- Menú / productos ---- */
.thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--surface-3); display: grid; place-items: center; color: var(--muted); flex: none; }
.img-drop { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: var(--r); border: 1.5px dashed var(--line); background: var(--surface-2); color: var(--muted); font-size: .82rem; cursor: pointer; position: relative; overflow: hidden; text-align: center; }
.img-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.img-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.star-btn { color: var(--line); }
.star-btn.on { color: var(--brand); }
.star-btn.on .ic { fill: var(--brand); }

/* ---- Diseño ---- */
.design { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.4rem; align-items: start; }
@media (max-width: 1100px) { .design { grid-template-columns: 1fr; } }
.tpls { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
@media (max-width: 640px) { .tpls { grid-template-columns: 1fr; } }
.tpl { border: 2px solid var(--line); border-radius: var(--r-lg); padding: .5rem; background: var(--surface); text-align: left; transition: .2s; }
.tpl.on { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.tpl .sw { height: 110px; border-radius: 12px; margin-bottom: .5rem; position: relative; overflow: hidden; }
.tpl b { font-size: .92rem; display: block; padding: 0 .3rem; }
.tpl small { color: var(--muted); font-size: .74rem; display: block; padding: 0 .3rem .2rem; line-height: 1.35; }
.swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); transition: transform .15s; }
.swatch.on { box-shadow: 0 0 0 2px var(--text); transform: scale(1.08); }
.logo-up { display: flex; align-items: center; gap: 1rem; }
.logo-up .lp { width: 72px; height: 72px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); position: relative; font-weight: 800; color: var(--muted); }
.logo-up .lp img { width: 100%; height: 100%; object-fit: contain; padding: 8%; background: #fff; }
.phone { width: 340px; height: 690px; border-radius: 46px; padding: 12px; background: #0b0b0c; box-shadow: var(--sh-3), inset 0 0 0 2px #2a2a2e; position: sticky; top: 80px; margin: 0 auto; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; border-radius: 99px; background: #0b0b0c; z-index: 2; }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 36px; background: #111; }
@media (max-width: 420px) { .phone { width: 100%; height: 620px; } }

/* ---- QR ---- */
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.qr-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1rem; text-align: center; break-inside: avoid; }
.qr-card .qr { width: 140px; height: 140px; margin: .6rem auto; background: #fff; border-radius: 10px; padding: 6px; }
.qr-card .qr svg, .qr-card .qr img { width: 100%; height: 100%; }
@media print { .side, .topbar, .no-print, #banner { display: none !important; } .shell { display: block; } .content { padding: 0; } .qr-card { border: 1px solid #000; } }
/* QR con marca del restaurante */
.qr-card.qb { padding: 0 0 .8rem; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: .15rem; border-top: 0; }
.qb-top { width: 100%; display: flex; align-items: center; gap: .5rem; padding: .6rem .8rem; background: var(--qc); color: #fff; min-width: 0; }
.qb-top b { font-size: .86rem; min-width: 0; }
.qb-logo { width: 28px; height: 28px; border-radius: 8px; background: #fff; color: var(--qc); display: grid; place-items: center; font-size: .7rem; font-weight: 800; flex: none; overflow: hidden; }
.qb-logo img { width: 100%; height: 100%; object-fit: contain; }
.qb-t { font-weight: 800; font-size: 1.05rem; margin-top: .5rem; }
.qr-card.qb .qr { width: 156px; height: 156px; padding: 0; margin: .3rem auto; }
.qb-cta { font-size: .78rem; font-weight: 700; color: var(--qc); }
@media print { .qr-card.qb { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
/* Instalar en la PC */
.inst-hero { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; } .inst-hero img { border-radius: 16px; flex: none; }
.inst-list { display: grid; gap: .5rem; }
.inst-it { display: flex; align-items: center; gap: .8rem; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: var(--r); }
.inst-it small { display: block; color: var(--muted); font-size: .74rem; }
.inst-tip { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border-radius: var(--r-lg); border: 1px solid var(--brand); background: var(--brand-soft); flex-wrap: wrap; }
.inst-tip img { border-radius: 11px; } .inst-tip small { display: block; color: var(--muted); font-size: .78rem; }
/* Recepción de pedidos */
.opt-card { display: flex; gap: .8rem; align-items: flex-start; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; transition: .2s; }
.opt-card small { display: block; color: var(--muted); font-size: .76rem; margin-top: .15rem; }
.opt-card input { margin-top: .6rem; accent-color: var(--brand); }
.opt-card.on { border-color: var(--brand); background: var(--brand-soft); }
.opt-card.locked { opacity: .6; cursor: not-allowed; }
/* Soporte */
.sup-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; }
.sup-c { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; min-width: 0; transition: .2s; }
a.sup-c:hover { border-color: var(--brand); }
.sup-c > span:last-child { min-width: 0; }
.sup-c small { display: block; color: var(--muted); font-size: .76rem; }
.gd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem; margin-top: 1rem; align-items: stretch; }
/* Guías ilustradas */
.gd-tile { display: flex; flex-direction: column; text-align: left; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; cursor: pointer; font: inherit; color: inherit; padding: 0; }
.gd-tile:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.gd-cover { position: relative; height: 92px; display: grid; place-items: center; background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .35), transparent 45%), linear-gradient(135deg, var(--gc), color-mix(in srgb, var(--gc) 55%, #111)); }
.gd-cover .gd-ic { width: 52px; height: 52px; border-radius: 16px; background: rgba(255, 255, 255, .92); color: var(--gc); display: grid; place-items: center; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.gd-cover .gd-ic .ic { width: 26px; height: 26px; }
.gd-seen { position: absolute; top: .55rem; right: .55rem; font-size: .66rem; font-weight: 700; background: rgba(0, 0, 0, .45); color: #fff; padding: .15rem .5rem; border-radius: 99px; display: inline-flex; gap: .2rem; align-items: center; }
.gd-body { padding: .85rem .95rem 1rem; display: grid; gap: .25rem; }
.gd-body b { font-size: .92rem; line-height: 1.25; } .gd-body small { color: var(--muted); font-size: .78rem; }
.gd-meta { display: flex; align-items: center; gap: .3rem; font-size: .72rem; color: var(--muted); margin-top: .35rem; font-weight: 600; }
.modal.gd-wide { width: min(680px, 100%); padding: 0; overflow: hidden; }
.gd-mh { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; background: linear-gradient(135deg, var(--gc), color-mix(in srgb, var(--gc) 55%, #111)); color: #fff; }
.gd-mh .gd-ic { width: 42px; height: 42px; border-radius: 13px; background: rgba(255, 255, 255, .92); color: var(--gc); display: grid; place-items: center; flex: none; }
.gd-mh small { display: block; opacity: .85; font-size: .76rem; } .gd-mh .btn { color: #fff; }
.gd-prog { display: flex; gap: .35rem; padding: 1rem 1.2rem 0; }
.gd-prog button { flex: 1; height: 5px; border-radius: 99px; background: var(--surface-3); border: 0; cursor: pointer; padding: 0; transition: .3s; }
.gd-prog button.on { background: var(--gc); }
.gd-stage { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.2rem; align-items: center; padding: 1.2rem; min-height: 250px; }
.gd-vis { display: grid; place-items: center; min-height: 220px; border-radius: var(--r-lg); background: var(--surface-2); padding: 1rem; animation: gdIn .35s var(--ease); }
@keyframes gdIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.gd-txt { animation: gdIn .35s .05s var(--ease) both; }
.gd-n { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--gc); }
.gd-txt p { font-size: 1.02rem; line-height: 1.5; margin-top: .4rem; }
.gd-foot { display: flex; justify-content: space-between; gap: .6rem; padding: .9rem 1.2rem; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .gd-stage { grid-template-columns: 1fr; min-height: 0; } .gd-vis { min-height: 190px; } }
/* Maquetas dentro de las guías */
.gv-win { width: 100%; max-width: 280px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .35); overflow: hidden; }
.gv-bar { display: flex; gap: 4px; padding: 7px 9px; background: var(--surface-3); } .gv-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.gv-body { display: flex; min-height: 140px; }
.gv-side { width: 42%; background: #1b1b1d; padding: 8px 6px; display: grid; gap: 6px; align-content: start; }
.gv-side span { height: 16px; border-radius: 5px; background: #2a2a2e; font-size: .6rem; color: #111; display: flex; align-items: center; gap: 2px; padding: 0 4px; white-space: nowrap; overflow: hidden; }
.gv-side span.on { background: var(--gc); height: 20px; font-weight: 700; animation: gvPulse 1.6s infinite; }
.gv-side .ic { width: 10px; height: 10px; }
.gv-main { flex: 1; padding: 10px; display: grid; gap: 7px; align-content: start; position: relative; }
.gl { display: block; height: 7px; border-radius: 4px; background: var(--surface-3); }
.gv-btn { justify-self: start; display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 6px 10px; border-radius: 8px; background: var(--gc); color: #fff; font-size: .7rem; font-weight: 700; animation: gvPulse 1.6s infinite; }
.gv-btn.ok { background: var(--ok); } .gv-btn .ic { width: 12px; height: 12px; }
@keyframes gvPulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gc) 55%, transparent); } 60% { box-shadow: 0 0 0 7px transparent; } }
.gv-tap { position: absolute; right: 18%; bottom: 22%; width: 18px; height: 18px; border-radius: 50%; background: rgba(0, 0, 0, .25); border: 2px solid #fff; animation: gvTap 1.6s infinite; }
.gv-tap.b { right: auto; left: 38%; bottom: 6px; }
@keyframes gvTap { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(.7); opacity: .6; } }
.gv-rows { gap: 8px; } .gv-rows > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 7px; border-radius: 8px; font-size: .68rem; }
.gv-rows > div.on { background: color-mix(in srgb, var(--gc, var(--brand)) 14%, transparent); outline: 1.5px solid var(--gc, var(--brand)); }
.gv-rows small { color: var(--muted); }
.gv-sw { width: 26px; height: 15px; border-radius: 99px; background: var(--line); position: relative; flex: none; }
.gv-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: .3s; }
.gv-sw.on { background: var(--gc, var(--ok)); } .gv-sw.on::after { left: 13px; }
.gv-f { display: grid; gap: 3px; } .gv-f small { font-size: .62rem; color: var(--muted); font-weight: 600; }
.gv-f span { height: 22px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; padding: 0 6px; }
.gv-f.on span { border-color: var(--gc, var(--brand)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gc, var(--brand)) 20%, transparent); }
.gv-caret { width: 1.5px; height: 12px; background: var(--text); animation: gvBlink 1s steps(2) infinite; } @keyframes gvBlink { 50% { opacity: 0; } }
.gv-phone { width: 150px; border-radius: 22px; border: 5px solid #111; background: var(--surface); padding: 8px 7px 10px; display: grid; gap: 6px; box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .5); }
.gv-ph-top { display: flex; align-items: center; gap: 5px; font-size: .6rem; } .gv-ph-top .lg, .gv-qr-top .lg { width: 16px; height: 16px; border-radius: 5px; background: var(--gc); }
.gv-card { display: flex; align-items: center; gap: 5px; padding: 4px; border-radius: 7px; background: var(--surface-2); font-size: .6rem; } .gv-card .im { width: 22px; height: 22px; border-radius: 5px; background: #c98a52; flex: none; } .gv-card > div { flex: 1; display: grid; gap: 3px; }
.gv-cta { border-radius: 8px; padding: 5px; text-align: center; font-size: .6rem; font-weight: 700; background: var(--gc); color: #fff; display: flex; gap: 3px; justify-content: center; align-items: center; animation: gvPulse 1.6s infinite; } .gv-cta .ic { width: 10px; height: 10px; }
.gv-chat { width: 100%; max-width: 270px; padding: 12px; border-radius: 14px; background: #e5ddd5; }
.gv-msg { position: relative; background: #dcf8c6; color: #111; border-radius: 10px 10px 2px 10px; padding: 8px 10px 14px; font-size: .68rem; line-height: 1.45; margin-left: auto; box-shadow: 0 1px 1px rgba(0, 0, 0, .15); animation: gdIn .5s var(--ease); }
.gv-msg .tm { position: absolute; right: 7px; bottom: 3px; font-size: .55rem; color: #4fa3d1; }
.gv-kds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; max-width: 290px; }
.gv-kds > div { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 6px; display: grid; gap: 5px; align-content: start; min-height: 120px; }
.gv-kds small { font-size: .6rem; font-weight: 700; color: var(--muted); }
.gv-kds span { font-size: .62rem; font-weight: 700; padding: 5px; border-radius: 6px; background: var(--surface-2); display: grid; gap: 3px; } .gv-kds span i { height: 4px; border-radius: 3px; background: var(--line); }
.gv-kds span.ok { background: var(--ok-soft); color: var(--ok); } .gv-kds span.mv { outline: 1.5px solid var(--gc); animation: gvPulse 1.6s infinite; }
.gv-qr { width: 150px; border-radius: 14px; overflow: hidden; background: #fff; color: #111; display: grid; justify-items: center; gap: 4px; padding-bottom: 8px; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .4); }
.gv-qr-top { width: 100%; display: flex; gap: 5px; align-items: center; padding: 6px 8px; background: var(--gc); color: #fff; font-size: .62rem; font-weight: 700; } .gv-qr-top .lg { background: #fff; }
.gv-qr b { font-size: .8rem; } .gv-qr small { font-size: .58rem; font-weight: 700; color: var(--gc); }
.gv-qr-code { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; width: 84px; } .gv-qr-code i { aspect-ratio: 1; border-radius: 2px; background: var(--gc); }
.gv-bars { display: flex; align-items: flex-end; gap: 5px; height: 80px; } .gv-bars i { flex: 1; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--gc) 35%, transparent); } .gv-bars i:nth-child(6) { background: var(--gc); }
.gv-kpi { display: flex; justify-content: space-between; font-size: .7rem; } .gv-kpi b { color: var(--ok); }
.gv-lock { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 1rem; } .gv-lock > .ic { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--gc); color: #fff; animation: gvPulse 1.6s infinite; }
.gv-lock b { font-size: .85rem; } .gv-lock small { color: var(--muted); font-size: .72rem; }
.gv-otp { display: flex; gap: 4px; } .gv-otp i { width: 18px; height: 24px; border-radius: 5px; border: 1.5px solid var(--line); background: var(--surface); } .gv-otp i:first-child { border-color: var(--gc); }
.gd summary { cursor: pointer; list-style: none; padding: .2rem 0; }
.gd summary::-webkit-details-marker { display: none; }
details.gd:not(.card) { border-bottom: 1px solid var(--line); padding: .7rem 0; }
details.gd:not(.card):last-child { border-bottom: 0; }
details[open].gd summary > .ic:last-child { transform: rotate(180deg); }
.gd-steps { margin: .8rem 0 .9rem 1.2rem; display: grid; gap: .45rem; font-size: .86rem; list-style: decimal; }
.tk-msg { max-width: 82%; padding: .6rem .8rem; border-radius: 14px; font-size: .86rem; background: var(--brand-soft); border: 1px solid var(--line); margin-left: auto; white-space: pre-wrap; }
.tk-msg.admin { margin-left: 0; background: var(--surface-2); }
@media (max-width: 640px) { .gd-grid { grid-template-columns: 1fr; } .tk-msg { max-width: 94%; } }

/* ---- Planes ---- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .9rem; }
.plan { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem; background: var(--surface); display: flex; flex-direction: column; gap: .5rem; position: relative; }
.plan.cur { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.plan .pp { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.plan .pp small { font-size: .8rem; color: var(--muted); font-weight: 500; }
.plan ul { font-size: .8rem; display: grid; gap: .3rem; margin: .3rem 0 .6rem; }
.plan li { display: flex; gap: .4rem; align-items: flex-start; }
.plan li .ic { color: var(--ok); margin-top: 3px; width: 14px; height: 14px; }

/* ---- Bloqueos ---- */
.gate { text-align: center; padding: 3rem 1.5rem; border-radius: var(--r-xl); border: 1px dashed var(--line); background: linear-gradient(180deg, var(--brand-soft), transparent); }
.gate .ic { display: block; width: 42px; height: 42px; color: var(--brand); margin: 0 auto .8rem; }
.frozen { position: fixed; inset: 0; z-index: 850; background: rgba(10, 10, 12, .8); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 1rem; }
.frozen .modal { transform: none; text-align: center; }

.perm-wrap { overflow-x: auto; }
.perm { display: grid; grid-template-columns: 1.6fr repeat(5, 1fr); font-size: .8rem; min-width: 560px; }
.perm > div { padding: .55rem .6rem; border-bottom: 1px solid var(--line); text-align: center; }
/* Columna de nombres: clase explícita (sirve para matrices de cualquier número de columnas) */
.perm > div.l { text-align: left; font-weight: 500; }
.perm > div.h.l { font-weight: 700; }
.perm .h { font-weight: 700; font-size: .72rem; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.perm .y { color: var(--ok); } .perm .n { color: var(--line); }

/* ---- Acceso al panel ---- */
.auth-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 1rem; background: radial-gradient(800px 400px at 80% 0%, rgba(238, 161, 57, .15), transparent 60%), #0d0d0e; }
.auth { width: min(420px, 100%); background: #1B1B1D; color: #fff; border-radius: 24px; padding: 2rem; border: 1px solid #2a2a2e; display: grid; gap: 1.1rem; }
.auth .input { background: #232326; border-color: #333; color: #fff; }
.auth .otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: .45rem; }
.auth .otp input { height: 52px; text-align: center; font-size: 1.2rem; font-weight: 700; border-radius: 12px; background: #232326; border: 1px solid #333; color: #fff; }
.auth .otp input:focus { outline: none; border-color: var(--brand); }
.shell[hidden] { display: none; }.adm-badge { font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #111; background: var(--brand); border-radius: 6px; padding: .15rem .45rem; }

/* ---- Pedidos: que nada se salga de la tarjeta ---- */
.kanban { grid-template-columns: repeat(3, minmax(270px, 1fr)); }
.oc .oh { flex-wrap: wrap; row-gap: .4rem; }
.oc .oh > .row { min-width: 0; flex: 1 1 140px; }
.oc .badge { white-space: normal; line-height: 1.25; }
.oc ul li { min-width: 0; }
.oc ul li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.oc .of { flex-wrap: wrap; row-gap: .5rem; }
.oc .of > .row { flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.oc .tiny.row { flex-wrap: wrap; overflow-wrap: anywhere; }
@media (max-width: 960px) { .kanban { grid-template-columns: repeat(3, minmax(260px, 82vw)); } }
/* ---- Caja / supervisión / inventario (vistas nuevas) ---- */
.shift { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: .8rem 1rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.shift .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); flex: none; }
.shift.closed .dot { background: var(--err); box-shadow: 0 0 0 4px var(--err-soft); }
.due-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.due-row:last-child { border-bottom: 0; }
.due-row .grow { min-width: 160px; }
.sla { font-variant-numeric: tabular-nums; font-weight: 700; }
.sla.ok { color: var(--ok); } .sla.late { color: var(--warn); } .sla.very { color: var(--err); }
.hbars { display: grid; gap: .55rem; }
.hbars .row { font-size: .82rem; }
.inv-set { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .8rem; }
.inv-set label { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.inv-set label small { display: block; color: var(--muted); font-size: .76rem; margin-top: .15rem; }
.pay-line2 { display: grid; grid-template-columns: 150px 110px minmax(0, 1fr) 32px; gap: .4rem; align-items: center; }
.seg button { white-space: nowrap; }
.top-rate, .topbar h1 { white-space: nowrap; }
.topbar h1 { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 640px) {
  .content .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .content .kpi { padding: .8rem; min-width: 0; }
  .content .kpi .k-v { font-size: 1.25rem; overflow-wrap: anywhere; }
  .content .kpi .k-l { font-size: .72rem; }
  .content .kpi .k-d { font-size: .68rem; }
  .top-rate { padding: 0 .6rem; font-size: .72rem; }
}
@media (max-width: 640px) { .pay-line2 { grid-template-columns: 1fr 1fr; } .pay-line2 > :nth-child(3) { grid-column: 1 / -1; } .pay-line2 > :last-child { grid-column: 2; justify-self: end; } .pos { gap: .8rem; } .ticket { position: static; } }
.side { position: sticky; }
@media (max-width: 960px) { .side { position: fixed; } }
/* ===== Mesoneros en caja y ventas por mesonero ===== */
.wsel { display: flex; align-items: center; gap: .5rem; padding: .55rem .6rem; margin-bottom: .6rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.wsel .ic { width: 18px; height: 18px; color: var(--brand-600); flex: none; }
.wsel #wcode { width: 78px; height: 36px; text-align: center; }
.wsel select { height: 36px; flex: 1; min-width: 0; }
.cust-box { display: grid; gap: .5rem; margin-bottom: .7rem; }
.cust-box .seg button { flex: 1; justify-content: center; }
.wrank { display: grid; gap: .8rem; }
.wr { display: flex; gap: .7rem; align-items: flex-start; }
.wpos { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .78rem; background: var(--surface-3); flex: none; }
.wpos.gold { background: var(--brand); color: #111; }
.my-sales { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border-radius: 14px; background: var(--brand-soft, rgba(238, 161, 57, .12)); border: 1px solid rgba(238, 161, 57, .35); margin-bottom: 1rem; font-size: .9rem; flex-wrap: wrap; }
.my-sales .ic { color: var(--brand-600); }

/* ===== Pantallas y publicidad ===== */
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: .8rem; }
.sc-card { display: flex; gap: .8rem; padding: .7rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.sc-mini { width: 128px; flex: none; border-radius: 8px; overflow: hidden; align-self: flex-start; }
.sc-mini.v { width: 64px; }
.sg-edit { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; margin-top: 1.2rem; }
.sg-prev-card { position: sticky; top: 76px; }
.sg-prev { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 0 0 6px #1b1b1d, 0 20px 40px -20px rgba(0, 0, 0, .6); }
.sg-prev iframe { width: 100%; height: 100%; border: 0; display: block; }
.sl-list { display: grid; gap: .5rem; }
.sl { display: flex; align-items: center; gap: .7rem; padding: .5rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.sl.dim { opacity: .55; }
.sl-th { width: 112px; flex: none; border-radius: 6px; overflow: hidden; }
.sl-acts { display: flex; align-items: center; gap: .1rem; flex-wrap: wrap; justify-content: flex-end; }
.sl-acts .switch { transform: scale(.85); }
.sl-add { display: flex; flex-wrap: wrap; gap: .4rem; }
.sl-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
#slprev .sg-stage { border-radius: 10px; }
@media (max-width: 900px) { .sg-edit, .sl-editor { grid-template-columns: 1fr; } .sg-prev-card { position: static; } .sc-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .sl { flex-wrap: wrap; } .sl-th { width: 96px; } .sl-acts { width: 100%; } .sc-card { flex-direction: column; } .sc-mini { width: 100%; } }

/* ===== Instalar en equipos ===== */
.dev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.dev-card { display: flex; flex-direction: column; gap: .6rem; }
.dev-qr { width: 170px; height: 170px; margin: .4rem auto 0; background: #fff; border-radius: 12px; padding: 6px; }
.dev-qr svg { width: 100%; height: 100%; display: block; }

/* ===== Modo tablet (mesonero / cocina / caja) ===== */
.mode-chip { display: inline-flex; align-items: center; gap: .3rem; margin-left: .6rem; padding: .2rem .6rem; border-radius: 99px; background: var(--brand); color: #111; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.mode-chip .ic { width: 14px; height: 14px; }
.mode-tag { display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start; padding: .3rem .7rem; border-radius: 99px; background: rgba(238, 161, 57, .15); color: var(--brand); font-size: .78rem; font-weight: 600; }
.dev-tablet .pbtn-pos { min-height: 96px; }
.dev-tablet .tbl { min-height: 72px; }
.dev-tablet .qbtn { width: 36px; height: 36px; }
.dev-tablet .btn { min-height: 44px; }
.dev-tablet .tk-line { padding: .7rem 0; }
@media (max-width: 640px) { .mode-chip { display: none; } }

/* ===== Agente de impresión ===== */
.ag-p { display: grid; grid-template-columns: 1.1fr 1.3fr 1.6fr auto auto; gap: .5rem; align-items: center; padding: .6rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.ag-p [hidden] { display: none !important; }
.ag-p .select, .ag-p .input { height: 38px; }
@media (max-width: 900px) { .ag-p { grid-template-columns: 1fr 1fr; } .ag-p b { grid-column: 1 / -1; } }
#net.warn { color: var(--warn); }
.totp-qr { display: block; width: 180px; margin: .9rem auto .6rem; background: #fff; border-radius: 12px; padding: 8px; } .totp-qr svg { display: block; width: 100%; height: auto; }
.sl { flex-wrap: wrap; } .sl > .grow { min-width: 180px; } .sl > .grow + .sl-acts { margin-left: auto; }
@media (max-width: 900px) { .sg-edit, .sl-editor { grid-template-columns: minmax(0, 1fr); } }
.page-h .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.page-h .seg::-webkit-scrollbar { display: none; }
.page-h > .row { min-width: 0; max-width: 100%; }
.card-h.wrap { flex-wrap: wrap; gap: .5rem; }
.pin-in { height: 60px; text-align: center; font-size: 1.8rem; letter-spacing: .5em; background: #232326; border-color: #333; color: #fff; } .pin-in::placeholder { letter-spacing: .3em; } #pinf input::placeholder { letter-spacing: normal; font-size: .95rem; }
