:root{
  --bg:#f5f5f7;
  --paper:#ffffff;
  --paper-soft:#fbfbfd;
  --ink:#1d1d1f;
  --muted:#6e6e73;
  --muted-2:#86868b;
  --line:#d2d2d7;
  --line-soft:#e8e8ed;
  --blue:#0071e3;
  --blue-dark:#0077ed;
  --blue-soft:#eaf4ff;
  --green:#248a3d;
  --green-soft:#eef8f0;
  --amber:#b25000;
  --amber-soft:#fff5e8;
  --red:#d70015;
  --red-soft:#fff0f1;
  --shadow-sm:0 1px 2px rgba(0,0,0,.04),0 8px 24px rgba(0,0,0,.04);
  --shadow-md:0 18px 48px rgba(0,0,0,.08);
  --radius:22px;
  --radius-sm:14px;
  --font:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Helvetica Neue",Arial,sans-serif;
}
*{box-sizing:border-box}
html{font-family:var(--font);background:var(--bg);color:var(--ink);scroll-behavior:smooth}
body{margin:0;background:var(--bg);min-height:100vh;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;background:#f0f0f2;padding:4px 8px;border-radius:8px;font-size:.9em}
hr,.soft-rule{border:0;border-top:1px solid var(--line-soft);margin:28px 0}

.topbar{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.82);backdrop-filter:saturate(180%) blur(22px);-webkit-backdrop-filter:saturate(180%) blur(22px);border-bottom:1px solid rgba(0,0,0,.08)}
.topbar-inner{max-width:1500px;margin:auto;min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:8px 28px}
.brand{display:flex;align-items:center;gap:14px;min-width:0}
.brand img{width:108px;height:auto;display:block}
.brand span{display:grid;gap:1px}
.brand strong{font-size:19px;font-weight:650;letter-spacing:-.025em}
.brand small{font-size:11px;color:var(--muted);max-width:470px;line-height:1.35}
.top-actions{display:flex;align-items:center;gap:22px;font-size:12px;font-weight:560;color:var(--muted)}
.top-actions a{transition:.2s}.top-actions a:hover{color:var(--blue)}

.app-layout{max-width:1500px;margin:0 auto;display:grid;grid-template-columns:252px minmax(0,1fr);min-height:calc(100vh - 108px)}
.sidebar{background:rgba(255,255,255,.7);border-right:1px solid var(--line-soft);padding:30px 18px 48px;position:sticky;top:64px;height:calc(100vh - 64px);overflow:auto}
.sidebar-head{display:grid;gap:5px;padding:0 10px 22px;border-bottom:1px solid var(--line-soft)}
.sidebar-head strong{font-size:17px;font-weight:650;letter-spacing:-.02em;line-height:1.25}
.sidebar-head small{display:block;color:var(--muted);font-size:11px;line-height:1.4}
.side-nav{display:grid;gap:3px;margin-top:16px}
.side-nav>a,.logout-form button{display:flex;align-items:center;min-height:42px;padding:10px 12px;border:0;border-radius:12px;background:transparent;color:#424245;font-size:13px;font-weight:500;transition:.18s}
.side-nav>a:hover,.logout-form button:hover{background:#ececf0;color:var(--ink)}
.side-nav>a.active{background:#e8f2ff;color:var(--blue);font-weight:650}
.logout-form{margin-top:14px;border-top:1px solid var(--line-soft);padding-top:12px}.logout-form button{width:100%;text-align:left}
.content{padding:48px 48px 96px;min-width:0}
.guest-content{max-width:1180px;margin:0 auto;padding:76px 28px 110px}
.footer{border-top:1px solid var(--line-soft);padding:22px 28px;text-align:center;font-size:11px;color:var(--muted);background:#fff}
.footer a{color:var(--blue)}

.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:32px;margin-bottom:30px}
.page-head h1{font-size:clamp(2.45rem,4.4vw,4.1rem);font-weight:650;letter-spacing:-.055em;margin:4px 0 12px;line-height:.98}
.page-head p{margin:0;color:var(--muted);line-height:1.62;max-width:780px;font-size:15px}
.page-head-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.eyebrow{font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--blue)}
.completion{display:inline-flex;align-items:center;padding:8px 12px;border:1px solid var(--line);border-radius:999px;font-size:12px;white-space:nowrap;background:#fff;color:var(--muted)}
.muted{color:var(--muted)}.small{font-size:12px}.top-gap{margin-top:22px}.block{display:block}.narrow{max-width:760px}.no-margin{margin-top:0}

.card{background:var(--paper);border:1px solid var(--line-soft);border-radius:var(--radius);padding:28px;box-shadow:var(--shadow-sm)}
.card h2{font-size:25px;font-weight:650;letter-spacing:-.035em;margin:4px 0 20px}
.card h3{font-size:18px;font-weight:620;letter-spacing:-.02em;margin:5px 0 10px}
.card p{line-height:1.65}
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.kpi-grid-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.kpi{background:linear-gradient(180deg,#fff 0,#fcfcfe 100%);border:1px solid var(--line-soft);border-radius:18px;padding:21px;min-height:132px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 1px 0 rgba(255,255,255,.8)}
.kpi span{font-size:11px;color:var(--muted);font-weight:560}
.kpi strong{font-weight:650;font-size:30px;letter-spacing:-.045em;line-height:1.05;margin:12px 0;color:var(--ink)}
.kpi small{font-size:11px;color:var(--muted);line-height:1.4}

.badge{display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px;font-size:11px;font-weight:620;border:1px solid var(--line-soft);background:#fff;white-space:nowrap}
.badge-accent{color:#005bb5;border-color:#bfdbf7;background:var(--blue-soft)}
.badge-ok{color:var(--green);border-color:#cde7d2;background:var(--green-soft)}
.badge-warn{color:var(--amber);border-color:#f1d4af;background:var(--amber-soft)}
.badge-neutral{color:#515154;background:#f6f6f8}
.mini-badge{display:inline-flex;margin-left:8px;padding:3px 7px;border-radius:999px;background:#f1f1f4;color:#6e6e73;font-size:9px;font-weight:700;letter-spacing:.08em;vertical-align:middle}

.form-stack{display:grid;gap:16px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.span-2{grid-column:1/-1}.form-sections{display:grid;gap:22px}
.form-grid label,.form-stack label,.block,.test-mail-form label{display:grid;gap:7px;font-size:12px;font-weight:600;color:#424245}
.form-grid label small,.form-stack label small,label small{font-size:10px;color:var(--muted);font-weight:450;line-height:1.4}
.form-grid input,.form-grid select,.form-grid textarea,.form-stack input,.form-stack select,.form-stack textarea,.block textarea,.inline-form select,.test-mail-form input{width:100%;border:1px solid #c7c7cc;background:#fff;color:var(--ink);border-radius:12px;padding:12px 13px;outline:none;transition:border-color .18s,box-shadow .18s,background .18s}
.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus,.form-stack input:focus,.form-stack select:focus,.form-stack textarea:focus,.block textarea:focus,.test-mail-form input:focus{border-color:#6cb2f8;box-shadow:0 0 0 4px rgba(0,113,227,.12)}
textarea{resize:vertical}.check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.check{display:flex!important;align-items:flex-start;gap:9px!important;border:1px solid var(--line-soft);padding:12px 13px;border-radius:13px;background:#fff;font-size:12px!important;font-weight:520!important}.check input{width:auto!important;margin:2px 0 0}
.form-meta{display:flex;justify-content:flex-end;margin-top:-6px}.form-meta a{font-size:12px;color:var(--blue);font-weight:560}.form-meta a:hover{text-decoration:underline}

.button{min-height:42px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #c7c7cc;background:#fff;color:var(--ink);border-radius:999px;padding:0 17px;font-size:12px;font-weight:620;transition:.18s;box-shadow:0 1px 1px rgba(0,0,0,.02)}
.button:hover{border-color:#a7a7ab;background:#f7f7f9}
.button.primary{background:var(--blue);border-color:var(--blue);color:#fff}.button.primary:hover{background:var(--blue-dark);border-color:var(--blue-dark)}
.button.ghost{background:transparent}.button.danger{color:var(--red);border-color:#efb5bb;background:#fff}.button.danger:hover{background:var(--red-soft)}
.button:disabled{opacity:.42;cursor:not-allowed}
.sticky-actions{position:sticky;bottom:15px;display:flex;justify-content:flex-end;pointer-events:none}.sticky-actions .button{pointer-events:auto;box-shadow:var(--shadow-md)}
.text-link{display:inline-flex;margin-top:14px;color:var(--blue);font-size:12px;font-weight:600}.text-link:hover{text-decoration:underline}
.link-danger{border:0;background:none;color:var(--red);font-size:11px;text-decoration:underline}.details{border-top:1px solid var(--line-soft);margin-top:17px;padding-top:12px}.details summary{cursor:pointer;color:var(--blue);font-size:12px;font-weight:600}
.inline-form{margin:0}.inline-form select{padding:8px 10px;font-size:11px}

.section-title-row{display:flex;justify-content:space-between;align-items:center;gap:20px}.section-title-row h2{margin:0}.section-title-row>span{font-size:25px;color:var(--blue)}
.table-wrap{overflow:auto}.table-wrap table{width:100%;border-collapse:collapse;min-width:760px}.table-wrap th,.table-wrap td{text-align:left;padding:14px 11px;border-bottom:1px solid var(--line-soft);vertical-align:top;font-size:12px}.table-wrap th{font-size:10px;letter-spacing:.04em;color:var(--muted);font-weight:650}.table-wrap td strong{display:block;font-size:12px}.table-wrap td small{display:block;color:var(--muted);margin-top:5px;line-height:1.35}.corr td,.corr th{text-align:center}.corr th:first-child{text-align:left}.empty{color:var(--muted);font-style:italic}
.project-list{display:grid}.project-row{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:16px 3px;border-bottom:1px solid var(--line-soft);transition:.18s}.project-row:hover{padding-left:8px;color:var(--blue)}.project-row>div:first-child{display:grid;gap:5px}.project-row strong{font-size:14px;line-height:1.35}.project-row small{font-size:11px;color:var(--muted)}.project-stats{display:flex;align-items:center;gap:14px;font-size:11px;color:var(--muted);white-space:nowrap}.project-stats b{font-size:19px;color:var(--blue)}
.mini-list{display:grid}.mini-list>div{padding:12px 0;border-bottom:1px solid var(--line-soft);display:grid;gap:4px}.mini-list strong{font-size:12px;line-height:1.35}.mini-list span{font-size:11px;color:var(--muted)}
.roadmap{padding-left:18px;margin:12px 0 0}.roadmap li{margin:9px 0;line-height:1.55}.gap-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.gap-grid>div{border-left:2px solid var(--blue);padding-left:16px}
.note{margin-top:18px;padding:14px 16px;background:#f2f6fb;border-radius:14px;color:#515154;font-size:12px;line-height:1.6}.meta-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin:0}.meta-grid>div{border-bottom:1px solid var(--line-soft);padding-bottom:13px}.meta-grid dt{font-size:10px;color:var(--muted);font-weight:600}.meta-grid dd{margin:6px 0 0;line-height:1.5;font-size:13px}.longtext{margin-top:24px}.longtext h3{color:var(--ink)}.longtext p{white-space:normal;color:#424245}
.registration-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:24px!important;letter-spacing:.08em;background:#f5f5f7;border:1px solid var(--line-soft);border-radius:14px;padding:17px;text-align:center}
.bar-row{display:grid;grid-template-columns:180px 1fr 34px;gap:12px;align-items:center;padding:8px 0;font-size:11px}.bar-row>div{height:8px;background:#e9e9ed;border-radius:999px;overflow:hidden}.bar-row i{display:block;height:100%;background:linear-gradient(90deg,#0071e3,#64aaf5);border-radius:999px}
.progress-line{height:10px;background:#e9e9ed;border-radius:999px;overflow:hidden;margin:16px 0}.progress-line>div{height:100%;background:var(--green)}

.auth-wrap{display:grid;grid-template-columns:1.08fr .92fr;gap:74px;align-items:center;min-height:650px}.auth-intro h1{font-size:clamp(3.5rem,7vw,6.4rem);font-weight:650;letter-spacing:-.07em;line-height:.9;margin:14px 0 28px;max-width:760px}.auth-intro>p{font-size:19px;line-height:1.55;color:#424245;max-width:720px}.auth-note{border-top:1px solid var(--line-soft);padding-top:20px;margin-top:34px;max-width:620px}.auth-note strong{font-size:11px;letter-spacing:.04em;color:var(--muted)}.auth-note p{font-size:13px;color:var(--muted);line-height:1.55}
.auth-card{background:rgba(255,255,255,.92);border:1px solid var(--line-soft);border-radius:28px;padding:36px;box-shadow:var(--shadow-md);backdrop-filter:blur(20px)}.auth-card h2{font-size:30px;font-weight:650;letter-spacing:-.04em;margin:5px 0 20px}.auth-card hr{border:0;border-top:1px solid var(--line-soft);margin:25px 0}.switch{font-size:12px;color:var(--muted);margin-top:18px}.switch a{color:var(--blue);font-weight:600}
.flash{max-width:980px;padding:13px 15px;border-radius:14px;margin-bottom:20px;font-size:12px}.flash-success{background:var(--green-soft);border:1px solid #cce5d1;color:#1f6d31}.flash-error{background:var(--red-soft);border:1px solid #efb5bb;color:#a90012}

.category-card{padding:22px;box-shadow:none}.category-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.category-card h2{margin:4px 0 0;font-size:21px}.metric-progress{display:grid;gap:7px;min-width:120px}.metric-progress-head{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:10px;color:var(--muted)}.metric-progress-head strong{font-size:11px;color:var(--ink)}.metric-progress-track{height:7px;background:#e9e9ed;border-radius:999px;overflow:hidden}.metric-progress-track i{display:block;height:100%;background:linear-gradient(90deg,#0071e3,#58a6f5);border-radius:999px}.section-progress-list{display:grid;gap:15px}.criteria-table .metric-progress{min-width:170px}.criteria-table .metric-progress-head span{display:none}.criteria-table .metric-progress-track{margin-top:3px}
.subcard{border:1px solid var(--line-soft);border-radius:16px;padding:18px;background:#fff}.subcard h3{margin-top:0}.filter-card{padding:18px}.filter-grid{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:12px;align-items:end}.filter-grid label{display:grid;gap:6px;font-size:11px;font-weight:600}.filter-grid input,.filter-grid select{width:100%;border:1px solid #c7c7cc;background:#fff;border-radius:12px;padding:10px 11px}.filter-actions{display:flex;gap:8px}
.timeline{display:grid;gap:14px;border-left:2px solid #d9d9de;margin-left:7px;padding-left:20px}.timeline-item{position:relative}.timeline-item:before{content:"";position:absolute;left:-27px;top:5px;width:10px;height:10px;border-radius:50%;background:var(--blue);border:3px solid var(--bg)}.timeline-item strong{font-size:11px;color:var(--muted)}.timeline-item p{margin:4px 0 0}.criteria-table td:nth-child(4){min-width:190px}
.record-workflow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.record-workflow span{border:1px solid var(--line-soft);border-radius:12px;padding:10px;font-size:10px;text-align:center;background:#fff}.record-workflow span.current{border-color:#a7cff7;color:var(--blue);font-weight:650;background:var(--blue-soft)}

.demo-banner{display:flex;justify-content:space-between;align-items:center;gap:20px;background:linear-gradient(135deg,#eaf4ff,#f5f9ff);border:1px solid #c7e0fb;border-radius:18px;padding:16px 18px;margin-bottom:24px}.demo-banner div{display:grid;gap:4px}.demo-banner strong{font-size:13px}.demo-banner span{font-size:11px;color:var(--muted)}.demo-banner a{color:var(--blue);font-size:12px;font-weight:600;white-space:nowrap}
.demo-stat{display:flex;align-items:baseline;gap:9px;margin:8px 0 12px}.demo-stat strong{font-size:48px;letter-spacing:-.055em}.demo-stat span{color:var(--muted);font-size:13px}.demo-credentials{display:grid;gap:7px;background:#f5f5f7;border-radius:14px;padding:14px;margin:18px 0}.demo-credentials span{font-size:11px;color:var(--muted)}.feature-list{padding-left:19px;color:#424245;font-size:13px;line-height:1.7}.scope-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.scope-grid>div{padding:18px;border-radius:16px;background:#f7f7f9}.scope-grid strong{display:block;font-size:13px;margin-bottom:7px}.scope-grid span{font-size:11px;line-height:1.5;color:var(--muted)}.test-mail-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;max-width:760px}

@media(max-width:1280px){.kpi-grid-5{grid-template-columns:repeat(3,1fr)}.filter-grid{grid-template-columns:1fr 1fr}.filter-actions{grid-column:1/-1}.scope-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:1100px){.app-layout{grid-template-columns:1fr}.sidebar{position:static;height:auto;border-right:0;border-bottom:1px solid var(--line-soft);padding:14px 24px;background:#fff}.sidebar-head{display:none}.side-nav{display:flex;overflow:auto;gap:5px;margin:0}.side-nav>a,.logout-form button{white-space:nowrap}.logout-form{margin:0;padding:0;border:0}.content{padding:34px 24px 74px}.kpi-grid{grid-template-columns:repeat(2,1fr)}.grid-3{grid-template-columns:1fr}.check-grid{grid-template-columns:repeat(2,1fr)}.auth-wrap{grid-template-columns:1fr;gap:40px;min-height:auto}.auth-intro h1{font-size:4.2rem}.guest-content{padding-top:48px}}
@media(max-width:800px){.kpi-grid-5{grid-template-columns:1fr 1fr}.page-head-actions{justify-content:flex-start}.criteria-table .metric-progress{min-width:120px}.record-workflow{grid-template-columns:1fr 1fr}.demo-banner{align-items:flex-start;display:grid}.scope-grid{grid-template-columns:1fr 1fr}.test-mail-form{grid-template-columns:1fr}}
@media(max-width:700px){.topbar-inner{padding:9px 15px}.brand img{width:88px}.brand small{display:none}.top-actions{display:none}.content,.guest-content{padding-left:15px;padding-right:15px}.page-head{display:grid}.page-head h1{font-size:2.7rem}.grid-2,.form-grid,.kpi-grid,.gap-grid,.meta-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.check-grid{grid-template-columns:1fr}.card{padding:21px;border-radius:18px}.project-row{align-items:flex-start}.project-stats{display:grid;gap:5px}.auth-intro h1{font-size:3.2rem}.auth-card{padding:25px;border-radius:22px}.bar-row{grid-template-columns:125px 1fr 25px}.brand strong{font-size:17px}.scope-grid{grid-template-columns:1fr}}
@media(max-width:520px){.kpi-grid-5{grid-template-columns:1fr}.filter-grid{grid-template-columns:1fr}.filter-actions{grid-column:auto}.category-card-head{display:grid}.auth-intro h1{font-size:2.75rem}}

/* v0.7.1 · registro verificado por correo */
.registration-step{display:flex;gap:12px;align-items:flex-start;margin:14px 0 10px}.step-number{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#1d1d1f;color:#fff;font-size:12px;font-weight:700;flex:0 0 auto}.registration-step strong{display:block;font-size:13px;margin-top:3px}.registration-step p{margin:3px 0 0}.note.warning{background:#fff7e6;border:1px solid #f1d19a;color:#6a4a12}.mail-status{display:grid;gap:3px;margin-top:18px;padding:14px 16px;border-radius:14px;background:#f5f5f7}.mail-status strong{font-size:13px}.mail-status span{font-size:12px;color:#6e6e73}.mail-status.ok{background:#edf8f1}.mail-status.warn{background:#fff7e6}

/* v0.8.0 · catálogo Minciencias y actualización segura */
.catalog-selector{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px;border:1px solid #dfe7f0;border-radius:18px;background:linear-gradient(180deg,#fafdff 0%,#f5f9ff 100%)}
.catalog-step{display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;align-items:start}
.catalog-step>span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#0071e3;color:#fff;font-size:11px;font-weight:700;margin-top:24px}
.catalog-step label{min-width:0}
.catalog-detail{display:grid;gap:5px;padding:14px 16px;border-radius:14px;background:#fff;border:1px solid #dfe7f0}
.catalog-detail strong{font-size:13px;line-height:1.35}.catalog-detail span{font-size:11px;color:var(--muted);line-height:1.5}
.catalog-disclaimer{margin:0!important;color:var(--muted);font-size:10px!important;line-height:1.55!important}
.catalog-class{color:var(--blue)!important;font-weight:600}
.protocol-list{margin:0;padding-left:20px}.protocol-list li{margin:10px 0;line-height:1.55;color:#424245}
table td small{display:block;margin-top:4px;color:var(--muted);line-height:1.35}
@media(max-width:700px){.catalog-selector{grid-template-columns:1fr}.catalog-step.span-2,.catalog-disclaimer.span-2,.catalog-detail.span-2{grid-column:auto}.catalog-step>span{margin-top:22px}}

/* v0.8.2 · dashboard administrativo visual */
.admin-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:48px;align-items:end;padding:42px 44px;margin-bottom:18px;border:1px solid rgba(0,0,0,.055);border-radius:30px;background:
  radial-gradient(circle at 88% 18%,rgba(0,113,227,.16),transparent 32%),
  linear-gradient(135deg,#ffffff 0%,#f7faff 58%,#eef6ff 100%);box-shadow:var(--shadow-sm)}
.admin-hero:after{content:"";position:absolute;width:360px;height:360px;border:1px solid rgba(0,113,227,.09);border-radius:50%;right:-170px;bottom:-245px;box-shadow:0 0 0 34px rgba(0,113,227,.035),0 0 0 70px rgba(0,113,227,.025)}
.admin-hero>div{position:relative;z-index:1}.admin-hero h1{font-size:clamp(3rem,5vw,5.7rem);font-weight:650;letter-spacing:-.07em;line-height:.9;margin:9px 0 21px;max-width:850px}.admin-hero p{font-size:16px;line-height:1.65;color:#515154;max-width:760px;margin:0}.admin-hero-actions{display:flex;justify-content:flex-end;align-items:center;gap:9px;flex-wrap:wrap}
.executive-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin:14px 0 20px;background:var(--line-soft);border:1px solid var(--line-soft);border-radius:20px;overflow:hidden;box-shadow:var(--shadow-sm)}.executive-strip>div{display:grid;grid-template-columns:1fr auto;gap:10px 18px;align-items:center;background:rgba(255,255,255,.96);padding:19px 22px}.executive-strip span{font-size:11px;color:var(--muted);font-weight:560}.executive-strip strong{font-size:22px;letter-spacing:-.04em}.executive-strip i{grid-column:1/-1;height:5px;background:#ececf1;border-radius:999px;overflow:hidden}.executive-strip b{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#0071e3,#6db7ff)}
.dashboard-kpis .kpi{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.dashboard-kpis .kpi:hover{transform:translateY(-2px);box-shadow:0 16px 36px rgba(0,0,0,.07);border-color:#d9e7f7}
.dashboard-chart-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:18px}.dashboard-chart-card{grid-column:span 4;background:var(--paper);border:1px solid var(--line-soft);border-radius:24px;padding:25px;box-shadow:var(--shadow-sm);min-width:0}.dashboard-chart-card.wide{grid-column:span 8}.dashboard-chart-card.compact{grid-column:span 4}.chart-card-head{min-height:68px}.chart-card-head h2{font-size:21px;font-weight:650;letter-spacing:-.035em;margin:0 0 7px}.chart-card-head p{font-size:11px;color:var(--muted);line-height:1.5;margin:0;max-width:660px}.chart-canvas-wrap{position:relative;height:250px;margin-top:12px}.dashboard-chart-card.compact .chart-canvas-wrap{height:235px}.dashboard-chart-card.wide .chart-canvas-wrap{height:270px}.chart-canvas-wrap canvas{display:block;width:100%!important;height:100%!important}.chart-legend{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:15px;min-height:18px}.chart-legend-item{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:10px;line-height:1.35}.chart-legend-item i{width:8px;height:8px;border-radius:50%;flex:0 0 auto}.chart-legend-item strong{color:var(--ink);font-weight:650}.chart-empty{display:grid;place-items:center;height:100%;color:var(--muted);font-size:12px;text-align:center}
.dashboard-insight-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:18px}.insight-card{padding:26px}.people-list{display:grid;margin-top:14px}.people-list>a{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line-soft);transition:.18s}.people-list>a:last-child{border-bottom:0}.people-list>a:hover{padding-left:6px;color:var(--blue)}.people-list>a>span:nth-child(2){display:grid;gap:4px;min-width:0}.people-list strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.people-list small{font-size:10px;color:var(--muted)}.people-list b{font-size:13px;color:var(--blue)}.person-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:linear-gradient(145deg,#0071e3,#70b8ff);color:#fff;font-size:11px;font-weight:700;box-shadow:0 6px 14px rgba(0,113,227,.17)}.muted-avatar{background:linear-gradient(145deg,#6e6e73,#b4b4ba);box-shadow:none}
.project-timeline-list{display:grid;margin-top:12px}.project-timeline-list>a{display:grid;grid-template-columns:92px minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line-soft)}.project-timeline-list>a:last-child{border-bottom:0}.project-timeline-list>a:hover strong{color:var(--blue)}.project-timeline-list time{font-size:10px;color:var(--muted);font-weight:650}.project-timeline-list span{display:grid;gap:4px;min-width:0}.project-timeline-list strong{font-size:12px}.project-timeline-list small{font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-timeline-list b{font-size:10px;color:var(--muted);font-weight:600;white-space:nowrap}.decision-card{display:flex;flex-direction:column;align-items:flex-start;background:linear-gradient(145deg,#0a2540,#0e3b65);color:#fff;border:0}.decision-card .eyebrow{color:#8fc9ff}.decision-card h2{color:#fff;margin-bottom:4px}.decision-number{font-size:72px;font-weight:650;letter-spacing:-.07em;line-height:1;margin:13px 0 4px}.decision-card>p{color:rgba(255,255,255,.72);font-size:12px;margin:0 0 8px}.decision-card .progress-line{width:100%;background:rgba(255,255,255,.14)}.decision-card .progress-line>div{background:#7cc2ff}.decision-card .metric-progress-head{color:rgba(255,255,255,.68)}.decision-card .metric-progress-head strong{color:#fff}.decision-split{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;width:100%;margin:12px 0 22px}.decision-split span{display:grid;gap:3px;padding:12px;border:1px solid rgba(255,255,255,.14);border-radius:14px;color:rgba(255,255,255,.68);font-size:10px}.decision-split strong{font-size:21px;color:#fff}.decision-card .button.primary{margin-top:auto;background:#fff;border-color:#fff;color:#0a2540}.decision-card .button.primary:hover{background:#f0f7ff}
.quick-access-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.quick-access-grid>a{display:grid;gap:8px;min-height:176px;padding:23px;border:1px solid var(--line-soft);border-radius:20px;background:#fff;box-shadow:var(--shadow-sm);transition:.2s}.quick-access-grid>a:hover{transform:translateY(-3px);border-color:#cfe2f7;box-shadow:0 18px 44px rgba(0,0,0,.075)}.quick-access-grid span{font-size:10px;color:var(--blue);font-weight:700}.quick-access-grid strong{font-size:22px;letter-spacing:-.035em;margin-top:auto}.quick-access-grid small{font-size:11px;line-height:1.5;color:var(--muted)}

@media(max-width:1280px){.dashboard-chart-card,.dashboard-chart-card.compact{grid-column:span 6}.dashboard-chart-card.wide{grid-column:span 12}.quick-access-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:980px){.admin-hero{grid-template-columns:1fr;gap:28px}.admin-hero-actions{justify-content:flex-start}.executive-strip{grid-template-columns:1fr}.dashboard-insight-grid{grid-template-columns:1fr}}
@media(max-width:760px){.admin-hero{padding:30px 24px;border-radius:22px}.admin-hero h1{font-size:3.2rem}.dashboard-chart-card,.dashboard-chart-card.compact,.dashboard-chart-card.wide{grid-column:1/-1}.dashboard-chart-grid{grid-template-columns:1fr}.dashboard-chart-card{padding:21px}.chart-canvas-wrap,.dashboard-chart-card.compact .chart-canvas-wrap,.dashboard-chart-card.wide .chart-canvas-wrap{height:240px}.executive-strip>div{padding:16px 18px}.quick-access-grid{grid-template-columns:1fr}.project-timeline-list>a{grid-template-columns:76px minmax(0,1fr)}.project-timeline-list b{grid-column:2}.decision-number{font-size:62px}}

/* v0.8.3 · autenticación administrativa independiente y nómina cerrada */
.admin-auth-wrap .auth-intro{background:linear-gradient(145deg,#091f35 0%,#0d355c 72%,#0b4d84 100%);color:#fff;border-radius:30px;padding:42px;box-shadow:var(--shadow-md)}
.admin-auth-wrap .auth-intro .eyebrow{color:#8bc8ff}.admin-auth-wrap .auth-intro h1{color:#fff}.admin-auth-wrap .auth-intro>p{color:rgba(255,255,255,.76)}
.admin-auth-wrap .auth-note{background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.16)}.admin-auth-wrap .auth-note p{color:rgba(255,255,255,.72)}
.admin-roster-card{margin-bottom:20px}.admin-roster-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:20px}
.admin-roster-item{display:grid;grid-template-columns:auto minmax(0,1fr);gap:13px;align-items:start;padding:17px;border:1px solid var(--line-soft);border-radius:18px;background:linear-gradient(180deg,#fff,#fbfbfd)}
.admin-roster-main{display:grid;gap:5px;min-width:0}.admin-roster-main>strong{font-size:14px;letter-spacing:-.015em}.admin-roster-main>small{font-size:11px;color:var(--muted);overflow-wrap:anywhere}.admin-roster-main .badge{justify-self:start}
.admin-invite-form{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;margin-top:4px;padding-top:14px;border-top:1px solid var(--line-soft)}
.admin-invite-form label{display:grid;gap:6px;font-size:11px;font-weight:600;color:#424245}.admin-invite-form input{width:100%;border:1px solid #c7c7cc;background:#fff;border-radius:12px;padding:11px 12px;outline:none}.admin-invite-form input:focus{border-color:#6cb2f8;box-shadow:0 0 0 4px rgba(0,113,227,.12)}
@media(max-width:760px){.admin-roster-grid{grid-template-columns:1fr}.admin-invite-form{grid-template-columns:1fr}.admin-auth-wrap .auth-intro{padding:30px 24px;border-radius:22px}}

/* v0.8.4 · rediseño de Sistema y actualizaciones */
.system-page{display:grid;gap:20px;min-width:0}
.system-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,310px);gap:34px;align-items:stretch;padding:38px 40px;border:1px solid rgba(0,0,0,.055);border-radius:30px;background:radial-gradient(circle at 91% 18%,rgba(0,113,227,.15),transparent 30%),linear-gradient(135deg,#fff 0%,#f8fbff 56%,#edf6ff 100%);box-shadow:var(--shadow-sm);min-width:0}
.system-hero:after{content:"";position:absolute;width:310px;height:310px;border:1px solid rgba(0,113,227,.08);border-radius:50%;right:-150px;bottom:-230px;box-shadow:0 0 0 32px rgba(0,113,227,.026),0 0 0 66px rgba(0,113,227,.018);pointer-events:none}
.system-hero-copy{position:relative;z-index:1;min-width:0}
.system-hero-copy h1{font-size:clamp(2.7rem,4.7vw,5rem);font-weight:650;letter-spacing:-.065em;line-height:.92;margin:8px 0 20px;max-width:900px}
.system-hero-copy>p{max-width:800px;margin:0;color:#515154;font-size:15px;line-height:1.68}
.system-hero-tags{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:24px;min-width:0}
.system-health-panel{position:relative;z-index:1;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-width:0;padding:25px;border:1px solid rgba(255,255,255,.76);border-radius:22px;background:rgba(255,255,255,.72);box-shadow:0 14px 34px rgba(18,52,86,.08);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.system-health-icon{display:grid;place-items:center;width:44px;height:44px;margin-bottom:22px;border-radius:50%;background:var(--green-soft);color:var(--green);font-size:21px;font-weight:750}
.system-health-panel small{font-size:10px;color:var(--muted);font-weight:650;text-transform:uppercase;letter-spacing:.1em}
.system-health-panel strong{font-size:30px;letter-spacing:-.045em;line-height:1.08;margin:7px 0 9px}
.system-health-panel p{margin:0;color:var(--muted);font-size:11px;line-height:1.55;overflow-wrap:anywhere}

.system-version-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;min-width:0}
.system-version-card{display:flex;flex-direction:column;min-width:0;min-height:142px;padding:22px;border:1px solid var(--line-soft);border-radius:20px;background:linear-gradient(180deg,#fff 0%,#fcfcfe 100%);box-shadow:var(--shadow-sm)}
.system-version-card>span{font-size:10px;color:var(--muted);font-weight:650;line-height:1.4}
.system-version-card>strong{font-size:34px;letter-spacing:-.05em;line-height:1;margin:18px 0 12px;overflow-wrap:anywhere}
.system-version-card>strong em{font-style:normal;color:var(--muted);font-size:17px;font-weight:560;letter-spacing:-.02em}
.system-version-card>small{margin-top:auto;color:var(--muted);font-size:10px;line-height:1.45}

.system-main-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(290px,.72fr);gap:20px;align-items:start;min-width:0}
.system-primary-column,.system-secondary-column{display:grid;gap:20px;min-width:0}
.system-card{min-width:0;padding:28px;border:1px solid var(--line-soft);border-radius:24px;background:var(--paper);box-shadow:var(--shadow-sm)}
.system-card h2{font-size:24px;font-weight:650;letter-spacing:-.035em;line-height:1.13;margin:5px 0 16px}
.system-card p{color:#515154;font-size:12px;line-height:1.68}
.system-backup-action{display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,255px);gap:30px;align-items:center;background:linear-gradient(145deg,#fff 0%,#f8fbff 100%)}
.system-card-copy{min-width:0}
.system-card-copy>p{max-width:800px;margin:0}
.system-storage-path{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-top:18px;min-width:0}
.system-storage-path>span{font-size:10px;color:var(--muted);font-weight:650}
.system-storage-path code{max-width:100%;overflow-wrap:anywhere;word-break:break-word;white-space:normal}
.system-backup-form{display:grid;gap:10px;justify-items:stretch;min-width:0;padding:19px;border:1px solid #dce9f7;border-radius:18px;background:rgba(255,255,255,.82)}
.system-backup-form .system-primary-action{width:100%;min-width:0;white-space:normal;text-align:center;padding:11px 18px;line-height:1.3}
.system-backup-form>small{color:var(--muted);font-size:9px;line-height:1.5;text-align:center}

.system-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;min-width:0}
.system-section-head>div{min-width:0}
.system-section-head h2{margin-bottom:0}
.system-count-pill{display:grid;place-items:center;flex:0 0 auto;min-width:40px;height:40px;padding:0 11px;border-radius:999px;background:var(--blue-soft);color:var(--blue);font-size:14px;font-weight:700}
.system-backup-list{display:grid;margin-top:18px;border-top:1px solid var(--line-soft)}
.system-backup-item{display:grid;grid-template-columns:48px minmax(0,1fr) minmax(145px,auto) auto;gap:16px;align-items:center;min-width:0;padding:17px 0;border-bottom:1px solid var(--line-soft)}
.system-backup-item:last-child{border-bottom:0;padding-bottom:0}
.system-file-mark{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:#eef5fc;color:#0a5fab;font-size:10px;font-weight:750;letter-spacing:.06em}
.system-backup-main{display:grid;gap:7px;min-width:0}
.system-backup-main>strong{display:block;min-width:0;font-size:12px;line-height:1.4;overflow-wrap:anywhere;word-break:break-word}
.system-backup-meta{display:flex;flex-wrap:wrap;gap:5px 13px;min-width:0;color:var(--muted);font-size:9px;line-height:1.45}
.system-backup-meta>span{overflow-wrap:anywhere}
.system-backup-hash{display:grid;gap:5px;min-width:0}
.system-backup-hash>span{font-size:8px;color:var(--muted);font-weight:700;letter-spacing:.08em}
.system-backup-hash code{display:block;max-width:100%;padding:5px 7px;font-size:9px;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
.system-download-button{justify-self:end;white-space:nowrap}
.system-empty-state{display:grid;place-items:center;text-align:center;min-height:220px;padding:30px 16px;color:var(--muted)}
.system-empty-state>span{display:grid;place-items:center;width:52px;height:52px;margin-bottom:14px;border-radius:50%;background:#f2f2f5;color:var(--blue);font-size:24px}
.system-empty-state>strong{font-size:15px;color:var(--ink)}
.system-empty-state>p{max-width:390px;margin:7px 0 0;color:var(--muted);font-size:11px}

.system-inventory-list{display:grid;gap:0;margin-top:17px;border-top:1px solid var(--line-soft)}
.system-inventory-list>div{display:flex;align-items:center;justify-content:space-between;gap:18px;min-width:0;padding:15px 0;border-bottom:1px solid var(--line-soft)}
.system-inventory-list>div:last-child{border-bottom:0;padding-bottom:0}
.system-inventory-list span{min-width:0;color:var(--muted);font-size:11px;overflow-wrap:anywhere}
.system-inventory-list strong{flex:0 0 auto;font-size:25px;letter-spacing:-.045em}
.system-protection-list{display:grid;gap:0;margin:16px 0 0;padding:0;list-style:none}
.system-protection-list li{display:grid;grid-template-columns:28px minmax(0,1fr);gap:11px;align-items:start;min-width:0;padding:13px 0;border-bottom:1px solid var(--line-soft)}
.system-protection-list li:last-child{border-bottom:0;padding-bottom:0}
.system-protection-list li>span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:var(--green-soft);color:var(--green);font-size:11px;font-weight:750}
.system-protection-list li>div{display:grid;gap:4px;min-width:0}
.system-protection-list strong{font-size:11px;line-height:1.4}
.system-protection-list small{color:var(--muted);font-size:9px;line-height:1.55;overflow-wrap:anywhere}

.system-protocol-card{padding-bottom:30px}
.system-update-timeline{counter-reset:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin:24px 0 0;padding:1px;list-style:none;border:1px solid var(--line-soft);border-radius:20px;overflow:hidden;background:var(--line-soft);min-width:0}
.system-update-timeline li{display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;align-items:start;min-width:0;padding:20px;background:#fff}
.system-step-number{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--blue);color:#fff;font-size:11px;font-weight:750}
.system-update-timeline li>div{display:grid;gap:6px;min-width:0}
.system-update-timeline strong{font-size:12px;line-height:1.35}
.system-update-timeline p{margin:0;color:var(--muted);font-size:9px;line-height:1.55;overflow-wrap:anywhere}
.system-safety-note{display:grid;grid-template-columns:minmax(180px,.35fr) minmax(0,1fr);gap:22px;align-items:start;margin-top:20px;padding:19px 21px;border:1px solid #d7e8f9;border-radius:16px;background:#f4f9ff;min-width:0}
.system-safety-note>strong{font-size:12px;color:#075aab;line-height:1.45}
.system-safety-note>p{margin:0;color:#4f5f70;font-size:10px;line-height:1.6;overflow-wrap:anywhere}

@media(max-width:1280px){
  .system-version-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .system-main-grid{grid-template-columns:1fr}
  .system-secondary-column{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:980px){
  .system-hero{grid-template-columns:1fr;padding:32px}
  .system-health-panel{max-width:none}
  .system-backup-action{grid-template-columns:1fr}
  .system-backup-form{justify-self:stretch}
  .system-update-timeline{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .system-page{gap:14px}
  .system-hero{padding:26px 22px;border-radius:22px;gap:24px}
  .system-hero-copy h1{font-size:3rem}
  .system-health-panel{padding:20px}
  .system-version-grid,.system-secondary-column{grid-template-columns:1fr}
  .system-version-card{min-height:122px;padding:19px}
  .system-card{padding:22px;border-radius:20px}
  .system-backup-item{grid-template-columns:44px minmax(0,1fr);gap:12px}
  .system-backup-hash{grid-column:2;grid-row:auto}
  .system-download-button{grid-column:1/-1;justify-self:stretch;width:100%}
  .system-update-timeline{grid-template-columns:1fr}
  .system-safety-note{grid-template-columns:1fr;gap:7px}
  .system-section-head{align-items:center}
}
@media(max-width:460px){
  .system-hero-copy h1{font-size:2.55rem}
  .system-hero-tags{align-items:flex-start;flex-direction:column}
  .system-hero-tags .badge{white-space:normal;max-width:100%}
  .system-backup-item{grid-template-columns:1fr}
  .system-file-mark{width:40px;height:40px}
  .system-backup-hash,.system-download-button{grid-column:1}
  .system-backup-meta{display:grid;gap:3px}
}
