:root {
  --ink:#16272e; --muted:#63747d; --paper:#f5f7f8; --white:#fff;
  --line:#e3e9ec; --green:#145364; --mint:#e7f2f4; --amber:#956014; --red:#a33838;
  --radius:16px; --sidebar:246px; --shadow:0 3px 16px #16334005;
  font-family:Inter,"Segoe UI",Arial,sans-serif; color-scheme:light;
}
*{box-sizing:border-box}
body{margin:0;color:var(--ink);background:var(--paper);font:14px/1.55 Inter,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}
a{color:var(--green);text-underline-offset:3px} button,input,select,textarea{font:inherit}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button{cursor:pointer} button:disabled{cursor:wait;opacity:.55}
:focus-visible{outline:3px solid #398baf;outline-offset:3px}
[hidden],.hidden{display:none!important}
h1,h2,h3,p{margin-top:0} h1,h2,h3{color:var(--ink)}
h1{font-size:32px;line-height:1.2;letter-spacing:-1.2px;font-weight:650}
h2{font-size:17px;line-height:1.4;letter-spacing:-.35px;font-weight:650}
p{color:var(--muted)} small{font-size:12px}
.icon{width:20px;height:20px;flex-shrink:0;vertical-align:middle}
.skip-link{position:fixed;top:6px;left:12px;transform:translateY(-160%);z-index:100;background:white;padding:12px;border-radius:8px}
.skip-link:focus{transform:none}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);padding:30px 18px 16px;background:var(--white);border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:30}
.brand{display:flex;gap:11px;align-items:center;text-decoration:none;color:var(--ink);font-size:23px;letter-spacing:-.8px;font-weight:750;padding:0 13px}
.brand>.icon{width:38px;height:38px;color:white;background:var(--green);padding:6px;border-radius:12px}
.brand small{display:block;font-size:9px;color:var(--muted);letter-spacing:2.4px;font-weight:650;margin-top:-3px}
.nav-caption{color:#7c8b92;letter-spacing:1.4px;font-size:10px;font-weight:650;margin:46px 14px 15px}
.sidebar nav{display:grid;gap:7px}
.sidebar nav a{display:flex;align-items:center;gap:12px;color:#5d6c75;padding:12px 14px;text-decoration:none;border-radius:10px;font-size:13px;font-weight:550;transition:background .15s,color .15s}
.sidebar nav a:hover{background:#f3f6f7;color:var(--ink)}
.sidebar nav a[aria-current=page]{background:var(--mint);color:var(--green);font-weight:650}
.candidate-shortcut{display:flex;align-items:center;gap:9px;margin:auto 6px 22px;padding:12px 7px;text-decoration:none;font-size:12px;font-weight:550}
.profile{border-top:1px solid var(--line);padding:20px 6px 4px;display:flex;align-items:center;gap:9px}
.avatar{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;background:#ecf0f2;border:1px solid #e3e8eb;border-radius:50%;font-weight:650;color:#48616f}
.profile-info{min-width:0;flex:1}.profile-info strong,.profile-info small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-info strong{font-size:12px;font-weight:650}.profile-info small{font-size:11px;color:var(--muted)}
.sign-out{padding:5px;color:#73858d}.sign-out .icon{width:17px;height:17px}
.topbar{height:76px;border-bottom:1px solid var(--line);background:#fff;margin-left:var(--sidebar);padding:0 40px;display:flex;align-items:center;justify-content:space-between;gap:15px}
.breadcrumb{font-size:12px;color:#77868e}.breadcrumb>span{padding:0 13px;color:#b7c1c6}.breadcrumb strong{font-weight:550;color:var(--ink)}
.topbar-label{display:flex;align-items:center;gap:8px;font-size:11px;color:#74848d}
.topbar-label .icon{width:16px;height:16px}.menu-toggle{display:none!important}
.content{margin-left:var(--sidebar);padding:38px 40px 56px;max-width:1750px;min-width:0}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:28px}
.page-heading h1{margin:6px 0 10px}.page-heading p{margin-bottom:0;font-size:13px}
.eyebrow{font-size:10px!important;font-weight:700;letter-spacing:1.6px;color:var(--green);text-transform:uppercase;margin-bottom:8px}
.primary,.secondary,.button-link{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;border-radius:9px;padding:10px 16px;text-decoration:none;font-weight:600;font-size:12px;border:1px solid transparent;line-height:1.4;transition:background .15s,box-shadow .15s}
.primary{background:var(--green);color:white;box-shadow:0 2px 3px #123f4b10}
.primary:hover{background:#103f4c}.secondary{background:white;border-color:#dce4e8;color:var(--ink)}
.secondary:hover{background:#f1f5f6}.full{width:100%}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:26px}
.stats article{position:relative;background:var(--white);padding:23px;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.stats article:before{content:"";display:block;width:22px;height:3px;background:#a3c7d0;margin-bottom:20px;border-radius:6px}
.stats article:nth-child(2):before{background:#dfbd7a}.stats article:nth-child(3):before{background:#8db6a1}
.stats span,.stats small{display:block;color:var(--muted);font-size:12px}
.stats strong{display:block;font-size:33px;font-weight:650;letter-spacing:-1.5px;font-variant-numeric:tabular-nums;margin-top:8px;line-height:1.2}
.stats small{margin-top:9px}.area-stats{grid-template-columns:repeat(5,minmax(0,1fr))}
.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow);min-width:0;overflow:auto}
.panel h2{margin-bottom:20px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}
.panel-head h2{margin:0 0 12px}.panel-head>span{display:inline-flex;border-radius:7px;background:#f1f5f6;padding:3px 9px;color:var(--muted);font-size:12px}
table{border-collapse:collapse;width:100%;min-width:510px;font-size:12px}
th{font-weight:600;color:#71818a;font-size:10px;text-transform:uppercase;letter-spacing:.6px;text-align:left;background:#f8fafb}
td,th{padding:16px 12px;border-bottom:1px solid #edf1f3}th:first-child{border-radius:7px 0 0 7px}th:last-child{border-radius:0 7px 7px 0}
td{color:#52646e}td:first-child{color:var(--ink);font-weight:550}
tbody tr:last-child td{border-bottom:none}tbody tr:hover{background:#fafcfc}.empty{text-align:center;padding:42px;color:var(--muted)!important;font-weight:400!important}
.badge{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-size:10px;font-weight:550;text-transform:capitalize;padding:4px 8px;border-radius:6px;background:#eef1f3;color:#65747d}
.badge:before{content:"";width:5px;height:5px;background:currentColor;border-radius:50%}
.badge.pendiente{color:#946718;background:#fbf3e4}.badge.en_curso{color:#266e96;background:#eaf4fc}
.badge.completada{color:#26754f;background:#e9f5ee}.badge.anulada,.badge.bloqueada,.badge.vencida{color:#9d5050;background:#fbefef}
.two-col{display:grid;grid-template-columns:minmax(260px,.72fr) minmax(0,1.65fr);gap:24px;align-items:start}
.form-panel form,.auth-card form,.candidate-card form{display:grid;gap:18px}
label{display:grid;gap:7px;font-size:12px;font-weight:600;color:#40555f}
label small{font-weight:400;color:var(--muted)}
input:not([type=radio]):not([type=checkbox]),select,textarea{width:100%;min-height:43px;border:1px solid #dce4e8;background:#fff;border-radius:8px;padding:10px 12px;color:var(--ink);font-size:13px;line-height:1.45}
input::placeholder,textarea::placeholder{color:#98a6ad}
input:focus,select:focus,textarea:focus{border-color:#5a96a6;outline:3px solid #14536412;outline-offset:0}
textarea{resize:vertical;min-height:94px}.custom-fields{display:grid;gap:16px}
.credentials{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:18px 22px;border:1px solid #cae1e6;background:#edf6f8;color:var(--green);border-radius:12px;margin-bottom:24px}
.credentials>span{font-size:12px}.credentials strong{letter-spacing:.6px;background:#fff;padding:5px 10px;border-radius:6px;font-size:13px}.credentials small{font-size:11px;color:#597d88}
.credential-pin{display:block;margin-top:3px;color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}
.inline-form{display:inline}.link-button{border:0;background:transparent;color:var(--green);padding:4px 0;font-size:11px;font-weight:600;cursor:pointer;white-space:nowrap}.link-button:hover{text-decoration:underline}.link-button.danger{color:var(--red)}
.result-link{font-size:11px;font-weight:650;white-space:nowrap}
.import-panel{display:flex;align-items:center;justify-content:space-between;gap:28px;margin-bottom:24px}
.import-panel h2{margin-bottom:8px}.import-panel p{font-size:12px;margin:0;max-width:600px}
.import-panel button{white-space:nowrap}code{font-size:11px;background:#f1f5f6;border-radius:4px;padding:2px 4px;overflow-wrap:anywhere}
.note{color:var(--muted);padding:15px 18px;border:1px solid var(--line);border-radius:9px;font-size:12px;background:#f9fbfc}
.score{background:#fff;border:1px solid var(--line);border-radius:14px;display:grid;grid-template-columns:auto auto;align-items:baseline;gap:2px 6px;padding:17px 24px;min-width:172px}
.score span{grid-column:1/-1;font-size:11px;color:var(--muted)}.score strong{font-size:36px;letter-spacing:-1.5px;font-weight:650}.score small{color:#8c9ba3}
.interpretation-intro{margin-bottom:22px;padding:29px 32px;border-left:4px solid #4b9ca6}.interpretation-intro h2{font-size:22px;margin-bottom:9px}.interpretation-intro>p:not(.eyebrow){max-width:920px;margin-bottom:22px;font-size:14px;line-height:1.7;color:#435963}
.result-counts{display:flex;flex-wrap:wrap;gap:10px}.result-counts span{padding:8px 13px;border-radius:8px;background:#f2f7f8;font-size:12px;color:#546b75}.result-counts strong{font-size:15px;color:var(--ink);margin-right:4px}
.insight-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-bottom:22px}.insight-card{min-height:190px}.insight-heading{display:flex;align-items:center;gap:11px;margin-bottom:16px}.insight-heading span{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;font-size:11px;font-weight:700}.insight-heading.positive span{background:#e8f4ec;color:#26754f}.insight-heading.explore span{background:#fcf3e5;color:#946718}.insight-heading h2{margin:0}.insight-card>p{font-size:13px;line-height:1.65;margin:0}.insight-list{list-style:none;margin:0;padding:0}.insight-list li{display:flex;justify-content:space-between;gap:16px;padding:11px 0;border-top:1px solid #edf1f3;font-size:12px}.insight-list strong{font-weight:600}.insight-list span{color:var(--muted);white-space:nowrap}
.interpretation-areas,.interpretation-patterns,.interpretation-footer{margin-bottom:22px}.section-head{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:16px}.section-head h2{margin:0}.section-head>span{font-size:11px;color:var(--muted)}.area-reading-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.area-reading{padding:20px;border:1px solid var(--line);border-radius:12px;background:#fcfdfd}.area-reading>div{display:flex;justify-content:space-between;align-items:start;gap:15px}.area-reading h3{font-size:14px;margin-bottom:9px}.area-score{font-size:12px;font-weight:650;color:var(--green);white-space:nowrap}.area-reading p{font-size:12px;line-height:1.6;margin-bottom:10px}.area-reading p:last-child{margin-bottom:0;color:#435862}.interpretation-patterns>p:not(.eyebrow),.interpretation-footer>p:not(.eyebrow){font-size:12px;line-height:1.7}.interpretation-patterns ul{list-style:none;margin:10px 0 0;padding:0}.interpretation-patterns li{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding:12px 0;font-size:12px}.interpretation-patterns li span{color:var(--muted);white-space:nowrap}.interpretation-footer .note{margin:18px 0}.interpretation-footer form{margin-top:20px}
.rule-help{margin-bottom:22px}.rule-help h2{margin-bottom:8px}.rule-help p{font-size:12px;max-width:920px;margin:0}.rule-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px}.rule-card{display:grid;gap:15px}.rule-meta{display:flex;justify-content:space-between;gap:14px;align-items:start}.rule-meta strong{font-size:13px}.rule-meta span{font-size:11px;color:var(--muted);text-align:right}.rule-card textarea{min-height:102px}.rule-actions{display:flex;align-items:center;justify-content:space-between;gap:16px}.rule-actions .check-label{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:500}.rule-actions input[type=checkbox]{width:16px;height:16px;accent-color:var(--green)}
.alert{display:flex;align-items:flex-start;gap:10px;font-size:13px;padding:14px 17px;border:1px solid transparent;border-radius:10px;margin-bottom:22px}
.alert .icon{width:17px;height:20px}.alert.error{background:#fff3f3;color:#9a3d3d;border-color:#f1dada}.alert.success{background:#edf8f1;color:#2c7350;border-color:#d7eddf}
.auth-layout .content{margin:0;padding:24px;max-width:none;min-height:100dvh;display:flex;flex-direction:column}
.auth{flex:1;display:grid;place-items:center;min-height:calc(100dvh - 48px);padding:32px 0}
.auth-card{width:min(430px,100%);padding:38px;background:white;border:1px solid var(--line);border-radius:20px;box-shadow:0 16px 55px #18303d08}
.mark{display:grid;place-items:center;width:48px;height:48px;background:var(--green);color:#fff;border-radius:14px;margin-bottom:26px;font-size:24px}.mark .icon{width:28px;height:28px}
.auth-card h1{font-size:29px;margin:8px 0 10px}.auth-card>p:not(.eyebrow){font-size:13px;margin-bottom:28px}
.auth-foot{font-size:11px;color:#83939b;text-align:center;margin:24px 0 0}.auth-card .auth-foot a{color:inherit}
.candidate{background:#f5f8f9;min-height:100dvh}
.candidate-header{height:78px;background:white;border-bottom:1px solid var(--line);padding:0 max(22px,calc((100vw - 1100px)/2));display:flex;align-items:center;justify-content:space-between}
.candidate-header .brand{padding:0;font-size:22px}.candidate-header>span{font-size:12px;color:#72838c}
.candidate-main{max-width:850px;margin:0 auto;padding:52px 24px}
.candidate-card,.exam-shell{background:white;border:1px solid var(--line);padding:40px;border-radius:20px;box-shadow:var(--shadow)}
.access-card{max-width:465px;margin:0 auto}.candidate-card h1{font-size:29px;margin:8px 0 16px;line-height:1.25}
.candidate-card>p:not(.eyebrow){font-size:13px}.candidate-card form{margin-top:28px}
.candidate-card input[name=codigo],.candidate-card input[name=pin]{font-size:17px;letter-spacing:3px;font-variant-numeric:tabular-nums}
.candidate-card dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;background:#f7fafb;border:1px solid var(--line);border-radius:12px;padding:22px;margin:25px 0}
.candidate-card dt{font-size:11px;color:#7b8c94}.candidate-card dd{font-size:14px;font-weight:600;margin:5px 0 0}
.done{text-align:center;max-width:490px;margin:36px auto}.done .mark{margin:0 auto 24px;background:#e8f5ed;color:#337350}
.exam-top{display:flex;justify-content:space-between;align-items:center;gap:16px}
.exam-top strong{display:block;font-size:14px;font-weight:600}.exam-top .eyebrow{display:block;margin-bottom:6px}
.timer{font-size:10px;color:#75848d;padding:8px 14px;border-radius:8px;background:#f3f7f8;text-align:right}
.timer strong{font-size:19px;color:var(--green);font-variant-numeric:tabular-nums}
.progress{height:5px;background:#edf2f4;border-radius:20px;margin:26px 0 35px;overflow:hidden}
.progress i{display:block;height:100%;background:#3d8496;border-radius:20px;transition:width .2s}
.question-area{color:#8799a2;font-size:12px;margin:0}.exam-question h1{font-size:24px;font-weight:600;line-height:1.5;letter-spacing:-.5px;margin:12px 0 27px}
.options{display:grid;gap:12px}.choice{position:relative;display:flex;align-items:center;gap:14px;border:1px solid #dfe7eb;border-radius:11px;padding:16px;font-weight:400;font-size:14px;cursor:pointer;transition:border .15s,background .15s}
.choice:hover{background:#fafcfd;border-color:#b6cbd4}.choice input{position:absolute;opacity:0;width:1px;height:1px}.choice:focus-within{outline:3px solid #5290a2;outline-offset:2px}
.choice>span{width:30px;height:30px;flex-shrink:0;display:grid;place-items:center;border-radius:8px;background:#f2f5f7;font-size:12px;font-weight:600;color:#6b818d}
.choice.selected{border-color:#4f94a5;background:#f0f8fa}.choice.selected>span{background:var(--green);color:white}
.exam-nav{display:flex;justify-content:space-between;align-items:center;gap:20px;border-top:1px solid var(--line);padding-top:25px;margin-top:34px}
.exam-nav>span{font-size:11px;color:#80929b;text-align:center}
@media(min-width:1600px){.content{padding:44px 58px}.topbar{padding:0 58px}}
@media(max-width:1200px){:root{--sidebar:216px}.content{padding:30px 25px}.topbar{padding:0 25px}.stats{gap:12px}.stats article{padding:18px}.two-col{grid-template-columns:minmax(255px,.8fr) minmax(0,1.3fr)}.area-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:960px){.two-col,.rule-list{grid-template-columns:1fr}.form-panel form{grid-template-columns:repeat(2,minmax(0,1fr))}.form-panel form>button{justify-self:start}.form-panel .custom-fields{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr))}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.import-panel{align-items:start;flex-direction:column}}
@media(max-width:720px){
  .sidebar{transform:translateX(-100%);transition:transform .2s;width:250px;box-shadow:20px 0 90px #15343f22;top:64px;padding-top:24px}
  .menu-open .sidebar{transform:translateX(0)}.topbar{height:64px;position:sticky;top:0;z-index:40;margin:0;padding:0 18px}
  .menu-toggle{display:inline-flex!important;padding:7px;min-height:34px}.topbar-label{display:none}.breadcrumb{margin-right:auto;font-size:11px}.breadcrumb>span{padding:0 7px}
  .content{margin:0;padding:26px 18px 40px}.page-heading{align-items:flex-start;gap:18px;flex-direction:column;margin-bottom:23px}.page-heading h1{font-size:29px}
  .page-heading>.primary{align-self:flex-start}.panel{padding:18px;border-radius:13px}.stats article{border-radius:12px}.stats strong{font-size:29px}
  .stats article:before{margin-bottom:15px}.stats span{font-size:11px}.two-col{gap:20px}.form-panel form{grid-template-columns:1fr}.form-panel .custom-fields{grid-template-columns:1fr}
  .credentials{padding:17px;gap:10px}.credentials>span,.credentials small{width:100%}
  .auth-card{padding:30px 25px}.auth-layout .content{padding:16px}.auth{min-height:calc(100dvh - 32px)}
  .candidate-header{height:68px;padding:0 20px}.candidate-header>span{font-size:10px}.candidate-header .brand{font-size:20px}.candidate-header .brand>.icon{width:32px;height:32px}
  .candidate-main{padding:27px 16px}.candidate-card,.exam-shell{padding:26px 22px;border-radius:15px}.candidate-card h1{font-size:27px}
  .exam-question h1{font-size:21px}.exam-nav{gap:12px;flex-wrap:wrap}.exam-nav>span{order:3;width:100%}.choice{font-size:13px;padding:13px}
  .insight-grid,.area-reading-grid{grid-template-columns:1fr}.interpretation-intro{padding:23px;border-left-width:3px}.interpretation-intro h2{font-size:19px}.insight-card{min-height:0}.section-head{align-items:start;flex-direction:column;gap:4px}.rule-meta{display:block}.rule-meta span{display:block;text-align:left;margin-top:3px}.rule-actions{align-items:start;flex-direction:column}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
@media(max-width:720px){
  .evaluation-table,.evaluation-table tbody,.evaluation-table tr,.evaluation-table td{display:block;width:100%;min-width:0}
  .evaluation-table thead{display:none}
  .evaluation-table tr{padding:16px 0;border-bottom:1px solid var(--line)}
  .evaluation-table tr:last-child{border-bottom:0}
  .evaluation-table td{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;border:0;padding:5px 2px;background:none;font-size:12px;text-align:right;color:var(--ink);font-weight:550;overflow-wrap:anywhere}
  .evaluation-table td:before{content:attr(data-label);color:#768992;font-size:11px;font-weight:500;text-align:left;white-space:nowrap}
  .evaluation-table td:first-child{font-size:14px;font-weight:650;padding-bottom:12px}
  .evaluation-table td:first-child:before{display:none}
  .evaluation-table td .credential-pin{text-align:right}
}
@media print{.sidebar,.topbar,.page-heading>.button-link,.inline-form{display:none!important}.content{margin:0;padding:0}.panel,.stats article{box-shadow:none}body{background:white}.stats{grid-template-columns:repeat(5,1fr)}}
