/* ==========================================================================
   Directorio de nuevos proveedores FFIE 2026
   Paleta cromática primaria - Guía de Sistema Gráfico FFIE (Identificadores, p. 11)
   ========================================================================== */
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/work-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/work-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/work-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/work-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --blue: #26408a;
  --blue-700: #1f3370;
  --blue-50: #eef1f8;
  --blue-100: #d5dcee;
  --yellow: #fdb913;
  --gold: #d9a13b;
  --red: #d72229;
  --red-50: #fdecec;
  --ink: #1b2a5e;
  --text: #333333;
  --muted: #666666;
  --line: #e3e8ef;
  --bg: #f4f6fa;
  --card: #ffffff;
  --ok: #138a5b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-lg: 0 20px 48px rgba(38, 64, 138, .16);
  --font: "Work Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --gray: #999999;
  --red-700: #a0282c;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- Encabezado institucional ---------- */
.topbar { background: #fff; position: relative; z-index: 2; }
.topbar__inner {
  max-width: 920px; margin: 0 auto; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
}
.logo--ffie { height: 68px; width: auto; }
.logo--men { height: 76px; width: auto; }
.flagbar { display: grid; grid-template-columns: 2fr 1fr 1fr; height: 5px; }
.flagbar span:nth-child(1) { background: var(--yellow); }
.flagbar span:nth-child(2) { background: var(--blue); }
.flagbar span:nth-child(3) { background: var(--red); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(253, 185, 19, .22), transparent 60%),
    radial-gradient(800px 300px at -10% 120%, rgba(215, 34, 41, .18), transparent 60%),
    linear-gradient(135deg, var(--blue) 0%, var(--blue-700) 100%);
  color: #fff; padding: 48px 20px 96px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px;
  border: 38px solid rgba(255, 255, 255, .06); transform: rotate(45deg); border-radius: 24px;
}
.hero__inner { max-width: 880px; margin: 0 auto; position: relative; z-index: 1; }
.hero__eyebrow {
  display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600;
}
.hero__title { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -.01em; }
.hero__title .hero__sigla { color: var(--yellow); white-space: nowrap; }
.hero__lead { margin: 8px 0 18px; font-size: 1.08rem; opacity: .92; max-width: none; text-wrap: pretty; }
.hero__badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__badges li {
  display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; padding: 6px 12px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px;
}
.ico { width: 16px; height: 16px; display: inline-block; background: currentColor; }
.ico--lock { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 10V7a6 6 0 1 1 12 0v3h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1h1zm2 0h8V7a4 4 0 1 0-8 0v3z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 10V7a6 6 0 1 1 12 0v3h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1h1zm2 0h8V7a4 4 0 1 0-8 0v3z'/%3E%3C/svg%3E") center/contain no-repeat; }
.ico--shield { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l8 3v6c0 5-3.4 9.4-8 11-4.6-1.6-8-6-8-11V5l8-3zm-1 13.6l6-6-1.4-1.4L11 12.8 8.4 10.2 7 11.6l4 4z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l8 3v6c0 5-3.4 9.4-8 11-4.6-1.6-8-6-8-11V5l8-3zm-1 13.6l6-6-1.4-1.4L11 12.8 8.4 10.2 7 11.6l4 4z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---------- Contenedor ---------- */
.wrap { max-width: 880px; margin: -64px auto 48px; padding: 0 16px; position: relative; z-index: 2; }
.wrap--narrow { max-width: 620px; margin-top: 40px; }
.wrap--wide { max-width: 1200px; margin-top: 28px; }
/* En el panel no hay banner: el contenido no debe subir por debajo de la barra superior */
.body--admin .wrap { margin-top: 28px; }

/* ---------- Stepper ---------- */
.stepper {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 18px 22px 14px; margin-bottom: 18px; position: relative; z-index: 5;
}
.stepper__bar { height: 6px; background: var(--blue-50); border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.stepper__fill {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--yellow), var(--gold) 40%, var(--blue));
  transition: width .45s cubic-bezier(.2, .8, .2, 1);
}
.stepper__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.stepper__item { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .74rem; color: var(--muted); }
.stepper__num {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  background: var(--bg); border: 2px solid var(--line); color: var(--muted); transition: all .25s;
}
.stepper__item.is-active .stepper__num { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 5px var(--blue-100); }
.stepper__item.is-active { color: var(--ink); font-weight: 600; }
.stepper__item.is-done .stepper__num { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.stepper__item.is-done .stepper__num::after { content: "✓"; }
.stepper__item.is-done .stepper__num { font-size: 0; }
.stepper__item.is-done .stepper__num::after { font-size: .9rem; }
.stepper__item.has-error .stepper__num { background: var(--red); border-color: var(--red); color: #fff; }
.stepper__mobile { display: none; margin: 0; font-size: .9rem; color: var(--muted); }

/* ---------- Tarjetas ---------- */
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; margin-bottom: 18px; border: 1px solid rgba(227, 232, 239, .6);
}
.card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.card__head h2 { margin: 0; font-size: 1.35rem; }
.card__num {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-700));
}
.card__title { font-size: 1.05rem; margin-bottom: 14px; color: var(--blue); }
.js .step { display: none; }
.js .step.is-active { display: block; animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.legal { font-size: .93rem; color: var(--text); background: var(--blue-50); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 14px; }
.legal p { margin: 0 0 .6rem; } .legal p:last-child { margin: 0; }
.notice { border-left: 4px solid var(--yellow); background: #fffaeb; border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 22px; font-size: .9rem; }
.notice h3 { font-size: 1rem; margin-bottom: 6px; }
.notice ul { margin: 0; padding-left: 18px; } .notice li { margin-bottom: 4px; }
.callout { background: #fff5f5; border: 1px solid #f6caca; color: #8a1714; border-radius: var(--radius-sm); padding: 12px 16px; font-size: .9rem; font-style: italic; }
.sub { font-size: 1rem; color: var(--blue); margin: 22px 0 10px; padding-top: 14px; border-top: 1px dashed var(--line); }
.nested > .sub:first-child { border-top: 0; padding-top: 0; margin-top: 4px; }
.branch { animation: rise .3s ease both; }
.nested { margin: -6px 0 16px; padding: 14px 16px 2px; border-radius: var(--radius-sm); background: var(--bg); border-left: 3px solid var(--blue-100); animation: rise .3s ease both; }

/* ---------- Campos ---------- */
.field { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.field__label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; padding: 0; font-size: .98rem; }
.req { color: var(--red); }
.field__hint { margin: -2px 0 8px; font-size: .84rem; color: var(--muted); }
.field__error { margin: 6px 0 0; font-size: .84rem; color: var(--red); font-weight: 600; min-height: 0; }
.field__error:empty { display: none; }
.input {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s; appearance: none;
}
.input:hover { border-color: #c9d3e0; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-100); }
.input--upper { text-transform: uppercase; }
textarea.input { resize: vertical; min-height: 110px; }
.field--error .input { border-color: var(--red); background: var(--red-50); }
.counter { display: block; text-align: right; font-size: .76rem; color: var(--muted); margin-top: 4px; }
.select { position: relative; }
.select::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; pointer-events: none;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg);
}
.select .input { padding-right: 40px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

/* Opciones (radio / checkbox) */
.choices { display: grid; gap: 10px; }
.choices--row { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); max-width: 420px; }
.choices--stack { grid-template-columns: 1fr; }
.choices--pills { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.choices--cards { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.choices--grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__box {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: #fff; transition: all .15s; font-size: .95rem; min-height: 48px;
}
.choice:hover .choice__box { border-color: #b8c6dc; background: #fbfcfe; }
.choice__dot, .choice__tick {
  flex: none; width: 20px; height: 20px; border: 2px solid #b4bfcf; background: #fff; transition: all .15s; position: relative;
}
.choice__dot { border-radius: 50%; }
.choice__tick { border-radius: 6px; }
.choice input:checked + .choice__box { border-color: var(--blue); background: var(--blue-50); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 3px var(--blue-100); }
.choice input:checked + .choice__box .choice__dot { border-color: var(--blue); box-shadow: inset 0 0 0 4px #fff; background: var(--blue); }
.choice input:checked + .choice__box .choice__tick { border-color: var(--blue); background: var(--blue); }
.choice input:checked + .choice__box .choice__tick::after {
  content: ""; position: absolute; left: 5px; top: 1px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.choice input:focus-visible + .choice__box { outline: 3px solid var(--yellow); outline-offset: 2px; }
.choices--cards .choice__box { padding: 18px; font-size: 1rem; }
.choices--grid .choice__box { padding: 9px 12px; min-height: 42px; font-size: .86rem; }
.choice--block .choice__box { align-items: flex-start; }
.choice--block .choice__tick { margin-top: 2px; }
.field--error .choice__box { border-color: #f1b0ae; }
.checks-tools { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; font-size: .86rem; }
.checks-count { margin-left: auto; color: var(--muted); }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.declaracion { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Botones ---------- */
.actions { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.actions__spacer { flex: 1; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600;
  border-radius: 12px; padding: 13px 24px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .12s, box-shadow .15s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 18px rgba(38, 64, 138, .25); }
.btn--primary:hover { background: var(--blue-700); }
.btn--send { background: linear-gradient(135deg, var(--blue), var(--blue-700)); }
.btn--ghost { background: #fff; color: var(--blue); border-color: var(--blue-100); }
.btn--ghost:hover { background: var(--blue-50); }
.btn--small { padding: 7px 14px; font-size: .86rem; border-radius: 9px; }
.btn--block { width: 100%; }
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Alertas y resultados ---------- */
.alert { border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 16px; font-size: .94rem; }
.alert--error { background: var(--red-50); border: 1px solid #f4b9b7; color: #8a1714; }
.alert--info { background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--blue-700); }
.result { text-align: center; padding: 44px 32px; }
.result h1 { font-size: 1.7rem; }
.result p { max-width: 460px; margin: 0 auto 12px; }
.result .btn { margin-top: 14px; }
.result__icon { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 18px; position: relative; }
.result__icon--ok { background: #e6f6ef; }
.result__icon--ok::after { content: ""; position: absolute; left: 27px; top: 17px; width: 18px; height: 32px; border: solid var(--ok); border-width: 0 5px 5px 0; transform: rotate(45deg); }
.result__icon--info, .result__icon--warn { background: #fff4d6; }
.result__icon--info::after, .result__icon--warn::after { content: "!"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.4rem; font-weight: 800; color: var(--gold); }

/* ---------- Pie ---------- */
.footer { background: #1b2a5e; color: #c9d1db; font-size: .84rem; padding: 22px 20px; margin-top: 40px; }
.footer__fila { max-width: 880px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer__inner { min-width: 0; }
.footer p { margin: 0 0 4px; }
.footer strong { color: #fff; }
.footer__seal { flex: none; margin-left: auto; line-height: 0; }
@media (max-width: 640px) { .footer__fila { flex-direction: column; align-items: flex-start; } .footer__seal { margin-left: 0; } }
.seal-frame { display: block; border: 0; width: 110px; height: 40px; background: transparent; color-scheme: normal; overflow: hidden; }

/* ---------- Panel administrativo ---------- */
.body--login { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-700) 100%); min-height: 100vh; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login__card { width: 100%; max-width: 420px; padding: 36px; }
.login__logo { display: block; height: 70px; width: auto; margin: 0 auto 18px; }
.login h1 { text-align: center; font-size: 1.4rem; }
.login .muted { text-align: center; font-size: .88rem; }
.adminbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.adminbar__inner { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 18px; }
.adminbar__logo { height: 40px; width: auto; }
.adminbar__link { font-weight: 600; text-decoration: none; color: var(--text); padding: 6px 10px; border-radius: 8px; }
.adminbar__link:hover { background: var(--blue-50); color: var(--blue); }
.adminbar__user { font-size: .86rem; color: var(--muted); }
.adminbar form { margin: 0; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 8px 0 16px; flex-wrap: wrap; }
.admin-head h1 { font-size: 1.6rem; margin: 0; }
.admin-head p { margin: 4px 0 0; }
.filters { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 14px; align-items: end; padding: 18px 20px; }
.filters .field { margin: 0; }
.filters .input { padding: 9px 12px; }
.table-wrap { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; background: var(--bg); color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; padding: 12px 14px; white-space: nowrap; }
.table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:hover { background: #fafbfd; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--bg); color: var(--muted); white-space: nowrap; }
.tag--blue { background: var(--blue-50); color: var(--blue); }
.tag--yellow { background: #fff4d6; color: #8a6200; }
.tag--red { background: var(--red-50); color: var(--red); }
.pager { display: flex; gap: 14px; align-items: center; justify-content: center; margin: 18px 0; }
.back { display: inline-block; margin-bottom: 8px; text-decoration: none; font-weight: 600; }
.dl { display: grid; grid-template-columns: 280px 1fr; margin: 0; }
.dl dt { color: var(--muted); font-size: .88rem; padding: 9px 0; border-top: 1px solid var(--line); }
.dl dd { margin: 0; padding: 9px 0; border-top: 1px solid var(--line); white-space: pre-wrap; word-break: break-word; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .topbar__inner { padding: 10px 16px; gap: 14px; }
  .logo--ffie { height: 44px; } .logo--men { height: 50px; }
  .hero { padding: 32px 18px 84px; }
  .card { padding: 20px 18px; }
  .stepper { padding: 14px 16px 12px; position: sticky; top: 8px; }
  .stepper__list { display: none; }
  .stepper__mobile { display: block; }
  .grid-2 { grid-template-columns: 1fr; }
  .choices--row { max-width: none; }
  .actions { position: sticky; bottom: 0; background: rgba(244, 246, 250, .94); backdrop-filter: blur(6px); padding: 12px 0; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .btn { padding: 12px 18px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .dl { grid-template-columns: 1fr; } .dl dd { border-top: 0; padding-top: 0; }
  .adminbar__user { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .topbar, .hero, .stepper, .actions, .footer, .adminbar { display: none; } .js .step { display: block !important; } }

/* ==========================================================================
   Anexos (carga de PDF con animación)
   ========================================================================== */
.note {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin-bottom: 22px;
  background: linear-gradient(135deg, #fff8e1, #fffdf5); border: 1px solid #f7dc8a; border-left: 5px solid var(--yellow);
  border-radius: var(--radius-sm); font-size: .93rem;
}
.note p { margin: 4px 0 0; }
.note__small { font-size: .84rem; color: var(--muted); }
.note__icon {
  flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); position: relative;
  box-shadow: 0 0 0 6px rgba(253, 185, 19, .2); animation: notePulse 2.4s ease-in-out infinite;
}
.note__icon::after { content: "!"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; color: var(--ink); font-size: 1.1rem; }
@keyframes notePulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(253, 185, 19, .25); } 50% { box-shadow: 0 0 0 9px rgba(253, 185, 19, .08); } }

.upload {
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.upload__head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.upload__head .field__label { margin-bottom: 2px; }
.upload__head .field__hint { margin: 0; }
.upload__badge {
  flex: none; width: 40px; height: 48px; border-radius: 6px 14px 6px 6px; display: grid; place-items: end center; padding-bottom: 6px;
  background: linear-gradient(160deg, var(--red), var(--red-700)); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .04em;
  box-shadow: 0 6px 14px rgba(215, 34, 41, .25); position: relative;
}
.upload__badge::before { content: ""; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 14px 14px 0; border-color: transparent #f6c6c8 transparent transparent; border-radius: 0 14px 0 4px; }

.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: pointer;
  padding: 22px 16px; border: 2px dashed #c5cfe3; border-radius: var(--radius-sm); background: #fafbfe;
  transition: border-color .2s, background .2s, transform .2s;
}
.dropzone:hover { border-color: var(--blue); background: var(--blue-50); }
.dropzone__text { font-size: .95rem; color: var(--text); }
.dropzone__text u { color: var(--blue); font-weight: 600; text-underline-offset: 3px; }
.dropzone__meta { font-size: .8rem; color: var(--muted); }
.dropzone__icon {
  width: 42px; height: 42px; background: var(--blue); transition: transform .3s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.dropzone:hover .dropzone__icon, .dropzone.is-drag .dropzone__icon { transform: translateY(-4px); animation: floatUp 1s ease-in-out infinite; }
.dropzone.is-drag { border-style: solid; border-color: var(--blue); background: var(--blue-50); transform: scale(1.01); }
@keyframes floatUp { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(-8px); } }
.js .dropzone__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.dropzone:focus-within { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* Estado de carga */
.upload__status { display: none; }
.upload.is-uploading .upload__status, .upload.is-scanning .upload__status, .upload.is-done .upload__status { display: block; animation: rise .3s ease both; }
.upload.is-uploading .dropzone, .upload.is-scanning .dropzone, .upload.is-done .dropzone { display: none; }
.upload__row { display: flex; align-items: center; gap: 12px; }
.upload__fileicon {
  flex: none; width: 36px; height: 44px; border-radius: 5px 12px 5px 5px; background: var(--blue-50); border: 2px solid var(--blue-100); position: relative; overflow: hidden;
}
.upload__fileicon::before, .upload__fileicon::after { content: ""; position: absolute; left: 7px; right: 7px; height: 3px; border-radius: 2px; background: var(--blue-100); }
.upload__fileicon::before { top: 14px; } .upload__fileicon::after { top: 22px; box-shadow: 0 8px 0 var(--blue-100); }
.upload__file { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.upload__name { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload__msg { font-size: .84rem; color: var(--muted); }
.upload__change { display: none; }
.upload.is-done .upload__change { display: inline; }

.progress { height: 8px; border-radius: 999px; background: var(--blue-50); overflow: hidden; margin-top: 12px; display: none; }
.upload.is-uploading .progress, .upload.is-scanning .progress { display: block; }
.progress__bar {
  display: block; height: 100%; width: 0; border-radius: inherit; transition: width .2s ease;
  background: linear-gradient(90deg, var(--yellow), var(--blue)) , var(--blue);
  background-image: linear-gradient(135deg, rgba(255,255,255,.28) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.28) 50%, rgba(255,255,255,.28) 75%, transparent 75%), linear-gradient(90deg, var(--yellow), var(--blue));
  background-size: 22px 22px, 100% 100%; animation: stripes .8s linear infinite;
}
@keyframes stripes { from { background-position: 0 0, 0 0; } to { background-position: 22px 0, 0 0; } }
/* Análisis antivirus: barra indeterminada + escáner sobre el archivo */
.upload.is-scanning .progress__bar { width: 35% !important; animation: indeterminate 1.1s ease-in-out infinite, stripes .8s linear infinite; }
@keyframes indeterminate { 0% { transform: translateX(-100%); } 100% { transform: translateX(290%); } }
.upload.is-scanning .upload__fileicon { border-color: var(--blue); }
.upload.is-scanning .upload__fileicon > * { display: none; }
.upload.is-scanning .upload__fileicon { background:
  linear-gradient(180deg, transparent 0, rgba(38,64,138,.0) 40%, rgba(38,64,138,.35) 50%, rgba(38,64,138,0) 60%, transparent 100%) 0 0 / 100% 200% no-repeat, var(--blue-50);
  animation: scanBeam 1.2s ease-in-out infinite; }
@keyframes scanBeam { 0% { background-position: 0 100%; } 100% { background-position: 0 -100%; } }
.scan { display: none; }
.upload.is-scanning .upload__msg { color: var(--blue); font-weight: 600; }
.upload.is-scanning .upload__msg::before {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l8 3v6c0 5-3.4 9.4-8 11-4.6-1.6-8-6-8-11V5l8-3z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l8 3v6c0 5-3.4 9.4-8 11-4.6-1.6-8-6-8-11V5l8-3z'/%3E%3C/svg%3E") center/contain no-repeat;
  animation: shieldPulse 1s ease-in-out infinite;
}
@keyframes shieldPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.25); opacity: .6; } }

/* Completado */
.upload.is-done { border-color: #9fd9bf; background: #f4fbf8; }
.upload.is-done .upload__fileicon { background: #e6f6ef; border-color: #9fd9bf; }
.upload.is-done .upload__fileicon::before, .upload.is-done .upload__fileicon::after { background: #9fd9bf; box-shadow: none; }
.upload.is-done .upload__msg { color: var(--ok); font-weight: 600; }
.upload__check { display: none; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ok); position: relative; }
.upload.is-done .upload__check { display: block; animation: pop .45s cubic-bezier(.2, 1.6, .4, 1) both; }
.upload__check::after { content: ""; position: absolute; left: 10px; top: 6px; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

/* Error */
.upload.is-error { border-color: #f1b0ae; background: #fffafa; }
.upload.is-error .dropzone { border-color: #f1b0ae; }
.upload.is-error .upload__head { animation: shake .4s ease; }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* Panel: lista de anexos */
.anexos-admin { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.anexos-admin li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.anexos-admin__pdf { flex: none; padding: 6px 8px; border-radius: 6px; background: var(--red); color: #fff; font-size: .7rem; font-weight: 800; }
.anexos-admin__info { flex: 1; display: flex; flex-direction: column; }

.radicado { display: inline-flex; flex-direction: column; gap: 2px; margin: 10px auto 14px; padding: 12px 26px; border-radius: 12px;
  background: var(--blue-50); border: 1.5px dashed var(--blue-100); }
.radicado__label { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.radicado__num { font-size: 1.35rem; color: var(--blue); letter-spacing: .03em; }

/* ==========================================================================
   Panel por roles
   ========================================================================== */
.adminbar__link.is-active { background: var(--blue-50); color: var(--blue); }
.adminbar__user .tag { margin-left: 6px; }
.flash-wrap { margin-top: 16px; margin-bottom: 0; }
.alert--ok { background: #e9f7f0; border: 1px solid #a7dcc2; color: #0f6b46; }
.tag--ok { background: #e6f6ef; color: var(--ok); }
.card__h1 { font-size: 1.4rem; margin-bottom: 8px; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.head-actions form { margin: 0; }
.roles-info { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 4px; }
.role-card { padding: 16px 18px; margin-bottom: 14px; }
.role-card p { margin: 8px 0 0; color: var(--muted); }
.table .nowrap, .nowrap { white-space: nowrap; }
.break { word-break: break-word; max-width: 420px; }
.table tr.is-muted td { opacity: .55; }
form.inline { display: inline; margin: 0; }
.choice__box--role { align-items: flex-start; }
.choice__box--role .choice__dot { margin-top: 3px; }
.input--mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; margin: 10px 0; }
.form-admin .actions { margin-top: 10px; }
.config-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.config-grid .card__title:not(:first-of-type) { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.dl--compact { grid-template-columns: 130px 1fr; margin-bottom: 12px; }
.dl--compact dt, .dl--compact dd { padding: 7px 0; font-size: .9rem; }
.notif-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.notif-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; }
.notif-list__txt { flex: 1; min-width: 0; word-break: break-word; }
/* Interruptor */
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { flex: none; width: 46px; height: 26px; border-radius: 999px; background: #c9d1dc; position: relative; transition: background .2s; }
.switch__thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + .switch__track { background: var(--blue); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--yellow); outline-offset: 2px; }
.switch__label { font-weight: 600; color: var(--ink); }
/* Reglas de contraseña */
.pw-rules { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: .82rem; color: var(--muted); text-align: left; }
.pw-rules li::before { content: "○ "; }
.pw-rules li.is-ok { color: var(--ok); font-weight: 600; }
.pw-rules li.is-ok::before { content: "✓ "; }
@media (max-width: 900px) { .config-grid, .roles-info { grid-template-columns: 1fr; } }

/* ==========================================================================
   Confirmación de datos (digitar dos veces)
   ========================================================================== */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; align-items: start; }
.field--confirm { position: relative; }
.field--confirm .field__label { color: var(--blue); }
.field--confirm .field__label::before {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4V1L8 5l4 4V6a6 6 0 0 1 6 6 6 6 0 0 1-.7 2.8l1.5 1.5A8 8 0 0 0 20 12a8 8 0 0 0-8-8zm0 14a6 6 0 0 1-6-6c0-1 .3-2 .7-2.8L5.2 7.7A8 8 0 0 0 4 12a8 8 0 0 0 8 8v3l4-4-4-4v3z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4V1L8 5l4 4V6a6 6 0 0 1 6 6 6 6 0 0 1-.7 2.8l1.5 1.5A8 8 0 0 0 20 12a8 8 0 0 0-8-8zm0 14a6 6 0 0 1-6-6c0-1 .3-2 .7-2.8L5.2 7.7A8 8 0 0 0 4 12a8 8 0 0 0 8 8v3l4-4-4-4v3z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.confirm-wrap { position: relative; }
.match-ok { display: none; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: .78rem; font-weight: 700; color: var(--ok);
  background: #e6f6ef; padding: 3px 9px; border-radius: 999px; pointer-events: none; }
.field--confirm.is-match .match-ok { display: inline-block; animation: popMid .35s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes popMid { from { transform: translateY(-50%) scale(0); } to { transform: translateY(-50%) scale(1); } }
.field--confirm.is-match .input { border-color: #9fd9bf; background: #f6fcf9; padding-right: 96px; }
.field--confirm.is-nopaste .field__hint { color: var(--red); font-weight: 700; animation: shake .4s ease; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }
.login__sub { text-align: center; margin: -4px 0 10px; font-weight: 600; color: var(--blue); }
.hero__alcance { color: inherit; font: inherit; }
.hero__alcance-linea { display: block; margin-top: 2px; }

/* ==========================================================================
   Autocompletado de ciudades
   ========================================================================== */
.ac-wrap { position: relative; }
.ac-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  max-height: 320px; overflow-y: auto; animation: rise .15s ease both;
}
.ac-op { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.ac-op strong { font-weight: 600; color: var(--ink); }
.ac-op span { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; text-align: right; max-width: 55%; }
.ac-op:hover, .ac-op.is-active { background: var(--blue-50); }
.ac-op.is-active strong { color: var(--blue); }
.ac-empty { padding: 10px 12px; color: var(--muted); font-size: .9rem; }
.field.is-autofill .input { animation: autofill 1.4s ease; }
@keyframes autofill { 0% { box-shadow: 0 0 0 4px rgba(253, 185, 19, .65); border-color: var(--yellow); } 100% { box-shadow: none; } }
/* En pantallas anchas el alcance va en una sola línea */
@media (min-width: 1000px) { .hero__alcance { white-space: nowrap; } }

/* ---------- Disponibilidad del formulario ---------- */
.hero__plazo { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 8px 14px; border-radius: 999px;
  background: var(--yellow); color: #3b2a00; font-weight: 600; font-size: .95rem; }
.ico--reloj { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm1 3v4.6l3.2 3.2-1.4 1.4L11 12.4V7h2z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm1 3v4.6l3.2 3.2-1.4 1.4L11 12.4V7h2z'/%3E%3C/svg%3E") center/contain no-repeat; }
.result__icon--cerrado { background: var(--red-50); }
.result__icon--cerrado::after { content: ""; position: absolute; left: 24px; top: 20px; width: 28px; height: 36px; background: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 10V7a6 6 0 1 1 12 0v3h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1h1zm2 0h8V7a4 4 0 1 0-8 0v3z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 10V7a6 6 0 1 1 12 0v3h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1h1zm2 0h8V7a4 4 0 1 0-8 0v3z'/%3E%3C/svg%3E") center/contain no-repeat; }
.result__eyebrow { color: var(--blue); font-weight: 700; font-size: .85rem; letter-spacing: .02em; text-transform: uppercase; }
.result .result__mensaje { white-space: pre-line; font-size: 1.05rem; }
.result .result__aviso { display: inline-block; }
.estado-form { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-left: 6px solid var(--ok); }
.estado-form--cerrado { border-left-color: var(--red); }
.estado-form .card__title { margin-bottom: 4px; }
.estado-form__txt { flex: 1 1 380px; }
.estado-form__txt p { margin: 0; }
.btn--danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn--danger:hover { background: #b51c22; }
.fechahora { display: flex; gap: 8px; align-items: center; }
.fechahora .input { flex: 1; }
textarea.input { resize: vertical; min-height: 96px; font: inherit; line-height: 1.45; }

/* ---------- Alineación de campos lado a lado ----------
   Cada campo en una fila de dos columnas (.grid-2 y .pair) comparte 4 filas con
   su vecino: etiqueta · ayuda · control · error. Así las cajas de texto quedan
   siempre a la misma altura aunque una etiqueta o ayuda sea más larga o falte. */
@supports (grid-template-rows: subgrid) {
  .grid-2, .pair { align-items: stretch; }
  .grid-2 > div.field, .pair > div.field {
    display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; row-gap: 0;
  }
  .grid-2 > div.field > *, .pair > div.field > * { grid-row: 3; align-self: start; min-width: 0; }
  .grid-2 > div.field > .field__label, .pair > div.field > .field__label { grid-row: 1; align-self: end; }
  .grid-2 > div.field > .field__hint, .pair > div.field > .field__hint { grid-row: 2; align-self: end; }
  .grid-2 > div.field > .field__error, .pair > div.field > .field__error { grid-row: 4; }
  /* En celular (una columna) cada campo vuelve a su orden normal */
  @media (max-width: 760px) {
    .grid-2 > div.field, .pair > div.field { display: block; }
  }
}
/* Mismo alto en todos los controles de una línea */
.input:not(textarea) { min-height: 48px; }
.result__acciones { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.result__acciones .btn { margin-top: 0; }
#cerrar-ayuda { margin-top: 14px; }

/* ---------- Anexos en el detalle: OCR y acciones ---------- */
.anexos-admin__acciones { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ocr-tag { align-self: flex-start; margin-top: 4px; font-size: .74rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--blue-50); color: var(--blue); }
.ocr-tag--listo { background: #e6f6ef; color: var(--ok); }
.ocr-tag--no_requiere { background: #f1f2f5; color: #555; }
.ocr-tag--pendiente, .ocr-tag--procesando { background: #fff4d6; color: #8a6200; }
.ocr-tag--error, .ocr-tag--sin_texto, .ocr-tag--omitido { background: var(--red-50); color: #8a1714; }
@media (max-width: 760px) { .anexos-admin li { flex-wrap: wrap; } .anexos-admin__acciones { width: 100%; justify-content: flex-start; } }

/* ---------- Visor de PDF ---------- */
.body--visor { background: #525659; }
.visor { display: flex; flex-direction: column; height: calc(100vh - 64px); }
.visor__barra { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 18px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.visor__titulo { display: flex; flex-direction: column; min-width: 0; flex: 1 1 220px; }
.visor__titulo strong { color: var(--blue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.visor__versiones { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.visor__ver { padding: 5px 12px; border-radius: 999px; font-size: .84rem; font-weight: 600; text-decoration: none; color: var(--blue); }
.visor__ver.is-active { background: var(--blue); color: #fff; }
.visor__controles { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.visor__pagina { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; }
.input--mini { width: 64px; min-height: 34px; padding: 4px 8px; text-align: center; }
.visor__zoom { min-width: 48px; text-align: center; font-size: .88rem; font-weight: 600; }
.visor__sep { width: 1px; height: 24px; background: var(--line); margin: 0 4px; }
.visor__aviso { margin: 0; padding: 8px 18px; background: #fff4d6; color: #5d4300; font-size: .86rem; }
.visor__estado { margin: 40px auto; color: #fff; display: flex; align-items: center; gap: 10px; }
.visor__estado--error { background: #fff; color: #8a1714; padding: 14px 18px; border-radius: var(--radius-sm); }
.visor__paginas { flex: 1; overflow: auto; padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 18px; outline: none; }
.visor__hoja { position: relative; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); flex: none; }
.visor__hoja canvas { display: block; }
.spinner { width: 18px; height: 18px; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.visor__sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .visor__sep { display: none; } .visor__barra { gap: 8px; padding: 8px 12px; } .visor__paginas { padding: 12px; } }

/* ---------- NIT: número + guion fijo + DV ---------- */
.nit-grupo { display: flex; align-items: center; gap: 8px; }
.nit-grupo__num { flex: 1 1 auto; min-width: 0; }
.nit-grupo__guion { flex: none; font-size: 1.1rem; color: var(--ink); user-select: none; }
.nit-grupo__dv { flex: none; width: 64px; text-align: center; padding-left: 6px; padding-right: 6px; }
.field--confirm .nit-grupo .match-ok { position: static; transform: none; flex: none; }
.field--confirm.is-match .nit-grupo .input { padding-right: 14px; }
.field--confirm.is-match .nit-grupo .nit-grupo__dv { padding-right: 6px; }
.field--confirm.is-match .nit-grupo .match-ok { animation: nitOk .3s ease both; }
@keyframes nitOk { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }

/* ---------- Vigencia del RUP (panel) ---------- */
.rup-card { border-left: 6px solid var(--ok); }
.rup-card--por_vencer { border-left-color: var(--yellow); }
.rup-card--vencido { border-left-color: var(--red); }
.rup-card--sin_fecha { border-left-color: var(--blue-100); }
.rup-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.rup-card__head .card__title { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rup-card__sub { font-size: .95rem; color: var(--blue); margin: 14px 0 8px; }
.anexos-admin--compacto li { padding: 8px 10px; }
.field--rup-fecha { margin-top: -4px; padding: 14px 16px; border: 1px dashed var(--blue-100); border-radius: var(--radius-sm); background: var(--blue-50); }
.field--rup-fecha .input--fecha { max-width: 260px; }
.form-rup { margin-top: 18px; }

/* ---------- Actualización de datos ---------- */
.pasos-act { display: flex; gap: 8px; list-style: none; padding: 0; margin: 14px 0 20px; counter-reset: paso; flex-wrap: wrap; }
.pasos-act li { counter-increment: paso; display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.pasos-act li::before { content: counter(paso); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #eef1f6; font-weight: 700; font-size: .8rem; }
.pasos-act li + li::after { content: none; }
.pasos-act li.is-actual { color: var(--blue); font-weight: 700; }
.pasos-act li.is-actual::before { background: var(--blue); color: #fff; }
.pasos-act li.is-ok::before { content: "✓"; background: #e6f6ef; color: var(--ok); }
.input--codigo { max-width: 220px; font-size: 1.6rem; letter-spacing: .4em; text-align: center; font-family: Consolas, monospace; }
.reenviar { margin-top: 12px; }
.lista-cambios { text-align: left; max-width: 420px; margin: 0 auto 14px; }
.field.is-locked .input, .field.is-locked .choice { background: #f3f4f7; color: #555; cursor: not-allowed; }
.aviso-bloqueo { font-size: .86rem; color: var(--muted); background: #f3f4f7; padding: 8px 12px; border-radius: var(--radius-sm); margin: 0 0 14px; }
.solicitud-act { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-left: 6px solid var(--yellow); }
.solicitud-act__txt { display: flex; flex-direction: column; flex: 1 1 320px; gap: 2px; }
.solicitud-act__motivo { flex: 1 1 240px; min-height: 38px; padding: 7px 10px; }
.solicitud-act__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.col-check { width: 34px; text-align: center; }
.col-check input { width: 17px; height: 17px; }
.historial { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; margin-bottom: 8px; }
.historial summary { cursor: pointer; font-size: .92rem; }
.tabla-cambios { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .88rem; }
.tabla-cambios th, .tabla-cambios td { text-align: left; padding: 6px 8px; border-top: 1px solid var(--line); vertical-align: top; }
.tabla-cambios .antes { color: #8a1714; text-decoration: line-through; text-decoration-color: rgba(138, 23, 20, .35); }
.tabla-cambios .despues { color: var(--ok); font-weight: 600; }

/* ---------- Configuración por pestañas ---------- */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin: 0 0 18px; }
.tabs__tab { padding: 10px 16px; border-radius: var(--radius-sm) var(--radius-sm) 0 0; font-weight: 600; font-size: .95rem; color: var(--muted); text-decoration: none; margin-bottom: -2px; border-bottom: 3px solid transparent; }
.tabs__tab:hover { color: var(--blue); background: var(--blue-50); }
.tabs__tab.is-active { color: var(--blue); border-bottom-color: var(--blue); background: #fff; }
.config-grid--una { grid-template-columns: minmax(0, 820px); }
.bloque-correo { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 16px 4px; margin: 0 0 16px; }
.bloque-correo legend { font-weight: 700; color: var(--blue); padding: 0 6px; }
.nota-m365 { font-size: .84rem; color: #5d4300; background: #fff4d6; border-radius: var(--radius-sm); padding: 8px 12px; margin: 0 0 12px; }
.prueba-correo { margin: 18px 0 12px; display: grid; gap: 8px; }
.prueba-correo .field__label { margin: 0; }
@media (max-width: 760px) { .tabs { flex-wrap: nowrap; overflow-x: auto; } .tabs__tab { white-space: nowrap; } }
/* La confirmación ya impide pegar: el aviso solo aparece si alguien lo intenta */
.field--confirm > .field__hint { display: none; }
.field--confirm.is-nopaste > .field__hint { display: block; }

/* ---------- Listas (contratos, patrimonios o fiduciarias) ---------- */
.lista__items { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.lista__item { display: flex; align-items: center; gap: 10px; }
.lista__num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); font-weight: 700; font-size: .82rem; }
.lista__item .input { flex: 1; min-width: 0; }
.lista__item--calidad > .input { flex: 1.3; }
.lista__calidad { flex: 1; min-width: 0; }
.lista__calidad .input { width: 100%; }
/* Con calidad: solo se marca en rojo la fila incompleta (no toda la lista) */
.lista[data-calidad].field--error .lista__item:not(.is-falta) .input { border-color: var(--line); background: #fff; }
.lista__item.is-falta .lista__calidad .input:invalid, .lista__item.is-falta .lista__calidad select { border-color: var(--red); background: var(--red-50); }
.lista__item.is-falta > .input:placeholder-shown { border-color: var(--red); background: var(--red-50); }
.lista__item.is-falta > .input:not(:placeholder-shown) { border-color: var(--line); background: #fff; }
@media (max-width: 640px) {
  .lista__item--calidad { flex-wrap: wrap; }
  .lista__item--calidad > .input { flex: 1 1 calc(100% - 90px); }
  .lista__item--calidad .lista__calidad { order: 3; flex: 1 1 100%; padding-left: 38px; }
}
.lista__quitar { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.lista__quitar:hover { color: var(--red); border-color: #f1b0ae; background: var(--red-50); }
.lista__agregar { margin-bottom: 4px; }
.lista__excepcion { margin-top: 10px; }
.lista-dd { margin: 0; padding-left: 20px; }
.lista-dd li { padding: 1px 0; }
.input--upper::placeholder { text-transform: none; }

/* ---------- Inicio de sesión con Microsoft ---------- */
.btn--microsoft { display: flex; align-items: center; justify-content: center; gap: 12px; background: #2f2f2f; color: #fff; font-weight: 600; text-decoration: none; padding: 13px 18px; }
.btn--microsoft:hover { background: #1b1b1b; color: #fff; }
.ms-logo { display: grid; grid-template-columns: 9px 9px; gap: 2px; }
.ms-logo span { width: 9px; height: 9px; }
.ms-logo span:nth-child(1) { background: #f25022; } .ms-logo span:nth-child(2) { background: #7fba00; }
.ms-logo span:nth-child(3) { background: #00a4ef; } .ms-logo span:nth-child(4) { background: #ffb900; }
.login__nota { text-align: center; margin: 8px 0 18px; }
.login__emergencia { border-top: 1px solid var(--line); padding-top: 12px; }
.login__emergencia summary { cursor: pointer; font-size: .9rem; color: var(--muted); font-weight: 600; }
.login__emergencia form { margin-top: 12px; }
.input--mono { font-family: Consolas, "SFMono-Regular", monospace; font-size: .88rem; }
.pasos-entra { margin: 0; padding-left: 20px; font-size: .88rem; display: grid; gap: 6px; }

/* Pre-registros (Microsoft Forms) */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: border-color .15s; }
.kpi:hover { border-color: var(--blue-100); }
.kpi.is-active { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.kpi__n { font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.kpi__l { font-size: .85rem; color: var(--muted); }
.kpi--ok .kpi__n { color: var(--ok); }
.filters--pre { grid-template-columns: 260px 1fr auto; }
.lista-obs { margin: 6px 0 0; padding-left: 20px; }
.aviso-prereg { margin: 4px 0 18px; font-size: .92rem; }
.card--sep { margin-top: 18px; }
@media (max-width: 720px) { .filters--pre { grid-template-columns: 1fr; } }
.importar-forms { margin-bottom: 18px; }
.importar-forms summary { cursor: pointer; }
.importar-forms__form { display: grid; gap: 12px; margin-top: 14px; }
.importar-forms__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.table .col-obs { min-width: 300px; }
.table .col-correo { word-break: break-all; min-width: 170px; }
/* Registro de correos */
.kpi--alerta .kpi__n { color: var(--red); }
.filters--correo { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
.exportar-bitacora { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.linea-tiempo { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); }
.linea-tiempo li { position: relative; padding: 0 0 16px 12px; }
.linea-tiempo li::before { content: ''; position: absolute; left: -23px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2px solid var(--blue); }
.linea-tiempo__det { margin-top: 4px; word-break: break-word; }
.txt-error { color: var(--red-700); }
@media (max-width: 720px) { .filters--correo { grid-template-columns: 1fr; } }
.badge-alerta { display: inline-block; min-width: 20px; padding: 1px 6px; margin-left: 4px; border-radius: 999px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; text-align: center; line-height: 1.5; }
.table .col-error { max-width: 260px; word-break: break-word; color: var(--red-700); }
.filters--auditoria { grid-template-columns: repeat(5, minmax(0, 1fr)) auto; }
@media (max-width: 900px) { .filters--auditoria { grid-template-columns: 1fr 1fr; } }
/* Devolución de documentos */
.btn--devolver { background: transparent; color: var(--red-700); border: 1px solid color-mix(in srgb, var(--red) 45%, transparent); }
.btn--devolver:hover { background: var(--red-50); }
.anexos-admin__item--devuelto { border-color: color-mix(in srgb, var(--gold) 60%, transparent) !important; background: #fffaf0; }
.anexos-admin__versiones { display: block; margin-top: 4px; color: var(--muted); }
.anexos-admin__versiones a { color: var(--blue); }
.dialogo { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); }
.dialogo::backdrop { background: rgba(16, 24, 40, .45); }
.dialogo__form { display: grid; gap: 10px; padding: 24px; }
.dialogo__form h3 { margin: 0; color: var(--ink); font-size: 1.15rem; }
.dialogo__form p { margin: 0; }
.dialogo__form textarea { resize: vertical; min-height: 110px; }
.dialogo__acciones { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.table .motivo-dev { min-width: 240px; max-width: 380px; white-space: pre-wrap; }
form.inline { display: inline; }
.devolucion { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 16px; display: grid; gap: 10px; }
.devolucion__titulo { margin: 0; }
.devolucion__motivo { background: #fff8e6; border-left: 4px solid var(--yellow); border-radius: 8px; padding: 10px 14px; white-space: pre-wrap; }
.devolucion__etiqueta { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.lista-recibidos { text-align: left; display: inline-block; margin: 0 0 12px; }

/* =====================================================================
   Tablero de indicadores (gráficos SVG del servidor; colores por clase)
   Paleta categórica validada (daltonismo y contraste): s1 azul, s2 naranja.
   Estados reservados: good / warning / critical (siempre con texto o ícono).
   ===================================================================== */
.tablero {
  --s1: #2a78d6; --s2: #eb6834;
  --st-good: #0ca30c; --st-warning: #fab219; --st-serious: #ec835a; --st-critical: #d03b3b;
  --neutro: #c3c2b7; --vacio: #ecebe6; --grid: #e1e0d9; --eje: #c3c2b7; --tick: #6b6a65;
  --seq1: #cde2fb; --seq2: #9ec5f4; --seq3: #6da7ec; --seq4: #3987e5; --seq5: #256abf; --seq6: #104281;
}
.tablero .filters--tablero { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.tablero__barra { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; margin: -4px 0 18px; }
.chips-periodo, .chips-activos { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: .85rem; text-decoration: none; }
.chip:hover { border-color: var(--blue); }
.chip.is-activo { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip--filtro { background: #eef4fc; border-color: #b7d3f6; }
.chip--filtro span { font-size: 1.05rem; line-height: 1; color: var(--muted); }
.chip--limpiar { border-style: dashed; color: var(--muted); }
.tablero__h2 { font-size: 1rem; margin: 0; color: var(--ink); }

.kpis--tablero { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
@media (min-width: 1200px) { .kpis--tablero { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.kpi__s { font-size: .8rem; color: var(--muted); }
.kpi--hero { background: var(--blue); border-color: var(--blue); }
.kpi--hero .kpi__n { color: #fff; font-size: 2.2rem; }
.kpi--hero .kpi__l, .kpi--hero .kpi__s { color: #dbe6fb; }
.kpi--riesgo .kpi__n { color: var(--st-critical); }
.kpi--aviso .kpi__n { color: #a26a00; }
.kpi__meter { display: block; width: 100%; height: 6px; margin: 6px 0 2px; border-radius: 3px; }
.delta--up { color: #006300; font-weight: 600; }
.delta--down { color: var(--st-critical); font-weight: 600; }

.alertas-tablero { padding: 16px 20px; margin-bottom: 18px; }
.alertas-tablero ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.alerta-t { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--radius-sm); background: #faf9f6; border-left: 4px solid var(--neutro); }
.alerta-t div { display: flex; flex-direction: column; gap: 2px; }
.alerta-t__icono { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-weight: 800; font-size: .8rem; }
.alerta-t--critical { border-left-color: var(--st-critical); } .alerta-t--critical .alerta-t__icono { background: var(--st-critical); }
.alerta-t--serious { border-left-color: var(--st-serious); } .alerta-t--serious .alerta-t__icono { background: var(--st-serious); }
.alerta-t--warning { border-left-color: var(--st-warning); } .alerta-t--warning .alerta-t__icono { background: var(--st-warning); color: #0b0b0b; }

.tablero__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.panel-g { padding: 16px 18px; min-width: 0; }
.panel-g--ancho { grid-column: span 2; }
.panel-g__head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
@media (max-width: 1100px) { .tablero__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .tablero__grid { grid-template-columns: 1fr; } .panel-g--ancho { grid-column: auto; } }

/* Marcas */
.g { display: block; width: 100%; height: auto; overflow: visible; }
.g-grid { stroke: var(--grid); stroke-width: 1; }
.g-base { stroke: var(--eje); }
.g-tick { font-size: 11px; fill: var(--tick); font-variant-numeric: tabular-nums; }
.g-val { font-size: 12px; font-weight: 700; fill: var(--ink); }
.g-hit { fill: transparent; }
.g-link:hover .g-hit, .g-link:focus .g-hit { fill: rgba(42, 120, 214, .07); }
.g-link:hover .g-bar, .g-link:focus .g-bar { opacity: .82; }
.g-link:focus { outline: none; }
.s1 { fill: var(--s1); stroke: var(--s1); background: var(--s1); }
.s2 { fill: var(--s2); stroke: var(--s2); background: var(--s2); }
.st-good { fill: var(--st-good); stroke: var(--st-good); background: var(--st-good); }
.st-warning { fill: var(--st-warning); stroke: var(--st-warning); background: var(--st-warning); }
.st-critical { fill: var(--st-critical); stroke: var(--st-critical); background: var(--st-critical); }
.st-neutral, .neutro { fill: var(--neutro); stroke: var(--neutro); background: var(--neutro); }
.vacio { fill: var(--vacio); stroke: var(--vacio); background: var(--vacio); }
.g-bar { stroke: none; }
.g-track { fill: none; stroke: var(--vacio); stroke-width: 22; }
.g-track-r { fill: var(--vacio); }
.g-seg { fill: none; stroke-width: 22; transition: stroke-width .12s; }
.g-link:hover .g-seg, .g-seg:hover { stroke-width: 27; }
.g-seg-r { stroke: none; }
.g-link:hover .g-seg-r { opacity: .8; }
.g-centro { font-size: 26px; font-weight: 700; fill: var(--ink); }
.g-sub { font-size: 11px; fill: var(--tick); }

.dona-wrap { display: grid; grid-template-columns: 1fr; gap: 12px; justify-items: center; }
.dona-wrap .g--dona { max-width: 170px; }
.dona-wrap .leyenda { width: 100%; }
.leyenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .88rem; }
.leyenda a { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px; color: var(--text); text-decoration: none; }
.leyenda a:hover { background: var(--bg); }
.leyenda a.is-activo { background: #eef4fc; box-shadow: inset 0 0 0 1px #b7d3f6; }
.leyenda strong { margin-left: auto; color: var(--ink); }
.leyenda--fila { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: .8rem; color: var(--muted); }
.leyenda--fila li { display: flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; flex: none; }

.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hbars__row { display: grid; grid-template-columns: minmax(90px, 40%) 1fr auto; gap: 10px; align-items: center; padding: 5px 6px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: .86rem; }
a.hbars__row:hover { background: var(--bg); }
.hbars__row.is-activo { background: #eef4fc; box-shadow: inset 0 0 0 1px #b7d3f6; }
.hbars__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbars__bar { display: block; width: 100%; height: 12px; border-radius: 0 4px 4px 0; }
.hbars__val { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; }
.hbars__val small { font-weight: 400; color: var(--muted); }

.apiladas { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.apiladas__top { display: flex; justify-content: space-between; gap: 10px; font-size: .86rem; margin-bottom: 4px; }
.g--apilada { height: 16px; border-radius: 4px; overflow: hidden; }

.mosaico { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 4px; }
.mosaico__t { display: flex; flex-direction: column; justify-content: space-between; min-height: 62px; padding: 6px 8px; border-radius: 6px; color: #0b0b0b; text-decoration: none; transition: transform .1s; }
.mosaico__t:hover, .mosaico__t:focus { transform: translateY(-1px); box-shadow: 0 0 0 2px var(--ink); outline: none; }
.mosaico__t.is-activo { box-shadow: 0 0 0 3px var(--ink); }
.mosaico__n { font-size: 1.15rem; font-weight: 700; }
.mosaico__l { font-size: .66rem; line-height: 1.15; text-transform: uppercase; letter-spacing: .02em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lvl-0 { background: repeating-linear-gradient(135deg, #f6f5f1 0 6px, #ecebe6 6px 7px); color: #8a8984; }
.lvl-1 { background: var(--seq1); } .lvl-2 { background: var(--seq2); } .lvl-3 { background: var(--seq3); }
.lvl-4 { background: var(--seq4); color: #fff; } .lvl-5 { background: var(--seq5); color: #fff; } .lvl-6 { background: var(--seq6); color: #fff; }
.escala { display: flex; align-items: center; gap: 3px; margin-top: 10px; flex-wrap: wrap; }
.escala__c { display: inline-block; width: 22px; height: 10px; border-radius: 2px; }
.escala__nota { margin-left: 16px; display: inline-flex; align-items: center; gap: 6px; }

.ver-datos { margin-top: 10px; font-size: .85rem; }
.ver-datos summary { cursor: pointer; color: var(--blue); }
.table--mini { font-size: .82rem; margin-top: 6px; }
.table--mini td, .table--mini th { padding: 4px 8px; }

.tip { position: fixed; z-index: 50; pointer-events: none; max-width: 300px; padding: 6px 10px; border-radius: 8px; background: #0b0b0b; color: #fff; font-size: .8rem; line-height: 1.35; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
@media (forced-colors: active) { .g-bar, .g-seg-r { forced-color-adjust: none; } }
.filters__btns { display: flex; gap: 8px; flex-wrap: nowrap; align-items: end; }
.filters--tablero .filters__btns { grid-column: span 2; }
.filters__btns .btn { white-space: nowrap; }
.btn--limpiar { border-style: dashed; }
.btn--limpiar.is-inactivo { opacity: .45; pointer-events: none; }
.solicitud-act__fecha { margin: 0; min-width: 170px; }
.solicitud-act__fecha .input { padding: 7px 10px; }

/* Selector múltiple desde lista desplegable (departamentos de ejecución) */
.selector--js .selector__fallback { display: none; }
.selector__fila { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 10px; }
.selector__select { flex: 0 1 420px; min-width: 240px; }
.selector__select .input { width: 100%; }
.selector__vacio { margin: 0 0 4px; }
.selector__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.selector__chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 8px; border: 1px solid var(--blue-100, #c9d6f2); background: var(--blue-50, #eef3fb); border-radius: 999px; color: var(--ink); font-size: .9rem; font-weight: 600; }
.selector__n { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: var(--blue); color: #fff; font-size: .72rem; }
.selector__quitar { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 1.05rem; line-height: 1; cursor: pointer; }
.selector__quitar:hover, .selector__quitar:focus-visible { background: var(--red); color: #fff; outline: none; }
.aviso-formulario { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin: 12px 0; padding: 12px 14px; border: 1px solid #f5d27a; border-left: 5px solid var(--yellow); border-radius: var(--radius-sm); background: #fffaf0; }
.aviso-formulario > div { display: flex; flex-direction: column; gap: 2px; flex: 1 1 320px; }
.aviso-formulario__form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.aviso-formulario__form .input { width: auto; padding: 6px 10px; }
.acciones-prov { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0; padding: 0; margin-bottom: 18px; overflow: hidden; }
.acciones-prov__item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; border-left: 6px solid var(--yellow); }
.acciones-prov__item--cambio { border-left-color: var(--blue); }
.acciones-prov__item > div { display: flex; flex-direction: column; gap: 3px; }
.acciones-prov__item .btn { white-space: nowrap; }
.dialogo--ancho { width: min(680px, calc(100vw - 32px)); }
.dialogo__form textarea.input { resize: vertical; min-height: 120px; }
.dialogo__fecha { max-width: 220px; }
