.nexus-kmr{--nexus-font-scale:1;--nexus-text:#202124;--nexus-muted:#5f6368;--nexus-border:#d5d9df;--nexus-surface:#fff;--nexus-soft:#f5f7fa;--nexus-primary:#174ea6;--nexus-primary-dark:#103a7c;--nexus-danger:#a50e0e;--nexus-success:#137333;--nexus-warning:#8a4b00;color:var(--nexus-text);font-size:calc(16px * var(--nexus-font-scale));line-height:1.6;max-width:1180px;margin:0 auto;padding:20px;box-sizing:border-box}.nexus-kmr *,.nexus-kmr *::before,.nexus-kmr *::after{box-sizing:border-box}.nexus-kmr :focus-visible{outline:3px solid #ffbf47;outline-offset:3px}.nexus-kmr__skip-link{position:absolute;left:-9999px;top:0}.nexus-kmr__skip-link:focus{left:20px;z-index:999;background:#fff;padding:10px}.nexus-kmr__a11y{display:flex;gap:8px;justify-content:flex-end;margin-bottom:18px;flex-wrap:wrap}.nexus-kmr__a11y button{min-height:44px;padding:8px 14px;border:1px solid var(--nexus-border);background:var(--nexus-surface);color:var(--nexus-text);border-radius:6px;cursor:pointer}.nexus-kmr__hero{padding:28px;border-radius:16px;background:var(--nexus-soft);margin-bottom:28px}.nexus-kmr__hero h1{margin:0 0 12px;line-height:1.2}.nexus-kmr__hero--form{padding:22px}.nexus-kmr__eyebrow{font-weight:700;color:var(--nexus-primary);margin:0 0 6px}.nexus-kmr__breadcrumbs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px;font-size:.92em}.nexus-kmr__cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;margin:18px 0 36px}.nexus-kmr__card{border:1px solid var(--nexus-border);background:var(--nexus-surface);border-radius:14px;padding:22px;display:flex;flex-direction:column}.nexus-kmr__card h3{margin-top:0}.nexus-kmr__card .nexus-kmr__button{margin-top:auto;align-self:flex-start}.nexus-kmr__sla{font-size:.9em;color:var(--nexus-muted)}.nexus-kmr__button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 18px;border:2px solid var(--nexus-primary);border-radius:8px;background:var(--nexus-primary);color:#fff!important;font-weight:700;text-decoration:none!important;cursor:pointer}.nexus-kmr__button:hover{background:var(--nexus-primary-dark);border-color:var(--nexus-primary-dark)}.nexus-kmr__button--secondary{background:#fff;color:var(--nexus-primary)!important}.nexus-kmr__button--ghost{background:transparent;color:var(--nexus-primary)!important}.nexus-kmr__tracking-cta{margin-top:36px;padding:26px;border:2px solid var(--nexus-primary);border-radius:14px}.nexus-kmr__form{display:flex;flex-direction:column;gap:22px}.nexus-kmr__section,.nexus-kmr__fieldset{border:1px solid var(--nexus-border);border-radius:12px;padding:22px;margin:0}.nexus-kmr__fieldset legend{font-weight:700;padding:0 8px}.nexus-kmr__fieldset>label,.nexus-kmr__inline-fieldset label{margin-right:18px;display:inline-flex;gap:8px;align-items:center;min-height:36px}.nexus-kmr__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.nexus-kmr__field{display:flex;flex-direction:column;gap:6px}.nexus-kmr__field--full{grid-column:1/-1}.nexus-kmr__field label,.nexus-kmr__field>label{font-weight:700}.nexus-kmr input[type=text],.nexus-kmr input[type=email],.nexus-kmr input[type=tel],.nexus-kmr input[type=date],.nexus-kmr select,.nexus-kmr textarea{width:100%;min-height:46px;border:1px solid #7a7f87;border-radius:7px;padding:10px 12px;background:#fff;color:#111;font:inherit}.nexus-kmr textarea{min-height:140px;resize:vertical}.nexus-kmr__hint,.nexus-kmr__help{color:var(--nexus-muted);font-size:.92em}.nexus-kmr__counter{float:right;font-weight:400;color:var(--nexus-muted)}.nexus-kmr__check{display:flex;gap:10px;align-items:flex-start;margin-top:16px}.nexus-kmr__check input{margin-top:6px}.nexus-kmr__upload{border:1px dashed var(--nexus-border);border-radius:10px;padding:18px;margin-bottom:18px}.nexus-kmr__dropzone{display:flex;flex-direction:column;gap:8px;padding:20px;background:var(--nexus-soft);border-radius:8px;cursor:pointer}.nexus-kmr__actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}.nexus-kmr__notice{padding:18px;border-radius:10px;margin:18px 0;border-left:5px solid var(--nexus-primary);background:var(--nexus-soft)}.nexus-kmr__notice--error{border-left-color:var(--nexus-danger)}.nexus-kmr__notice--warning{border-left-color:var(--nexus-warning)}.nexus-kmr__success{padding:28px;border:2px solid var(--nexus-success);border-radius:14px;text-align:center}.nexus-kmr__ticket{font-size:1.35em;font-weight:800;letter-spacing:.03em;word-break:break-word}.nexus-kmr__track-form{max-width:780px;margin:24px 0}.nexus-kmr__track-form label{font-weight:700;display:block;margin-bottom:7px}.nexus-kmr__track-row{display:flex;gap:10px}.nexus-kmr__tracking-result{border:1px solid var(--nexus-border);border-radius:14px;padding:24px}.nexus-kmr__details{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.nexus-kmr__details>div{background:var(--nexus-soft);padding:12px;border-radius:8px}.nexus-kmr__details dt{font-weight:700}.nexus-kmr__details dd{margin:4px 0 0}.nexus-kmr__status{display:inline-block;padding:3px 9px;border-radius:999px;background:#e8f0fe;color:#174ea6;font-weight:700}.nexus-kmr__timeline{border-left:2px solid var(--nexus-border);padding-left:22px}.nexus-kmr__timeline li{margin-bottom:12px}.nexus-kmr__timeline time{display:block;color:var(--nexus-muted);font-size:.9em}.nexus-kmr__response{background:#eaf6ee;border-radius:10px;padding:18px;margin:18px 0}.nexus-kmr__rating{margin-top:24px;display:grid;gap:12px}.nexus-kmr__honeypot{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}.nexus-kmr--contrast{--nexus-text:#fff;--nexus-muted:#f4f4f4;--nexus-border:#fff;--nexus-surface:#000;--nexus-soft:#111;--nexus-primary:#ffdf00;--nexus-primary-dark:#ffe95c;background:#000;color:#fff}.nexus-kmr--contrast .nexus-kmr__button{background:#ffdf00;color:#000!important;border-color:#ffdf00}.nexus-kmr--contrast input,.nexus-kmr--contrast select,.nexus-kmr--contrast textarea{background:#000!important;color:#fff!important;border-color:#fff!important}@media(max-width:700px){.nexus-kmr{padding:14px}.nexus-kmr__grid{grid-template-columns:1fr}.nexus-kmr__track-row{flex-direction:column}.nexus-kmr__actions{justify-content:stretch}.nexus-kmr__actions>*{width:100%}}@media(prefers-reduced-motion:reduce){.nexus-kmr *,.nexus-kmr *::before,.nexus-kmr *::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.nexus-kmr__table-wrap{overflow-x:auto}.nexus-kmr__table{width:100%;border-collapse:collapse}.nexus-kmr__table th,.nexus-kmr__table td{padding:10px;border:1px solid var(--nexus-border);text-align:left}.nexus-kmr__table th{background:var(--nexus-soft)}

/* Nexus KMR 2.1 accessible validation */
.nexus-kmr__field-error { display:block; min-height:1.2em; color:var(--nexus-danger); font-weight:700; font-size:.92em; }
.nexus-kmr [aria-invalid="true"] { border:2px solid var(--nexus-danger) !important; }
.nexus-kmr__pending { font-weight:700; color:var(--nexus-warning); }
.nexus-kmr__notice[hidden] { display:none !important; }
.nexus-kmr__field .nexus-kmr__hint { display:block; margin-bottom:2px; }
.nexus-kmr--contrast .nexus-kmr__field-error { color:#ffdf00; }

.nexus-kmr__account-box { background: var(--nexus-soft); border: 1px solid var(--nexus-border); border-radius: 10px; padding: 16px; }
.nexus-kmr__account-box h3 { margin-top: 0; }
.nexus-kmr__secure-code { margin: 18px auto; padding: 16px; border: 2px dashed var(--nexus-primary); border-radius: 10px; max-width: 720px; }

/* Ajuste funcional 002 — portal ciudadano y formulario PQRSD */
.nexus-kmr [hidden] { display:none !important; }
.nexus-kmr__request-list { display:block; margin:18px 0 36px; border-top:1px solid var(--nexus-border); }
.nexus-kmr__request-item { padding:26px 4px; border-bottom:1px solid var(--nexus-border); }
.nexus-kmr__request-item h3 { margin:0 0 8px; font-size:1.35em; }
.nexus-kmr__request-item p { max-width:900px; }
.nexus-kmr__response-time { margin:10px 0 16px; }
.nexus-kmr__instructions { margin:0 0 22px; padding:20px; border-left:4px solid var(--nexus-primary); background:var(--nexus-soft); border-radius:8px; }
.nexus-kmr__updated { font-size:.92em; color:var(--nexus-muted); margin-bottom:0; }
.nexus-kmr__type-context { margin-top:14px; padding:14px; background:var(--nexus-soft); border-radius:8px; }
.nexus-kmr__files-table-wrap { overflow-x:auto; margin-top:14px; }
.nexus-kmr__files-table { width:100%; border-collapse:collapse; min-width:560px; }
.nexus-kmr__files-table th,.nexus-kmr__files-table td { padding:10px; border-bottom:1px solid var(--nexus-border); text-align:left; }
.nexus-kmr__files-table th { background:var(--nexus-soft); }
.nexus-file-remove { min-height:36px; padding:5px 10px; border:1px solid var(--nexus-danger); color:var(--nexus-danger); background:transparent; border-radius:6px; cursor:pointer; }
.nexus-kmr__dropzone input[type=file] { min-height:auto; }
.nexus-kmr__dropzone progress { width:100%; margin-top:10px; }
.nexus-kmr__secure-code { margin:20px 0; padding:18px; border:2px dashed var(--nexus-primary); border-radius:10px; }
.nexus-kmr__conditions { border-width:2px; }
.nexus-kmr__field-error { color:var(--nexus-danger); font-weight:600; min-height:1.2em; }
.nexus-kmr [aria-invalid="true"] { border-color:var(--nexus-danger) !important; box-shadow:0 0 0 1px var(--nexus-danger); }
.nexus-kmr__track-form { display:grid; gap:16px; }
@media (max-width:700px){.nexus-kmr__request-item{padding:20px 0}.nexus-kmr__request-item .nexus-kmr__button{width:100%}}

/* Nexus KMR 3.2 — citizen experience */
.nexus-kmr{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;background:linear-gradient(180deg,#f7f9fd 0,#fff 320px);border-radius:24px;padding:28px;box-shadow:0 24px 60px rgba(24,39,75,.07)}
.nexus-kmr__hero{background:linear-gradient(135deg,#f1f5ff,#ffffff);border:1px solid #dbe4ff;box-shadow:0 12px 34px rgba(49,87,213,.08)}
.nexus-kmr__selected-type{background:linear-gradient(135deg,#14265c,#3157d5);color:#fff;border:0;box-shadow:0 16px 32px rgba(23,56,158,.18)}.nexus-kmr__selected-type h2,.nexus-kmr__selected-type .nexus-kmr__eyebrow,.nexus-kmr__selected-type .nexus-kmr__hint{color:#fff}.nexus-kmr__selected-type .nexus-kmr__hint{opacity:.82}.nexus-kmr__response-time{display:inline-flex;padding:7px 11px;border-radius:999px;background:rgba(255,255,255,.13);font-weight:600}
.nexus-kmr__section{background:#fff;box-shadow:0 8px 24px rgba(16,24,40,.04)}.nexus-kmr__type-fields{display:grid;gap:14px;margin:12px 0 20px;padding:18px;border-radius:12px;background:#f7f9ff;border:1px solid #e2e8fb}.nexus-kmr__type-fields h3{margin:0}.nexus-kmr__button{box-shadow:0 6px 14px rgba(23,78,166,.16)}.nexus-kmr__success{background:linear-gradient(180deg,#f7fff9,#fff);box-shadow:0 16px 40px rgba(19,115,51,.09)}
@media(max-width:700px){.nexus-kmr{padding:14px;border-radius:14px;box-shadow:none}}
