/* SISTEMA MANOLITO - Dark premium v4 FINAL */
:root {
    --bg-0: #0b0d10; --bg-1: #12161b; --bg-2: #181d24; --bg-3: #1f2630;
    --line: #2a3340; --line-2: #3a4658;
    --fg: #e9eef5; --fg-dim: #9aa5b4; --fg-mute: #6b7687;
    --accent: #f5a623; --accent-2: #ffc564; --accent-on: #1a1305;
    --ok: #3ecf8e; --warn: #f5a623; --err: #ef5b5b;
    --radius: 10px; --radius-sm: 6px;
    --shadow: 0 8px 28px rgba(0,0,0,0.45); --shadow-sm: 0 2px 8px rgba(0,0,0,0.35);
}
* { box-sizing: border-box; }
html, body { margin:0; padding:0; height:100%; background:var(--bg-0); color:var(--fg); font-family:"Inter","Segoe UI",system-ui,-apple-system,Roboto,sans-serif; font-size:14px; line-height:1.45; -webkit-font-smoothing:antialiased; }
a { color:inherit; text-decoration:none; }
h1, h2, h3 { font-weight:600; letter-spacing:0.2px; }
h1 { font-size:22px; margin:0 0 4px; }
h3 { font-size:13px; margin:0 0 10px; color:var(--fg-dim); text-transform:uppercase; letter-spacing:2px; }
.muted { color:var(--fg-mute); } .small { font-size:12px; } .txt-ok { color:var(--ok); } .txt-err { color:var(--err); } .txt-warn { color:var(--warn); } .r { text-align:right; } .wide { grid-column: span 2; } .mt-1 { margin-top:10px; } .mt-2 { margin-top:18px; }

.login-shell { min-height:100vh; display:grid; place-items:center; background: radial-gradient(circle at 20% 10%, rgba(245,166,35,0.07), transparent 40%), radial-gradient(circle at 80% 90%, rgba(62,207,142,0.06), transparent 40%), var(--bg-0); }
.login-card { width:380px; padding:32px 28px; background:var(--bg-1); border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow); }
.login-brand { text-align:center; margin-bottom:24px; }
.brand-mark { display:inline-flex; align-items:center; justify-content:center; width:46px; height:46px; border-radius:12px; background:linear-gradient(135deg,var(--accent),var(--accent-2)); color:var(--accent-on); font-weight:800; font-size:22px; box-shadow:0 6px 16px rgba(245,166,35,0.35); }
.brand-mark.big { width:64px; height:64px; font-size:30px; border-radius:16px; }
.brand-title { margin-top:14px; font-size:18px; letter-spacing:3px; }
.brand-title b { color:var(--accent); font-weight:800; }
.brand-sub { color:var(--fg-mute); font-size:12px; letter-spacing:2px; text-transform:uppercase; margin-top:4px; }
.login-form { display:flex; flex-direction:column; gap:8px; margin-top:20px; }
.login-form .lbl { font-size:11px; color:var(--fg-dim); letter-spacing:2px; margin-top:8px; }
.login-foot { text-align:center; color:var(--fg-mute); font-size:11px; margin-top:20px; letter-spacing:2px; }

.suc-pick-btn { display:flex; flex-direction:column; align-items:flex-start; gap:2px; width:100%; padding:14px 16px; margin-bottom:8px; background:var(--bg-2); border:1px solid var(--line-2); border-radius:var(--radius-sm); color:var(--fg); cursor:pointer; transition:all .12s ease; text-align:left; }
.suc-pick-btn:hover { background:var(--bg-3); border-color:var(--accent); transform:translateY(-1px); }
.suc-pick-cod { font-size:11px; color:var(--accent); letter-spacing:2px; font-weight:700; }
.suc-pick-name { font-size:16px; font-weight:600; }
.suc-pick-addr { font-size:11px; color:var(--fg-mute); }

.app-shell { display:grid; grid-template-columns:240px 1fr; min-height:100vh; }
.app-side { background:var(--bg-1); border-right:1px solid var(--line); padding:18px 14px; display:flex; flex-direction:column; gap:18px; }
.brand { display:flex; align-items:center; gap:12px; padding:4px 4px 16px; border-bottom:1px solid var(--line); }
.brand-name { font-size:12px; color:var(--fg-dim); letter-spacing:3px; line-height:1.15; }
.brand-name b { color:var(--fg); font-weight:700; letter-spacing:4px; }
.nav { display:flex; flex-direction:column; gap:2px; }
.nav-link { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:var(--radius-sm); color:var(--fg-dim); font-weight:500; letter-spacing:1px; font-size:13px; transition:all .12s ease; }
.nav-link:hover { background:var(--bg-2); color:var(--fg); }
.nav-link.active { background:linear-gradient(90deg,rgba(245,166,35,0.14),transparent); color:var(--accent); border-left:2px solid var(--accent); padding-left:10px; }
.nav-link .ico { width:18px; text-align:center; opacity:.8; }
.nav-link-hot { background:linear-gradient(135deg,var(--accent),var(--accent-2)) !important; color:var(--accent-on) !important; font-weight:700; }
.nav-link-hot:hover { filter:brightness(1.06); }
.nav-link-hot.active { border-left:none !important; padding-left:12px !important; }
.app-main { display:flex; flex-direction:column; min-width:0; }
.app-top { display:flex; align-items:center; gap:14px; padding:10px 20px; background:var(--bg-1); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:10; }
.top-group { display:flex; align-items:center; gap:8px; font-size:13px; }
.top-val { color:var(--fg); font-weight:600; }
.top-spacer { flex:1; }
.top-logout { margin-left:6px; }
.pill { display:inline-block; padding:2px 8px; border-radius:4px; font-size:10px; letter-spacing:2px; font-weight:700; background:var(--bg-3); color:var(--fg-dim); border:1px solid var(--line-2); }
.pill-muted { color:var(--fg-mute); }
.app-content { padding:26px 28px; max-width:1700px; width:100%; }
.page-head { margin-bottom:18px; }
.page-head p { margin:0; }
.row-between { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.row-gap { display:flex; align-items:center; gap:8px; }

.hero-btn { display:flex; align-items:center; gap:20px; padding:22px 28px; margin-bottom:22px; background:linear-gradient(135deg,var(--accent),var(--accent-2)); color:var(--accent-on); border-radius:var(--radius); font-weight:700; box-shadow:0 10px 30px rgba(245,166,35,0.25); transition:transform .12s ease, box-shadow .12s ease; }
.hero-btn:hover { transform:translateY(-2px); box-shadow:0 14px 36px rgba(245,166,35,0.35); }
.hero-btn-ico { font-size:36px; }
.hero-btn-text { flex:1; }
.hero-btn-title { font-size:24px; letter-spacing:4px; }
.hero-btn-sub { font-size:13px; opacity:.8; margin-top:2px; letter-spacing:1px; }
.hero-btn-arrow { font-size:28px; }

.kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:18px; }
.kpi { background:var(--bg-1); border:1px solid var(--line); border-radius:var(--radius); padding:18px; box-shadow:var(--shadow-sm); }
.kpi-lbl { color:var(--fg-mute); font-size:11px; letter-spacing:2px; text-transform:uppercase; }
.kpi-val { color:var(--fg); font-size:26px; font-weight:700; margin-top:6px; }
.kpi-sub { color:var(--fg-dim); font-size:12px; margin-top:4px; }

/* TANDA 32: KPIs clickeables */
.kpi-link { display:block; text-decoration:none; color:inherit; position:relative; transition:all .18s ease; cursor:pointer; }
.kpi-link:hover { transform:translateY(-3px); border-color:var(--accent); box-shadow:0 8px 22px rgba(0,0,0,0.35), 0 0 0 1px var(--accent); }
.kpi-link .kpi-arrow { position:absolute; top:16px; right:18px; font-size:18px; color:var(--fg-mute); opacity:0; transform:translateX(-4px); transition:all .2s ease; font-weight:900; }
.kpi-link:hover .kpi-arrow { opacity:1; transform:translateX(0); color:var(--accent); }

.cards-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.module-card { display:flex; flex-direction:column; gap:6px; background:var(--bg-1); border:1px solid var(--line); border-radius:var(--radius); padding:18px; transition:transform .12s ease, border-color .12s ease; position:relative; overflow:hidden; }
.module-card::before { content:""; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg,var(--accent),transparent); opacity:0; transition:opacity .15s ease; }
.module-card:hover { transform:translateY(-2px); border-color:var(--line-2); }
.module-card:hover::before { opacity:1; }
.mc-ico { font-size:24px; color:var(--accent); }
.mc-title { font-size:15px; font-weight:700; letter-spacing:2px; }
.mc-sub { color:var(--fg-mute); font-size:11px; }

.card { background:var(--bg-1); border:1px solid var(--line); border-radius:var(--radius); padding:18px; margin-bottom:18px; }
.card-strong { background:var(--bg-2); border:1px solid var(--line-2); border-radius:var(--radius); padding:18px; margin-bottom:18px; }

.form-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.fld { display:flex; flex-direction:column; gap:4px; min-width:0; }
.fld label { font-size:11px; color:var(--fg-dim); letter-spacing:2px; text-transform:uppercase; }
.inp { background:var(--bg-0); border:1px solid var(--line-2); color:var(--fg); padding:9px 11px; border-radius:var(--radius-sm); font-size:14px; outline:none; width:100%; transition:border-color .12s ease, box-shadow .12s ease; }
.inp:focus { border-color:var(--accent); box-shadow:0 0 0 2px rgba(245,166,35,0.2); }
.inp:disabled { opacity:.55; }
.inp-sm { padding:6px 8px; font-size:13px; }
.inp-xs { padding:4px 6px; font-size:12px; width:80px; }
.inp-pos { font-size:16px; padding:11px 13px; }
.full { width:100%; }
.chk { display:inline-flex; align-items:center; gap:6px; color:var(--fg-dim); font-size:13px; cursor:pointer; }
.form-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:16px; }

.btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:8px 14px; border-radius:var(--radius-sm); border:1px solid var(--line-2); background:var(--bg-2); color:var(--fg); font-size:13px; font-weight:600; letter-spacing:1px; cursor:pointer; transition:all .12s ease; text-decoration:none; }
.btn:hover { background:var(--bg-3); border-color:var(--line-2); }
.btn:disabled { opacity:.5; cursor:not-allowed; }
.btn-primary { background:linear-gradient(135deg,var(--accent),var(--accent-2)); color:var(--accent-on); border-color:transparent; font-weight:700; }
.btn-primary:hover { filter:brightness(1.06); }
.btn-secondary { background:var(--bg-2); }
.btn-ghost { background:transparent; border-color:transparent; color:var(--fg-dim); }
.btn-ghost:hover { color:var(--fg); background:var(--bg-2); }
.btn-danger { background:transparent; border-color:var(--err); color:var(--err); }
.btn-danger:hover { background:rgba(239,91,91,0.12); }
.btn-lg { padding:14px 22px; font-size:14px; letter-spacing:3px; }
.btn-xs { padding:4px 9px; font-size:11px; letter-spacing:1px; }
.btn-sm { padding:6px 11px; font-size:12px; }

.table { width:100%; border-collapse:collapse; margin-top:10px; background:var(--bg-1); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.table thead th { background:var(--bg-2); color:var(--fg-dim); font-size:11px; letter-spacing:2px; text-transform:uppercase; padding:10px 12px; text-align:left; border-bottom:1px solid var(--line); }
.table thead th.r { text-align:right; }
.table tbody td { padding:9px 12px; border-top:1px solid var(--line); font-size:13.5px; }
.table tbody tr:hover { background:var(--bg-2); }
.table tbody td.r { text-align:right; font-variant-numeric:tabular-nums; }
.table tfoot td { padding:10px 12px; border-top:1px solid var(--line-2); background:var(--bg-2); }
.table-sm thead th, .table-sm tbody td { padding:6px 10px; font-size:12.5px; }
.row-critico { background:rgba(245,166,35,0.08); }
.row-critico:hover { background:rgba(245,166,35,0.14) !important; }
.row-anulada { opacity:.5; text-decoration:line-through; }
.row-error { background:rgba(245,166,35,0.07); }
.row-error td:first-child { border-left:3px solid #f5a623; }
.chip-err { display:inline-block; margin-left:6px; color:#f5a623; font-weight:900; font-size:12px; }
.tot-row td { color:var(--fg); font-weight:700; }

.toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:4px 0 14px; }
.toolbar label { display:flex; align-items:center; gap:6px; color:var(--fg-dim); font-size:12px; }

.alert { padding:10px 12px; border-radius:var(--radius-sm); margin-top:10px; font-size:13px; border:1px solid; }
.alert-err { background:rgba(239,91,91,0.08); color:var(--err); border-color:rgba(239,91,91,0.35); }
.alert-ok { background:rgba(62,207,142,0.08); color:var(--ok); border-color:rgba(62,207,142,0.35); }
.alert-warn { background:rgba(245,166,35,0.08); color:#f5a623; border-color:rgba(245,166,35,0.4); }
.alert-info { padding:8px 10px; border-radius:var(--radius-sm); font-size:12px; background:rgba(62,207,142,0.08); color:var(--ok); border:1px solid rgba(62,207,142,0.3); }

/* TANDA 36 — chip retornable + devolución */
.btn-devo { background:rgba(245,166,35,0.15) !important; color:#f5a623 !important; border:1px solid #f5a623 !important; font-weight:700 !important; margin-left:8px; padding:3px 9px !important; font-size:11px !important; text-decoration:none; border-radius:6px; }
.btn-devo:hover { background:#f5a623 !important; color:#1a1e24 !important; }
.chip-retornable { display:inline-block; background:rgba(243,156,18,0.18); color:#f39c12; padding:1px 6px; border-radius:4px; font-size:10px; font-weight:900; margin-left:6px; vertical-align:middle; letter-spacing:0.5px; }

.detail-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; background:var(--bg-1); border:1px solid var(--line); border-radius:var(--radius); padding:14px; margin-bottom:14px; align-items:center; }
.detail-grid .wide { grid-column:span 3; }
.lbl-mini { color:var(--fg-mute); font-size:10px; letter-spacing:2px; text-transform:uppercase; margin-right:6px; }
.totales-detail { background:var(--bg-1); border:1px solid var(--line); border-radius:var(--radius); padding:16px; margin-top:14px; max-width:480px; margin-left:auto; }

.modal-back { position:fixed; inset:0; background:rgba(0,0,0,0.65); z-index:100; backdrop-filter:blur(2px); }
.modal { position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); width:min(640px,92vw); background:var(--bg-1); border:1px solid var(--line-2); border-radius:var(--radius); padding:22px; z-index:101; box-shadow:var(--shadow); }
.modal-wide { width:min(1100px,95vw); max-height:88vh; overflow:hidden; display:flex; flex-direction:column; }
.modal-table-wrapper { flex:1; overflow-y:auto; max-height:58vh; border:1px solid var(--line); border-radius:var(--radius-sm); }

/* POS */
.pos-shell { display:flex; flex-direction:column; gap:14px; }
.pos-head { display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-radius:var(--radius); background:linear-gradient(135deg,var(--bg-2),var(--bg-1)); border:1px solid var(--line-2); }
.pos-title { font-size:22px; font-weight:700; letter-spacing:3px; color:var(--accent); }
.pos-sub { font-size:12px; color:var(--fg-dim); margin-top:2px; letter-spacing:1px; }
.pos-vid { text-align:right; }
.pos-vid .vid { font-size:22px; font-weight:700; color:var(--accent); letter-spacing:2px; }

.cat-tabs { display:flex; flex-wrap:wrap; gap:6px; align-items:center; padding:10px 12px; background:var(--bg-1); border:1px solid var(--line); border-radius:var(--radius); }
.cat-tab { padding:8px 14px; background:var(--bg-2); border:1px solid var(--line-2); color:var(--fg-dim); border-radius:var(--radius-sm); cursor:pointer; font-size:12px; font-weight:700; letter-spacing:1px; transition:all .12s ease; }
.cat-tab:hover { background:var(--bg-3); color:var(--fg); }
.cat-tab.active { background:linear-gradient(135deg,var(--accent),var(--accent-2)); color:var(--accent-on); border-color:transparent; box-shadow:0 2px 8px rgba(245,166,35,0.25); }
.cat-tab-hot { background:rgba(245,166,35,0.18); color:var(--accent); border-color:rgba(245,166,35,0.4); }
.cat-tabs-spacer { flex:1; }

.pos-grid { display:grid; grid-template-columns:420px 1fr 400px; gap:16px; align-items:start; }
.pos-col { padding:16px; background:var(--bg-1); border:1px solid var(--line); border-radius:var(--radius); display:flex; flex-direction:column; gap:12px; }
.pos-col-wide { background:var(--bg-1); border:1px solid var(--line); border-radius:var(--radius); padding:16px; min-height:460px; }

.pos-resultados-compact { margin-top:6px; max-height:360px; overflow-y:auto; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--bg-0); }
.pos-empty-mini { padding:24px 12px; text-align:center; color:var(--fg-mute); font-size:12px; }

.table-compact { width:100%; border-collapse:collapse; font-size:12.5px; }
.table-compact thead th { background:var(--bg-2); color:var(--fg-mute); font-size:10px; letter-spacing:1.5px; text-transform:uppercase; padding:6px 8px; text-align:left; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:1; }
.table-compact thead th.r { text-align:right; }
.table-compact tbody td { padding:6px 8px; border-top:1px solid var(--line); }
.table-compact tbody td.r { text-align:right; font-variant-numeric:tabular-nums; }
.prod-row-compact { cursor:pointer; transition:background .08s ease; }
.prod-row-compact:hover { background:rgba(245,166,35,0.1); }
.td-cod { color:var(--fg-mute); font-size:11px; font-family:ui-monospace,"Cascadia Mono","JetBrains Mono",monospace; }
.td-name { font-weight:600; }
.td-add { width:22px; height:22px; border-radius:4px; background:var(--accent); color:var(--accent-on); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px; }

.pos-empty { text-align:center; padding:60px 20px; color:var(--fg-mute); border:2px dashed var(--line); border-radius:var(--radius); margin-top:8px; }
.pos-table tbody tr { background:var(--bg-0); }

.cli-list { margin-top:6px; max-height:180px; overflow-y:auto; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--bg-0); }
.cli-row { padding:8px 10px; border-bottom:1px solid var(--line); cursor:pointer; font-size:13px; }
.cli-row:hover { background:rgba(245,166,35,0.08); }
.cli-row:last-child { border-bottom:none; }
.cli-sel { background:var(--bg-3); border:1px solid var(--accent); border-radius:var(--radius-sm); padding:10px 12px; margin-top:6px; display:flex; flex-direction:column; gap:4px; }
.cli-badge { display:inline-block; padding:2px 7px; border-radius:4px; background:rgba(245,166,35,0.15); color:var(--accent); font-size:10px; font-weight:700; letter-spacing:2px; border:1px solid rgba(245,166,35,0.4); margin-right:6px; }

.totales { background:var(--bg-0); border-radius:var(--radius-sm); padding:12px; border:1px solid var(--line); }
.tot-line { display:flex; justify-content:space-between; padding:4px 0; font-size:13px; }
.tot-grand { display:flex; justify-content:space-between; padding:10px 0 4px; margin-top:6px; border-top:1px solid var(--line-2); font-size:22px; font-weight:700; color:var(--accent); letter-spacing:1px; }

#blazor-error-ui { background:#ffc564; color:#1a1305; bottom:0; left:0; right:0; box-shadow:0 -1px 2px rgba(0,0,0,.2); display:none; padding:0.6rem 1rem; position:fixed; text-align:center; z-index:1000; }
#blazor-error-ui .dismiss { cursor:pointer; position:absolute; right:0.75rem; top:0.5rem; }

/* Busqueda fluida v3.1 */
.search-spinner { display:inline-block; width:10px; height:10px; border:2px solid var(--accent); border-top-color:transparent; border-radius:50%; animation:spin 0.7s linear infinite; margin-left:6px; vertical-align:middle; }
@keyframes spin { to { transform:rotate(360deg); } }
mark.hl { background:rgba(245,166,35,0.35); color:var(--accent); padding:0 2px; border-radius:2px; font-weight:700; }
.prod-row-compact.highlighted { background:rgba(245,166,35,0.18) !important; box-shadow:inset 3px 0 0 var(--accent); }
.pos-resultados-compact tr { transition:background 0.15s ease; }
.pos-resultados-compact tbody tr { animation:fadeInRow 0.2s ease; }
@keyframes fadeInRow { from { opacity:0; transform:translateY(-3px); } to { opacity:1; transform:translateY(0); } }

@media (max-width:1500px) { .pos-grid { grid-template-columns:360px 1fr 360px; } .cards-grid { grid-template-columns:repeat(3,1fr); } }
@media (max-width:1200px) { .kpi-row { grid-template-columns:repeat(2,1fr); } .cards-grid { grid-template-columns:repeat(2,1fr); } .pos-grid { grid-template-columns:1fr; } .detail-grid { grid-template-columns:repeat(2,1fr); } .detail-grid .wide { grid-column:span 2; } }

/* TANDA 32: MOBILE responsive completo */
@media (max-width:780px) {
    .app-shell { grid-template-columns:1fr; }
    .app-side { position:fixed; bottom:0; left:0; right:0; height:auto; max-height:50vh; overflow-y:auto; z-index:999; border-top:2px solid var(--line-2); border-right:0; background:var(--bg-0); }
    .app-side.collapsed { max-height:0; overflow:hidden; border:0; }
    .app-main { padding:12px; padding-bottom:110px; }
    .cards-grid, .kpi-row, .form-grid { grid-template-columns:1fr; }
    .page-head h1 { font-size:18px; }
    .page-head p { font-size:11.5px; }
    .toolbar { flex-wrap:wrap; gap:6px; }
    .toolbar .btn { font-size:12px; padding:6px 10px; }
    .hub-tabs { grid-template-columns:1fr 1fr !important; gap:8px !important; }
    .hub-tab { padding:12px 10px !important; }
    .ht-ico { font-size:24px !important; }
    .ht-tit { font-size:12px !important; }
    .ht-sub { font-size:10px !important; }
    .kpi { padding:14px 12px; }
    .kpi-val { font-size:20px; }
    table { font-size:12px; }
    table th, table td { padding:6px 8px; }
    .modal { max-width:94vw; padding:18px; }
    .modal-wide { max-width:94vw; }
    .nav-user { padding:8px 10px; }
    .nav-link { padding:8px 14px; font-size:13px; }
    .nl-ico { font-size:14px; }
    .pos-grid .pos-search, .pos-grid .pos-right { padding:10px; }
    .manolin-floating { bottom:10px !important; right:10px !important; transform:scale(0.85); }
}

@media (max-width:480px) {
    .hub-tabs { grid-template-columns:1fr !important; }
    .kpi-row { grid-template-columns:1fr; }
    .page-head { flex-direction:column; align-items:flex-start; gap:8px; }
    .row-between { flex-direction:column; align-items:flex-start !important; gap:8px; }
}

/* === TAREAS === */
.chip-cat { display:inline-block; padding:2px 10px; border-radius:4px; font-size:10px; font-weight:700; letter-spacing:1.5px; border:1px solid var(--line-2); background:var(--bg-3); color:var(--fg-dim); }
.chip-cat-sm { display:inline-block; padding:1px 6px; border-radius:3px; font-size:9px; font-weight:700; letter-spacing:1px; background:var(--bg-3); color:var(--fg-dim); border:1px solid var(--line-2); margin-right:4px; }
.chip-prio { display:inline-block; padding:2px 8px; border-radius:4px; font-size:10px; font-weight:700; letter-spacing:1.5px; border:1px solid; margin-right:4px; }
.chip-prio.prio-BAJA  { color:var(--ok);    border-color:var(--ok);    background:rgba(62,207,142,0.1); }
.chip-prio.prio-MEDIA { color:var(--accent); border-color:var(--accent); background:rgba(245,166,35,0.1); }
.chip-prio.prio-ALTA  { color:var(--err);   border-color:var(--err);   background:rgba(239,91,91,0.12); }

.tareas-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:14px; }
.tarea-card { background:var(--bg-1); border:1px solid var(--line); border-radius:var(--radius); padding:14px; display:flex; flex-direction:column; gap:8px; }
.tarea-card.done { background:var(--bg-0); opacity:0.88; }
.tarea-head { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.tarea-hora { margin-left:auto; color:var(--accent); font-weight:700; font-size:13px; letter-spacing:1px; }
.tarea-titulo { font-size:15px; font-weight:700; color:var(--fg); }
.tarea-desc { line-height:1.4; }
.tarea-checklist { margin:6px 0 0; padding-left:18px; color:var(--fg-dim); font-size:12px; }
.tarea-checklist li { padding:1px 0; }
.tarea-done-info { margin-top:6px; display:flex; flex-direction:column; gap:4px; }

/* Estrellas */
.stars-row { display:inline-flex; align-items:center; gap:3px; font-size:16px; }
.stars-row.small { font-size:13px; }
.stars-input { display:inline-flex; align-items:center; gap:4px; }
.star-on  { color:var(--accent); font-weight:700; }
.star-off { color:var(--fg-mute); }

/* Nav pulse + badge */
@keyframes pulseRed {
    0%, 100% { background:rgba(239,91,91,0.22); color:var(--err); }
    50%      { background:rgba(239,91,91,0.5);  color:#fff; }
}
.nav-link-pulse { animation:pulseRed 1.2s ease-in-out infinite; border-radius:var(--radius-sm); font-weight:700; }
.nav-badge { display:inline-block; margin-left:6px; padding:1px 7px; border-radius:10px; background:var(--err); color:#fff; font-size:11px; font-weight:700; }

/* Banner revisar */
.banner-revisar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0 28px; padding:12px 16px; background:rgba(239,91,91,0.12); border:1px solid var(--err); border-radius:var(--radius-sm); color:var(--err); animation:pulseBannerBg 1.8s ease-in-out infinite; }
@keyframes pulseBannerBg {
    0%, 100% { background:rgba(239,91,91,0.12); }
    50%      { background:rgba(239,91,91,0.28); }
}

/* Widget flotante rendimiento */
.widget-rendimiento { position:fixed; bottom:20px; right:20px; width:260px; background:var(--bg-2); border:1px solid var(--line-2); border-radius:var(--radius); box-shadow:0 10px 30px rgba(0,0,0,0.55); padding:14px; z-index:50; display:flex; flex-direction:column; gap:8px; }
.widget-rendimiento.widget-min { width:auto; padding:0; background:transparent; border:none; box-shadow:none; }
.widget-head { display:flex; justify-content:space-between; align-items:center; font-size:11px; letter-spacing:2px; color:var(--fg-dim); }
.widget-pct { font-size:32px; font-weight:700; color:var(--accent); letter-spacing:1px; }
.widget-bar-wrap { width:100%; height:10px; background:var(--bg-0); border-radius:5px; overflow:hidden; border:1px solid var(--line); }
.widget-bar { height:100%; transition:width .3s ease, background .3s ease; }
.widget-bar.verde    { background:linear-gradient(90deg, #2ea874, #3ecf8e); }
.widget-bar.amarillo { background:linear-gradient(90deg, #d48a0c, #f5a623); }
.widget-bar.rojo     { background:linear-gradient(90deg, #c33b3b, #ef5b5b); }
.widget-stats { font-size:12px; color:var(--fg-dim); display:flex; flex-direction:column; gap:2px; }
.widget-min-btn { width:60px; height:60px; border-radius:50%; border:none; color:#fff; font-weight:700; font-size:14px; cursor:pointer; box-shadow:0 6px 20px rgba(0,0,0,0.55); }

/* Ranking */
.rank-gold   { background:rgba(245,215,80,0.12); }
.rank-silver { background:rgba(180,190,210,0.10); }
.rank-bronze { background:rgba(205,127,50,0.10); }

/* ============= SPLASH BIENVENIDA ============= */
.splash-bienvenida {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, #1a1d24 0%, #0d0f13 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    pointer-events: none;
}
.splash-in { animation: splashIn 0.7s ease-out both; }
.splash-out { animation: splashOut 0.6s ease-in forwards; }
.splash-content {
    text-align: center;
    transform: translateY(-20px);
    animation: contentRise 1.4s cubic-bezier(.25,.85,.4,1) both;
}
.splash-saludo {
    font-size: 28px;
    color: #f5a623;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeUp 0.8s 0.1s ease-out forwards;
}
.splash-nombre {
    font-size: 64px;
    color: #fff;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.9s 0.35s ease-out forwards;
}
.splash-frase {
    font-size: 18px;
    color: #cfd2d6;
    font-weight: 400;
    margin-bottom: 18px;
    opacity: 0;
    animation: fadeUp 0.9s 0.6s ease-out forwards;
}
.splash-fecha {
    font-size: 13px;
    color: #6b7280;
    text-transform: capitalize;
    letter-spacing: 1px;
    opacity: 0;
    animation: fadeUp 0.9s 0.85s ease-out forwards;
}
@keyframes splashIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes splashOut { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
@keyframes contentRise { from { transform: translateY(20px); } to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.menu-pre { opacity: 0; transform: translateY(8px); }
.menu-shell { transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.menu-fade-in { opacity: 1; transform: translateY(0); }

/* ============= CIERRE DE TURNO ============= */
.banner-cierre {
    background: linear-gradient(90deg, #f5a623 0%, #d97706 100%);
    color: #1a1d24;
    padding: 14px 20px;
    margin: 0 0 16px 0;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(245,166,35,0.3);
}
.banner-cierre-estricto {
    background: linear-gradient(90deg, #dc2626 0%, #991b1b 100%);
    color: #fff;
    animation: pulseRojo 1.5s ease-in-out infinite;
}
@keyframes pulseRojo {
    0%, 100% { box-shadow: 0 2px 12px rgba(220,38,38,0.4); }
    50%      { box-shadow: 0 2px 24px rgba(220,38,38,0.9); }
}

.cierre-esperado {
    background: #1a1d24;
    border: 1px solid #f5a623;
    border-radius: 8px;
    padding: 24px;
    margin-top: 24px;
    text-align: center;
}
.cierre-monto-grande {
    font-size: 48px;
    color: #f5a623;
    font-weight: 700;
    margin: 8px 0 4px 0;
}

.splash-pin-container {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.splash-pin-card {
    background: #1a1d24;
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    border: 1px solid #2a2d33;
}
.splash-pin-titulo {
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 14px;
    margin-bottom: 16px;
}
.splash-pin-numero {
    font-size: 84px;
    color: #f5a623;
    font-weight: 700;
    letter-spacing: 8px;
    line-height: 1;
    margin: 16px 0 32px 0;
    font-family: 'Courier New', monospace;
}
.splash-pin-info {
    color: #cfd2d6;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
}
.splash-pin-url {
    background: #0d0f13;
    padding: 10px 14px;
    border-radius: 6px;
    color: #6b8cff;
    font-size: 13px;
    margin-bottom: 32px;
    font-family: 'Courier New', monospace;
}
.splash-pin-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tutorial-list { padding-left: 24px; line-height: 1.8; color: #cfd2d6; }
.tutorial-list li { margin-bottom: 8px; }

.vale-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr auto auto;
    gap: 8px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #2a2d33;
}
.inp-num { text-align: right; }
.inp-err { border-color: #dc2626 !important; color: #f87171; }
.inp-warn { border-color: #f5a623 !important; color: #fbbf24; }

.cierre-listo .cierre-estado {
    font-size: 22px;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.estado-ok { background: rgba(62,207,142,0.15); color: #3ecf8e; border: 1px solid #3ecf8e; }
.estado-warn { background: rgba(245,166,35,0.15); color: #f5a623; border: 1px solid #f5a623; }
.estado-info { background: rgba(107,140,255,0.15); color: #6b8cff; border: 1px solid #6b8cff; }

.cierre-reporte {
    background: #0d0f13;
    color: #cfd2d6;
    padding: 20px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    white-space: pre-wrap;
    line-height: 1.5;
    margin-top: 12px;
}

.chip-estado-pendiente { background: rgba(107,140,255,0.15); color: #6b8cff; padding: 4px 10px; border-radius: 4px; font-size: 12px; }
.chip-estado-declarado { background: rgba(107,140,255,0.15); color: #6b8cff; padding: 4px 10px; border-radius: 4px; font-size: 12px; }
.chip-estado-ok        { background: rgba(62,207,142,0.15); color: #3ecf8e; padding: 4px 10px; border-radius: 4px; font-size: 12px; }
.chip-estado-con_diferencia { background: rgba(245,166,35,0.15); color: #f5a623; padding: 4px 10px; border-radius: 4px; font-size: 12px; }
.chip-estado-revisado  { background: rgba(62,207,142,0.15); color: #3ecf8e; padding: 4px 10px; border-radius: 4px; font-size: 12px; }
.row-alarma { background: rgba(220,38,38,0.10); }

.card-inner {
    background: #0d0f13;
    border: 1px solid #2a2d33;
    border-radius: 8px;
    padding: 16px;
}

/* ============= ALERTAS Y BADGES ============= */
.badge-alerta {
    background: #dc2626; color: #fff; padding: 2px 8px;
    border-radius: 10px; font-size: 11px; margin-left: 6px;
    animation: pulseBadge 1.5s ease-in-out infinite;
}
@keyframes pulseBadge {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.15); }
}

.alerta-urgente { border-left: 4px solid #dc2626; }

[class^="chip-alerta-"] {
    padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 600;
}
.chip-alerta-no_justifica_efectivo,
.chip-alerta-no_justifica_mp { background: rgba(220,38,38,0.20); color: #f87171; }
.chip-alerta-diferencia_efectivo,
.chip-alerta-diferencia_mp,
.chip-alerta-diferencia_pct_facturacion { background: rgba(245,166,35,0.20); color: #fbbf24; }
.chip-alerta-checklist_negativo { background: rgba(255,107,163,0.20); color: #ff6ba3; }
.chip-alerta-retiro_excepcional { background: rgba(107,140,255,0.20); color: #6b8cff; }
.chip-alerta-incidente_reportado { background: rgba(245,166,35,0.20); color: #f5a623; }

/* ============= CHECKLIST RECEPCION ============= */
.checklist-recepcion .check-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; margin-bottom: 8px;
    background: #0d0f13; border: 1px solid #2a2d33; border-radius: 8px;
}
.checklist-recepcion .check-lbl { color: #cfd2d6; flex: 1; }
.checklist-recepcion .check-opts { display: flex; gap: 16px; }
.checklist-recepcion .check-opts label {
    color: #cfd2d6; cursor: pointer; padding: 4px 12px;
    border: 1px solid #2a2d33; border-radius: 6px;
}
.checklist-recepcion .check-opts label:has(input:checked) {
    background: rgba(62,207,142,0.15); border-color: #3ecf8e; color: #3ecf8e;
}
.checklist-detalle { list-style: none; padding: 0; }
.checklist-detalle li { padding: 4px 0; color: #cfd2d6; }

/* ============= CARTELITO WHATSAPP ============= */
.cartelito-wa {
    background: rgba(245,166,35,0.10); border: 1px solid #f5a623;
    border-radius: 8px; padding: 16px; margin: 16px 0;
}

/* ============= SPLASH DESPEDIDA ============= */
.splash-despedida {
    position: fixed; inset: 0; z-index: 10000;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; color: #fff; padding: 24px;
    animation: fadeIn 0.5s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.nivel-estelar   { background: radial-gradient(circle, #1a4d2e, #0d0f13); }
.nivel-excelente { background: radial-gradient(circle, #1e3a8a, #0d0f13); }
.nivel-bueno     { background: radial-gradient(circle, #1a1d24, #0d0f13); }
.nivel-aceptable { background: radial-gradient(circle, #422006, #0d0f13); }
.nivel-critico   { background: radial-gradient(circle, #450a0a, #0d0f13); }
.splash-emoji { font-size: 96px; margin-bottom: 16px; }
.splash-msg-grande {
    font-size: 36px; font-weight: 700; letter-spacing: 2px; margin-bottom: 12px;
}
.splash-msg-sub {
    font-size: 20px; color: rgba(255,255,255,0.85); margin-bottom: 24px;
}
.splash-stats {
    color: rgba(255,255,255,0.7); font-size: 14px; margin-bottom: 32px;
}
.splash-cuenta {
    color: rgba(255,255,255,0.6); font-size: 13px;
}
.splash-cuenta a { color: #f5a623; text-decoration: underline; margin-left: 8px; }

/* ============= LOGIN PREMIUM ============= */
.login-stage {
    position: fixed; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: #050608;
    overflow: hidden;
}
.login-bg-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(245,166,35,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245,166,35,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.login-bg-glow {
    position: absolute; width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(245,166,35,0.10), transparent 60%);
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    filter: blur(60px);
    animation: glowPulse 8s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.1); }
}

.login-card-premium {
    position: relative;
    width: 100%; max-width: 460px;
    background: linear-gradient(145deg, #14171f 0%, #0d0f13 100%);
    border: 1px solid rgba(245,166,35,0.15);
    border-radius: 16px;
    padding: 48px 44px 32px 44px;
    box-shadow:
        0 30px 80px rgba(0,0,0,0.6),
        0 0 0 1px rgba(255,255,255,0.02) inset,
        0 1px 0 rgba(255,255,255,0.05) inset;
    animation: cardEntrance 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes cardEntrance {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.login-accent-bar {
    position: absolute; left: 0; top: 24px; bottom: 24px; width: 3px;
    background: linear-gradient(180deg, transparent, #f5a623, transparent);
    border-radius: 0 3px 3px 0;
}

.login-brand-block {
    text-align: center; margin-bottom: 36px;
}
.brand-mark-premium {
    width: 64px; height: 64px; margin: 0 auto 16px auto;
    background: linear-gradient(135deg, #f5a623 0%, #d97706 100%);
    color: #0d0f13; font-size: 36px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    box-shadow:
        0 8px 24px rgba(245,166,35,0.35),
        0 0 0 4px rgba(245,166,35,0.08);
    animation: markIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
}
@keyframes markIn {
    from { opacity: 0; transform: scale(0.6) rotate(-10deg); }
    to   { opacity: 1; transform: scale(1) rotate(0); }
}
.brand-titulo {
    font-size: 28px; font-weight: 700; letter-spacing: 8px;
    color: #fff; margin-bottom: 6px;
}
.brand-subtitulo {
    font-size: 10px; letter-spacing: 3px; color: #6b7280;
    font-weight: 600;
}

.login-form-premium { display: flex; flex-direction: column; gap: 20px; }

.campo-grupo { display: flex; flex-direction: column; gap: 8px; }
.campo-grupo.campo-sucursal { animation: slideDown 0.35s ease-out; }
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); max-height: 0; }
    to   { opacity: 1; transform: translateY(0); max-height: 200px; }
}

.lbl-premium {
    font-size: 11px; font-weight: 600; letter-spacing: 2px;
    color: #6b7280; text-transform: uppercase;
}
.inp-wrapper { position: relative; }
.inp-premium {
    width: 100%; padding: 14px 16px;
    background: #0a0c10;
    border: 1px solid #2a2d33;
    color: #fff;
    border-radius: 8px;
    font-size: 15px; letter-spacing: 0.5px;
    transition: all 0.2s ease;
    outline: none;
}
.inp-premium:focus {
    border-color: #f5a623;
    background: #0d1015;
    box-shadow: 0 0 0 3px rgba(245,166,35,0.15);
}
.inp-premium::placeholder { color: #4a4d52; }
select.inp-premium {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23f5a623' d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    padding-right: 40px; cursor: pointer;
}

.btn-eye {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: transparent; border: none; color: #6b7280;
    font-size: 16px; cursor: pointer; padding: 4px;
}
.btn-eye:hover { color: #f5a623; }

.alert-login-err {
    background: rgba(220,38,38,0.10);
    border: 1px solid rgba(220,38,38,0.4);
    color: #f87171;
    padding: 11px 14px; border-radius: 8px;
    font-size: 13px;
    animation: shake 0.4s ease;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.btn-login-premium {
    background: linear-gradient(135deg, #f5a623 0%, #d97706 100%);
    color: #0d0f13;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 14px; font-weight: 700; letter-spacing: 3px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    margin-top: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px rgba(245,166,35,0.25);
}
.btn-login-premium:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(245,166,35,0.4);
}
.btn-login-premium:active { transform: translateY(0); }
.btn-login-premium .btn-arrow { font-size: 18px; transition: transform 0.2s; }
.btn-login-premium:hover .btn-arrow { transform: translateX(4px); }

.login-footer {
    margin-top: 32px; padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex; justify-content: space-between; align-items: center;
}
.login-status-pill {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; color: #6b7280;
    letter-spacing: 1px;
}
.dot-online {
    width: 6px; height: 6px; background: #3ecf8e; border-radius: 50%;
    box-shadow: 0 0 8px #3ecf8e;
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.login-version {
    font-size: 10px; color: #4a4d52; letter-spacing: 1px;
}

/* Override estilos viejos del login para no interferir */
.login-card { display: none !important; }

/* ============= MASCOTA TORO ============= */
.toro-mascota {
    position: relative;
    width: 140px; height: 140px; margin: 0 auto 16px auto;
    display: flex; align-items: center; justify-content: center;
}
.toro-svg {
    width: 100%; height: 100%;
    filter: drop-shadow(0 8px 16px rgba(201,24,24,0.4));
    animation: toroIdle 4s ease-in-out infinite, toroEntrada 0.9s cubic-bezier(0.2,0.8,0.2,1);
    transform-origin: 50% 60%;
}
@keyframes toroEntrada {
    from { opacity: 0; transform: scale(0.3) rotate(-15deg); }
    to   { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes toroIdle {
    0%, 100% { transform: scale(1) translateY(0); }
    50%      { transform: scale(1.02) translateY(-2px); }
}

.toro-aura {
    position: absolute; inset: -20px;
    background: radial-gradient(circle, rgba(201,24,24,0.35), transparent 65%);
    border-radius: 50%;
    animation: auraPulso 3s ease-in-out infinite;
    z-index: -1;
}
@keyframes auraPulso {
    0%, 100% { opacity: 0.5; transform: scale(0.95); }
    50%      { opacity: 1;   transform: scale(1.1); }
}

/* === Cuernos: leve sway === */
.toro-cuernos {
    transform-origin: 100px 75px;
    animation: cuernoSway 6s ease-in-out infinite;
}
@keyframes cuernoSway {
    0%, 100% { transform: rotate(0deg); }
    50%      { transform: rotate(1deg); }
}

/* === Ojos: parpadeo === */
.ojo-parpado {
    transform-origin: center;
    transform: scaleY(0);
    animation: parpadeo 5s ease-in-out infinite;
}
@keyframes parpadeo {
    0%, 92%, 100% { transform: scaleY(0); }
    94%, 98%      { transform: scaleY(1); }
}

/* Cejas (ocultas por default) */
.toro-cejas { opacity: 0; transition: opacity 0.3s; }

/* === Narices: humo === */
.humo {
    position: absolute;
    width: 14px; height: 18px;
    background: radial-gradient(circle, rgba(255,255,255,0.7), transparent 70%);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    bottom: 30px;
}
.humo-izq { left: 56px; }
.humo-der { left: 70px; }

/* === Chispas (hidden by default) === */
.chispas {
    position: absolute; inset: 0;
    pointer-events: none;
    opacity: 0;
}
.chispas span {
    position: absolute; width: 6px; height: 6px;
    background: #f5a623;
    border-radius: 50%;
    box-shadow: 0 0 8px #f5a623;
    top: 50%; left: 50%;
}

/* ===== ESTADO: WATCHING (foco en LEGAJO) ===== */
.toro-watching .ojo-pupila {
    animation: pupilaSeguir 0.4s ease-out forwards;
}
@keyframes pupilaSeguir {
    to { transform: translateY(2px) scale(1.2); }
}
.toro-watching .toro-svg {
    animation: toroIdle 4s ease-in-out infinite, lookAttention 0.5s ease-out forwards;
}
@keyframes lookAttention {
    to { transform: scale(1.05) translateY(-4px); }
}

/* ===== ESTADO: SLEEPING (foco en CLAVE - se tapa los ojos) ===== */
.toro-sleeping .ojo-parpado {
    transform: scaleY(1) !important;
    animation: none !important;
}
.toro-sleeping .ojo-pupila { opacity: 0; }
/* Pequena sonrisa picarona moviendo el hocico */
.toro-sleeping .toro-hocico {
    animation: hocicoSonrisa 0.4s ease-out forwards;
}
@keyframes hocicoSonrisa {
    to { transform: scale(1.05); }
}

/* ===== ESTADO: CHARGING (hover en INGRESAR - humo) ===== */
.toro-charging .humo {
    animation: humoSube 0.8s ease-out infinite;
}
.toro-charging .humo-der { animation-delay: 0.15s; }
@keyframes humoSube {
    0%   { opacity: 0;   transform: translateY(0) scale(0.5); }
    30%  { opacity: 0.9; }
    100% { opacity: 0;   transform: translateY(-30px) scale(1.8); }
}
.toro-charging .toro-svg {
    animation: toroIdle 4s ease-in-out infinite, agachada 0.4s ease-out forwards;
}
@keyframes agachada {
    to { transform: rotate(-3deg) translateY(2px); }
}

/* ===== ESTADO: VICTORY (login exitoso - cabezazo + chispas) ===== */
.toro-victory .toro-svg {
    animation: cabezazoSalto 0.6s cubic-bezier(0.5, -0.5, 0.5, 1.5) !important;
}
@keyframes cabezazoSalto {
    0%   { transform: scale(1) translateY(0) rotate(0); }
    30%  { transform: scale(1.1) translateY(-15px) rotate(0); }
    60%  { transform: scale(1.05) translateY(8px) rotate(0); }
    100% { transform: scale(1) translateY(0); }
}
.toro-victory .chispas {
    opacity: 1;
    animation: chispasOff 0.8s forwards;
}
.toro-victory .chispas span {
    animation: chispaVuela 0.8s ease-out forwards;
}
.toro-victory .chispas span:nth-child(1) { animation-delay: 0s;    --dx:  60px; --dy: -40px; }
.toro-victory .chispas span:nth-child(2) { animation-delay: 0.05s; --dx: -55px; --dy: -50px; }
.toro-victory .chispas span:nth-child(3) { animation-delay: 0.1s;  --dx:  70px; --dy:  20px; }
.toro-victory .chispas span:nth-child(4) { animation-delay: 0.05s; --dx: -65px; --dy:  30px; }
.toro-victory .chispas span:nth-child(5) { animation-delay: 0.15s; --dx:  20px; --dy: -65px; }
.toro-victory .chispas span:nth-child(6) { animation-delay: 0.1s;  --dx: -25px; --dy: -60px; }
@keyframes chispaVuela {
    0%   { opacity: 1; transform: translate(0,0) scale(1); }
    100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0); }
}
@keyframes chispasOff {
    99%  { opacity: 1; }
    100% { opacity: 0; }
}

/* ===== ESTADO: ANGRY (login fallido) ===== */
.toro-angry .toro-svg {
    animation: shakeFurioso 0.5s ease-in-out, toroIdle 4s ease-in-out infinite 0.5s;
    filter: drop-shadow(0 8px 16px rgba(201,24,24,0.8));
}
@keyframes shakeFurioso {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px) rotate(-2deg); }
    40% { transform: translateX(8px)  rotate(2deg); }
    60% { transform: translateX(-6px) rotate(-1deg); }
    80% { transform: translateX(6px)  rotate(1deg); }
}
.toro-angry .toro-cejas { opacity: 1; }
.toro-angry .ojo-pupila { fill: #ff0000 !important; }
.toro-angry .ojo-blanco { fill: #ffd0d0 !important; }
.toro-angry .humo {
    background: radial-gradient(circle, rgba(255,80,80,0.9), transparent 70%);
    animation: humoFurioso 0.6s ease-out infinite;
}
@keyframes humoFurioso {
    0%   { opacity: 0;   transform: translateY(0) scale(0.6); }
    25%  { opacity: 1; }
    100% { opacity: 0;   transform: translateY(-40px) scale(2.2); }
}

/* ===== EASTER EGG: WINK ===== */
.toro-wink .toro-ojo-der .ojo-parpado {
    transform: scaleY(1) !important;
    animation: none !important;
}

/* Ocultar la versión vieja .brand-mark-premium si quedó código viejo */
.brand-mark-premium { display: none !important; }

/* ============= TORITO VIDEO (override del SVG anterior) ============= */
.toro-video {
    width: 100%; height: 100%;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 8px 16px rgba(201,24,24,0.4));
    animation: toroIdle 4s ease-in-out infinite, toroEntrada 0.9s cubic-bezier(0.2,0.8,0.2,1);
    transform-origin: 50% 60%;
    position: relative;
    z-index: 1;
}

/* WATCHING: zoom in cuando hace foco en LEGAJO */
.toro-watching .toro-video {
    animation: toroIdle 4s ease-in-out infinite, lookAttention 0.5s ease-out forwards;
}

/* SLEEPING: torito agacha la cabeza cuando carga la clave */
.toro-sleeping .toro-video {
    animation: toroIdle 4s ease-in-out infinite, sleepingTilt 0.5s ease-out forwards;
}
@keyframes sleepingTilt {
    to { transform: scale(0.95) translateY(4px) rotate(-3deg); }
}

/* CHARGING: leve agachada al hover sobre INGRESAR */
.toro-charging .toro-video {
    animation: toroIdle 4s ease-in-out infinite, agachada 0.4s ease-out forwards;
}

/* VICTORY: salto + chispas al login OK */
.toro-victory .toro-video {
    animation: cabezazoSalto 0.8s cubic-bezier(0.5, -0.5, 0.5, 1.5) !important;
}
@keyframes cabezazoSalto {
    0%   { transform: scale(1) translateY(0); }
    30%  { transform: scale(1.15) translateY(-20px); }
    60%  { transform: scale(1.05) translateY(10px); }
    100% { transform: scale(1) translateY(0); }
}

/* ANGRY: shake horizontal + glow rojo intenso al login fallido */
.toro-angry .toro-video {
    animation: shakeFurioso 0.6s ease-in-out, toroIdle 4s ease-in-out infinite 0.6s;
    filter: drop-shadow(0 8px 24px rgba(255,30,30,0.9)) hue-rotate(-10deg) saturate(1.3);
}
.toro-angry .toro-aura {
    background: radial-gradient(circle, rgba(255,30,30,0.6), transparent 65%);
    animation: auraPulso 0.5s ease-in-out infinite;
}

/* Reset de animaciones SVG vieja que no aplican mas */
.toro-svg { display: none !important; }

/* ============= POS CUADRADO v3 ============= */
.pos-cuadrado { max-height: calc(100vh - 60px); overflow: hidden; padding-bottom: 100px; }
.pos-cuadrado .pos-head { padding: 6px 14px !important; }
.pos-cuadrado .pos-title { font-size: 18px !important; margin-bottom: 0 !important; }
.pos-cuadrado .pos-sub   { font-size: 11px !important; }
.pos-cuadrado .cat-tabs  { padding: 6px 0 !important; margin: 6px 0 !important; }
.pos-cuadrado .cat-tab   { padding: 4px 10px !important; font-size: 11px !important; }

/* === Layout 3 columnas: BUSQUEDA | CARRITO+COBRO | EXTRAS PANEL === */
.pos-cuadrado .pos-grid-cuadrado {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    grid-template-rows: minmax(0, 1fr);
    grid-template-areas: "busqueda centro extras";
    gap: 8px;
    margin-top: 6px;
    height: calc(100vh - 160px);
    padding-bottom: 60px; /* espacio para el footer */
}
.zona-busqueda { grid-area: busqueda; }
.centro-col    { grid-area: centro; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.zona-carrito  { flex: 0 0 50%; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.zona-cobro    { flex: 1 1 50%; min-height: 0; overflow-y: auto; }
.zona-extras   { grid-area: extras; overflow-y: auto; }

.zona-busqueda, .zona-carrito, .zona-cobro, .zona-cliente {
    padding: 10px !important; border-radius: 8px; overflow: auto;
}
.zona-busqueda { background: linear-gradient(135deg, #1a1f2c 0%, #14171f 100%); border-left: 3px solid #6b8cff; }
.zona-carrito  { background: linear-gradient(135deg, #14171f 0%, #1a1d24 100%); border-left: 3px solid #cfd2d6; }
.zona-cobro    { background: linear-gradient(135deg, #2a2206 0%, #1a1d24 100%); border-left: 3px solid #f5a623; }
.zona-cliente  { background: linear-gradient(135deg, #1a1d24 0%, #14171f 100%); border-left: 3px solid #3ecf8e; }
.zona-busqueda h3, .zona-carrito h3, .zona-cobro h3, .zona-cliente h3 {
    margin: 0 0 6px 0 !important; font-size: 12px !important; letter-spacing: 1.5px; color: #cfd2d6;
}
.pos-cuadrado .form-grid { gap: 6px !important; }
.pos-cuadrado .fld label { font-size: 10px !important; }
.pos-cuadrado .inp       { padding: 4px 8px !important; font-size: 13px !important; }
.pos-cuadrado .inp-pos   { padding: 4px 8px !important; font-size: 13px !important; }
.pos-cuadrado .pos-resultados-compact { max-height: 200px; overflow-y: auto; }
.pos-cuadrado .pos-table { font-size: 12px; }
.pos-cuadrado .pos-table th, .pos-cuadrado .pos-table td { padding: 3px 6px !important; }
.pos-cuadrado .inp-xs { padding: 2px 4px !important; font-size: 12px !important; }

/* === FOOTER FIJO === */
.form-actions-cuadrado {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    padding: 12px 24px;
    background: linear-gradient(180deg, transparent 0%, rgba(13,15,19,0.98) 30%, #0d0f13 100%);
    border-top: 1px solid rgba(245,166,35,0.2);
    display: flex; gap: 16px; align-items: center;
    z-index: 50;
}
.app-shell.app-shell-pos .form-actions-cuadrado { left: 0 !important; }
.btn-cancelar {
    background: rgba(220,38,38,0.10); color: #f87171;
    border: 1px solid rgba(220,38,38,0.3);
    padding: 14px 28px; font-weight: 700;
}
.btn-cancelar:hover { background: rgba(220,38,38,0.2); }
.btn-guardar-grande {
    flex: 1;
    background: linear-gradient(135deg, #3ecf8e 0%, #28a06f 100%);
    color: #fff; padding: 18px;
    font-size: 20px; font-weight: 700; letter-spacing: 3px;
    border: none; border-radius: 8px;
    box-shadow: 0 4px 16px rgba(62,207,142,0.3);
}
.btn-guardar-grande:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(62,207,142,0.5);
}
.btn-guardar-grande:disabled { opacity: 0.4; cursor: not-allowed; }

.cant-controls { display: flex; align-items: center; gap: 4px; }
.cant-controls .btn { padding: 4px 10px; min-width: 32px; font-weight: 700; }
.cant-controls .inp { width: 70px; }

.totales-cuadrado {
    margin-top: 16px;
    background: #0d0f13;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #2a2d33;
}
.tot-grand-cuadrado {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 12px; padding-top: 12px;
    border-top: 2px solid #f5a623;
    font-size: 28px; font-weight: 700; color: #f5a623;
    font-family: 'Courier New', monospace;
}

.form-actions-cuadrado { display: flex; gap: 16px; margin-top: 24px; }
.btn-cancelar { background: rgba(220,38,38,0.10); color: #f87171; border: 1px solid rgba(220,38,38,0.3); padding: 14px 24px; }
.btn-cancelar:hover { background: rgba(220,38,38,0.2); }
.btn-guardar-grande {
    flex: 1;
    background: linear-gradient(135deg, #3ecf8e 0%, #28a06f 100%);
    color: #fff; padding: 18px;
    font-size: 18px; font-weight: 700; letter-spacing: 2px;
    border: none; border-radius: 8px;
    box-shadow: 0 4px 16px rgba(62,207,142,0.3);
}
.btn-guardar-grande:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(62,207,142,0.5);
}
.btn-guardar-grande:disabled { opacity: 0.4; cursor: not-allowed; }

/* ============= MODAL PLAN MANOLITO ============= */
.modal-manolito {
    width: 700px; max-width: 95vw;
    background: linear-gradient(145deg, #1a1d24 0%, #0d0f13 100%);
    border: 1px solid rgba(245,166,35,0.3);
}
.manolito-header {
    font-size: 24px; font-weight: 700;
    color: #f5a623;
    text-align: center; margin-bottom: 16px;
    letter-spacing: 2px;
}
.manolito-speech {
    background: #0d0f13;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #2a2d33;
    color: #cfd2d6;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 24px;
}
.manolito-opciones {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}
.btn-manolito {
    padding: 24px 16px;
    border-radius: 10px;
    border: 2px solid;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    transition: all 0.2s;
    background: #14171f;
    color: #fff;
}
.btn-manolito:hover { transform: translateY(-2px); }
.btn-manolito-yes { border-color: #3ecf8e; color: #3ecf8e; }
.btn-manolito-yes:hover { background: rgba(62,207,142,0.1); }
.btn-manolito-new { border-color: #f5a623; color: #f5a623; }
.btn-manolito-new:hover { background: rgba(245,166,35,0.1); }
.btn-manolito-no { border-color: #6b7280; color: #6b7280; }
.btn-manolito-no:hover { background: rgba(107,114,128,0.1); }
.btn-manolito .small { font-size: 11px; opacity: 0.7; }

.manolito-form h4, .manolito-rechazo h4 {
    color: #f5a623; margin-top: 0;
}
.rech-opts { display: flex; flex-direction: column; gap: 8px; }
.rech-opts .btn { text-align: left; padding: 14px 18px; }

.manolito-pill {
    margin: 12px 0;
    padding: 10px 16px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 13px;
}
.manolito-pill-info { background: rgba(107,140,255,0.10); color: #6b8cff; border-left: 3px solid #6b8cff; }
.manolito-pill-ok   { background: rgba(62,207,142,0.10); color: #3ecf8e; border-left: 3px solid #3ecf8e; }
.manolito-pill-warn { background: rgba(245,166,35,0.10); color: #f5a623; border-left: 3px solid #f5a623; }

/* ============= MODAL NOCTURNO ============= */
.modal-nocturno {
    width: 600px; max-width: 95vw;
    background: linear-gradient(145deg, #1a1d33 0%, #0d0f1a 100%);
    border: 2px solid #6b8cff;
}
.nocturno-header {
    font-size: 22px; font-weight: 700;
    color: #6b8cff; text-align: center;
    margin-bottom: 16px; letter-spacing: 2px;
}
.nocturno-speech {
    background: #0d0f13;
    padding: 20px;
    border-radius: 10px;
    color: #cfd2d6;
    line-height: 1.7;
    font-size: 14px;
    border-left: 3px solid #6b8cff;
}

/* ============= BOTON POLICIA TOP ============= */
.btn-policia-top {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    margin-right: 8px;
    box-shadow: 0 2px 8px rgba(220,38,38,0.3);
    animation: poliPulse 4s ease-in-out infinite;
}
@keyframes poliPulse {
    0%, 95%, 100% { box-shadow: 0 2px 8px rgba(220,38,38,0.3); }
    97% { box-shadow: 0 0 16px rgba(220,38,38,0.7); }
}
.btn-policia-top:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(220,38,38,0.6);
}

/* ============= MODAL POLICIA ============= */
.modal-policia {
    width: 500px; max-width: 95vw;
    border: 2px solid #dc2626;
}
.policia-header {
    font-size: 22px; font-weight: 700;
    color: #f87171; text-align: center;
    margin-bottom: 16px; letter-spacing: 2px;
}

/* ============= MENU PREMIUM v3 ============= */
.seccion-titulo {
    font-size: 11px; letter-spacing: 3px; color: #6b7280;
    margin: 24px 0 10px 0; padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-transform: uppercase; font-weight: 700;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.module-card {
    display: flex; flex-direction: column; gap: 4px;
    padding: 18px 16px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.06);
    color: #fff;
    cursor: pointer;
}
.module-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.module-card .mc-ico-big {
    font-size: 28px; margin-bottom: 4px;
}
.module-card .mc-title {
    font-weight: 700; font-size: 14px; letter-spacing: 1.5px;
}
.module-card .mc-sub {
    font-size: 11px; color: rgba(255,255,255,0.65);
}
.mc-green  { background: linear-gradient(135deg, #1a3a2a 0%, #0d2418 100%); border-left: 3px solid #3ecf8e; }
.mc-blue   { background: linear-gradient(135deg, #1a253a 0%, #0d1424 100%); border-left: 3px solid #6b8cff; }
.mc-orange { background: linear-gradient(135deg, #3a2a1a 0%, #24180d 100%); border-left: 3px solid #f5a623; }
.mc-red    { background: linear-gradient(135deg, #3a1a1a 0%, #24080d 100%); border-left: 3px solid #dc2626; }
.mc-gold   { background: linear-gradient(135deg, #3a3010 0%, #1f1808 100%); border-left: 3px solid #d4af37; }
.mc-pulse  { animation: mcPulse 3s ease-in-out infinite; }
@keyframes mcPulse {
    0%, 100% { box-shadow: 0 0 0 rgba(220,38,38,0); }
    50%      { box-shadow: 0 0 16px rgba(220,38,38,0.4); }
}

/* Badge rojo de alertas anti-robo */
.module-card { position: relative; }
.badge-rojo {
    position: absolute; top: 8px; right: 8px;
    background: #c0392b; color: white;
    border-radius: 999px; padding: 2px 9px;
    font-size: 11px; font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    animation: badgePulse 1.5s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Semaforos KPI */
.kpi { position: relative; }
.kpi-ico { font-size: 22px; margin-bottom: 4px; }
.kpi-green  { background: linear-gradient(135deg, #1a3a2a 0%, #0d2418 100%); border-left: 4px solid #3ecf8e; }
.kpi-yellow { background: linear-gradient(135deg, #3a3010 0%, #1f1808 100%); border-left: 4px solid #f5a623; }
.kpi-red    { background: linear-gradient(135deg, #3a1a1a 0%, #24080d 100%); border-left: 4px solid #dc2626; }
.kpi-blue   { background: linear-gradient(135deg, #1a253a 0%, #0d1424 100%); border-left: 4px solid #6b8cff; }


/* ============= TESORERIA RICH ============= */
.tesoreria-shell { padding: 16px; }
.tesoreria-titulo {
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 28px;
    margin: 0;
}
.tesoreria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 20px;
}
.tesoreria-card {
    background: linear-gradient(145deg, #1a1d24 0%, #0d0f13 100%);
    border: 1px solid rgba(212,175,55,0.2);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.tes-cfc {
    background: linear-gradient(145deg, #2a2208 0%, #15110a 100%);
    border: 2px solid #d4af37;
    box-shadow: 0 8px 32px rgba(212,175,55,0.2);
}
.tes-suc-titulo {
    font-size: 18px; font-weight: 700; color: #d4af37;
    text-transform: uppercase; letter-spacing: 2px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(212,175,55,0.2);
    padding-bottom: 10px;
}
.tes-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; font-size: 14px;
}
.tes-row-lbl { color: #cfd2d6; font-weight: 600; }
.tes-row-val { font-family: 'Courier New', monospace; font-size: 18px; font-weight: 700; color: #fff; }
.tes-row-big .tes-row-val { font-size: 22px; }
.tes-cfc-val { color: #ffd700; }
.tes-row-grand {
    margin-top: 12px; padding-top: 12px;
    border-top: 2px solid #d4af37;
    font-size: 24px; font-weight: 700;
    color: #ffd700; font-family: 'Courier New', monospace;
}
.tes-alerta { color: #f87171 !important; animation: tesAlerta 1s ease-in-out infinite; }
.tes-warning {
    margin-top: 8px; padding: 6px 10px;
    background: rgba(220,38,38,0.15);
    border-radius: 6px; font-size: 12px; color: #f87171;
}
@keyframes tesAlerta {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.6; }
}

.frasco-zona {
    margin-top: 32px; padding: 24px;
    background: linear-gradient(145deg, #15110a 0%, #0a0805 100%);
    border: 2px dashed rgba(212,175,55,0.3);
    border-radius: 16px;
    display: flex; align-items: center; gap: 32px;
}
.frasco-info { flex: 1; }
.frasco-titulo { font-size: 16px; color: #d4af37; letter-spacing: 2px; font-weight: 700; }
.frasco-cantidad { font-size: 32px; color: #ffd700; font-family: 'Courier New', monospace; margin-top: 8px; }
.frasco-desbordo { color: #ffd700; font-weight: 700; margin-top: 8px; animation: desbordo 0.5s ease-in-out infinite; }
@keyframes desbordo { 0%,100%{transform:scale(1);} 50%{transform:scale(1.1);} }

.campana-btn {
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
    border: none;
    width: 80px; height: 80px;
    border-radius: 50%;
    font-size: 40px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(212,175,55,0.5), inset 0 -4px 8px rgba(0,0,0,0.2);
    transition: all 0.15s;
}
.campana-btn:hover { transform: scale(1.1); }
.campana-btn:active { transform: scale(0.92); box-shadow: 0 2px 8px rgba(212,175,55,0.5); }

/* ============= POS FULLSCREEN (oculta sidebar) ============= */
.app-shell.app-shell-pos {
    display: block !important;
    grid-template-columns: none !important;
}
.app-shell.app-shell-pos .app-side { display: none !important; }
.app-shell.app-shell-pos .app-main { width: 100% !important; max-width: 100% !important; }
.app-shell.app-shell-pos .top-extras { display: none !important; }
.app-shell.app-shell-pos .pos-lock-badge {
    background: linear-gradient(90deg, #f39c12, #e67e22);
    color: #fff;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 2px;
    padding: 4px 12px;
    border-radius: 6px;
    margin-left: 12px;
}
.pos-lock-badge { display: none; }
.app-shell.app-shell-pos .app-content {
    padding: 8px 16px !important;
    max-width: none !important;
    width: 100% !important;
}
.app-shell.app-shell-pos .app-top {
    background: linear-gradient(90deg, #1a1d24 0%, #14171f 100%);
    border-bottom: 1px solid rgba(245,166,35,0.15);
}
.app-shell.app-shell-pos .pos-cuadrado .pos-grid-cuadrado {
    height: calc(100vh - 200px);
}
/* (sin pseudo-button, el boton CANCELAR del POS ya navega al menu) */

/* Quitar el cartelito molesto del POS si Resolucion ya esta resuelta */
.pos-cuadrado .manolito-pill { padding: 6px 12px !important; font-size: 11px !important; margin: 4px 0 !important; }

/* ============= MI DIA (stats personales empleado) ============= */
.mi-dia-personal {
    background: linear-gradient(135deg, #14171f 0%, #0d0f13 100%);
    border: 1px solid rgba(212,175,55,0.25);
    border-left: 4px solid #d4af37;
    padding: 14px 20px;
    border-radius: 10px;
    margin: 12px 0 18px 0;
    display: flex; align-items: center; gap: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.mi-dia-titulo {
    font-size: 11px; letter-spacing: 2px; color: #d4af37;
    font-weight: 700;
}
.mi-dia-stats {
    display: flex; gap: 32px; flex: 1; flex-wrap: wrap;
}
.mi-dia-item {
    display: flex; flex-direction: column; gap: 2px;
}
.mi-dia-num {
    font-size: 22px; font-weight: 700; color: #ffd700;
    font-family: 'Courier New', monospace;
}
.mi-dia-lbl {
    font-size: 10px; color: #cfd2d6; letter-spacing: 1px; text-transform: uppercase;
}

/* === Canal de venta (boton + modal premium) === */
.canal-wrap { margin-bottom: 10px; }
.canal-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    background: rgba(0,0,0,0.25);
    border: 1px solid #2a2f33;
    border-radius: 6px;
}
.canal-display {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}
.canal-label-in {
    font-size: 10px;
    color: #888;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 600;
}
.canal-pill {
    --c: #888;
    background: var(--c);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.btn-canal-abre {
    background: linear-gradient(135deg, #c0392b, #8e2f24);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 3px 10px rgba(192, 57, 43, 0.4);
    white-space: nowrap;
}
.btn-canal-abre:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(192, 57, 43, 0.6);
    background: linear-gradient(135deg, #d0442f, #a03828);
}
.btn-canal-abre:active { transform: translateY(0); }

/* === Modal premium === */
.modal-canal-bg {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: canalFadeIn 0.2s ease-out;
}
@keyframes canalFadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-canal-box {
    background: linear-gradient(145deg, #1f2429 0%, #15181c 100%);
    border: 1px solid #3a3f43;
    border-radius: 14px;
    min-width: 480px;
    max-width: 92vw;
    max-height: 92vh;
    overflow-y: auto;
    padding: 24px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(185, 119, 14, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: canalSlide 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes canalSlide {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-canal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #2c3237;
}
.modal-canal-title {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #f5c76e, #b9770e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.3px;
}
.modal-canal-sub {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}
.modal-canal-close {
    background: #2a2f33;
    border: none;
    color: #aaa;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s;
}
.modal-canal-close:hover { background: #c0392b; color: white; transform: rotate(90deg); }

.modal-canal-group { margin-bottom: 16px; }
.modal-canal-group:last-child { margin-bottom: 0; }
.modal-group-title {
    font-size: 10px;
    color: #888;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 700;
}

.modal-canal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
}

.canal-opt {
    --c: #888;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #2c3237;
    border-left: 4px solid var(--c);
    border-radius: 8px;
    padding: 12px 10px;
    color: #ddd;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.canal-opt::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--c);
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 0;
}
.canal-opt:hover {
    border-color: var(--c);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--c);
}
.canal-opt:hover::before { opacity: 0.08; }
.canal-opt.sel {
    background: var(--c);
    border-color: var(--c);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 2px var(--c);
}
.canal-opt.sel::before { opacity: 0; }
.canal-opt > * { position: relative; z-index: 1; }
.co-ico { font-size: 26px; line-height: 1; margin-bottom: 4px; }
.co-nom {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-top: 2px;
}
.co-sub {
    font-size: 10px;
    opacity: 0.75;
    margin-top: 3px;
    line-height: 1.3;
}

/* === Modal peso (balanza) === */
.modal-peso-bg {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    z-index: 2100;
    animation: canalFadeIn 0.2s ease-out;
}
.modal-peso-box {
    background: linear-gradient(145deg, #1f2429 0%, #15181c 100%);
    border: 2px solid #27ae60;
    border-radius: 14px;
    min-width: 400px;
    max-width: 90vw;
    padding: 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    animation: canalSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-peso-head {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #2c3237;
}
.peso-ico { font-size: 48px; line-height: 1; }
.peso-title {
    font-size: 13px; color: #27ae60;
    letter-spacing: 1.5px; text-transform: uppercase;
    font-weight: 800;
}
.peso-prod {
    font-size: 18px; font-weight: 700;
    color: #fff; margin-top: 2px;
}
.peso-precio {
    font-size: 12px; color: #aaa;
    margin-top: 2px;
}
.peso-input-wrap {
    text-align: center;
    padding: 16px 0;
}
.peso-input-wrap label {
    font-size: 11px; color: #aaa;
    letter-spacing: 0.5px;
    display: block; margin-bottom: 8px;
}
.peso-input {
    width: 220px; max-width: 100%;
    padding: 14px 16px;
    font-size: 36px; text-align: center;
    background: #0d0f11;
    border: 2px solid #27ae60;
    border-radius: 10px;
    color: #fff;
    font-weight: 800;
    outline: none;
}
.peso-input:focus {
    border-color: #2ecc71;
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.2);
}
.peso-total {
    font-size: 16px; color: #aaa;
    margin-top: 14px;
}
.peso-total strong { color: #27ae60; font-size: 20px; }
.peso-actions {
    display: flex; justify-content: flex-end; gap: 8px;
    padding-top: 14px;
    border-top: 1px solid #2c3237;
}

/* === Banner recomendaciones === */
.reco-banner {
    margin-top: 10px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15), rgba(22, 96, 140, 0.1));
    border: 1px solid #3498db;
    border-radius: 8px;
    padding: 10px;
    animation: canalFadeIn 0.25s;
}
.reco-head {
    font-size: 11px;
    color: #3498db;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.reco-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    background: rgba(0,0,0,0.25);
    border-radius: 5px;
    margin-bottom: 4px;
    gap: 8px;
}
.reco-item:last-child { margin-bottom: 0; }
.reco-left { display: flex; gap: 8px; align-items: center; flex: 1; min-width: 0; }
.reco-badge {
    width: 26px; height: 26px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.reco-regla { background: #8e44ad; }
.reco-auto { background: #3498db; }
.reco-nombre {
    font-size: 12px;
    color: #fff;
    font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.reco-msg {
    font-size: 10px;
    color: #aaa;
    margin-top: 1px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.reco-right { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.reco-precio { color: #f5c76e; font-weight: 700; font-size: 12px; }
.reco-btn {
    background: #3498db; color: white;
    border: none; padding: 4px 8px;
    border-radius: 4px; cursor: pointer;
    font-weight: 700;
}
.reco-btn:hover { background: #2980b9; }

/* === Peso toggle manual + precio bloqueado === */
.peso-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 5px 8px;
    background: rgba(39, 174, 96, 0.08);
    border: 1px dashed #27ae60;
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
    color: #27ae60;
    font-weight: 600;
    user-select: none;
    transition: all 0.15s;
}
.peso-toggle:hover {
    background: rgba(39, 174, 96, 0.18);
}
.peso-toggle.act {
    background: #27ae60;
    color: white;
    border-style: solid;
    box-shadow: 0 2px 6px rgba(39, 174, 96, 0.4);
}
.peso-toggle input { accent-color: white; }

.precio-lock {
    display: inline-block;
    padding: 2px 8px;
    color: #aaa;
    font-weight: 700;
    font-size: 12px;
    min-width: 60px;
    text-align: right;
}

/* =============================================================
   REDISEÑO POS PREMIUM (TANDA 7-POS-V2)
   Acentos: verde=busqueda, azul=carrito, dorado=cobro
   ============================================================= */

/* === HEADER SLIM === */
.pos-head-slim {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: linear-gradient(135deg, #1a1d20 0%, #141619 100%);
    border: 1px solid #2a2f33;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 11px;
    flex-wrap: wrap;
}
.pos-head-brand {
    font-weight: 800;
    color: #f5a623;
    letter-spacing: 1.2px;
    font-size: 12px;
}
.pos-head-chip {
    padding: 4px 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid #2a2f33;
    border-radius: 12px;
    color: #bbb;
    font-size: 10.5px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.pos-head-vid {
    background: linear-gradient(135deg, #b9770e, #d4a73f);
    color: white; border: none; font-weight: 800;
    box-shadow: 0 2px 6px rgba(185, 119, 14, 0.4);
}
.pos-head-spacer { flex: 1; min-width: 10px; }
.pos-head-filtro { display: flex; align-items: center; gap: 6px; }
.pos-head-filtro label { font-size: 10px; color: #aaa; letter-spacing: 0.5px; }
.inp-sm { padding: 4px 8px; font-size: 11px; min-width: 120px; }

/* === COLUMNAS CON ACENTOS === */
.zona-busqueda {
    border-left: 3px solid #27ae60 !important;
    background: linear-gradient(135deg, #0f1f15 0%, #1a1d24 100%) !important;
}
.zona-carrito {
    border-left: 3px solid #3498db !important;
    background: linear-gradient(135deg, #0f1a22 0%, #1a1d24 100%) !important;
}
.zona-cobro {
    border-left: 3px solid #b9770e !important;
    background: linear-gradient(135deg, #2a2206 0%, #1a1d24 100%) !important;
}
.zona-cliente {
    border-left: 3px solid #8e44ad !important;
    background: linear-gradient(135deg, #1f1528 0%, #1a1d24 100%) !important;
}

.pos-col h3 {
    font-size: 11px !important;
    letter-spacing: 1.5px;
    padding: 6px 10px !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.zona-busqueda h3 { color: #27ae60; }
.zona-carrito h3  { color: #3498db; }
.zona-cobro h3    { color: #f5c76e; }
.zona-cliente h3  { color: #c79aea; }

/* === PRODUCT TILES (grandes) === */
.prod-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    padding: 6px 0;
}
.prod-tile {
    background: linear-gradient(145deg, #1d2427 0%, #161a1d 100%);
    border: 1px solid #2a3238;
    border-radius: 8px;
    padding: 10px 10px 8px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 90px;
}
.prod-tile:hover {
    border-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(39, 174, 96, 0.2), 0 0 0 1px #27ae60;
}
.prod-tile.highlighted {
    border-color: #27ae60;
    background: linear-gradient(145deg, #1e3024, #162119);
    box-shadow: 0 0 0 2px #27ae60;
}
.prod-tile.critico { border-left: 3px solid #c0392b; }
.tile-name {
    font-weight: 700;
    font-size: 12.5px;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 4px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.tile-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.tile-stock {
    font-size: 9.5px;
    color: #888;
    background: rgba(0,0,0,0.3);
    padding: 2px 6px;
    border-radius: 8px;
    letter-spacing: 0.3px;
}
.tile-peso {
    font-size: 9.5px;
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 600;
}
.tile-price {
    font-size: 18px;
    font-weight: 900;
    color: #f5c76e;
    letter-spacing: -0.3px;
    text-align: right;
}

/* === CHIP MANOLITO EN HEADER CLIENTE === */
.manolito-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-left: 8px;
    vertical-align: middle;
}
.manolito-chip.manolito-pill-info {
    background: #3498db; color: white;
}
.manolito-chip.manolito-pill-ok {
    background: #27ae60; color: white;
}
.manolito-chip.manolito-pill-warn {
    background: #e67e22; color: white;
}
.manolito-chip-btn {
    padding: 0 4px !important;
    font-size: 10px !important;
    min-width: auto !important;
    color: white !important;
    background: rgba(0,0,0,0.25) !important;
    border: none !important;
}

/* === AJUSTES DE ESPACIADO === */
.pos-grid-cuadrado {
    gap: 8px !important;
}
.pos-col {
    padding: 0 !important;
}
.pos-col > *:not(h3) {
    padding: 8px 10px !important;
}
.form-grid {
    gap: 8px !important;
}
.fld label {
    font-size: 10px !important;
    margin-bottom: 2px !important;
}
.inp-pos {
    padding: 6px 8px !important;
    font-size: 12px !important;
}

/* ============================================================
   POS PREMIUM v3: TILES MEDIANOS, SCROLL INTERNO, COL DERECHA
   ============================================================ */

/* === Estructura columna central === */
.centro-col > section { flex: 1 1 auto; }
.zona-carrito {
    flex: 1 1 45%;
    min-height: 140px;
    max-height: 45%;
    display: flex;
    flex-direction: column;
}
.zona-carrito > table,
.zona-carrito > .table-wrap,
.zona-carrito .carrito-scroll {
    overflow-y: auto;
    flex: 1 1 auto;
}
.zona-cobro {
    flex: 1 1 55%;
    overflow-y: auto;
    padding-bottom: 70px !important; /* espacio para botones */
}

/* === Tiles medianos con scroll interno === */
.zona-busqueda { display: flex; flex-direction: column; }
.pos-resultados-compact {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-right: 4px;
    animation: tilesFade 0.3s ease-out;
}
@keyframes tilesFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.prod-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 5px;
    padding: 3px 0;
}
.prod-tile {
    min-height: 58px;
    padding: 6px 7px 5px;
    animation: tileIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.tile-name { font-size: 10.5px; margin-bottom: 2px; line-height: 1.15; }
.tile-price { font-size: 13px; }
.tile-stock, .tile-peso { font-size: 8.5px; padding: 1px 4px; }

/* === Sub-blocks en COBRO === */
.sub-block {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255,255,255,0.08);
}
.sub-h {
    font-size: 11px !important;
    color: #aaa;
    letter-spacing: 1px;
    margin: 0 0 6px 0 !important;
    font-weight: 700;
}
.form-grid-2 { grid-template-columns: 1fr 1fr !important; }
.extras-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.chk-inline {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    white-space: nowrap;
}
.inp-flex { flex: 1 1 auto; min-width: 140px; }

/* === Columna EXTRAS (derecha) === */
.zona-extras {
    border-left: 3px solid #8e44ad !important;
    background: linear-gradient(135deg, #1f1528 0%, #1a1d24 100%) !important;
    padding: 10px !important;
    border-radius: 8px;
}
.zona-extras h3 {
    font-size: 11px !important;
    color: #c79aea !important;
    letter-spacing: 1.5px;
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    border: none !important;
    display: flex;
    align-items: center;
    gap: 6px;
}
.zona-extras .sub-block { margin-top: 0; border-top: none; padding-top: 0; }
.zona-extras .mt-2 { margin-top: 14px !important; }
.pm-status {
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.pm-status.manolito-pill-warn { background: rgba(230, 126, 34, 0.15); border: 1px solid #e67e22; color: #e67e22; }
.pm-status.manolito-pill-info { background: rgba(52, 152, 219, 0.15); border: 1px solid #3498db; color: #3498db; }
.pm-status.manolito-pill-ok   { background: rgba(39, 174, 96, 0.15); border: 1px solid #27ae60; color: #27ae60; }

/* === Footer que NO tape === */
.pos-footer, .pos-actions-bar, .form-actions-pos {
    background: linear-gradient(180deg, rgba(20,22,25,0.85), rgba(20,22,25,0.98));
    backdrop-filter: blur(8px);
    border-top: 1px solid #2a2f33;
}
.pos-shell { padding-bottom: 60px; }

/* === Tiles: animacion premium sutil stagger === */
@keyframes tileIn {
    from { opacity: 0; transform: translateY(4px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.prod-tile:nth-child(1)  { animation-delay: 0.00s; }
.prod-tile:nth-child(2)  { animation-delay: 0.02s; }
.prod-tile:nth-child(3)  { animation-delay: 0.04s; }
.prod-tile:nth-child(4)  { animation-delay: 0.06s; }
.prod-tile:nth-child(5)  { animation-delay: 0.08s; }
.prod-tile:nth-child(6)  { animation-delay: 0.10s; }
.prod-tile:nth-child(7)  { animation-delay: 0.12s; }
.prod-tile:nth-child(8)  { animation-delay: 0.14s; }
.prod-tile:nth-child(n+9) { animation-delay: 0.16s; }

/* === Ajustes columna central: 50/50, scroll solo en carrito === */
.zona-carrito {
    flex: 1 1 50% !important;
    max-height: 50% !important;
    min-height: 160px;
}
.zona-cobro {
    flex: 1 1 50% !important;
    overflow-y: hidden !important; /* sin scroll */
    padding-bottom: 10px !important;
}
.zona-carrito > .carrito-scroll,
.zona-carrito table {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

/* === Scrollbar sutil premium === */
.pos-resultados-compact::-webkit-scrollbar,
.zona-extras::-webkit-scrollbar,
.zona-carrito ::-webkit-scrollbar { width: 5px; }
.pos-resultados-compact::-webkit-scrollbar-thumb,
.zona-extras::-webkit-scrollbar-thumb,
.zona-carrito ::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}
.pos-resultados-compact::-webkit-scrollbar-thumb:hover,
.zona-extras::-webkit-scrollbar-thumb:hover,
.zona-carrito ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ============================================================
   POS PREMIUM v5: COHESION Y REFINAMIENTO
   Paleta unificada: gris oscuro + acento dorado
   Los colores por columna se mueven del borde al ICONO del header
   ============================================================ */

/* === Paleta unificada: bordes y fondos consistentes === */
.zona-busqueda,
.zona-carrito,
.zona-cobro,
.zona-extras {
    background: linear-gradient(160deg, #17191d 0%, #111316 100%) !important;
    border: 1px solid rgba(255,255,255,0.04) !important;
    border-top: 2px solid var(--acc, rgba(255,255,255,0.1)) !important;
    border-left: none !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.02);
}
.zona-busqueda { --acc: #27ae60; }
.zona-carrito  { --acc: #3498db; }
.zona-cobro    { --acc: #b9770e; }
.zona-extras   { --acc: #8e44ad; }

/* === Titulos h3 mas elegantes === */
.pos-col h3 {
    font-size: 10px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    font-weight: 800 !important;
    color: #cfd2d6 !important;
    padding: 0 0 8px 0 !important;
    margin: 0 0 8px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    display: flex;
    align-items: center;
    gap: 6px;
}
.zona-busqueda h3 { color: #cfd2d6 !important; }
.zona-carrito h3  { color: #cfd2d6 !important; }
.zona-cobro h3    { color: #cfd2d6 !important; }
.zona-extras h3   { color: #cfd2d6 !important; }
.zona-busqueda h3::before,
.zona-carrito h3::before,
.zona-cobro h3::before,
.zona-extras h3::before {
    content: '';
    width: 3px; height: 12px;
    border-radius: 2px;
    background: var(--acc, #b9770e);
    display: inline-block;
}

/* === Header slim mas premium === */
.pos-head-slim {
    background: linear-gradient(135deg, #1b1e23 0%, #0f1114 100%) !important;
    border: 1px solid rgba(255,255,255,0.04) !important;
    padding: 7px 10px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.03);
}
.pos-head-brand {
    background: linear-gradient(135deg, #f5c76e, #b9770e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    font-weight: 900 !important;
}
.pos-head-chip {
    background: rgba(255,255,255,0.03) !important;
    padding: 3px 10px !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
}
.pos-head-vid {
    background: linear-gradient(135deg, #b9770e, #8a5a08) !important;
    box-shadow: 0 2px 8px rgba(185, 119, 14, 0.35), inset 0 1px 0 rgba(255,255,255,0.15) !important;
    font-weight: 900 !important;
}

/* === Grid: mas compacto === */
.pos-cuadrado .pos-grid-cuadrado {
    gap: 6px !important;
    height: calc(100vh - 145px) !important;
    padding-bottom: 56px !important;
}
.centro-col { gap: 6px !important; }

/* === Form fields mas compactos y elegantes === */
.pos-col .fld { margin-bottom: 6px !important; }
.pos-col .fld label {
    font-size: 9.5px !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase;
    color: #7a8088 !important;
    font-weight: 600;
    margin-bottom: 3px !important;
    display: block;
}
.pos-col .inp {
    background: rgba(0,0,0,0.25) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    color: #e8eaed !important;
    padding: 6px 9px !important;
    font-size: 11.5px !important;
    border-radius: 5px !important;
    transition: all 0.15s;
}
.pos-col .inp:focus {
    border-color: var(--acc, #b9770e) !important;
    background: rgba(0,0,0,0.35) !important;
    box-shadow: 0 0 0 2px rgba(185, 119, 14, 0.15) !important;
    outline: none;
}
.pos-col select.inp {
    background-image: linear-gradient(45deg, transparent 50%, #888 50%),
                      linear-gradient(135deg, #888 50%, transparent 50%);
    background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}

/* === Cantidad controls === */
.cant-controls {
    display: flex;
    gap: 3px;
    align-items: stretch;
}
.cant-controls .btn {
    padding: 4px 10px !important;
    font-size: 14px !important;
    font-weight: 700;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
}
.cant-controls .btn:hover { background: rgba(185, 119, 14, 0.15) !important; }
.cant-controls .inp { text-align: center; font-weight: 700; }

/* === Peso toggle mas sutil === */
.peso-toggle {
    font-size: 10px !important;
    padding: 4px 7px !important;
    margin-top: 4px !important;
    background: rgba(39, 174, 96, 0.06) !important;
    border-style: solid !important;
    border-color: rgba(39, 174, 96, 0.35) !important;
}

/* === COBRO: total mas chico y elegante === */
.totales-cuadrado { margin-top: 6px; }
.tot-big, .total-big {
    background: linear-gradient(135deg, rgba(185, 119, 14, 0.15), rgba(185, 119, 14, 0.05)) !important;
    border: 1px solid rgba(185, 119, 14, 0.3) !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}
.tot-big .lbl, .total-big-lbl {
    font-size: 13px !important;
    color: #f5c76e !important;
    letter-spacing: 2px !important;
    font-weight: 900;
}
.tot-big .val, .total-big-val {
    font-size: 20px !important;
    color: #f5c76e !important;
    font-weight: 900 !important;
}

/* === Canal compact === */
.canal-compact {
    padding: 5px 7px !important;
    border-radius: 6px !important;
}
.btn-canal-abre {
    padding: 6px 12px !important;
    font-size: 10px !important;
}

/* === Columna derecha: extras mas sutil === */
.zona-extras .sub-block {
    background: rgba(0,0,0,0.15);
    border-radius: 6px;
    padding: 8px;
    margin-top: 0 !important;
    margin-bottom: 8px;
    border-top: none !important;
}
.zona-extras .mt-2 { margin-top: 6px !important; }

.pm-status {
    font-size: 11px !important;
    padding: 7px 9px !important;
    border-radius: 6px !important;
}

/* === Footer mas sutil === */
.pos-footer, .pos-actions-bar, .form-actions-pos,
.app-shell.app-shell-pos > .form-actions,
.pos-shell + .form-actions {
    background: linear-gradient(180deg, rgba(15, 17, 20, 0.9), rgba(10, 12, 14, 0.98)) !important;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(185, 119, 14, 0.2) !important;
    padding: 8px 16px !important;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
}
.form-actions .btn-primary {
    background: linear-gradient(135deg, #27ae60, #1e8449) !important;
    font-weight: 900 !important;
    letter-spacing: 1.5px;
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.3) !important;
}
.form-actions .btn-primary:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(39, 174, 96, 0.45) !important;
}
.form-actions .btn-secondary {
    background: rgba(192, 57, 43, 0.12) !important;
    border: 1px solid rgba(192, 57, 43, 0.3) !important;
    color: #e57b6f !important;
}
.form-actions .btn-secondary:hover {
    background: rgba(192, 57, 43, 0.2) !important;
    color: #ff9182 !important;
}

/* === Carrito vacio mas elegante === */
.pos-empty {
    border: 1px dashed rgba(255,255,255,0.08) !important;
    border-radius: 6px;
    padding: 18px !important;
    color: #5a6068 !important;
    font-size: 11.5px !important;
    font-style: italic;
    text-align: center;
}

/* === Tiles refinadas === */
.prod-tile {
    background: linear-gradient(160deg, #1b1e22 0%, #14171a 100%) !important;
    border: 1px solid rgba(255,255,255,0.04) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.prod-tile:hover {
    border-color: rgba(39, 174, 96, 0.5) !important;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.12), 0 0 0 1px rgba(39, 174, 96, 0.35) !important;
}
.prod-tile.highlighted {
    border-color: #27ae60 !important;
    background: linear-gradient(160deg, #1e2a22 0%, #152018 100%) !important;
}
.tile-price { color: #f5c76e !important; letter-spacing: -0.3px; }

/* === Scrollbar global premium === */
.pos-shell *::-webkit-scrollbar { width: 4px; height: 4px; }
.pos-shell *::-webkit-scrollbar-track { background: transparent; }
.pos-shell *::-webkit-scrollbar-thumb {
    background: rgba(185, 119, 14, 0.2);
    border-radius: 2px;
}
.pos-shell *::-webkit-scrollbar-thumb:hover {
    background: rgba(185, 119, 14, 0.45);
}

/* === Stock indicator con colores por nivel === */
.tile-stock {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 8.5px;
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.tile-stock::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 4px currentColor;
}
.tile-stock.stock-ok {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.25);
}
.tile-stock.stock-low {
    background: rgba(243, 156, 18, 0.12);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.3);
}
.tile-stock.stock-crit {
    background: rgba(192, 57, 43, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(192, 57, 43, 0.4);
    animation: stockPulse 2s ease-in-out infinite;
}
@keyframes stockPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
    50% { box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15); }
}

/* ============================================================
   POS v6: CATEGORIA DENTRO DE BUSQUEDA, TILES MINI, CANTIDAD PREMIUM
   ============================================================ */

/* === Remover flechitas nativas del input number === */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] { -moz-appearance: textfield; }

/* === Busqueda top: categoria + explorar === */
.busq-top {
    display: flex;
    gap: 5px;
    margin-bottom: 7px;
}
.busq-top select { flex: 1; font-size: 11px !important; }
.btn-explorar {
    background: linear-gradient(135deg, #b9770e, #8a5a08);
    color: white;
    border: none;
    padding: 0 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(185, 119, 14, 0.35);
    transition: all 0.15s;
}
.btn-explorar:hover {
    background: linear-gradient(135deg, #d18d1c, #b9770e);
    transform: translateY(-1px);
}

/* === Control cantidad COOL premium (sin flechitas nativas) === */
.cant-controls-cool {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: linear-gradient(135deg, #1b1e22 0%, #14171a 100%);
    border: 1px solid rgba(185, 119, 14, 0.25);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.03);
}
.cant-btn {
    background: transparent;
    color: #f5c76e;
    border: none;
    padding: 0 14px;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.12s;
    line-height: 1;
    user-select: none;
}
.cant-btn:hover {
    background: linear-gradient(135deg, rgba(185, 119, 14, 0.25), rgba(185, 119, 14, 0.1));
    color: #ffd88a;
}
.cant-btn:active {
    transform: scale(0.92);
    background: rgba(185, 119, 14, 0.4);
}
.cant-minus { border-right: 1px solid rgba(255,255,255,0.05); }
.cant-plus { border-left: 1px solid rgba(255,255,255,0.05); }
.cant-display {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 2px;
    min-width: 50px;
}
.cant-input {
    background: transparent !important;
    border: none !important;
    color: #f5c76e !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    text-align: center !important;
    width: 100% !important;
    padding: 0 !important;
    outline: none !important;
}
.cant-input:focus { background: transparent !important; box-shadow: none !important; }
.cant-lbl {
    font-size: 7.5px;
    color: #666;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-top: -2px;
}

/* === TILES MINI (aun mas chicos para que entren mas) === */
.prod-tiles {
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)) !important;
    gap: 4px !important;
}
.prod-tile {
    min-height: 52px !important;
    padding: 5px 6px 4px !important;
    border-radius: 6px !important;
}
.tile-name {
    font-size: 10px !important;
    line-height: 1.1 !important;
    -webkit-line-clamp: 2 !important;
    margin-bottom: 2px !important;
}
.tile-meta {
    margin-bottom: 2px !important;
    gap: 3px !important;
}
.tile-stock, .tile-peso {
    font-size: 7.5px !important;
    padding: 0.5px 4px !important;
    border-radius: 6px !important;
}
.tile-stock::before { width: 4px; height: 4px; }
.tile-price {
    font-size: 11.5px !important;
    font-weight: 900 !important;
}

/* === Animacion SLIDE DOWN sutil premium === */
@keyframes tileIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
        filter: blur(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}
.prod-tile {
    animation: tileIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) backwards !important;
}
.prod-tile:nth-child(1)  { animation-delay: 0.00s !important; }
.prod-tile:nth-child(2)  { animation-delay: 0.025s !important; }
.prod-tile:nth-child(3)  { animation-delay: 0.05s !important; }
.prod-tile:nth-child(4)  { animation-delay: 0.075s !important; }
.prod-tile:nth-child(5)  { animation-delay: 0.1s !important; }
.prod-tile:nth-child(6)  { animation-delay: 0.12s !important; }
.prod-tile:nth-child(7)  { animation-delay: 0.14s !important; }
.prod-tile:nth-child(8)  { animation-delay: 0.16s !important; }
.prod-tile:nth-child(9)  { animation-delay: 0.18s !important; }
.prod-tile:nth-child(10) { animation-delay: 0.2s !important; }
.prod-tile:nth-child(n+11) { animation-delay: 0.22s !important; }

/* === Peso toggle mini === */
.peso-toggle {
    font-size: 9.5px !important;
    padding: 3px 6px !important;
    margin-top: 5px !important;
    justify-content: center;
}

/* === Search spinner alineado === */
.search-spinner {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}
.fld { position: relative; }

/* === Input number sin flechitas del browser === */
.cant-controls input[type=number]::-webkit-outer-spin-button,
.cant-controls input[type=number]::-webkit-inner-spin-button,
.peso-input::-webkit-outer-spin-button,
.peso-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.cant-controls input[type=number],
.peso-input {
    -moz-appearance: textfield;
}

/* Mejoras botones +/- cantidad */
.cant-controls {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.25);
}
.cant-controls .btn {
    padding: 0 14px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    background: rgba(255,255,255,0.03) !important;
    border: none !important;
    border-radius: 0 !important;
    color: #b9770e !important;
    transition: all 0.15s;
    min-width: 36px;
}
.cant-controls .btn:hover {
    background: rgba(185, 119, 14, 0.2) !important;
    color: #f5c76e !important;
}
.cant-controls .btn:active {
    transform: scale(0.92);
}
.cant-controls .inp {
    border: none !important;
    background: transparent !important;
    text-align: center;
    font-weight: 800 !important;
    font-size: 14px !important;
    padding: 6px 4px !important;
    color: #fff !important;
}

/* === TILES ULTRA CHICOS CON SLIDE DOWN ELEGANTE === */
.prod-tiles {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)) !important;
    gap: 4px !important;
    padding: 2px 0 !important;
}
.prod-tile {
    min-height: 52px !important;
    padding: 5px 6px 4px !important;
    border-radius: 6px !important;
    animation: tileSlideDown 0.32s cubic-bezier(0.22, 1, 0.36, 1) backwards !important;
}
.tile-name {
    font-size: 10px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    margin-bottom: 2px !important;
    -webkit-line-clamp: 2 !important;
}
.tile-price {
    font-size: 12px !important;
    font-weight: 900 !important;
}
.tile-stock { font-size: 8px !important; padding: 0 5px !important; }
.tile-stock::before { width: 4px !important; height: 4px !important; }
.tile-peso { font-size: 8px !important; padding: 0 5px !important; }
.tile-meta { gap: 3px !important; margin-bottom: 3px !important; }

/* Slide down premium con blur liberacion */
@keyframes tileSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
        filter: blur(1px);
    }
    60% {
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Stagger delays mas rapidos y fluidos */
.prod-tile:nth-child(1)  { animation-delay: 0.00s !important; }
.prod-tile:nth-child(2)  { animation-delay: 0.015s !important; }
.prod-tile:nth-child(3)  { animation-delay: 0.03s !important; }
.prod-tile:nth-child(4)  { animation-delay: 0.045s !important; }
.prod-tile:nth-child(5)  { animation-delay: 0.06s !important; }
.prod-tile:nth-child(6)  { animation-delay: 0.075s !important; }
.prod-tile:nth-child(7)  { animation-delay: 0.09s !important; }
.prod-tile:nth-child(8)  { animation-delay: 0.105s !important; }
.prod-tile:nth-child(9)  { animation-delay: 0.12s !important; }
.prod-tile:nth-child(10) { animation-delay: 0.135s !important; }
.prod-tile:nth-child(11) { animation-delay: 0.15s !important; }
.prod-tile:nth-child(12) { animation-delay: 0.165s !important; }
.prod-tile:nth-child(n+13) { animation-delay: 0.18s !important; }

/* === Filtro categoria + explorar refinado === */
.busq-top {
    display: flex !important;
    gap: 4px !important;
    margin-bottom: 6px !important;
    align-items: stretch !important;
}
.busq-top .inp {
    flex: 1 1 auto !important;
    font-size: 11px !important;
    padding: 6px 9px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
}
.btn-explorar {
    flex: 0 0 auto !important;
    padding: 0 12px !important;
    background: rgba(185, 119, 14, 0.15) !important;
    border: 1px solid rgba(185, 119, 14, 0.3) !important;
    color: #f5c76e !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-explorar:hover {
    background: rgba(185, 119, 14, 0.3) !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(185, 119, 14, 0.25);
}

/* Ajustar padding zona busqueda para aprovechar mas altura */
.zona-busqueda { padding: 8px 10px !important; }
.zona-busqueda .form-grid { gap: 4px !important; margin-bottom: 6px !important; }
.zona-busqueda .fld { margin-bottom: 4px !important; }

/* Search spinner sutil */
.search-spinner {
    display: inline-block;
    width: 10px; height: 10px;
    border: 1.5px solid rgba(185, 119, 14, 0.3);
    border-top-color: #f5c76e;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-left: 6px;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   POS v6: Sin flechitas / slide / carrito tile / vuelto pro
   ============================================================ */

/* === Quitar spinners de number inputs === */
.pos-shell input[type="number"]::-webkit-outer-spin-button,
.pos-shell input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}
.pos-shell input[type="number"] { -moz-appearance: textfield !important; }

/* === Cantidad premium con +/- === */
.cant-controls {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.3);
    height: 34px;
}
.cant-controls .btn {
    border: none !important;
    background: rgba(255,255,255,0.03) !important;
    padding: 0 !important;
    width: 32px !important;
    font-size: 18px !important;
    font-weight: 800;
    color: #b9770e !important;
    border-radius: 0 !important;
    transition: all 0.15s;
}
.cant-controls .btn:hover {
    background: rgba(185, 119, 14, 0.2) !important;
    color: #f5c76e !important;
}
.cant-controls .btn:active {
    background: rgba(185, 119, 14, 0.35) !important;
    transform: scale(0.95);
}
.cant-controls .inp {
    border: none !important;
    background: transparent !important;
    flex: 1 1 auto;
    text-align: center;
    font-weight: 800 !important;
    font-size: 14px !important;
    padding: 0 4px !important;
}
.cant-controls .inp:focus { box-shadow: none !important; }

/* === Tiles más compactos con slide in === */
.prod-tiles {
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr)) !important;
    gap: 4px !important;
}
.prod-tile {
    min-height: 52px !important;
    padding: 5px 6px 4px !important;
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.prod-tile:nth-child(1)  { animation-delay: 0.00s; }
.prod-tile:nth-child(2)  { animation-delay: 0.03s; }
.prod-tile:nth-child(3)  { animation-delay: 0.06s; }
.prod-tile:nth-child(4)  { animation-delay: 0.09s; }
.prod-tile:nth-child(5)  { animation-delay: 0.12s; }
.prod-tile:nth-child(6)  { animation-delay: 0.15s; }
.prod-tile:nth-child(7)  { animation-delay: 0.18s; }
.prod-tile:nth-child(8)  { animation-delay: 0.21s; }
.prod-tile:nth-child(n+9) { animation-delay: 0.24s; }
.tile-name { font-size: 10px !important; line-height: 1.1 !important; }
.tile-price { font-size: 12px !important; }
.tile-stock { font-size: 8px !important; padding: 0 5px !important; }

/* === Categorias y explorar stock DENTRO de busqueda === */
.cat-quick {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-top: 4px;
    padding: 5px 7px;
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.04);
}
.cat-quick label {
    font-size: 9px;
    color: #7a8088;
    letter-spacing: 0.8px;
    white-space: nowrap;
    font-weight: 700;
}
.cat-quick .inp-sm {
    flex: 1 1 auto;
    background: rgba(0,0,0,0.3) !important;
    padding: 4px 6px !important;
    font-size: 10.5px !important;
    min-width: 0;
}
.cat-quick .btn {
    padding: 4px 8px !important;
    font-size: 10px !important;
    white-space: nowrap;
}

/* === Header slim: quitar categoria y explorar stock === */
.pos-head-slim .pos-head-filtro,
.pos-head-slim > button.btn-secondary {
    display: none !important;
}

/* === Carrito: items como tiles premium === */
.carrito-items {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 2px 0;
}
.cart-tile {
    display: grid;
    grid-template-columns: 70px 1fr auto auto auto;
    align-items: center;
    gap: 8px;
    background: linear-gradient(160deg, #181b1f 0%, #13161a 100%);
    border: 1px solid rgba(255,255,255,0.04);
    border-left: 2px solid rgba(52, 152, 219, 0.5);
    border-radius: 6px;
    padding: 6px 8px;
    animation: slideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    transition: all 0.15s;
}
.cart-tile:hover {
    border-color: rgba(52, 152, 219, 0.4);
    background: linear-gradient(160deg, #1a2228 0%, #141820 100%);
}
.cart-tile .ct-cant .cant-controls { height: 26px; }
.cart-tile .ct-cant .cant-controls .btn { width: 22px !important; font-size: 14px !important; }
.cart-tile .ct-cant .cant-controls .inp { font-size: 11px !important; min-width: 24px; }
.ct-nombre { min-width: 0; overflow: hidden; }
.ct-nombre b { font-size: 11.5px; color: #e8eaed; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-nombre .muted { font-size: 9px; color: #7a8088; letter-spacing: 0.3px; }
.ct-precio {
    text-align: right;
    color: #7a8088;
    font-size: 11px;
}
.ct-precio input {
    text-align: right;
    max-width: 70px;
    padding: 3px 5px !important;
    font-size: 10.5px !important;
}
.ct-total {
    text-align: right;
    color: #f5c76e;
    font-weight: 800;
    font-size: 12.5px;
    min-width: 75px;
}
.ct-del {
    background: rgba(192, 57, 43, 0.1) !important;
    border: 1px solid rgba(192, 57, 43, 0.25) !important;
    color: #e57b6f !important;
    padding: 3px 7px !important;
    font-size: 11px !important;
    border-radius: 4px !important;
}
.ct-del:hover {
    background: rgba(192, 57, 43, 0.25) !important;
    color: #ff9182 !important;
}

.carrito-subtotal {
    margin-top: 6px;
    padding: 6px 10px;
    background: rgba(52, 152, 219, 0.08);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    letter-spacing: 1.2px;
}
.carrito-subtotal b {
    color: #5dade2;
    font-size: 14px;
    letter-spacing: 0;
}

/* === Herramienta Vuelto premium === */
.vuelto-tool {
    margin-top: 8px;
    background: linear-gradient(160deg, rgba(185, 119, 14, 0.1), rgba(185, 119, 14, 0.02));
    border: 1px solid rgba(185, 119, 14, 0.3);
    border-radius: 8px;
    padding: 10px;
}
.vuelto-tool-label {
    font-size: 9.5px;
    color: #f5c76e;
    letter-spacing: 1.2px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.vuelto-chips {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.vuelto-chip {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #cfd2d6;
    padding: 4px 9px;
    border-radius: 12px;
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}
.vuelto-chip:hover {
    background: rgba(185, 119, 14, 0.15);
    border-color: rgba(185, 119, 14, 0.4);
    color: #f5c76e;
    transform: translateY(-1px);
}
.vuelto-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 6px;
}
.vuelto-box {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 8px 10px;
    border-radius: 6px;
}
.vuelto-box-lbl {
    font-size: 9px;
    color: #7a8088;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.vuelto-box-val {
    font-size: 16px;
    font-weight: 900;
    color: #e8eaed;
}
.vuelto-box.v-ok .vuelto-box-val { color: #27ae60; }
.vuelto-box.v-err .vuelto-box-val { color: #e74c3c; }
.vuelto-detalle {
    margin-top: 6px;
    padding: 6px 8px;
    background: rgba(39, 174, 96, 0.08);
    border: 1px solid rgba(39, 174, 96, 0.2);
    border-radius: 6px;
    font-size: 10px;
    color: #abebc6;
}
.vuelto-detalle strong { color: #2ecc71; }

/* ============================================================
   POS v6: Controles cool + tiles slide-down + refinamiento
   ============================================================ */

/* === Ocultar flechitas del input number (todos los browsers) === */
.pos-col input[type=number]::-webkit-outer-spin-button,
.pos-col input[type=number]::-webkit-inner-spin-button,
.cant-input::-webkit-outer-spin-button,
.cant-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}
.pos-col input[type=number],
.cant-input {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

/* === Controles de cantidad cool (+/-) === */
.cant-controls-cool {
    display: flex;
    align-items: stretch;
    background: linear-gradient(145deg, #1a1d20 0%, #12141a 100%);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02), 0 2px 6px rgba(0,0,0,0.25);
    height: 40px;
}
.cant-btn {
    width: 38px;
    border: none;
    background: transparent;
    color: #b9770e;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.cant-minus { border-right: 1px solid rgba(255,255,255,0.04); }
.cant-plus  { border-left:  1px solid rgba(255,255,255,0.04); }
.cant-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(185, 119, 14, 0.3), transparent 60%);
    opacity: 0;
    transition: opacity 0.15s;
}
.cant-btn:hover::before { opacity: 1; }
.cant-btn:hover {
    color: #f5c76e;
    transform: scale(1.08);
}
.cant-btn:active { transform: scale(0.92); }
.cant-display {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}
.cant-input {
    width: 100%;
    background: transparent !important;
    border: none !important;
    color: #f5c76e !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    text-align: center !important;
    padding: 0 !important;
    outline: none;
    letter-spacing: 0.5px;
}
.cant-input:focus { background: transparent !important; box-shadow: none !important; }
.cant-lbl {
    position: absolute;
    bottom: 2px;
    font-size: 7px;
    color: #666;
    letter-spacing: 2px;
    font-weight: 700;
    pointer-events: none;
}

/* === Búsqueda top (categoria + explorar) === */
.busq-top {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}
.busq-top .inp {
    flex: 1;
    font-size: 11px !important;
    padding: 7px 9px !important;
    border-radius: 7px !important;
}
.btn-explorar {
    background: linear-gradient(135deg, #2a2f33 0%, #1c1f22 100%);
    border: 1px solid rgba(255,255,255,0.06);
    color: #f5c76e;
    padding: 6px 10px;
    border-radius: 7px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
}
.btn-explorar:hover {
    background: linear-gradient(135deg, #3a3f43 0%, #2c2f33 100%);
    color: #ffd280;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* === Tiles: animacion slide-down premium === */
@keyframes tileSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
        filter: blur(1.5px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}
.prod-tile {
    animation: tileSlideDown 0.28s cubic-bezier(0.16, 1, 0.3, 1) backwards !important;
}
.prod-tile:nth-child(1)  { animation-delay: 0.00s !important; }
.prod-tile:nth-child(2)  { animation-delay: 0.03s !important; }
.prod-tile:nth-child(3)  { animation-delay: 0.06s !important; }
.prod-tile:nth-child(4)  { animation-delay: 0.09s !important; }
.prod-tile:nth-child(5)  { animation-delay: 0.12s !important; }
.prod-tile:nth-child(6)  { animation-delay: 0.15s !important; }
.prod-tile:nth-child(7)  { animation-delay: 0.18s !important; }
.prod-tile:nth-child(8)  { animation-delay: 0.21s !important; }
.prod-tile:nth-child(9)  { animation-delay: 0.24s !important; }
.prod-tile:nth-child(10) { animation-delay: 0.27s !important; }
.prod-tile:nth-child(n+11) { animation-delay: 0.30s !important; }

/* === Tiles mas chicos para que entren mas === */
.prod-tiles {
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)) !important;
    gap: 4px !important;
}
.prod-tile {
    min-height: 52px !important;
    padding: 5px 6px 4px !important;
    border-radius: 6px !important;
}
.tile-name {
    font-size: 9.5px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    margin-bottom: 2px !important;
    -webkit-line-clamp: 2 !important;
}
.tile-price {
    font-size: 11.5px !important;
    font-weight: 900 !important;
    margin-top: 1px !important;
}
.tile-meta { margin-bottom: 2px !important; gap: 3px !important; }
.tile-stock {
    font-size: 7.5px !important;
    padding: 0 4px !important;
    gap: 2px !important;
}
.tile-stock::before { width: 4px !important; height: 4px !important; }
.tile-peso {
    font-size: 7.5px !important;
    padding: 0 4px !important;
}

/* ============================================================
   POS PREMIUM v6: TILES MINI SLIDE, CARRITO CARDS, VUELTO CALC
   ============================================================ */

/* === Quitar flechitas del input number (global POS) === */
.pos-shell input[type=number]::-webkit-inner-spin-button,
.pos-shell input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.pos-shell input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* === Busqueda top: categoria + explorar === */
.busq-top {
    display: flex;
    gap: 5px;
    margin-bottom: 8px;
    align-items: stretch;
}
.busq-top select.inp {
    flex: 1;
    padding: 5px 8px !important;
    font-size: 11px !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.btn-explorar {
    padding: 5px 10px !important;
    background: linear-gradient(135deg, rgba(185, 119, 14, 0.15), rgba(185, 119, 14, 0.08)) !important;
    border: 1px solid rgba(185, 119, 14, 0.35) !important;
    color: #f5c76e !important;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px !important;
    transition: all 0.15s;
}
.btn-explorar:hover {
    background: linear-gradient(135deg, rgba(185, 119, 14, 0.3), rgba(185, 119, 14, 0.15)) !important;
    transform: translateY(-1px);
}

/* === Cantidad cool con + / - === */
.cant-controls-cool {
    display: flex;
    align-items: stretch;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 7px;
    overflow: hidden;
    height: 42px;
}
.cant-btn {
    background: transparent;
    border: none;
    color: #cfd2d6;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    padding: 0 14px;
    transition: all 0.12s;
    user-select: none;
}
.cant-minus { border-right: 1px solid rgba(255,255,255,0.06); }
.cant-plus  { border-left: 1px solid rgba(255,255,255,0.06); }
.cant-btn:hover {
    color: #f5c76e;
    background: rgba(185, 119, 14, 0.12);
    transform: scale(1.1);
}
.cant-btn:active { transform: scale(0.95); }
.cant-display {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}
.cant-input {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    text-align: center !important;
    padding: 0 !important;
    width: 100% !important;
    outline: none !important;
}
.cant-lbl {
    font-size: 8px;
    color: #7a8088;
    letter-spacing: 1.5px;
    margin-top: -2px;
    font-weight: 700;
}

/* === TILES MINI con animacion slide === */
.prod-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)) !important;
    gap: 4px !important;
    padding: 2px !important;
}
.prod-tile {
    min-height: 52px !important;
    padding: 5px 6px 4px !important;
    animation: tileSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1) backwards !important;
    border-radius: 6px !important;
}
@keyframes tileSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.prod-tile:nth-child(1)  { animation-delay: 0.00s; }
.prod-tile:nth-child(2)  { animation-delay: 0.025s; }
.prod-tile:nth-child(3)  { animation-delay: 0.05s; }
.prod-tile:nth-child(4)  { animation-delay: 0.075s; }
.prod-tile:nth-child(5)  { animation-delay: 0.10s; }
.prod-tile:nth-child(6)  { animation-delay: 0.125s; }
.prod-tile:nth-child(7)  { animation-delay: 0.15s; }
.prod-tile:nth-child(8)  { animation-delay: 0.175s; }
.prod-tile:nth-child(9)  { animation-delay: 0.20s; }
.prod-tile:nth-child(10) { animation-delay: 0.225s; }
.prod-tile:nth-child(11) { animation-delay: 0.25s; }
.prod-tile:nth-child(12) { animation-delay: 0.275s; }
.prod-tile:nth-child(n+13) { animation-delay: 0.30s; }

.tile-name { font-size: 9.5px !important; line-height: 1.1 !important; margin-bottom: 2px !important; }
.tile-price { font-size: 12px !important; font-weight: 900; }
.tile-stock { font-size: 8px !important; padding: 0 5px !important; }
.tile-peso { font-size: 8px !important; padding: 0 5px !important; }
.tile-meta { gap: 3px !important; margin-bottom: 3px !important; }

/* === CARRITO tipo cards === */
.cart-cards {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    padding: 2px;
}
.cart-card {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: linear-gradient(160deg, #1a1e22 0%, #13161a 100%);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 6px;
    animation: tileSlide 0.22s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    transition: all 0.15s;
}
.cart-card:hover {
    border-color: rgba(52, 152, 219, 0.3);
    background: linear-gradient(160deg, #1c2228 0%, #141820 100%);
}
.cart-cant {
    display: flex;
    align-items: center;
    gap: 1px;
    background: rgba(0,0,0,0.3);
    border-radius: 5px;
    padding: 1px;
}
.cart-cant-btn {
    background: transparent;
    border: none;
    color: #cfd2d6;
    width: 20px; height: 20px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.12s;
    padding: 0;
}
.cart-cant-btn:hover { background: rgba(52, 152, 219, 0.2); color: #3498db; }
.cart-cant-val {
    width: 30px;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    background: transparent;
    border: none;
    outline: none;
}
.cart-nombre {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cart-nombre b {
    font-size: 11px;
    color: #fff;
    font-weight: 700;
}
.cart-nombre .cart-meta {
    font-size: 9px;
    color: #7a8088;
    display: block;
    margin-top: -2px;
}
.cart-punit {
    font-size: 10px;
    color: #aaa;
    text-align: right;
}
.cart-total {
    font-size: 13px;
    font-weight: 900;
    color: #f5c76e;
    text-align: right;
    min-width: 60px;
}
.cart-x {
    background: transparent;
    border: none;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.12s;
}
.cart-x:hover { background: rgba(192, 57, 43, 0.2); color: #e74c3c; }

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    margin-top: 4px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(52, 152, 219, 0.03));
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 6px;
}
.cart-subtotal-lbl {
    font-size: 10px;
    color: #3498db;
    letter-spacing: 1.5px;
    font-weight: 800;
}
.cart-subtotal-val {
    font-size: 15px;
    font-weight: 900;
    color: #fff;
}

/* === CALCULADORA DE VUELTO premium === */
.vuelto-calc {
    margin-top: 10px;
    padding: 10px;
    background: linear-gradient(145deg, rgba(39, 174, 96, 0.08), rgba(39, 174, 96, 0.02));
    border: 1px solid rgba(39, 174, 96, 0.25);
    border-radius: 8px;
}
.vc-top {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.vc-paga {
    flex: 1;
    min-width: 120px;
}
.vc-paga label {
    font-size: 10px !important;
    color: #27ae60 !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 3px !important;
    display: block;
}
.vc-input {
    font-size: 14px !important;
    font-weight: 800 !important;
    text-align: center !important;
    padding: 8px !important;
    border-color: rgba(39, 174, 96, 0.3) !important;
}
.vc-input:focus {
    border-color: #27ae60 !important;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.2) !important;
}
.vc-billetes {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    align-content: flex-end;
}
.vc-billete {
    background: rgba(39, 174, 96, 0.12);
    border: 1px solid rgba(39, 174, 96, 0.3);
    color: #27ae60;
    padding: 6px 9px;
    font-size: 10px;
    font-weight: 800;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.12s;
    min-width: 34px;
}
.vc-billete:hover {
    background: rgba(39, 174, 96, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(39, 174, 96, 0.25);
}
.vc-billete:active { transform: scale(0.95); }
.vc-clear {
    background: rgba(192, 57, 43, 0.1) !important;
    border-color: rgba(192, 57, 43, 0.3) !important;
    color: #e74c3c !important;
}
.vc-clear:hover { background: rgba(192, 57, 43, 0.25) !important; }
.vc-vuelto {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    border-radius: 7px;
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.3);
    animation: vueltoIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.vc-vuelto.vc-err {
    background: linear-gradient(135deg, #c0392b 0%, #922b1e 100%);
    box-shadow: 0 3px 10px rgba(192, 57, 43, 0.3);
}
@keyframes vueltoIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}
.vc-lbl {
    font-size: 11px;
    color: rgba(255,255,255,0.9);
    letter-spacing: 2px;
    font-weight: 800;
}
.vc-monto {
    font-size: 20px;
    color: #fff;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.vc-desglose {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    padding: 0 4px;
}
.vc-desg-lbl {
    font-size: 10px;
    color: #7a8088;
    letter-spacing: 0.5px;
    font-weight: 700;
    margin-right: 4px;
}
.vc-desg-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: #cfd2d6;
    padding: 2px 7px;
    border-radius: 8px;
    font-size: 9.5px;
    font-weight: 700;
}
.vc-falta {
    margin-top: 6px;
    padding: 6px 10px;
    background: rgba(192, 57, 43, 0.1);
    border-left: 3px solid #c0392b;
    color: #e74c3c;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
}

/* ============================================================
   POS PREMIUM v7: Espacios perfectos + enteros
   ============================================================ */

/* Footer altura fija conocida y grid adaptado */
.form-actions-cuadrado {
    padding: 10px 16px !important;
    min-height: 60px;
}
.btn-guardar-grande, .btn-cancelar {
    padding: 12px 20px !important;
    font-size: 14px !important;
}

/* Grid: altura que respeta header + footer */
.pos-cuadrado .pos-grid-cuadrado {
    height: calc(100vh - 92px - 70px) !important; /* header 50px + slim pad + footer 70px */
    padding-bottom: 8px !important;
    margin-bottom: 72px !important; /* espacio para footer fixed */
}

/* Header slim mas chico */
.pos-head-slim {
    margin-bottom: 6px !important;
    padding: 5px 10px !important;
}

/* Cart-scroll interno sin romper layout */
.zona-carrito {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}
.zona-carrito > h3 { flex: 0 0 auto; }
.cart-cards {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}
.cart-subtotal { flex: 0 0 auto; }

.cart-cant-peso {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    background: rgba(39, 174, 96, 0.12);
    border: 1px solid rgba(39, 174, 96, 0.3);
    border-radius: 5px;
    color: #27ae60;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

/* === v8: CARRITO se adapta a contenido, COBRO sube y aprovecha espacio === */
.centro-col {
    justify-content: flex-start !important;
}
.zona-carrito {
    flex: 0 1 auto !important;      /* no fuerza 50%, se achica al contenido */
    max-height: 38% !important;     /* nunca pasa del 38% */
    min-height: 100px !important;   /* minimo para que se vea el titulo + vacio */
}
.zona-cobro {
    flex: 1 1 auto !important;      /* ocupa el resto */
    overflow-y: auto !important;    /* scroll interno si algo excede */
    padding-bottom: 12px !important;
}

/* Pos-empty del carrito mas sutil (cuando esta vacio no ocupa tanto) */
.zona-carrito .pos-empty {
    padding: 10px !important;
    margin: 0;
    font-size: 10.5px !important;
}

/* === Botón X cerrar modal Plan Manolito === */
.manolito-header {
    position: relative;
}
.manolito-close {
    position: absolute;
    top: -4px;
    right: -4px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s;
}
.manolito-close:hover {
    background: rgba(192, 57, 43, 0.2);
    border-color: #c0392b;
    color: #fff;
    transform: rotate(90deg);
}

/* === COMBOS SUGERIDOS (POS col derecha) === */
.combo-sug-item {
    background: linear-gradient(160deg, #1a1e23 0%, #13161a 100%);
    border: 1px solid rgba(255,255,255,0.05);
    border-left: 3px solid #e67e22;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 6px;
    transition: all 0.15s;
}
.combo-sug-item:hover {
    border-color: rgba(230, 126, 34, 0.4);
    transform: translateX(2px);
}
.combo-sug-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.combo-sug-icon { font-size: 16px; }
.combo-sug-nombre {
    flex: 1;
    font-size: 11.5px;
    font-weight: 800;
    color: #fff;
}
.combo-sug-ahorro {
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 9.5px;
    font-weight: 800;
}
.combo-sug-items {
    font-size: 10px;
    color: #888;
    line-height: 1.3;
    margin-bottom: 6px;
}
.combo-sug-foot {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.combo-sug-precio {
    font-size: 13px;
    color: #f5c76e;
    font-weight: 900;
}
.combo-sug-match {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
}
.combo-sug-foot .btn {
    margin-left: auto;
    padding: 4px 10px !important;
    font-size: 10px !important;
}

/* === Selector categoria consumo === */
.cat-consumo-row {
    display: flex; align-items: center; gap: 8px;
    margin-top: 6px;
    padding: 6px 8px;
    background: rgba(243, 156, 18, 0.08);
    border-left: 3px solid #f39c12;
    border-radius: 4px;
}
.cat-consumo-row label {
    font-size: 10px; color: #f39c12; letter-spacing: 0.8px;
    font-weight: 800; text-transform: uppercase;
    white-space: nowrap;
}
.cat-consumo-row select {
    flex: 1;
    font-size: 11px !important;
    padding: 4px 7px !important;
}

/* TANDA 36: merma POS */
.merma-box {
    background: linear-gradient(135deg, rgba(245,166,35,0.08), rgba(0,0,0,0.15));
    border: 1px solid rgba(245,166,35,0.35);
    border-left: 4px solid #f5a623;
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 8px;
}
.merma-head {
    display: flex; align-items: center; gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(245,166,35,0.2);
}
.merma-ico { font-size: 20px; }
.merma-head b { color: #f5c76e; letter-spacing: 1px; }
.merma-oblig {
    margin-left: auto;
    background: rgba(231,76,60,0.15); color: #e74c3c;
    padding: 2px 8px; border-radius: 8px;
    font-size: 9px; font-weight: 900; letter-spacing: 1px;
}

/* ============================================================
   CAMPANA DE TESORERIA PARTY MODE 🎉
   ============================================================ */

.campana-wrap {
    position: relative;
    display: inline-block;
}

.campana-btn {
    position: relative;
    font-size: 56px;
    padding: 16px 24px;
    background: radial-gradient(circle at 30% 30%, #f5c76e, #b9770e);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow:
        0 8px 24px rgba(245, 199, 110, 0.4),
        inset 0 -4px 12px rgba(0,0,0,0.25),
        inset 0 2px 4px rgba(255,255,255,0.35);
    transition: transform 0.08s cubic-bezier(0.5, 1.6, 0.4, 1), box-shadow 0.2s;
    animation: campana-idle 3s ease-in-out infinite;
}
.campana-btn:hover {
    transform: scale(1.08) rotate(-4deg);
    box-shadow:
        0 12px 32px rgba(245, 199, 110, 0.55),
        inset 0 -4px 12px rgba(0,0,0,0.2),
        inset 0 2px 6px rgba(255,255,255,0.4);
    animation-play-state: paused;
}
.campana-btn.pressed {
    transform: scale(0.88) rotate(6deg);
    box-shadow:
        0 2px 8px rgba(245, 199, 110, 0.6),
        inset 0 3px 10px rgba(0,0,0,0.3);
    animation: campana-ring 0.5s ease-out;
}
@keyframes campana-idle {
    0%, 100% { transform: rotate(0deg); }
    48%      { transform: rotate(-3deg); }
    52%      { transform: rotate(3deg); }
}
@keyframes campana-ring {
    0%   { transform: scale(0.88) rotate(6deg); }
    25%  { transform: scale(1.15) rotate(-18deg); }
    50%  { transform: scale(1.08) rotate(20deg); }
    75%  { transform: scale(1.05) rotate(-10deg); }
    100% { transform: scale(1)    rotate(0); }
}

/* === FRASCO SHAKE === */
.frasco-svg.shaking {
    animation: frascoShake 0.4s ease-in-out;
}
@keyframes frascoShake {
    0%, 100% { transform: translateX(0) rotate(0); }
    20%      { transform: translateX(-4px) rotate(-2deg); }
    40%      { transform: translateX(4px)  rotate(2deg); }
    60%      { transform: translateX(-3px) rotate(-1deg); }
    80%      { transform: translateX(3px)  rotate(1deg); }
}

/* === FLOATERS (emojis que vuelan) === */
.floater {
    position: absolute;
    font-size: 28px;
    pointer-events: none;
    z-index: 100;
    animation: floatUp linear forwards;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    user-select: none;
}
@keyframes floatUp {
    0%   { opacity: 0; transform: translate(0, 0) scale(0.5) rotate(0); }
    15%  { opacity: 1; transform: translate(0, -20px) scale(1.2) rotate(15deg); }
    50%  { opacity: 1; transform: translate(var(--dx, 20px), -80px) scale(1) rotate(-20deg); }
    100% { opacity: 0; transform: translate(var(--dx, 40px), -180px) scale(0.6) rotate(45deg); }
}

/* === HYPE MESSAGE === */
.hype-msg {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1px;
    white-space: nowrap;
    text-shadow:
        0 2px 10px rgba(0,0,0,0.6),
        0 0 18px currentColor;
    animation: hypePop 1.1s cubic-bezier(0.5, 1.8, 0.3, 1);
    pointer-events: none;
    z-index: 200;
}
@keyframes hypePop {
    0%   { opacity: 0; transform: translate(-50%, 10px) scale(0.3); }
    20%  { opacity: 1; transform: translate(-50%, -20px) scale(1.3); }
    40%  { transform: translate(-50%, -30px) scale(1); }
    90%  { opacity: 1; transform: translate(-50%, -45px) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -70px) scale(0.9); }
}

/* === COMBO BADGE === */
.combo-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 0.8px;
    animation: comboThrob 0.4s ease;
    box-shadow: 0 3px 10px rgba(46, 204, 113, 0.35);
}
.combo-badge.combo-3, .combo-badge.combo-4 { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.combo-badge.combo-5, .combo-badge.combo-6 { background: linear-gradient(135deg, #f5c76e, #b9770e); box-shadow: 0 3px 10px rgba(245, 199, 110, 0.4); }
.combo-badge.combo-7, .combo-badge.combo-8, .combo-badge.combo-9 {
    background: linear-gradient(135deg, #ff5722, #c0392b);
    box-shadow: 0 3px 14px rgba(231, 76, 60, 0.5);
    animation: comboThrob 0.3s ease, fireGlow 1s ease-in-out infinite alternate;
}
.combo-badge.combo-10 {
    background: linear-gradient(135deg, #e91e63, #8e44ad, #3498db);
    background-size: 200% 200%;
    box-shadow: 0 3px 18px rgba(233, 30, 99, 0.6);
    animation: comboThrob 0.3s ease, rainbowBg 2s linear infinite;
}
@keyframes comboThrob {
    0%   { transform: scale(0.8); }
    50%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}
@keyframes fireGlow {
    from { filter: brightness(1); }
    to   { filter: brightness(1.3); }
}
@keyframes rainbowBg {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* === TANDA 17: Flash post-venta en menu === */
.venta-flash {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.15), rgba(39, 174, 96, 0.05));
    border: 1px solid #27ae60;
    border-radius: 10px;
    margin-bottom: 14px;
    animation: vfIn 0.4s cubic-bezier(.16,1,.3,1);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(39, 174, 96, 0.15);
}
@keyframes vfIn {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}
.vf-ok { font-size: 28px; }
.vf-texto { flex: 1; }
.vf-titulo { font-size: 15px; font-weight: 900; color: #27ae60; letter-spacing: 0.3px; }
.vf-sub { font-size: 11.5px; color: #85c1e9; margin-top: 2px; }
.vf-x {
    background: transparent; border: none; color: #888;
    font-size: 16px; cursor: pointer;
    padding: 4px 10px; border-radius: 5px;
}
.vf-x:hover { background: rgba(255,255,255,0.05); color: #fff; }

/* === TANDA 18: Badge novedades === */
.btn-novedades {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    background: rgba(52,152,219,0.08);
    border: 1px solid rgba(52,152,219,0.25);
    border-radius: 8px;
    color: #85c1e9;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.15s;
    margin-right: 6px;
}
.btn-novedades:hover {
    background: rgba(52,152,219,0.18);
    transform: translateY(-1px);
}
.btn-novedades.tiene {
    background: rgba(231,76,60,0.12);
    border-color: #e74c3c;
    animation: novPulse 2s ease-in-out infinite;
}
@keyframes novPulse {
    0%,100% { box-shadow: 0 0 0 rgba(231,76,60,0); }
    50% { box-shadow: 0 0 14px rgba(231,76,60,0.45); }
}
.nov-badge {
    position: absolute;
    top: -6px; right: -6px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    padding: 1px 6px;
    border-radius: 10px;
    min-width: 18px; text-align: center;
    border: 2px solid #14181d;
}

/* === TANDA 19: Sección oferta en admin combos === */
.oferta-section {
    margin-top: 16px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(185,119,14,0.08), rgba(185,119,14,0.02));
    border: 1px solid rgba(185,119,14,0.25);
    border-radius: 8px;
}
.oferta-section h4 {
    margin: 0 0 10px;
    color: #f5c76e;
    font-size: 13px;
    letter-spacing: 1.5px;
    font-weight: 800;
}

/* === TANDA 19: Cards oferta con importancia === */
.combo-card.imp-destacada {
    border: 2px solid #f5c76e;
    box-shadow: 0 0 14px rgba(245,199,110,0.25);
}
.combo-card.imp-promo_dia {
    border: 2px solid #e74c3c;
    background: linear-gradient(145deg, rgba(231,76,60,0.12), rgba(0,0,0,0.4));
    box-shadow: 0 0 18px rgba(231,76,60,0.3);
    animation: promoPulse 2.5s ease-in-out infinite;
}
@keyframes promoPulse {
    0%,100% { box-shadow: 0 0 14px rgba(231,76,60,0.3); }
    50% { box-shadow: 0 0 22px rgba(231,76,60,0.5); }
}
.combo-chip-imp {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-left: 6px;
}
.combo-chip-imp.destacada {
    background: rgba(245,199,110,0.18);
    color: #f5c76e;
}
.combo-chip-imp.promo_dia {
    background: rgba(231,76,60,0.2);
    color: #e74c3c;
}

/* === TANDA 19: Banner Promo del Dia flotante en POS === */
.promo-dia-banner {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 200;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(231,76,60,0.4);
    animation: promoDiaIn 0.5s cubic-bezier(.16,1,.3,1), promoDiaBob 2.5s ease-in-out infinite;
    cursor: pointer;
    max-width: 260px;
}
@keyframes promoDiaIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes promoDiaBob {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.pdb-label {
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 800;
    opacity: 0.95;
}
.pdb-nombre {
    font-size: 15px;
    font-weight: 900;
    margin-top: 2px;
    line-height: 1.2;
}
.pdb-cerrar {
    position: absolute;
    top: 2px; right: 6px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: 14px;
}

/* === TANDA 22: Recomendaciones cliente en POS === */
.recs-cli {
    margin-top: 10px;
    padding: 8px;
    background: rgba(52,152,219,0.04);
    border: 1px solid rgba(52,152,219,0.15);
    border-radius: 6px;
}
.recs-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.recs-tab {
    flex: 1;
    padding: 5px 4px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 4px;
    color: #7a8088;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    min-width: 70px;
}
.recs-tab:hover { background: rgba(255,255,255,0.06); }
.recs-tab.on {
    background: rgba(52,152,219,0.15);
    border-color: #3498db;
    color: #85c1e9;
}
.rec-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    margin-bottom: 3px;
    background: #0f1418;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.1s;
    font-size: 12px;
}
.rec-item:hover { background: rgba(52,152,219,0.1); }
.rec-nom { flex: 1; color: #fff; font-weight: 600; }
.rec-pre { color: #f5c76e; font-weight: 700; font-size: 11px; }
.rec-veces {
    background: rgba(39,174,96,0.15);
    color: #27ae60;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
}

/* === TANDA 22: P&L period categ bars === */
.pp-cat-fill { background: linear-gradient(90deg, #b9770e, #f5c76e); }

/* === TANDA 23: Tutorial interactivo v2 === */
.tut-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.72);
    z-index: 9995;
    pointer-events: auto;
    animation: tutFadeIn 0.3s ease;
}
@keyframes tutFadeIn { from{opacity:0;} to{opacity:1;} }
.tut-spot {
    position: fixed;
    z-index: 9996;
    border-radius: 10px;
    box-shadow: 0 0 0 4px #f5c76e,
                0 0 0 9999px rgba(0,0,0,0.72),
                0 0 30px rgba(245,199,110,0.6);
    pointer-events: none;
    transition: all 0.35s cubic-bezier(.16,1,.3,1);
    animation: tutSpotPulse 2s ease-in-out infinite;
}
@keyframes tutSpotPulse {
    0%,100% { box-shadow: 0 0 0 4px #f5c76e, 0 0 0 9999px rgba(0,0,0,0.72), 0 0 30px rgba(245,199,110,0.6); }
    50% { box-shadow: 0 0 0 4px #f5c76e, 0 0 0 9999px rgba(0,0,0,0.72), 0 0 50px rgba(245,199,110,0.9); }
}

.tt-tooltip {
    position: fixed;
    z-index: 9997;
    width: 380px; max-width: 92vw;
    background: linear-gradient(160deg, #1a1e24 0%, #0e1117 100%);
    border: 2px solid #b9770e;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6), 0 0 30px rgba(185,119,14,0.3);
    animation: tutTipIn 0.3s cubic-bezier(.16,1,.3,1);
    transition: top 0.35s, left 0.35s;
}
.tt-tooltip.tt-centro {
    top: 50% !important; left: 50% !important;
    transform: translate(-50%, -50%);
}
@keyframes tutTipIn {
    from { opacity:0; transform: translateY(10px); }
    to { opacity:1; transform: translateY(0); }
}

.tt-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.tt-paso { background: rgba(185,119,14,0.15); color:#f5c76e; padding:3px 10px; border-radius:12px; font-size:10px; font-weight:800; letter-spacing:1px; }
.tt-x { background:transparent; border:none; color:#888; font-size:16px; cursor:pointer; padding:4px 8px; border-radius:5px; }
.tt-x:hover { color:#e74c3c; background:rgba(231,76,60,0.1); }

.tt-emoji { font-size:44px; text-align:center; margin:4px 0 6px; animation: tutEmojiBob 2s ease-in-out infinite; }
@keyframes tutEmojiBob { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-4px);} }
.tt-titulo { font-size:17px; color:#fff; font-weight:900; text-align:center; margin-bottom:8px; }
.tt-texto { font-size:13px; color:#cfd2d6; line-height:1.55; text-align:center; margin-bottom:10px; }
.tt-texto b { color:#f5c76e; }

.tt-accion-info {
    background: rgba(39,174,96,0.12);
    border-left: 3px solid #27ae60;
    color: #85e0a3;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.tt-dots { display:flex; gap:4px; justify-content:center; margin:10px 0; }
.tt-dot { width:7px; height:7px; border-radius:50%; background: rgba(255,255,255,0.15); transition: all 0.2s; }
.tt-dot.on { background: #f5c76e; width:20px; border-radius:4px; }
.tt-dot.done { background: rgba(245,199,110,0.4); }

.tt-foot { display:flex; gap:6px; justify-content:flex-end; margin-top:4px; }
