*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,Segoe UI,Arial,sans-serif;background:#eef3fb;color:#08142b}.sidebar{position:fixed;top:0;bottom:0;left:0;width:270px;background:#071b3c;color:white;padding:24px}.brand{display:flex;gap:12px;align-items:center;margin-bottom:24px}.mark{background:#ffd34d;color:#071b3c;width:42px;height:42px;border-radius:14px;display:grid;place-items:center;font-weight:900}.brand strong{display:block}.brand span{color:#b8c9e5;font-size:13px}.nav{display:block;width:100%;border:0;background:transparent;color:#d5e4fa;text-align:left;padding:13px 16px;border-radius:16px;font-weight:800;margin-bottom:7px;cursor:pointer}.nav.active,.nav:hover{background:rgba(255,255,255,.12);color:#fff}.side-card{position:absolute;bottom:24px;left:24px;right:24px;border:1px solid rgba(255,255,255,.18);border-radius:22px;padding:18px;background:rgba(255,255,255,.08)}.side-card span{color:#b8c9e5}.side-card strong{display:block;font-size:34px}.mini-progress,.progress{height:13px;background:#e5edf8;border-radius:999px;overflow:hidden}.mini-progress{background:rgba(255,255,255,.16)}.mini-progress i,.progress i{display:block;height:100%;background:linear-gradient(90deg,#073f8f,#ffd34d);border-radius:999px;min-width:4px}.mini-progress i{background:linear-gradient(90deg,#ffd34d,#ffe69c)}.main{margin-left:270px;padding:28px 34px}.topbar{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px}.topbar small{font-weight:900;color:#074ea1;letter-spacing:.12em}.topbar h1{font-size:34px;margin:6px 0}.actions{display:flex;gap:10px}.btn{border:0;border-radius:14px;padding:12px 16px;font-weight:900;cursor:pointer}.primary{background:#0957c3;color:#fff;box-shadow:0 12px 28px rgba(9,87,195,.22)}.ghost{background:#fff;border:1px solid #d6e1ef;color:#074ea1}.page{display:none}.page.active{display:block}.hero{background:linear-gradient(135deg,#0a63d8,#071b3c);color:#fff;border-radius:30px;padding:30px;display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:16px;box-shadow:0 20px 45px rgba(8,20,43,.12)}.hero span,.tag{display:inline-flex;background:rgba(255,211,77,.18);border:1px solid rgba(255,211,77,.35);padding:7px 12px;border-radius:999px;color:#ffe18a;font-weight:900}.hero h2{font-size:36px;max-width:720px;margin:16px 0 10px;letter-spacing:-.05em}.hero p{color:#dbe9ff;margin:0}.hero-number,.report-total{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);border-radius:24px;padding:20px;text-align:right;min-width:230px}.hero-number span,.report-total span{display:block;color:#dbe9ff}.hero-number strong,.report-total strong{display:block;font-size:30px}.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:16px}.kpis article,.panel,.compliance-card,.feed-panel,.table-list,.cards article{background:#fff;border:1px solid #d6e1ef;border-radius:22px;box-shadow:0 16px 40px rgba(8,20,43,.07);padding:18px}.kpis span{display:block;color:#5b6f8e;font-weight:800}.kpis strong{display:block;color:#07418c;font-size:26px;margin:8px 0}.kpis small{color:#074ea1;font-weight:800}.compliance-card{display:grid;grid-template-columns:1fr 1fr .9fr;gap:16px;margin-bottom:16px}.label-blue{color:#074ea1;font-weight:900;font-size:12px;letter-spacing:.08em;text-transform:uppercase}.compliance-card h3{margin:6px 0 10px}.small-list{display:grid;gap:10px;max-height:260px;overflow:auto}.small-row,.list-item{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;padding:12px;border:1px solid #d6e1ef;background:#f8fbff;border-radius:16px}.decision-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.decision-card{background:#f8fbff;border:1px solid #d6e1ef;border-radius:18px;padding:14px}.decision-card .label{display:inline-flex;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:900;background:#e8f1ff;color:#07418c}.decision-card p{color:#5b6f8e}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.panel-head,.page-head,.feed-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:14px}.page-head h2{margin:0;font-size:30px}.page-head p{color:#5b6f8e}.funnel-row{display:grid;grid-template-columns:130px 1fr 140px;gap:12px;align-items:center;margin-bottom:10px}.bar{height:13px;background:#e5edf8;border-radius:999px;overflow:hidden}.bar i{display:block;height:100%;background:linear-gradient(90deg,#073f8f,#ffd34d);border-radius:999px}.report-hero{border-radius:30px;background:linear-gradient(135deg,#fff,#eef5ff);border:1px solid #d6e1ef;box-shadow:0 16px 40px rgba(8,20,43,.07);padding:28px;display:flex;justify-content:space-between;align-items:end;margin-bottom:16px}.report-hero h2{font-size:34px;margin:14px 0}.report-total{background:#071b3c;color:#fff}.feed-grid,.formgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.feed-grid .wide,.formgrid .full{grid-column:1/-1}label{font-size:13px;color:#5b6f8e;font-weight:800}input,select,textarea{width:100%;display:block;margin-top:7px;border:1px solid #d6e1ef;border-radius:14px;padding:12px;background:#fff;font:inherit}.filters{display:flex;gap:10px;flex-wrap:wrap}.subtabs{display:flex;gap:10px;margin-bottom:14px}.subtab{border:1px solid #d6e1ef;background:#fff;border-radius:14px;padding:11px 15px;font-weight:900;cursor:pointer}.subtab.active{background:#071b3c;color:#fff}.view{display:none}.view.active{display:block}.kanban{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.kanban-col{background:#fff;border:1px solid #d6e1ef;border-radius:22px;padding:14px;max-height:650px;overflow:auto}.deal-card{border:1px solid #d6e1ef;border-radius:18px;padding:14px;margin-bottom:10px}.deal-card p{color:#5b6f8e}.table-list{display:grid;gap:10px;max-height:650px;overflow:auto}.table-row{display:grid;grid-template-columns:1.1fr 1fr 130px 130px 160px 90px;gap:12px;align-items:center;background:#fff;border:1px solid #d6e1ef;border-radius:18px;padding:14px}.table-row b{display:block}.table-row small{display:block;color:#5b6f8e}.pill,.client-type{display:inline-flex;padding:7px 10px;border-radius:999px;font-size:12px;font-weight:900;background:#e8f1ff;color:#07418c}.pill.Cerrada,.client-type.directo{background:#e6f8ef;color:#138a59}.pill.Programada,.client-type.arl{background:#fff3d1;color:#9a6800}.pill.Descartada{background:#fff0f2;color:#c73545}.money{color:#07418c;font-weight:900}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.cards h3{margin-top:0}.big-money{font-size:26px;color:#07418c;font-weight:900}.service-bar{height:10px;background:#e5edf8;border-radius:999px;overflow:hidden}.service-bar i{display:block;height:100%;background:linear-gradient(90deg,#073f8f,#ffd34d)}dialog{border:0;background:transparent}dialog::backdrop{background:rgba(7,27,60,.45);backdrop-filter:blur(5px)}.modal{background:#fff;border-radius:26px;padding:22px;width:min(850px,calc(100vw - 30px));box-shadow:0 40px 80px rgba(7,27,60,.25)}.modal-head{display:flex;justify-content:space-between}.x{border:0;width:36px;height:36px;border-radius:50%;font-size:22px}.modal-actions{margin-top:16px;display:flex;justify-content:flex-end}@media(max-width:1150px){.sidebar{position:relative;width:auto}.main{margin-left:0}.kpis,.grid2,.cards,.decision-grid,.kanban,.compliance-card{grid-template-columns:1fr 1fr}.table-row{grid-template-columns:1fr}}@media(max-width:720px){.main{padding:16px}.topbar,.hero,.report-hero,.page-head{flex-direction:column}.kpis,.grid2,.cards,.decision-grid,.kanban,.compliance-card,.feed-grid,.formgrid{grid-template-columns:1fr}}

/* v20 Premium UI: más legible, sin desbordes largos */
:root{
  --panel-h: 520px;
  --panel-h-lg: 640px;
}
body{
  font-size:16px;
}
.topbar h1{
  font-size:38px;
}
.hero{
  min-height:205px;
  padding:32px;
}
.hero h2{
  font-size:40px;
  line-height:1.05;
}
.hero p,.page-head p,.section-intro p{
  font-size:16px;
}
.kpis article{
  min-height:128px;
}
.kpis strong{
  font-size:30px;
}
.panel,.feed-panel,.compliance-card,.table-list,.cards article{
  border-radius:24px;
}
.table-list{
  max-height:var(--panel-h-lg);
  overflow:auto;
  padding-right:6px;
}
.small-list{
  max-height:300px;
  overflow:auto;
  padding-right:6px;
}
.cards{
  max-height:var(--panel-h-lg);
  overflow:auto;
  padding-right:6px;
}
.kanban{
  max-height:var(--panel-h-lg);
  overflow:auto;
}
.kanban-col{
  max-height:620px;
  overflow:auto;
}
.deal-card{
  min-height:132px;
}
.deal-card p{
  max-height:44px;
  overflow:hidden;
}
.table-row{
  min-height:78px;
}
.table-row b{
  font-size:16px;
}
.table-row small{
  font-size:13px;
}
.filters{
  align-items:center;
}
.filters input,.filters select{
  min-height:46px;
}
.btn{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  transition:.18s ease;
}
.btn:hover{
  transform:translateY(-1px);
}
.feed-grid{
  grid-template-columns:1fr 1fr 1fr;
}
.feed-panel{
  max-height:430px;
  overflow:auto;
}
.report-hero{
  min-height:190px;
}
.formgrid label{
  font-size:14px;
}
input,select,textarea{
  font-size:15px;
}
.modal{
  max-height:90vh;
  overflow:auto;
}
.modal.medium{
  width:min(760px,calc(100vw - 30px));
}
.modal.small{
  width:min(520px,calc(100vw - 30px));
}
.modal-kicker{
  color:#074ea1;
  font-weight:900;
  font-size:12px;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.formgrid.single{
  grid-template-columns:1fr;
}
.modal-head h3{
  margin:4px 0 0;
  font-size:28px;
}
.service-card,.cards article{
  min-height:210px;
}
.db-row-note{
  max-height:38px;
  overflow:hidden;
}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:#c5d3e7;border-radius:999px;border:2px solid #f2f6fb}
::-webkit-scrollbar-track{background:#f2f6fb;border-radius:999px}

@media(max-width:1180px){
  .feed-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  .feed-grid{grid-template-columns:1fr}
  .topbar h1{font-size:30px}
  .hero h2{font-size:31px}
  .kpis strong{font-size:24px}
}
