/* Transparencia FFIE — Sistema gráfico FFIE 2026 (Work Sans + paleta institucional) */
@font-face { font-family: 'Work Sans'; font-weight: 300; font-display: swap; src: url('../fonts/work-sans-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Work Sans'; font-weight: 400; font-display: swap; src: url('../fonts/work-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Work Sans'; font-weight: 500; font-display: swap; src: url('../fonts/work-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Work Sans'; font-weight: 600; font-display: swap; src: url('../fonts/work-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Work Sans'; font-weight: 700; font-display: swap; src: url('../fonts/work-sans-latin-700-normal.woff2') format('woff2'); }

:root {
  --azul: #26408A; --azul-900: #1b2f66; --azul-700: #3366CC; --azul-500: #4573D0; --azul-100: #E6EFFD; --azul-50: #F3F7FE;
  --rojo: #D72229; --rojo-50: #FDECEC; --amarillo: #FDB913; --amarillo-50: #FFF7E0;
  --gris-700: #444b59; --gris-600: #666666; --gris-400: #999999; --gris-200: #dfe3ea; --gris-100: #f1f3f7;
  --verde: #1e7d4f; --verde-50: #e8f5ee;
  --texto: #1f2a44; --fondo: #f4f6fb; --blanco: #fff;
  --radio: 10px; --sombra: 0 1px 2px rgba(20, 35, 80, .06), 0 4px 16px rgba(20, 35, 80, .06);
  --foco: 0 0 0 3px rgba(51, 102, 204, .35);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Work Sans', 'Segoe UI', system-ui, sans-serif; font-size: 16px; line-height: 1.55; color: var(--texto); background: var(--fondo); }
a { color: var(--azul-700); }
a:hover { color: var(--azul); }
h1, h2, h3 { color: var(--azul); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 700; }
h2 { font-size: 1.3rem; font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--gris-600); }
.small { font-size: .875rem; }
.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--azul); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- Encabezado / pie ---------- */
.topbar { background: var(--blanco); border-bottom: 1px solid var(--gris-200); }
.topbar .inner { max-width: 1120px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 16px; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 46px; width: auto; display: block; }
.brand .sep { width: 1px; height: 34px; background: var(--gris-200); }
.brand .name { font-weight: 600; color: var(--azul); font-size: 1.05rem; letter-spacing: .2px; }
.topnav { display: flex; gap: 6px; flex-wrap: wrap; }
.topnav a, .topnav button { font: inherit; font-size: .925rem; color: var(--azul); text-decoration: none; padding: 8px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer; }
.topnav a:hover, .topnav button:hover, .topnav a[aria-current="page"] { background: var(--azul-100); }
/* Franja bandera de Colombia (estándar de los desarrollos FFIE, igual al Directorio de Proveedores):
   amarillo 50 % · azul 25 % · rojo 25 %, de izquierda a derecha. Ver docs/IDENTIDAD-VISUAL.md */
.ribbon { height: 4px; background: linear-gradient(90deg, var(--amarillo) 0 50%, var(--azul) 50% 75%, var(--rojo) 75% 100%); }
.footer { margin-top: 48px; background: var(--azul-900); color: #d9e2f7; font-size: .875rem; }
.footer .inner { max-width: 1120px; margin: 0 auto; padding: 28px 20px; display: grid; gap: 16px; grid-template-columns: 1fr auto; align-items: center; }
.footer a { color: #fff; }
@media (max-width: 700px) { .footer .inner { grid-template-columns: 1fr; } .brand .sep, .brand .name { display: none; } }

/* ---------- Layout ---------- */
.container { max-width: 1120px; margin: 0 auto; padding: 28px 20px; }
.narrow { max-width: 820px; }
.card { background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra); padding: 28px; margin-bottom: 20px; }
.card.flat { box-shadow: none; border: 1px solid var(--gris-200); }
.grid-2 { display: grid; gap: 16px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 16px 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .card { padding: 20px; } }
.span-2 { grid-column: 1 / -1; }

/* ---------- Hero (inicio) ---------- */
.hero { background: linear-gradient(135deg, var(--azul) 0%, var(--azul-900) 100%); color: #fff; }
.hero .inner { max-width: 1120px; margin: 0 auto; padding: 56px 20px 64px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); }
.hero p.lead { font-size: 1.15rem; color: #dbe5fb; max-width: 560px; }
.hero .accent { display: block; width: 64px; height: 6px; background: var(--rojo); margin-bottom: 18px; }
.hero .facts { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radio); padding: 22px; }
.hero .facts li { margin-bottom: 10px; }
@media (max-width: 860px) { .hero .inner { grid-template-columns: 1fr; padding: 40px 20px; } }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { list-style: none; background: var(--blanco); border-radius: var(--radio); padding: 20px; box-shadow: var(--sombra); counter-increment: s; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--azul-100); color: var(--azul); font-weight: 700; margin-bottom: 10px; }
.steps { padding: 0; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: .975rem; padding: 12px 20px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.2; transition: background .15s, border-color .15s, color .15s; }
.btn:focus-visible { outline: none; box-shadow: var(--foco); }
.btn-primary { background: var(--azul); color: #fff; }
.btn-primary:hover { background: var(--azul-900); color: #fff; }
.btn-danger { background: var(--rojo); color: #fff; }
.btn-danger:hover { background: #b51b21; color: #fff; }
.btn-light { background: #fff; color: var(--azul); border-color: #fff; }
.btn-light:hover { background: var(--azul-100); }
.btn-outline { background: transparent; color: var(--azul); border-color: var(--azul); }
.btn-outline:hover { background: var(--azul-100); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-sm { padding: 7px 12px; font-size: .875rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- Formulario ---------- */
.form-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.progress { position: sticky; top: 20px; background: var(--blanco); border-radius: var(--radio); padding: 18px; box-shadow: var(--sombra); }
.progress ol { list-style: none; margin: 0; padding: 0; }
.progress li a { display: flex; gap: 10px; align-items: center; padding: 8px 6px; border-radius: 6px; text-decoration: none; color: var(--gris-700); font-size: .925rem; }
.progress li a:hover { background: var(--azul-50); }
.progress li .n { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; display: grid; place-items: center; background: var(--gris-100); color: var(--gris-700); font-weight: 600; font-size: .8rem; }
.progress li.done .n { background: var(--azul); color: #fff; }
.progress li.error .n { background: var(--rojo); color: #fff; }
.progress .secure { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--gris-200); font-size: .8rem; color: var(--gris-600); display: flex; gap: 8px; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } .progress { display: none; } }

.section-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--gris-200); }
.section-head .num { flex: 0 0 auto; background: var(--azul); color: #fff; font-weight: 700; width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; }
.section-head h2 { margin: 2px 0 2px; }
.section-head p { margin: 0; color: var(--gris-600); font-size: .925rem; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > label, .field > .label, legend { font-weight: 600; font-size: .95rem; color: var(--texto); }
.req { color: var(--rojo); margin-left: 2px; }
.hint { font-size: .85rem; color: var(--gris-600); }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=search], input[type=password], select, textarea {
  font: inherit; font-size: 1rem; color: var(--texto); width: 100%; padding: 11px 13px; border: 1.5px solid var(--gris-200); border-radius: 8px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--azul-700); box-shadow: var(--foco); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--rojo); }
.error-msg { color: var(--rojo); font-size: .85rem; font-weight: 500; }
.counter { font-size: .8rem; color: var(--gris-400); text-align: right; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
legend { margin-bottom: 8px; padding: 0; }

.choices { display: grid; gap: 10px; }
.choices.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .choices.cols-2 { grid-template-columns: 1fr; } }
.choice { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--gris-200); border-radius: 8px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--azul-500); }
.choice input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--azul); flex: 0 0 auto; }
.choice:has(input:checked) { border-color: var(--azul); background: var(--azul-50); }
.choice:has(input:focus-visible) { box-shadow: var(--foco); }
.choice .t { font-weight: 500; }
.choice .d { display: block; font-size: .85rem; color: var(--gris-600); font-weight: 400; }

.policy-box { max-height: 220px; overflow: auto; background: var(--gris-100); border-radius: 8px; padding: 14px 16px; font-size: .9rem; color: var(--gris-700); margin-bottom: 14px; }

/* Implicados */
.persona { border: 1.5px dashed var(--gris-200); border-radius: 8px; padding: 16px; margin-bottom: 12px; position: relative; }
.persona .persona-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.persona .persona-head strong { color: var(--azul); }
.link-btn { background: none; border: 0; padding: 4px 6px; font: inherit; font-size: .875rem; color: var(--rojo); cursor: pointer; border-radius: 6px; }
.link-btn:hover { background: var(--rojo-50); }

/* Biblioteca de evidencias */
.dropzone { border: 2px dashed var(--azul-500); background: var(--azul-50); border-radius: var(--radio); padding: 28px 20px; text-align: center; transition: background .15s, border-color .15s; }
.dropzone.drag { background: var(--azul-100); border-color: var(--azul); }
.dropzone .icon { width: 48px; height: 48px; margin: 0 auto 8px; color: var(--azul); }
.dropzone input[type=file] { display: block; margin: 12px auto 0; max-width: 100%; }
.js .dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone .pick { margin-top: 10px; }
.files { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.files li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 12px; background: #fff; border: 1px solid var(--gris-200); border-radius: 8px; }
.files li.bad { border-color: var(--rojo); background: var(--rojo-50); }
.files .ficon { width: 40px; height: 40px; border-radius: 6px; display: grid; place-items: center; font-size: .7rem; font-weight: 700; color: #fff; background: var(--azul-500); text-transform: uppercase; }
.files .ficon.pdf { background: var(--rojo); } .files .ficon.img { background: var(--azul-700); } .files .ficon.doc { background: var(--azul); } .files .ficon.av { background: var(--gris-600); }
.files .fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.files .fmeta { font-size: .8rem; color: var(--gris-600); }
.files-summary { margin-top: 8px; font-size: .85rem; color: var(--gris-600); }

/* Alertas */
.alert { border-radius: 8px; padding: 14px 16px; margin-bottom: 18px; border-left: 4px solid; font-size: .95rem; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert-error { background: var(--rojo-50); border-color: var(--rojo); color: #7a1216; }
.alert-ok { background: var(--verde-50); border-color: var(--verde); color: #134d31; }
.alert-info { background: var(--azul-50); border-color: var(--azul-700); color: var(--azul-900); }
.alert-warn { background: var(--amarillo-50); border-color: var(--amarillo); color: #5c4300; }

.submit-bar { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Confirmación */
.receipt { text-align: center; }
.receipt .check { width: 64px; height: 64px; border-radius: 50%; background: var(--verde-50); color: var(--verde); display: grid; place-items: center; margin: 0 auto 16px; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; text-align: left; }
.code-box { background: var(--azul-50); border: 1.5px solid var(--azul-100); border-radius: var(--radio); padding: 16px 18px; }
.code-box .lbl { font-size: .8rem; text-transform: uppercase; letter-spacing: .6px; color: var(--gris-600); font-weight: 600; }
.code-box .val { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 1.4rem; font-weight: 700; color: var(--azul); letter-spacing: 1px; word-break: break-all; }
.code-box.key { background: var(--amarillo-50); border-color: var(--amarillo); }
@media (max-width: 600px) { .codes { grid-template-columns: 1fr; } }

/* Línea de tiempo */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 18px 28px; border-left: 2px solid var(--gris-200); margin-left: 8px; }
.timeline li::before { content: ''; position: absolute; left: -8px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--azul-500); }
.timeline li.RESPUESTA::before { border-color: var(--verde); }
.timeline li.NOTA_INTERNA::before { border-color: var(--amarillo); }
.timeline .meta { font-size: .8rem; color: var(--gris-600); margin-bottom: 4px; }
.timeline .bubble { background: var(--gris-100); border-radius: 8px; padding: 12px 14px; white-space: pre-wrap; word-wrap: break-word; }
.timeline li.RESPUESTA .bubble { background: var(--verde-50); }
.timeline li.NOTA_INTERNA .bubble { background: var(--amarillo-50); }

/* Estados */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; background: var(--gris-100); color: var(--gris-700); }
.badge.RECIBIDA { background: var(--amarillo-50); color: #7a5600; }
.badge.EN_ANALISIS { background: var(--azul-100); color: var(--azul); }
.badge.EN_TRAMITE { background: #e3ebff; color: var(--azul-700); }
.badge.TRASLADADA { background: #efe7fb; color: #5b3a99; }
.badge.CERRADA { background: var(--verde-50); color: var(--verde); }
.badge.ARCHIVADA { background: var(--gris-100); color: var(--gris-600); }
.badge.anon { background: #2b2f38; color: #fff; }
.badge.warn { background: var(--rojo-50); color: var(--rojo); }

/* ---------- Panel ---------- */
.panel-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: calc(100vh - 75px); }
.sidebar { background: var(--azul-900); color: #cdd8f3; padding: 20px 14px; }
.sidebar .who { padding: 10px 10px 16px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 12px; font-size: .875rem; }
.sidebar .who strong { color: #fff; display: block; }
.sidebar nav a { display: block; color: #cdd8f3; text-decoration: none; padding: 10px 12px; border-radius: 8px; font-size: .95rem; }
.sidebar nav a:hover, .sidebar nav a[aria-current="page"] { background: rgba(255,255,255,.1); color: #fff; }
.sidebar form button { width: 100%; text-align: left; margin-top: 12px; background: none; border: 1px solid rgba(255,255,255,.2); color: #fff; padding: 10px 12px; border-radius: 8px; font: inherit; cursor: pointer; }
.panel-main { padding: 28px; min-width: 0; }
@media (max-width: 860px) { .panel-shell { grid-template-columns: 1fr; } .sidebar { padding: 12px; } .sidebar nav { display: flex; flex-wrap: wrap; gap: 4px; } .panel-main { padding: 18px; } }

.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { background: #fff; border-radius: var(--radio); padding: 14px 16px; box-shadow: var(--sombra); text-decoration: none; color: inherit; border-top: 3px solid var(--azul-100); }
.kpi:hover { border-top-color: var(--azul); }
.kpi .v { font-size: 1.6rem; font-weight: 700; color: var(--azul); line-height: 1.1; }
.kpi .l { font-size: .8rem; color: var(--gris-600); }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.filters .field { margin: 0; min-width: 180px; flex: 1; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); }
table { width: 100%; border-collapse: collapse; font-size: .925rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--gris-200); vertical-align: top; }
th { background: var(--azul-50); color: var(--azul); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbff; }
.pager { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; align-items: center; font-size: .9rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .detail-grid { grid-template-columns: 1fr; } }
dl.kv { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 10px 16px; margin: 0; }
dl.kv dt { color: var(--gris-600); font-size: .875rem; }
dl.kv dd { margin: 0; white-space: pre-wrap; word-wrap: break-word; }
@media (max-width: 600px) { dl.kv { grid-template-columns: 1fr; } dl.kv dd { margin-bottom: 8px; } }
.relato { white-space: pre-wrap; word-wrap: break-word; background: var(--gris-100); border-radius: 8px; padding: 16px; }
.confidential { background: repeating-linear-gradient(45deg, var(--rojo), var(--rojo) 10px, #b51b21 10px, #b51b21 20px); color: #fff; font-weight: 600; text-align: center; padding: 6px; font-size: .8rem; letter-spacing: 1px; border-radius: 6px; margin-bottom: 16px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form select { flex: 1; min-width: 160px; }
.login-card { max-width: 440px; margin: 60px auto; text-align: center; }
.ms-btn { background: #2f2f2f; color: #fff; }
.ms-btn:hover { background: #111; color: #fff; }
.ms-logo { display: inline-grid; grid-template-columns: 9px 9px; gap: 2px; }
.ms-logo i { width: 9px; height: 9px; display: block; }

@media print {
  .topbar, .sidebar, .footer, form, .no-print, .ribbon { display: none !important; }
  .panel-shell, .detail-grid { display: block; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  body { background: #fff; }
}

/* Utilidades (la CSP no permite estilos en línea) */
.center { text-align: center; }
.pad-lg { padding: 48px 28px; }
.justify-center { justify-content: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; }
.hero .facts h2 { color: #fff; font-size: 1.1rem; }
.hero .facts ul { padding-left: 20px; margin: 0; }
.hidden { display: none !important; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ms-r { background: #f25022; } .ms-g { background: #7fba00; } .ms-b { background: #00a4ef; } .ms-y { background: #ffb900; }

/* ---------- Barra institucional de tres logos ---------- */
.brandbar { background: var(--blanco); }
.brandbar .inner { max-width: 1120px; margin: 0 auto; padding: 12px 20px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.brandbar img { display: block; height: auto; }
.bb-ffie { justify-self: start; } .bb-ffie img { height: 56px; width: auto; }
.bb-transp { justify-self: center; } .bb-transp img { height: 48px; width: auto; }
.bb-men { justify-self: end; } .bb-men img { height: 60px; width: auto; }
.subnav { background: var(--azul-50); border-bottom: 1px solid var(--azul-100); }
.subnav .inner { max-width: 1120px; margin: 0 auto; padding: 4px 20px; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; justify-content: center; }
.subnav a { color: var(--azul); text-decoration: none; font-size: .925rem; font-weight: 500; padding: 8px 14px; border-radius: 8px; }
.subnav a:hover { background: var(--azul-100); }
.subnav a[aria-current="page"] { background: var(--azul); color: #fff; }
.subnav-title { font-weight: 600; color: var(--azul); margin-right: auto; padding: 6px 0; }
.footer .inner { grid-template-columns: auto 1fr auto; }
.footer-logo { height: 40px; width: auto; }
@media (max-width: 700px) {
  .brandbar .inner { grid-template-columns: 1fr 1fr; grid-template-areas: "ffie men" "transp transp"; row-gap: 10px; }
  .bb-ffie { grid-area: ffie; } .bb-men { grid-area: men; } .bb-transp { grid-area: transp; }
  .bb-ffie img { height: 42px; } .bb-men img { height: 46px; } .bb-transp img { height: 38px; }
  .footer .inner { grid-template-columns: 1fr; }
}

/* ---------- Formulario por pasos ---------- */
.wizard { max-width: 860px; margin: 0 auto; }
.wizard-progress { display: none; background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra); padding: 18px 22px 14px; margin-bottom: 18px; scroll-margin-top: 12px; }
.js .wizard-progress { display: block; }
.wp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.wp-label { font-weight: 600; color: var(--azul); }
.wp-pct { font-weight: 700; color: var(--azul); font-variant-numeric: tabular-nums; }
.wp-bar { height: 10px; border-radius: 999px; background: var(--azul-100); overflow: hidden; }
.wp-bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--azul) 0%, var(--azul-700) 100%); transition: width .35s ease; }
.wp-steps { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.wp-steps li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.wp-steps .t { font-size: .78rem; color: var(--gris-600); line-height: 1.2; }
.wp-dot { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--gris-200); background: #fff; color: var(--gris-600); font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; display: grid; place-items: center; padding: 0; transition: background .2s, border-color .2s, color .2s; }
.wp-dot:disabled { cursor: default; opacity: .7; }
.wp-dot:focus-visible { outline: none; box-shadow: var(--foco); }
.wp-steps li.done .wp-dot { background: var(--azul); border-color: var(--azul); color: #fff; }
.wp-steps li.current .wp-dot { border-color: var(--azul); color: var(--azul); background: var(--azul-100); box-shadow: 0 0 0 4px rgba(38, 64, 138, .12); }
.wp-steps li.current .t { color: var(--azul); font-weight: 600; }
.wp-steps li.error .wp-dot { background: var(--rojo); border-color: var(--rojo); color: #fff; }
@media (max-width: 640px) { .wp-steps .t { display: none; } .wp-steps li.current .t { display: block; position: absolute; left: -9999px; } }

.js .step { display: none; }
.js .step.active { display: block; animation: stepIn .25s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .step.active { animation: none; } .wp-bar span { transition: none; } }
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--gris-200); }
.invisible { visibility: hidden; }
.submit-bar .btn-outline { margin-right: auto; }
.resumen { background: var(--azul-50); border: 1px solid var(--azul-100); border-radius: var(--radio); padding: 18px 20px; margin-bottom: 20px; }
.resumen dl.kv { grid-template-columns: 170px minmax(0, 1fr); }
.link-edit { background: none; border: 0; padding: 0; font: inherit; font-size: .85rem; color: var(--azul-700); text-decoration: underline; cursor: pointer; }

/* ---------- Configuración ---------- */
.config-grid { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 980px; }
.inline-check { display: flex; gap: 8px; align-items: center; font-size: .9rem; margin-top: 6px; cursor: pointer; }
.inline-check input { width: 16px; height: 16px; accent-color: var(--azul); }
.setup-box { text-align: left; border: 1px solid var(--gris-200); border-radius: 8px; padding: 12px 14px; }
.setup-box summary { cursor: pointer; font-weight: 600; color: var(--azul); }
code { font-family: ui-monospace, Consolas, monospace; font-size: .85em; background: var(--gris-100); padding: 1px 5px; border-radius: 4px; }

/* ---------- Autocompletar ciudad / municipio ---------- */
.ciudad-depto .field { margin-bottom: 0; }
.ciudad-depto { margin-bottom: 16px; }
.hint-spacer { visibility: hidden; }
@media (max-width: 760px) { .hint-spacer { display: none; } }
.combo { position: relative; }
.combo input:disabled { background: var(--gris-100); color: var(--gris-400); }
.combo-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: #fff; border: 1.5px solid var(--azul-100); border-radius: 8px; box-shadow: 0 8px 24px rgba(20, 35, 80, .14); max-height: 280px; overflow-y: auto; }
.combo-list li[role=option] { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 6px; cursor: pointer; }
.combo-list li[role=option]:hover, .combo-list li.active { background: var(--azul-100); }
.combo-n { font-weight: 500; color: var(--texto); }
.combo-d { font-size: .85rem; color: var(--gris-600); white-space: nowrap; }
.combo-empty { padding: 9px 12px; color: var(--gris-600); font-size: .9rem; }
.notif-info { background: var(--azul-50); border: 1px solid var(--azul-100); border-radius: 8px; padding: 12px 14px; font-size: .9rem; }

/* ---------- Antivirus y carga ---------- */
.av-note { color: var(--verde); }
.av-ok { color: var(--verde); font-size: .78rem; }
.upload-overlay { position: fixed; inset: 0; background: rgba(20, 30, 60, .55); display: grid; place-items: center; z-index: 100; padding: 16px; }
.upload-box { background: #fff; border-radius: var(--radio); padding: 28px; max-width: 440px; text-align: center; box-shadow: var(--sombra); }
.upload-box p { margin: 10px 0 0; color: var(--gris-600); font-size: .92rem; }
.spinner { width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 50%; border: 4px solid var(--azul-100); border-top-color: var(--azul); animation: girar 1s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
