/* =========================================================
   LIFTIT · Módulo Separación Ingresos Propios vs Terceros
   Design system tipo contable (referencia Siigo).
   Ajustar --brand cuando se confirme el hex oficial.
   ========================================================= */

:root {
  --brand: #1B3A6B;
  --brand-dark: #122a4f;
  --brand-light: #2d5899;
  --brand-tint: #eef3fb;

  --text: #1f2328;
  --text-muted: #57606a;
  --text-faint: #8c959f;

  --bg: #f6f8fa;
  --surface: #ffffff;
  --border: #d0d7de;
  --border-strong: #afb8c1;

  --success: #116329;
  --success-bg: #dafbe1;
  --danger: #cf222e;
  --danger-bg: #ffebe9;
  --warn: #9a6700;
  --warn-bg: #fff8c5;

  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(27, 58, 107, 0.06);
  --shadow-md: 0 2px 8px rgba(27, 58, 107, 0.08);

  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "SF Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header con branding ---------- */

.app-header {
  background: var(--brand);
  color: #fff;
  padding: 0 1.5rem;
  height: 52px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.brand .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #fff;
  color: var(--brand);
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 14px;
}

.brand-title {
  margin-left: 1.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 13px;
  font-weight: 500;
  opacity: 0.95;
}

.mode-badge {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.mode-test {
  background: #ff3b30;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.user-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: 1rem;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.user-box .user-name {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.user-box .logout-link {
  color: #fff;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.1s;
}

.user-box .logout-link:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Cuando NO hay mode-badge, empuja el bloque de usuario al extremo derecho */
.app-header > .user-box:last-child { margin-left: auto; }

/* ---------- Login ---------- */

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
}

.login-shell {
  width: 100%;
  max-width: 380px;
  padding: 1.5rem;
}

.login-card {
  background: var(--surface);
  border-radius: 8px;
  padding: 2rem 2rem 2.25rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 16px;
  color: var(--brand);
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
  font-feature-settings: "kern" 1;
}

/* En el login el fondo de la card es blanco, así que invertimos el cuadrito:
   azul con L blanca para que sea visible. */
.login-brand .brand-mark {
  background: var(--brand);
  color: #fff;
}

.login-title {
  margin: 0 0 0.25rem;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.login-sub {
  margin: 0 0 1.25rem;
  font-size: 13px;
  color: var(--text-muted);
}

.login-form input[type="text"],
.login-form input[type="password"] {
  max-width: 100%;
}

.login-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

/* ---------- Stepper ---------- */

.app-header { position: sticky; top: 0; z-index: 30; }

.stepper {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  display: flex;
  gap: 0;
  overflow-x: auto;
  position: sticky;
  top: 52px;
  z-index: 25;
  box-shadow: var(--shadow-sm);
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem 0.4rem 0.5rem;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  position: relative;
  border-radius: var(--radius);
}

.step-item + .step-item::before {
  content: "›";
  color: var(--text-faint);
  margin-right: 0.5rem;
  font-size: 14px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--border);
  color: var(--surface);
  font-size: 11px;
  font-weight: 700;
}

.step-item.done .step-num { background: var(--success); }
.step-item.active { color: var(--brand); font-weight: 600; }
.step-item.active .step-num { background: var(--brand); }

/* Pasos navegables (active o done) — clickeables */
.step-item.done,
.step-item.active {
  cursor: pointer;
}

.step-item.done:hover,
.step-item.active:hover {
  background: var(--brand-tint);
}

/* "Acción requerida": paso recién habilitado que espera input del usuario */
.step-item.awaiting {
  color: var(--warn);
  font-weight: 600;
}

.step-item.awaiting .step-num {
  background: var(--warn);
  box-shadow: 0 0 0 0 rgba(154, 103, 0, 0.6);
  animation: stepPulse 1.6s ease-out infinite;
}

.step-item.awaiting::after {
  content: "Requiere tu gestión";
  margin-left: 0.4rem;
  padding: 0.1rem 0.5rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--warn);
  background: var(--warn-bg);
  border-radius: 10px;
}

@keyframes stepPulse {
  0%   { box-shadow: 0 0 0 0 rgba(154, 103, 0, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(154, 103, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(154, 103, 0, 0); }
}

/* ---------- Layout ---------- */

main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.panel-header {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-header h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.panel-body { padding: 1.25rem; }

.panel-body > :first-child { margin-top: 0; }
.panel-body > :last-child { margin-bottom: 0; }

/* ---------- KPIs ---------- */

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.kpi-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 600;
}

.kpi-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-sub { font-size: 11px; color: var(--text-faint); }

.kpi.success { border-left: 3px solid var(--success); }
.kpi.danger  { border-left: 3px solid var(--danger); }
.kpi.brand   { border-left: 3px solid var(--brand); }

.kpi.success .kpi-value { color: var(--success); }
.kpi.danger  .kpi-value { color: var(--danger); }

/* ---------- Forms ---------- */

form label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

form input[type="month"],
form input[type="file"],
form input[type="text"] {
  display: block;
  width: 100%;
  max-width: 420px;
  margin-top: 0.25rem;
  padding: 0.5rem 0.65rem;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

form input:focus {
  outline: none;
  border-color: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(27, 58, 107, 0.12);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.1s, border-color 0.1s;
}

.btn:hover { background: var(--bg); border-color: var(--text-muted); }

.btn-primary {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn-danger {
  color: #fff;
  background: var(--danger);
  border-color: var(--danger);
}

.btn-danger:hover { background: #a31b24; border-color: #a31b24; }

.btn:disabled,
.btn:disabled:hover {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-muted);
}

.btn-primary:disabled,
.btn-primary:disabled:hover {
  background: var(--border-strong);
  border-color: var(--border-strong);
  color: #fff;
}

/* ---------- Table contable ---------- */

.table-contable {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.table-contable thead th {
  padding: 0.55rem 0.75rem;
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  white-space: nowrap;
}

.table-contable tbody td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.table-contable tbody tr:hover td { background: var(--brand-tint); }

.table-contable tfoot td {
  padding: 0.65rem 0.75rem;
  font-weight: 700;
  background: var(--bg);
  border-top: 2px solid var(--border-strong);
}

.num    { text-align: right; font-variant-numeric: tabular-nums; }
.num-pos { color: var(--success); }
.num-neg { color: var(--danger); }

.mono { font-family: var(--mono); font-size: 12px; }

/* ---------- Badges ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.55rem;
  font-size: 11px;
  font-weight: 600;
  border-radius: 12px;
  white-space: nowrap;
}

.badge-ok     { color: var(--success); background: var(--success-bg); }
.badge-fail   { color: var(--danger);  background: var(--danger-bg); }
.badge-warn   { color: var(--warn);    background: var(--warn-bg); }
.badge-info   { color: var(--brand);   background: var(--brand-tint); }
.badge-muted  { color: var(--text-muted); background: var(--bg); border: 1px solid var(--border); }

/* ---------- Alerts ---------- */

.alert {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  font-size: 12.5px;
  border-left: 3px solid transparent;
  margin-bottom: 1rem;
}

.alert-warn    { background: var(--warn-bg);    border-left-color: var(--warn);    color: var(--warn); }
.alert-success { background: var(--success-bg); border-left-color: var(--success); color: var(--success); }
.alert-danger  { background: var(--danger-bg);  border-left-color: var(--danger);  color: var(--danger); }
.alert-info    { background: var(--brand-tint); border-left-color: var(--brand);   color: var(--brand); }

/* ---------- Utilidades ---------- */

.row      { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.row-end  { display: flex; gap: 0.5rem; justify-content: flex-end; align-items: center; }
.muted    { color: var(--text-muted); }
.faint    { color: var(--text-faint); }
.small    { font-size: 12px; }
.xsmall   { font-size: 11px; }
.stack    { display: flex; flex-direction: column; gap: 0.5rem; }
.divider  { height: 1px; background: var(--border); margin: 1rem 0; }

details.sql-preview {
  margin-top: 1rem;
  font-size: 12px;
}

details.sql-preview summary {
  cursor: pointer;
  color: var(--brand);
  font-weight: 600;
}

details.sql-preview pre {
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: #0d1117;
  color: #c9d1d9;
  border-radius: var(--radius);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  max-height: 320px;
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

.empty-state { padding: 2rem 1rem; text-align: center; color: var(--text-muted); }
.empty-state p { margin: 0.25rem 0; }

/* ---------- Hallazgo (card grande de resumen) ---------- */

.hallazgo {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}

.hallazgo-success {
  background: linear-gradient(135deg, #116329 0%, #1a7f3d 100%);
}

.hallazgo-warn {
  background: linear-gradient(135deg, #9a6700 0%, #b78600 100%);
}

.hallazgo-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.hallazgo-subtitle {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hallazgo-cifras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
}

.hallazgo-cifra {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.hallazgo-cifra .num-big {
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* Cifras de moneda: tipografía más compacta para que quepa siempre completa */
.hallazgo-cifra .num-big.money {
  font-size: 22px;
}

.hallazgo-cifra .etq {
  font-size: 12px;
  opacity: 0.85;
  line-height: 1.35;
}

.hallazgo-tipos {
  display: flex;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  flex-wrap: wrap;
}

.tipo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.tipo-dot.prefact { background: #ffd966; }
.tipo-dot.cancel  { background: #ff9999; }
.tipo-dot.mixta   { background: #c4a6ff; }

.hallazgo-cta {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.45;
}

.hallazgo-cta strong { font-weight: 600; }

/* ---------- Facturas chips ---------- */

.chips-group {
  margin-bottom: 1.25rem;
}

.chips-group-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
}

.chips-group-header .tipo-dot {
  width: 10px;
  height: 10px;
  margin-right: 0;
}

.chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.6rem;
}

.chip-factura {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: border-color 0.1s, box-shadow 0.1s;
}

.chip-factura:hover {
  border-color: var(--brand-light);
  box-shadow: var(--shadow-sm);
}

.chip-factura .chip-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.chip-factura .chip-cliente {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.chip-factura .chip-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11.5px;
  color: var(--text-muted);
}

.chip-factura .chip-valor {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text);
}

.chip-factura.mixta {
  border-left: 3px solid #9b7cd9;
}

.cobertura-grupo {
  margin-bottom: 1rem;
}

.cobertura-grupo:last-child {
  margin-bottom: 0;
}

.cobertura-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.chip-meta-sub {
  margin-top: 0.15rem;
  padding-top: 0.25rem;
  border-top: 1px dashed var(--border);
  font-size: 11px;
}

/* ---------- Resumen del período (universo) ---------- */

.universo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.universo-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.universo-totales {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem 2rem;
  align-items: start;
  margin-bottom: 1rem;
}

.universo-total {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.universo-total .num-big {
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.universo-total .etq {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.3;
}

.barra-split {
  height: 10px;
  background: var(--border);
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  margin-bottom: 0.75rem;
}

.barra-limpias { background: var(--success); }
.barra-anomalas { background: var(--warn); }

.universo-leyenda {
  display: flex;
  gap: 2rem;
  font-size: 12.5px;
  flex-wrap: wrap;
}

.leyenda-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.leyenda-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  position: relative;
  top: 1px;
}

.leyenda-dot.ok   { background: var(--success); }
.leyenda-dot.warn { background: var(--warn); }

.leyenda-item .num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text);
}

.leyenda-item .pct {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ---------- Tabs ---------- */

.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.tab {
  padding: 0.55rem 1rem;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: -1px;
}

.tab:hover { color: var(--text); }

.tab.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Ciudades ---------- */

.ciudades-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 800px) {
  .ciudades-grid { grid-template-columns: 1fr; }
}

.ciudades-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.ciudades-card h3 {
  margin: 0 0 0.85rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.ciudades-card h3 .xsmall { color: var(--text-muted); font-weight: 400; }

.ciudad-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 36px minmax(40px, 1fr) minmax(0, auto);
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0;
  font-size: 12.5px;
  border-bottom: 1px dashed var(--border);
}

.ciudad-row:last-child { border-bottom: none; }

.ciudad-nombre {
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ciudad-n {
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  text-align: right;
}

.ciudad-barra {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.ciudad-barra-fill {
  height: 100%;
  background: var(--brand-light);
  border-radius: 3px;
}

.ciudades-card.anomalias .ciudad-barra-fill { background: var(--warn); }

.ciudad-valor {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  font-size: 12px;
  white-space: nowrap;
}

.ciudades-card { min-width: 0; overflow: hidden; }

.ciudades-otras {
  font-size: 11.5px;
  color: var(--text-muted);
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border);
  margin-top: 0.25rem;
}

.ciudades-total {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.ciudades-total strong { color: var(--text); font-variant-numeric: tabular-nums; }
