/* Torres Power · Panel de tu negocio */
.tpp{--n:#0F172A;--n2:#1E293B;--g:#F59E0B;--g2:#FDE68A;--gd:#B45309;--ink:#0F172A;--soft:#64748B;--line:rgba(15,23,42,.08);--ok:#16A34A;--warn:#D97706;--live:#2563EB;
  font-family:Barlow,system-ui,sans-serif;color:var(--ink);border-radius:22px;overflow:hidden;background:#0B1324;box-shadow:0 0 0 1px rgba(245,158,11,.35),0 30px 80px rgba(0,0,0,.55),0 0 60px rgba(245,158,11,.12);display:flex;flex-direction:column;height:100%}
.tpp *{box-sizing:border-box}
.tpp-bar{position:relative;display:flex;align-items:center;gap:8px;height:42px;padding:0 16px;background:#0B1324;border-bottom:1px solid rgba(148,163,184,.12)}
.tpp-bar>i{width:12px;height:12px;border-radius:50%;background:#EF4444}.tpp-bar>i:nth-child(2){background:#F59E0B}.tpp-bar>i:nth-child(3){background:#22C55E}
.tpp-demo{position:absolute;left:50%;transform:translateX(-50%);font:700 13px Barlow,monospace;letter-spacing:.38em;color:#CBD5E1;padding:5px 14px;border-radius:999px;border:1px solid transparent;transition:all .3s}
.tpp-demo.hl{color:#FDE68A;border-color:rgba(245,158,11,.75);box-shadow:0 0 18px rgba(245,158,11,.35)}
.tpp-body{display:flex;flex:1;min-height:0;background:linear-gradient(160deg,#F8FAFC 0%,#EEF2F7 55%,#E6ECF5 100%)}
.tpp-side{width:200px;flex:0 0 200px;background:linear-gradient(180deg,#0F172A,#111c33);color:#E2E8F0;padding:16px 12px;display:flex;flex-direction:column;gap:14px}
.tpp-brand{display:flex;gap:10px;align-items:center}
.tpp-logo{width:34px;height:34px;border-radius:10px;background:linear-gradient(180deg,#FBBF24,#F59E0B);color:#111827;display:flex;align-items:center;justify-content:center;flex:0 0 34px}
.tpp-logo svg{width:20px;height:20px;fill:currentColor;stroke:none}
.tpp-brand b{display:block;font-weight:800;font-size:15px}.tpp-brand small{font-size:11px;color:#94A3B8}
.tpp-side nav{display:flex;flex-direction:column;gap:4px}
.tpp-nav{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:10px;border:0;background:transparent;color:#CBD5E1;font:600 14px Barlow,sans-serif;cursor:pointer;text-align:left}
.tpp-nav svg{width:17px;height:17px;flex:0 0 17px}
.tpp-nav span{flex:1}
.tpp-nav em{font-style:normal;font-size:11px;font-weight:800;min-width:20px;height:20px;border-radius:999px;background:rgba(148,163,184,.2);color:#E2E8F0;display:inline-flex;align-items:center;justify-content:center;padding:0 6px}
.tpp-nav em.hot{background:var(--g);color:#111827}
.tpp-nav.on{background:rgba(245,158,11,.14);color:#FDE68A;box-shadow:inset 0 0 0 1px rgba(245,158,11,.4)}
.tpp-staff{margin-top:auto;padding:10px;border-radius:12px;background:rgba(148,163,184,.08)}
.tpp-staff small{font-size:11px;color:#94A3B8}.tpp-staff div{display:flex;gap:4px;margin-top:6px}
.tpp-staff span{width:28px;height:28px;border-radius:50%;background:#1E3A8A;color:#DBEAFE;font-size:10px;font-weight:800;display:flex;align-items:center;justify-content:center;border:2px solid #0F172A}
.tpp-main{flex:1;min-width:0;padding:16px 18px;display:flex;flex-direction:column;gap:12px;overflow:hidden}
.tpp-tabs{display:flex;gap:4px;background:rgba(255,255,255,.75);border:1px solid var(--line);border-radius:999px;padding:4px;align-self:flex-start;flex-wrap:wrap}
.tpp-tab{border:0;background:transparent;font:700 13px Barlow,sans-serif;color:var(--soft);padding:7px 13px;border-radius:999px;cursor:pointer}
.tpp-tab.on{background:var(--n);color:#FDE68A}
.tpp-view{display:flex;flex-direction:column;gap:12px;min-height:0}
.tpp-head h3{margin:0;font:800 34px 'Barlow Condensed',Barlow,sans-serif;letter-spacing:-.01em;color:var(--n)}
.tpp-head p{margin:2px 0 0;font-size:13px;color:var(--soft)}
.tpp-head-row{display:flex;justify-content:space-between;align-items:flex-end}
.tpp-total{text-align:right}.tpp-total b{display:block;font:800 40px 'Barlow Condensed',sans-serif;color:var(--gd);line-height:1}.tpp-total small{color:var(--soft);font-size:12px}
.tpp-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.tpp-kpi{position:relative;background:#fff;border-radius:16px;padding:14px 14px 12px;box-shadow:0 1px 0 var(--line),0 8px 20px rgba(15,23,42,.06)}
.tpp-kpi b{display:block;font:800 40px 'Barlow Condensed',sans-serif;line-height:1;color:var(--n)}
.tpp-kpi small{display:block;font-size:12px;color:var(--soft);margin-top:4px;line-height:1.2}
.tpp-kpi.warn b{color:var(--warn)}.tpp-kpi.gold b{color:var(--gd)}
.tpp-kic{position:absolute;top:12px;right:12px;color:#94A3B8}.tpp-kic svg{width:16px;height:16px}
.tpp-two{display:grid;grid-template-columns:1fr 1fr;gap:10px;min-height:0}
.tpp-two.wide{grid-template-columns:1.2fr .8fr}
.tpp-card{background:#fff;border-radius:16px;padding:12px 14px;box-shadow:0 1px 0 var(--line),0 8px 20px rgba(15,23,42,.06);min-width:0}
.tpp-card header{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.tpp-card h4{margin:0;font:800 16px Barlow,sans-serif;color:var(--n)}
.tpp-tag{font-size:11px;font-weight:800;padding:3px 9px;border-radius:999px;background:#F1F5F9;color:var(--soft)}
.tpp-tag.warn{background:#FEF3C7;color:#92400E}.tpp-tag.ok{background:#DCFCE7;color:#166534}
.tpp-row{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid var(--line);transition:opacity .3s}
.tpp-row:first-of-type{border-top:0}
.tpp-row.done{opacity:.55}.tpp-row.paid .tpp-amt{text-decoration:line-through;color:#94A3B8}
.tpp-av{width:32px;height:32px;flex:0 0 32px;border-radius:50%;background:#E0E7FF;color:#3730A3;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center}
.tpp-av.wa{background:#DCFCE7;color:#166534}.tpp-av.sg{background:#FCE7F3;color:#9D174D}.tpp-av.py{background:#FEF3C7;color:#92400E}
.tpp-rt{flex:1;min-width:0}
.tpp-rt b{display:block;font-size:14px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tpp-rt b i{font-style:normal;font-weight:600;font-size:12px;color:var(--soft);margin-left:4px}.tpp-rt b i.hot{color:var(--warn)}
.tpp-rt small{display:block;font-size:12px;color:var(--soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tpp-amt{font:800 17px 'Barlow Condensed',sans-serif;color:var(--n)}
.tpp-btn{border:0;background:var(--n);color:#fff;font:800 12px Barlow,sans-serif;padding:7px 12px;border-radius:9px;cursor:pointer;white-space:nowrap}
.tpp-btn.gold{background:linear-gradient(180deg,#FBBF24,#F59E0B);color:#111827}
.tpp-btn.press{transform:scale(.92);filter:brightness(1.2)}
.tpp-badge{font-size:11px;font-weight:800;padding:4px 9px;border-radius:999px;white-space:nowrap;border:1px solid var(--line);background:#F8FAFC;color:var(--soft)}
.tpp-badge.ok{background:#F0FDF4;color:#166534;border-color:#BBF7D0}.tpp-badge.warn{background:#FFFBEB;color:#92400E;border-color:#FDE68A}
.tpp-badge.live{background:#EFF6FF;color:var(--live);border-color:#BFDBFE}
.tpp-chat{background:#fff;border-radius:16px;padding:12px;box-shadow:0 8px 20px rgba(15,23,42,.06);display:flex;flex-direction:column;gap:8px;background-image:radial-gradient(rgba(22,163,74,.06) 1px,transparent 1px);background-size:12px 12px}
.tpp-chat-h{display:flex;align-items:center;gap:8px;padding-bottom:8px;border-bottom:1px solid var(--line)}.tpp-chat-h b{font-size:14px}.tpp-chat-h small{margin-left:auto;font-size:11px;color:var(--soft)}
.tpp-bub{max-width:88%;padding:8px 11px;border-radius:12px;font-size:13px;line-height:1.3}
.tpp-bub.in{background:#F1F5F9;align-self:flex-start;border-top-left-radius:4px}
.tpp-bub.out{background:#DCFCE7;align-self:flex-end;border-top-right-radius:4px}
.tpp-empty{align-items:center;justify-content:center;color:var(--ok);font-weight:800}
.tpp-skel{display:flex;flex-direction:column;gap:10px;padding:6px 0}
.tpp-skel i{display:block;height:36px;border-radius:10px;background:linear-gradient(90deg,#EEF2F7 0%,#F8FAFC 40%,#EEF2F7 80%);background-size:200% 100%;animation:tppsh 1.1s linear infinite}
@keyframes tppsh{to{background-position:-200% 0}}
.tpp-err{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:22px 10px}
.tpp-err-ic{width:38px;height:38px;border-radius:50%;background:#FEE2E2;color:#B91C1C;font-weight:900;font-size:20px;display:flex;align-items:center;justify-content:center}
.tpp-err b{font-size:15px}.tpp-err small{color:var(--soft);font-size:12px}
/* compacto (celular) */
.tpp.compact .tpp-body{flex-direction:column}
.tpp.compact .tpp-side{width:auto;flex:none;padding:10px;gap:10px}
.tpp.compact .tpp-side nav{flex-direction:row;overflow-x:auto;gap:6px}
.tpp.compact .tpp-nav{flex:0 0 auto;padding:8px 10px}
.tpp.compact .tpp-staff{display:none}
.tpp.compact .tpp-kpis{grid-template-columns:1fr 1fr}
.tpp.compact .tpp-two,.tpp.compact .tpp-two.wide{grid-template-columns:1fr}
.tpp.compact .tpp-main{padding:12px}
.tpp.compact .tpp-tabs{flex-wrap:nowrap;overflow-x:auto;max-width:100%}
.tpp.compact .tpp-head h3{font-size:28px}
.tpp.compact .tpp-demo{letter-spacing:.18em;font-size:11px;white-space:nowrap}
