:root{--bg:#f3f6fa;--surface:#ffffff;--surface-2:#f8fafc;--ink:#101828;--muted:#667085;--line:#d9e2ec;--primary:#1f5eff;--primary-2:#1746b9;--navy:#111827;--teal:#0f766e;--green:#168a45;--amber:#b7791f;--red:#c2413d;--radius:18px;--shadow:0 20px 45px rgba(16,24,40,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif;background:var(--bg);color:var(--ink);font-size:16px;line-height:1.45}a{color:inherit}button,input,select,textarea{font:inherit}button{cursor:pointer}.container{width:min(1180px,92vw);margin:0 auto}.page{min-height:calc(100vh - 88px)}
.topbar{height:88px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;padding:0 max(28px,4vw);backdrop-filter:blur(16px)}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;min-width:max-content}.brand-icon{width:52px;height:52px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(135deg,#1f5eff,#0f766e);color:white;font-weight:900;letter-spacing:.5px}.brand-copy strong{display:block;font-size:1.08rem;letter-spacing:-.2px}.brand-copy small{display:block;color:var(--muted);margin-top:3px}.menu-btn{display:none;background:#eef4ff;border:1px solid var(--line);border-radius:999px;padding:10px 14px;font-weight:800;color:var(--primary)}.nav{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}.nav a,.nav button{appearance:none;border:0;background:transparent;text-decoration:none;font-weight:800;color:#334155;padding:11px 13px;border-radius:999px;cursor:pointer;white-space:nowrap}.nav a:hover,.nav a.active{background:#eef4ff;color:var(--primary)}.nav-user{background:var(--navy)!important;color:white!important}.nav-user:hover{background:#020617!important;color:white!important}
.section{padding:48px 0}.compact{padding:30px 0}.section-head,.dashboard-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;margin-bottom:20px}.dashboard-head h1,.section-head h2{margin:0;font-size:clamp(2rem,4vw,2.65rem);letter-spacing:-1px}.section-lead{font-size:1.04rem;line-height:1.68;color:var(--muted);margin:.35rem 0 0}.badge{display:inline-flex;align-items:center;gap:8px;border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8;border-radius:999px;padding:9px 15px;font-weight:900}.hero{display:grid;grid-template-columns:1.45fr .8fr;gap:24px;align-items:stretch}.hero-main,.hero-side,.panel,.card,.login-card,.login-copy{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.hero-main{padding:42px}.hero-main h1{font-size:clamp(2.35rem,5vw,4.2rem);line-height:1;letter-spacing:-2px;margin:22px 0 18px}.hero-main p{font-size:1.08rem;line-height:1.7;color:var(--muted);max-width:820px}.hero-side{background:linear-gradient(145deg,#101828,#1e3a8a);color:white;padding:34px;display:flex;flex-direction:column;justify-content:center}.hero-side span{opacity:.9}.hero-side strong{font-size:clamp(3rem,7vw,4.6rem);letter-spacing:-3px;margin:15px 0}.hero-side p{color:#bfdbfe;line-height:1.6;margin:0}.hero-actions,.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.btn-primary,.btn-secondary,.btn-soft,.btn-danger,.btn-ghost{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border:0;border-radius:999px;padding:13px 19px;font-weight:900;gap:8px;min-height:46px}.btn-primary{background:var(--primary);color:white}.btn-primary:hover{background:var(--primary-2)}.btn-secondary{background:var(--navy);color:white}.btn-soft{background:#eaf1fb;color:#1d4ed8}.btn-danger{background:#fee2e2;color:#991b1b}.btn-ghost{background:transparent;color:var(--muted);border:1px solid var(--line)}.btn-soft:hover,.btn-ghost:hover{background:#e2e8f0}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:20px}.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.card,.panel{padding:24px}.panel{margin-bottom:20px}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.panel-title h2,.panel-title h3{margin:0}.panel-title p{margin:6px 0 0;color:var(--muted)}.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:22px 0}.kpi{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow)}.kpi span{display:block;color:var(--muted);font-weight:800}.kpi strong{display:block;font-size:2rem;margin:9px 0 4px;letter-spacing:-.5px}.kpi small{color:var(--muted)}.step-list{display:grid;gap:12px}.step-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;border:1px solid var(--line);border-radius:16px;background:var(--surface-2);padding:16px}.step-num{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#e0ecff;color:#1d4ed8;font-weight:900}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.form-row{display:flex;flex-direction:column;gap:7px}.form-row.full{grid-column:1/-1}.form-row label{font-weight:900;color:#334155}.form-row input,.form-row select,.form-row textarea{width:100%;border:1px solid #cbd5e1;border-radius:14px;padding:13px 14px;background:white;color:var(--ink);outline:none}.form-row textarea{min-height:112px;resize:vertical}.form-row input:focus,.form-row select:focus,.form-row textarea:focus{border-color:#60a5fa;box-shadow:0 0 0 4px rgba(37,99,235,.12)}.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:16px;background:white}table{width:100%;border-collapse:collapse}th,td{padding:14px 15px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}th{background:#f8fafc;color:#334155;font-size:.9rem;letter-spacing:.02em}tr:last-child td{border-bottom:0}.table-muted{color:var(--muted);font-size:.92rem}.mini-links{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.status{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:6px 10px;font-size:.83rem;font-weight:900;background:#eaf1fb;color:#1d4ed8}.status.Alta,.status.Urgente,.status.Cancelado,.status.Descartado{background:#fee2e2;color:#991b1b}.status.Media,.status.Pendiente,.status.En.proceso,.status.En\ proceso,.status.Contactado{background:#fef3c7;color:#92400e}.status.Completado,.status.Resuelto,.status.Activo,.status.Automatizado,.status.Optimizado,.status.Convertido,.status.Enviado{background:#dcfce7;color:#166534}.status.Nuevo{background:#eef4ff;color:#1d4ed8}.alert,.error{border-radius:16px;padding:15px 17px;margin:12px 0 18px;font-weight:800}.alert.ok{background:#dcfce7;color:#166534;border:1px solid #bbf7d0}.alert.error,.error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}.alert.info{background:#eff6ff;color:#1e40af;border:1px solid #bfdbfe}.notice-strip{border-radius:16px;padding:16px 18px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;font-weight:800;margin-bottom:18px}.empty-state{border:1px dashed #cbd5e1;border-radius:16px;background:#f8fafc;color:var(--muted);padding:24px;text-align:center}.metric-list{display:grid;gap:14px}.metric-item{border:1px solid var(--line);border-radius:16px;background:white;padding:16px}.metric-item strong{display:block;margin-bottom:5px}.progress{height:10px;background:#e2e8f0;border-radius:999px;overflow:hidden;margin-top:10px}.progress span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#1f5eff,#0f766e)}.code{white-space:pre-wrap;background:#0f172a;color:#e5e7eb;border-radius:16px;padding:18px;overflow:auto}.login-wrap{display:grid;grid-template-columns:1fr .85fr;gap:24px;align-items:stretch;padding:54px 0}.login-copy{padding:42px;background:linear-gradient(145deg,#ffffff,#f8fbff)}.login-copy h1{font-size:clamp(2.2rem,4vw,3.6rem);line-height:1.03;letter-spacing:-1.5px;margin:18px 0}.login-copy p{color:var(--muted);font-size:1.08rem;line-height:1.7}.login-card{padding:34px}.login-card h2{font-size:2rem;margin:0 0 8px}.split-note{margin-top:18px;border:1px solid var(--line);border-radius:16px;background:#f8fafc;padding:16px;color:#334155}.footer{border-top:1px solid var(--line);background:white;margin-top:30px}.footer-inner{display:flex;justify-content:space-between;gap:18px;padding:22px 0;color:var(--muted);font-size:.95rem}@media(max-width:1080px){.nav{gap:3px}.nav a{padding:10px 10px}.kpi-grid{grid-template-columns:repeat(2,1fr)}.cards,.grid-3{grid-template-columns:1fr 1fr}}@media(max-width:860px){.topbar{height:auto;min-height:78px;padding:14px 20px;align-items:flex-start}.menu-btn{display:inline-flex}.nav{display:none;position:absolute;left:20px;right:20px;top:78px;background:white;border:1px solid var(--line);border-radius:18px;padding:12px;box-shadow:var(--shadow);align-items:stretch;flex-direction:column}.menu-open .nav{display:flex}.nav a{width:100%}.hero,.grid-2,.login-wrap{grid-template-columns:1fr}.hero-main{padding:30px}.section-head,.dashboard-head{align-items:flex-start;flex-direction:column}.cards,.grid-3{grid-template-columns:1fr}.footer-inner{flex-direction:column}.form-grid{grid-template-columns:1fr}.kpi-grid{grid-template-columns:1fr}}@media print{.topbar,.footer,.no-print,.btn-primary,.btn-soft,.btn-secondary,.btn-danger,.btn-ghost{display:none!important}.page{min-height:auto}.container{width:100%;max-width:none}.panel,.hero-main,.hero-side,.kpi{box-shadow:none}.hero{grid-template-columns:1fr 250px}body{background:white}}

/* =========================================================
   DataView Connect v11 · Navegación y dashboards ejecutivos
   ========================================================= */
.ui-icon{width:20px;height:20px;display:inline-block;flex:0 0 auto}

/* Navegación agrupada */
.topbar{height:78px;padding:0 24px;background:rgba(255,255,255,.97);box-shadow:0 1px 0 rgba(15,23,42,.04)}
.topbar-shell{width:min(1460px,100%);margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand-icon{width:46px;height:46px;border-radius:14px;box-shadow:0 9px 22px rgba(31,94,255,.22)}
.brand-copy strong{font-size:1rem}.brand-copy small{font-size:.78rem}
.nav{flex-wrap:nowrap;gap:4px;align-items:center}
.nav-direct,.nav-group>summary{display:flex;align-items:center;gap:6px;border:0;background:transparent;text-decoration:none;font-weight:800;color:#475569;padding:10px 12px;border-radius:12px;cursor:pointer;white-space:nowrap;list-style:none}
.nav-group>summary::-webkit-details-marker{display:none}
.nav-direct:hover,.nav-direct.active,.nav-group>summary:hover,.nav-group.active>summary,.nav-group[open]>summary{background:#edf4ff;color:#1d4ed8}
.nav-group{position:relative}
.nav-chevron{font-size:1rem;line-height:1;transition:transform .2s ease}
.nav-group[open] .nav-chevron{transform:rotate(180deg)}
.nav-dropdown{position:absolute;z-index:80;top:calc(100% + 14px);left:0;width:310px;padding:9px;background:#fff;border:1px solid #dbe4ef;border-radius:18px;box-shadow:0 24px 60px rgba(15,23,42,.16);display:grid;gap:3px}
.nav-dropdown-right{left:auto;right:0}
.nav-dropdown:before{content:"";position:absolute;top:-7px;left:26px;width:13px;height:13px;background:#fff;border-left:1px solid #dbe4ef;border-top:1px solid #dbe4ef;transform:rotate(45deg)}
.nav-dropdown-right:before{left:auto;right:26px}
.nav-dropdown a{position:relative;z-index:1;display:flex!important;flex-direction:column;align-items:flex-start!important;gap:2px;width:100%;padding:12px 13px!important;border-radius:12px!important;text-decoration:none;background:transparent!important;color:#334155!important}
.nav-dropdown a:hover,.nav-dropdown a.active{background:#f1f6ff!important;color:#1d4ed8!important}
.nav-dropdown a strong{font-size:.91rem}.nav-dropdown a small{font-size:.76rem;font-weight:600;color:#7b8798;line-height:1.35}
.nav-profile{display:flex;align-items:center;gap:9px;margin-left:8px;padding-left:13px;border-left:1px solid var(--line)}
.nav-avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(135deg,#173f8f,#1f5eff);color:#fff;font-size:.75rem;font-weight:900;letter-spacing:.04em}
.nav-profile-copy{display:flex;flex-direction:column;min-width:0;max-width:130px}
.nav-profile-copy strong{font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nav-profile-copy small{font-size:.7rem;color:#778397}
.nav-logout{padding:8px 10px!important;border-radius:10px!important;background:#f1f5f9!important;color:#475569!important;font-size:.78rem!important}
.nav-logout:hover{background:#fee2e2!important;color:#991b1b!important}
.menu-lines{width:18px;height:12px;display:inline-block;position:relative;border-top:2px solid currentColor;border-bottom:2px solid currentColor}.menu-lines:after{content:"";position:absolute;left:0;right:0;top:4px;border-top:2px solid currentColor}

/* Contenedor del dashboard */
.dashboard-shell{width:min(1320px,94vw);padding:34px 0 48px}
.dashboard-welcome{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin-bottom:24px}
.dashboard-welcome h1{font-size:clamp(2rem,3.6vw,3.15rem);line-height:1.05;letter-spacing:-1.7px;margin:8px 0 10px;color:#0f172a}
.dashboard-welcome p{margin:0;color:#667085;max-width:760px;font-size:1.03rem;line-height:1.65}
.eyebrow,.panel-kicker{display:block;color:#2455b6;font-size:.72rem;line-height:1.2;font-weight:900;letter-spacing:.11em;text-transform:uppercase}
.welcome-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.welcome-actions .btn-primary{border-radius:13px;padding:12px 16px;min-height:44px}
.welcome-actions .btn-primary .ui-icon,.btn-soft .ui-icon{width:18px;height:18px}
.last-update{display:inline-flex;align-items:center;gap:8px;color:#64748b;font-size:.83rem;font-weight:700;white-space:nowrap}.last-update .ui-icon{width:17px;height:17px}

/* Tarjetas de resumen */
.summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}
.summary-card{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;padding:19px;background:#fff;border:1px solid #dce4ee;border-radius:18px;text-decoration:none;box-shadow:0 10px 30px rgba(15,23,42,.055);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.summary-card:hover{transform:translateY(-2px);border-color:#b9cdf7;box-shadow:0 16px 36px rgba(15,23,42,.09)}
.summary-card.needs-attention{border-color:#fecaca;background:linear-gradient(145deg,#fff,#fff8f8)}
.summary-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:15px}.summary-icon .ui-icon{width:23px;height:23px}
.summary-icon.blue{background:#eaf1ff;color:#2455b6}.summary-icon.red{background:#feecec;color:#c2413d}.summary-icon.green{background:#e5f7ee;color:#128252}.summary-icon.amber{background:#fff3d8;color:#a16207}
.summary-copy{min-width:0;display:flex;flex-direction:column}.summary-copy small{font-size:.76rem;color:#7b8798;font-weight:800}.summary-copy strong{font-size:1.7rem;line-height:1.15;letter-spacing:-.5px;margin:3px 0;color:#13203a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.summary-copy span{font-size:.74rem;color:#8490a1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.summary-arrow{color:#9aa6b7}.summary-arrow .ui-icon{width:17px;height:17px}

/* Layout */
.dashboard-layout{display:grid;grid-template-columns:minmax(0,1.78fr) minmax(300px,.72fr);gap:20px;align-items:start}
.dashboard-main,.dashboard-side{min-width:0;display:grid;gap:20px}
.dashboard-panel{margin:0;padding:23px;border-radius:19px;box-shadow:0 10px 30px rgba(15,23,42,.052);border-color:#dce4ee}
.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:19px}
.panel-heading h2{font-size:1.25rem;line-height:1.25;letter-spacing:-.35px;margin:5px 0 4px;color:#16213a}.panel-heading p{margin:0;color:#7b8798;font-size:.86rem;line-height:1.55}
.compact-heading{margin-bottom:16px}.compact-heading h2{margin-bottom:0}
.text-link{display:inline-flex;align-items:center;gap:6px;color:#2455b6;text-decoration:none;font-size:.8rem;font-weight:900;white-space:nowrap}.text-link:hover{color:#173f8f}.text-link .ui-icon{width:15px;height:15px}
.full-link{width:100%;justify-content:space-between;border-top:1px solid #e7edf4;margin-top:16px;padding-top:15px}

/* Atención */
.attention-panel{background:linear-gradient(145deg,#fff,#fbfdff)}
.attention-list{display:grid;gap:9px}
.attention-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:13px;align-items:center;text-decoration:none;padding:13px;border:1px solid #e4eaf1;border-radius:15px;background:#fff;transition:background .2s ease,border-color .2s ease}
.attention-item:hover{background:#f8fbff;border-color:#cbdaf5}
.attention-rank{width:35px;height:35px;display:grid;place-items:center;border-radius:11px;font-weight:900;font-size:.82rem}.attention-rank.danger{background:#feecec;color:#b42318}.attention-rank.warning{background:#fff3d8;color:#9a6700}
.attention-content{min-width:0}.attention-content>span{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.attention-content strong{font-size:.91rem;color:#26334a}.attention-content small{display:block;color:#7b8798;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.77rem}
.item-arrow{color:#9aa6b7}.item-arrow .ui-icon{width:17px;height:17px}
.success-state{display:flex;align-items:center;gap:14px;padding:18px;border:1px solid #bbebd1;border-radius:16px;background:#f3fcf7}.success-state-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:#dcfce7;color:#168a45}.success-state strong{color:#166534}.success-state p{margin:4px 0 0;color:#538068;font-size:.85rem}
.small-success{padding:15px}.small-success .success-state-icon{width:40px;height:40px}

/* Roadmap */
.roadmap-list{display:grid}
.roadmap-item{display:grid;grid-template-columns:86px minmax(0,1fr) 128px;gap:15px;align-items:center;text-decoration:none;padding:15px 3px;border-bottom:1px solid #e8edf3}
.roadmap-item:first-child{padding-top:2px}.roadmap-item:last-child{border-bottom:0;padding-bottom:1px}
.roadmap-item:hover .roadmap-content strong{color:#2455b6}
.roadmap-stage{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:6px 9px;border-radius:10px;background:#eef4ff;color:#2455b6;font-size:.7rem;font-weight:900;text-align:center}
.roadmap-content{min-width:0;display:flex;flex-direction:column;gap:4px}.roadmap-content strong{font-size:.9rem;color:#27344b;transition:color .2s ease}.roadmap-content small{font-size:.75rem;color:#7f8a9c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.roadmap-meta{display:flex;align-items:flex-end;flex-direction:column;gap:5px}.deadline{font-size:.69rem;font-weight:800;text-align:right}.deadline.danger{color:#b42318}.deadline.warning{color:#9a6700}.deadline.info{color:#2455b6}.deadline.neutral{color:#7b8798}

/* KPIs */
.dashboard-kpis{display:grid;gap:12px}.dashboard-kpis.two-columns{grid-template-columns:repeat(2,minmax(0,1fr))}
.dashboard-kpi{border:1px solid #e2e8f0;border-radius:15px;padding:15px;background:#fff}
.dashboard-kpi-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.dashboard-kpi-head>div{min-width:0;display:flex;flex-direction:column}.dashboard-kpi-head strong{font-size:.87rem;color:#27344b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-kpi-head small{font-size:.72rem;color:#8490a1;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kpi-percentage{font-size:.84rem;font-weight:900;color:#2455b6;background:#edf4ff;border-radius:9px;padding:5px 8px}
.progress-lg{height:8px;margin-top:12px}.kpi-values{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px;color:#8490a1;font-size:.7rem}.kpi-values strong{color:#475569;font-size:.75rem}

/* Listas pequeñas */
.dashboard-bottom-grid{gap:20px}.dashboard-bottom-grid .dashboard-panel{min-width:0}
.mini-record-list{display:grid;gap:4px}
.mini-record{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;text-decoration:none;padding:10px 7px;border-radius:12px}.mini-record:hover{background:#f6f9fd}.mini-record>span:nth-child(2){min-width:0;display:flex;flex-direction:column}.mini-record strong{font-size:.82rem;color:#2d3a50;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mini-record small{font-size:.7rem;color:#8490a1;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.record-avatar{width:35px;height:35px;display:grid;place-items:center;border-radius:11px;background:#edf4ff;color:#2455b6;font-size:.76rem;font-weight:900}.ticket-avatar{background:#f0fdf4;color:#168a45}.ticket-avatar .ui-icon{width:17px;height:17px}

/* Panel lateral */
.health-card{overflow:hidden}.score-ring{--score:0;position:relative;width:158px;height:158px;margin:8px auto 14px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#1f5eff calc(var(--score) * 1%),#e7edf5 0)}.score-ring:before{content:"";position:absolute;inset:13px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 1px #edf1f6}.score-ring>div{position:relative;z-index:1;display:flex;align-items:center;flex-direction:column}.score-ring strong{font-size:2.25rem;line-height:1;letter-spacing:-1.5px;color:#14213a}.score-ring span{font-size:.75rem;color:#2455b6;font-weight:900;margin-top:5px}
.health-summary{text-align:center;color:#7b8798;font-size:.78rem;line-height:1.55;margin:0 auto 18px;max-width:270px}.health-stats{display:grid;gap:8px;margin-bottom:18px}.health-stats>div:nth-child(odd),.dimension-item>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:.72rem;color:#68758a}.health-stats strong,.dimension-item strong{color:#334155;font-size:.76rem}
.btn-block{width:100%;border-radius:12px;min-height:44px}.btn-block .ui-icon{width:17px;height:17px}
.quick-actions-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.quick-actions-grid.single-column{grid-template-columns:1fr}
.quick-actions-grid>a{display:flex;align-items:center;gap:10px;min-width:0;padding:12px;border:1px solid #e2e8f0;border-radius:13px;text-decoration:none;background:#fbfdff}.quick-actions-grid>a:hover{border-color:#bcd0f6;background:#f5f9ff}.quick-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#edf4ff;color:#2455b6}.quick-icon .ui-icon{width:17px;height:17px}.quick-actions-grid a>span:last-child{min-width:0;display:flex;flex-direction:column}.quick-actions-grid strong{font-size:.75rem;color:#334155}.quick-actions-grid small{font-size:.65rem;color:#8793a5;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.process-progress-head{display:flex;align-items:flex-end;justify-content:space-between;gap:10px}.process-progress-head strong{font-size:1.35rem;color:#16213a}.process-progress-head span{font-size:.68rem;color:#8490a1;text-align:right;max-width:125px}.process-stages{display:grid;gap:9px;margin-top:16px}.process-stages>div{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;font-size:.74rem;color:#667085}.process-stages strong{color:#334155}.stage-dot{width:9px;height:9px;border-radius:50%}.stage-dot.detected{background:#ef4444}.stage-dot.digitizing{background:#f59e0b}.stage-dot.automated{background:#3b82f6}.stage-dot.optimized{background:#10b981}
.pulse-card{display:flex;align-items:center;gap:14px;background:linear-gradient(145deg,#173f8f,#1f5eff);border:0;color:#fff}.pulse-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;background:rgba(255,255,255,.13)}.pulse-icon .ui-icon{width:23px;height:23px}.pulse-card>div{display:flex;flex-direction:column}.pulse-card span{font-size:.72rem;color:#cbdcff;font-weight:800}.pulse-card strong{font-size:1.65rem;line-height:1.1;margin:2px 0}.pulse-card small{font-size:.7rem;color:#dbe7ff;line-height:1.45}

/* Dashboard de cliente */
.client-welcome p strong{color:#334155}.priority-card-client{display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(145deg,#f7faff,#fff);border-color:#cfe0ff}.priority-visual{display:flex;align-items:flex-start;gap:15px}.priority-icon{width:48px;height:48px;display:grid;place-items:center;flex:0 0 auto;border-radius:15px;background:#eaf1ff;color:#2455b6}.priority-icon .ui-icon{width:23px;height:23px}.priority-card-client h2{font-size:1.18rem;margin:5px 0 5px;color:#173f8f}.priority-card-client p{margin:0;color:#68758a;font-size:.82rem;line-height:1.55;max-width:680px}.priority-card-client .btn-soft{white-space:nowrap;border-radius:12px}
.dimension-list{display:grid;gap:11px;margin:19px 0}.dimension-item{display:grid;gap:5px}
.client-alert-list{display:grid;gap:4px}.client-alert-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 6px;border-radius:12px;text-decoration:none}.client-alert-item:hover{background:#f8fafc}.client-alert-item>span:nth-child(2){display:flex;flex-direction:column;min-width:0}.client-alert-item strong{font-size:.8rem;color:#334155;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.client-alert-item small{font-size:.69rem;color:#8490a1;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.alert-dot{width:9px;height:9px;border-radius:50%}.alert-dot.danger{background:#ef4444;box-shadow:0 0 0 5px #fee2e2}.alert-dot.warning{background:#f59e0b;box-shadow:0 0 0 5px #fef3c7}
.client-pulse{background:linear-gradient(145deg,#0f766e,#159487)}
.compact-empty{padding:18px;font-size:.82rem}

/* Estados adicionales */
.status.En.digitalizacion{background:#fef3c7;color:#92400e}.status.Detectado{background:#fee2e2;color:#991b1b}.status.Abierto{background:#eef4ff;color:#1d4ed8}.status.Pausado{background:#f1f5f9;color:#475569}.status.Baja{background:#eaf1fb;color:#1d4ed8}

@media(max-width:1260px){
    .nav-profile-copy{display:none}.nav-profile{padding-left:9px}.nav-direct,.nav-group>summary{padding:9px 10px;font-size:.88rem}
    .summary-copy strong{font-size:1.48rem}.summary-grid{gap:12px}.summary-card{padding:16px;gap:11px}.summary-icon{width:43px;height:43px}
}
@media(max-width:1080px){
    .dashboard-layout{grid-template-columns:minmax(0,1.55fr) minmax(280px,.7fr)}
    .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .quick-actions-grid{grid-template-columns:1fr}
    .dashboard-kpis.two-columns{grid-template-columns:1fr}
    .roadmap-item{grid-template-columns:78px minmax(0,1fr) 118px}
}
@media(max-width:900px){
    .topbar{height:auto;min-height:76px;padding:13px 18px;align-items:center}.topbar-shell{align-items:center;position:relative}.menu-btn{display:inline-flex;align-items:center;gap:8px;border-radius:12px;padding:10px 13px}
    .nav{display:none;position:absolute;left:0;right:0;top:63px;z-index:100;max-height:calc(100vh - 85px);overflow:auto;background:#fff;border:1px solid #dbe4ef;border-radius:18px;padding:11px;box-shadow:0 24px 60px rgba(15,23,42,.18);align-items:stretch;flex-direction:column;gap:4px}
    .menu-open .nav{display:flex}.nav-direct,.nav-group>summary{width:100%;justify-content:space-between;padding:12px 13px}.nav-group{width:100%}.nav-dropdown,.nav-dropdown-right{position:static;width:100%;box-shadow:none;border:0;border-radius:12px;padding:4px 0 4px 10px;background:#f8fafc;margin-top:4px}.nav-dropdown:before{display:none}.nav-dropdown a{padding:10px 12px!important}.nav-profile{margin:7px 0 0;padding:11px 5px 0;border-left:0;border-top:1px solid var(--line)}.nav-profile-copy{display:flex;max-width:none;flex:1}.nav-logout{margin-left:auto}
    .dashboard-shell{padding-top:27px}.dashboard-welcome{align-items:flex-start;flex-direction:column;gap:17px}.welcome-actions{justify-content:flex-start}
    .dashboard-layout{grid-template-columns:1fr}.dashboard-side{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.health-card{grid-row:span 2}.pulse-card{grid-column:1/-1}
}
@media(max-width:680px){
    .dashboard-shell{width:min(94vw,620px);padding-top:22px}.dashboard-welcome h1{font-size:2rem}.dashboard-welcome p{font-size:.91rem}.welcome-actions{width:100%;display:grid;grid-template-columns:1fr}.last-update{order:2}.welcome-actions .btn-primary{width:100%}
    .summary-grid{grid-template-columns:1fr;gap:10px}.summary-card{padding:15px}.summary-copy strong{font-size:1.4rem}
    .dashboard-panel{padding:18px;border-radius:17px}.panel-heading{align-items:flex-start;flex-direction:column;gap:8px}.panel-heading .text-link{align-self:flex-start}.panel-heading h2{font-size:1.13rem}
    .roadmap-item{grid-template-columns:1fr auto;gap:8px 10px;padding:14px 2px}.roadmap-stage{grid-column:1;justify-self:start}.roadmap-content{grid-column:1/-1;grid-row:2}.roadmap-meta{grid-column:2;grid-row:1;align-items:flex-end}.roadmap-content small{white-space:normal}
    .dashboard-bottom-grid{grid-template-columns:1fr}.dashboard-side{grid-template-columns:1fr}.health-card{grid-row:auto}.pulse-card{grid-column:auto}
    .dashboard-kpis.two-columns{grid-template-columns:1fr}.kpi-values{align-items:flex-start;flex-direction:column;gap:3px}
    .priority-card-client{align-items:stretch;flex-direction:column}.priority-visual{align-items:flex-start}.priority-card-client .btn-soft{width:100%}
    .attention-content small,.mini-record small,.client-alert-item small{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
    .attention-item{grid-template-columns:auto minmax(0,1fr)}.attention-item .item-arrow{display:none}
    .quick-actions-grid{grid-template-columns:1fr}.footer-inner{padding-left:4px;padding-right:4px}
}
@media(max-width:420px){
    .brand-copy small{display:none}.brand-icon{width:42px;height:42px}.dashboard-welcome h1{font-size:1.82rem}.summary-card{grid-template-columns:auto minmax(0,1fr)}.summary-arrow{display:none}
    .roadmap-meta{align-items:flex-end}.roadmap-stage{font-size:.65rem}.score-ring{width:145px;height:145px}
}
