/* NEXO · contact center — Montserrat, navy #002046, navegación lateral */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/montserrat-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/montserrat-600-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/montserrat-700-latin.woff2') format('woff2');
}

:root {
  --navy: #002046;
  --navy-2: #123a5e;
  --steel: #3d6285;
  --mist: #8fa6bb;
  --line: #dce4ec;
  --line-soft: #edf1f6;
  --bg: #f4f6f9;
  --card: #ffffff;
  --ink: #16283c;
  --muted: #56697d;
  --verde: #2e7d5b;
  --verde-bg: #e7f3ee;
  --rojo: #b03a2e;
  --rojo-bg: #fbecea;
  --ambar: #b7791f;
  --ambar-bg: #fbf1e1;
  --azul: #1f5f8b;
  --azul-bg: #e8f1f8;
  --morado: #6b4fa0;
  --morado-bg: #f0ebf9;
  --sombra: 0 1px 2px rgba(16, 40, 66, 0.04);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, p { margin: 0; }
small { font-size: 11.5px; color: var(--muted); }

/* ---------- estructura ---------- */
.con-barra { display: flex; min-height: 100vh; }

.barra-lateral {
  width: 248px;
  flex: 0 0 248px;
  background: var(--navy);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 14px 18px;
  z-index: 5;
}
.barra-lateral .marca {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 12px 22px;
  color: #fff;
}
.barra-lateral .marca:hover { text-decoration: none; }
.barra-lateral .logo {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 4px;
}
.barra-lateral .logo span { color: #4cc38a; }
.barra-lateral .marca-sub {
  font-size: 9px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--mist);
  font-weight: 600;
}
.nav-lateral { display: flex; flex-direction: column; gap: 2px; }
.nav-lateral a {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #c9d6e2;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 12px;
  border-radius: 8px;
  line-height: 1.2;
}
.nav-lateral a:hover { background: rgba(255, 255, 255, 0.07); text-decoration: none; }
.nav-lateral a.activo { background: rgba(255, 255, 255, 0.13); color: #fff; }
.nav-lateral svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}
.nav-separador {
  margin: 14px 12px 8px;
  font-size: 9px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #6f89a1;
  font-weight: 700;
}
.lateral-pie {
  margin-top: auto;
  padding: 14px 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--mist);
  font-size: 10.5px;
  line-height: 1.4;
}
.selector-empresa { display: flex; flex-direction: column; gap: 4px; }
.selector-empresa label {
  font-size: 9px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--mist);
  font-weight: 600;
}
.selector-empresa select {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  font-family: inherit;
  font-size: 12px;
  padding: 7px 8px;
}
.lateral-usuario {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  color: #e6edf4;
  font-size: 12px;
  font-weight: 600;
}
.lateral-usuario a { color: #8fa6bb; font-size: 11px; font-weight: 500; }
.lateral-usuario a:hover { color: #fff; text-decoration: none; }
.rol-chip {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #9fb4c7;
  font-weight: 600;
}

.contenido { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.contenedor { max-width: 1340px; width: 100%; margin: 0 auto; padding: 28px 32px 48px; }
.pie {
  padding: 14px 32px 20px;
  color: var(--muted);
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-soft);
}

/* ---------- encabezados ---------- */
.encabezado {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.sobrelinea {
  font-size: 10px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 700;
  margin: 0 0 6px;
}
h1 { font-size: 28px; line-height: 1.15; color: var(--navy); font-weight: 700; letter-spacing: -0.4px; }
.bajada { color: var(--muted); font-size: 13px; max-width: 720px; margin-top: 7px; }
.encabezado-acciones { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.migas { font-size: 11.5px; color: var(--muted); margin-bottom: 14px; }
.migas a { color: var(--steel); }

/* ---------- controles ---------- */
input, select, textarea {
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 11px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(61, 98, 133, 0.12);
}
input::placeholder, textarea::placeholder { color: #9aa9b8; font-weight: 400; }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--verde); }
textarea { resize: vertical; min-height: 78px; }
label { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.campo { display: flex; flex-direction: column; gap: 5px; }
.campo .ayuda { font-size: 11px; color: var(--muted); font-weight: 400; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.form-grid .ancho { grid-column: 1 / -1; }
.filtros { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.filtros .campo { min-width: 150px; }
.filtros input[type="search"] { width: 250px; }

.boton {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
  border-radius: 7px;
  padding: 9px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.boton:hover { background: var(--navy-2); border-color: var(--navy-2); text-decoration: none; }
.boton.verde { background: var(--verde); border-color: var(--verde); }
.boton.verde:hover { background: #246448; border-color: #246448; }
.boton.rojo { background: #fff; color: var(--rojo); border-color: #efd3cf; }
.boton.rojo:hover { background: var(--rojo-bg); border-color: var(--rojo); }
.boton-suave { background: #fff; color: var(--navy); border-color: var(--line); }
.boton-suave:hover { background: var(--bg); border-color: var(--steel); color: var(--navy); }
.boton-mini { font-size: 11px; padding: 5px 9px; border-radius: 6px; }
.boton:disabled { opacity: 0.55; cursor: not-allowed; }
.enlace-mini { font-size: 11.5px; font-weight: 600; color: var(--steel); }

/* ---------- tarjetas y KPI ---------- */
.tarjeta {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: var(--sombra);
  margin-bottom: 18px;
}
.tarjeta-cabecera {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.tarjeta h2 { font-size: 16px; color: var(--navy); font-weight: 700; letter-spacing: -0.2px; }
.tarjeta h2 + .bajada { margin-top: 3px; }
.tarjeta-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.grid-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.grid-kpis.cinco { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: var(--sombra);
}
.kpi .etiqueta {
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.kpi .valor { font-size: 27px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.kpi .valor small { font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi .nota { font-size: 11px; color: var(--muted); }
.kpi.verde .valor { color: var(--verde); }
.kpi.ambar .valor { color: var(--ambar); }

/* ---------- tablas ---------- */
.tabla-envoltura { overflow-x: auto; }
table.tabla { width: 100%; border-collapse: collapse; font-size: 12.8px; }
.tabla th {
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  white-space: nowrap;
}
.tabla td { padding: 11px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tabla td.fecha, .tabla th.fecha { white-space: nowrap; }
.tabla td.contacto { min-width: 150px; }
.tabla tbody tr:hover td { background: #fafbfd; }
.tabla tbody tr:last-child td { border-bottom: none; }
.tabla .num { text-align: right; font-variant-numeric: tabular-nums; }
.tabla .fuerte { font-weight: 600; color: var(--navy); }
.tabla .sec { color: var(--muted); font-size: 11.5px; }
.tabla-compacta td { padding: 8px 8px; }

/* ---------- badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 9.6px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge.verde { background: var(--verde-bg); color: #1f6b4a; }
.badge.rojo { background: var(--rojo-bg); color: var(--rojo); }
.badge.ambar { background: var(--ambar-bg); color: var(--ambar); }
.badge.azul { background: var(--azul-bg); color: var(--azul); }
.badge.morado { background: var(--morado-bg); color: var(--morado); }
.badge.gris { background: #eef1f5; color: #56697d; }
.badge.navy { background: #e7edf4; color: var(--navy); }
.punto { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.punto.verde { background: #3fae7a; }
.punto.rojo { background: #d05a4c; }
.punto.ambar { background: #d9a441; }
.punto.gris { background: var(--mist); }

/* ---------- avisos ---------- */
.flash {
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 12.5px;
  margin-bottom: 12px;
  border: 1px solid;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  word-break: break-word;
}
.flash.ok { background: var(--verde-bg); border-color: #cbe6d9; color: #1f6b4a; }
.flash.error { background: var(--rojo-bg); border-color: #f0d2cd; color: var(--rojo); }
.flash.info { background: var(--azul-bg); border-color: #cfe3f1; color: var(--azul); }
.vacio {
  text-align: center;
  padding: 30px 16px;
  color: var(--muted);
  font-size: 12.5px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: #fbfcfe;
}
.vacio strong { color: var(--navy); display: block; margin-bottom: 4px; }

/* ---------- layout de dos columnas ---------- */
.dos-columnas { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.dos-columnas-iguales { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }

/* ---------- campañas ---------- */
.campana-codigo {
  font-family: 'Montserrat', monospace;
  font-size: 10.5px;
  letter-spacing: 0.8px;
  color: var(--steel);
  text-transform: uppercase;
}
.canal-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.canal-pill svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs a {
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs a:hover { color: var(--navy); text-decoration: none; }
.tabs a.activo { color: var(--navy); border-bottom-color: var(--verde); }
.ancla { scroll-margin-top: 18px; }

.config-linea {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
}
.config-linea:last-child { border-bottom: none; }
.config-linea .etq { color: var(--muted); font-weight: 500; }
.config-linea .val { font-weight: 600; color: var(--navy); text-align: right; }

/* ---------- ficha del agente ---------- */
.workspace { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 18px; align-items: start; }
.columna-lateral { display: flex; flex-direction: column; gap: 16px; }
.columna-principal { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.tarjeta-contacto { position: relative; overflow: hidden; }
.contacto-cabecera { display: flex; gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.avatar {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 50%;
  background: #e6ecf3;
  color: var(--steel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.avatar.verde { background: var(--verde-bg); color: var(--verde); }
.contacto-nombre { font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.25; }
.contacto-doc { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.contacto-bloque { padding-top: 14px; }
.bloque-titulo {
  font-size: 9.5px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 9px;
}
.datos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.datos .grande { grid-column: 1 / -1; }
.dato .etq { font-size: 9px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.dato .val { font-size: 12.8px; font-weight: 600; color: var(--ink); margin-top: 2px; word-break: break-word; }
.dato .val.suave { color: var(--muted); font-weight: 400; font-style: italic; }
.dato a.val { color: var(--steel); }
.monto-caja {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  margin-top: 4px;
}
.monto-caja > div { padding: 10px 13px; flex: 1; }
.monto-caja > div + div { border-left: 1px solid var(--line); }
.monto-caja .etq { font-size: 8.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.monto-caja .val { font-size: 18px; font-weight: 700; color: var(--navy); }
.monto-caja .val small { font-size: 10px; color: var(--muted); font-weight: 600; }
.chip-estado {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--steel);
  background: #eef3f8;
  padding: 4px 10px;
  border-radius: 999px;
  margin-top: 8px;
}

.cabecera-gestion {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.cabecera-gestion h1 { font-size: 25px; }
.cabecera-meta { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.metrica-tiempo { text-align: right; }
.metrica-tiempo .etq { font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.metrica-tiempo .val { font-size: 19px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.en-vivo { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--verde); }
.en-vivo .punto { animation: pulso 1.4s infinite; }
@keyframes pulso { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.criterios { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.criterio { background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px; }
.criterio .nombre { font-size: 12px; font-weight: 600; color: var(--navy); min-height: 32px; }
.criterio .opciones { display: flex; gap: 5px; margin-top: 9px; }
.criterio .opt {
  flex: 1;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  padding: 5px 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}
.criterio .opt:hover { border-color: var(--steel); color: var(--navy); }
.criterio .opt.on[data-v="si"] { background: var(--verde-bg); border-color: #8fc7ac; color: #1f6b4a; }
.criterio .opt.on[data-v="no"] { background: var(--rojo-bg); border-color: #e3b1a9; color: var(--rojo); }
.criterio .opt.on[data-v="na"] { background: #eef1f5; border-color: #c9d3de; color: var(--steel); }

.form-gestion { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-gestion .ancho { grid-column: 1 / -1; }
.form-gestion .acciones { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }

.resultado-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f4f8;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 9.8px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* ---------- guion ---------- */
.guion { display: flex; flex-direction: column; gap: 10px; }
.guion details {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 13px;
  background: #fbfcfe;
}
.guion details[open] { background: #fff; }
.guion summary {
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
}
.guion summary::-webkit-details-marker { display: none; }
.guion summary::before { content: '▸'; color: var(--verde); margin-right: 8px; }
.guion details[open] summary::before { content: '▾'; }
.guion .texto {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.65;
  white-space: pre-wrap;
  border-left: 3px solid var(--verde);
  padding-left: 12px;
}

/* ---------- gráficos ---------- */
.barras { display: flex; align-items: flex-end; gap: 4px; height: 92px; margin-top: 8px; }
.barras .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.barras .barra { width: 100%; background: var(--navy); opacity: 0.72; border-radius: 3px 3px 0 0; min-height: 2px; }
.barras .barra.verde { background: var(--verde); opacity: 0.85; }
.barras .hora { font-size: 8.5px; color: var(--muted); }
.barras .valor-mini { font-size: 8.5px; color: var(--muted); }

.medidor { display: flex; flex-direction: column; gap: 8px; }
.medidor .fila { display: grid; grid-template-columns: 150px 1fr 56px; gap: 10px; align-items: center; font-size: 12px; }
.medidor .pista { height: 9px; background: #eef1f5; border-radius: 999px; overflow: hidden; }
.medidor .relleno { height: 100%; border-radius: 999px; background: var(--verde); }
.medidor .total { text-align: right; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }

.leyenda { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--muted); margin-top: 10px; }
.leyenda span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- login ---------- */
.login-pantalla { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.login-marca {
  background: radial-gradient(circle at 20% 15%, #16466f 0%, var(--navy) 45%, #00152e 100%);
  color: #fff;
  padding: 56px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-marca::after {
  content: '';
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  right: -120px;
  bottom: -160px;
}
.login-marca .logo { font-size: 46px; font-weight: 700; letter-spacing: 9px; line-height: 1; }
.login-marca .logo span { color: #4cc38a; }
.login-marca .lema { font-size: 19px; color: #d7e3ee; margin-top: 20px; max-width: 420px; line-height: 1.5; }
.login-marca .pie-marca { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #6f89a1; font-weight: 600; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 40px; background: var(--bg); }
.login-caja { width: 100%; max-width: 400px; }
.login-caja h1 { font-size: 25px; margin-bottom: 6px; }
.login-caja .bajada { margin-bottom: 22px; }
.login-caja .campo { margin-bottom: 14px; }
.login-caja .boton { width: 100%; justify-content: center; padding: 11px; margin-top: 4px; }
.login-pista {
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.login-pista code { color: var(--navy); font-weight: 600; }
.login-pista .titulo { font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; color: var(--steel); margin-bottom: 4px; }

/* ---------- utilidades ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fila { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fila > select, .fila > input { width: auto; flex: 1 1 150px; }
.entre { justify-content: space-between; }
.der { margin-left: auto; }
.silencio { color: var(--muted); font-size: 12px; }
.mono { font-family: 'SFMono-Regular', ui-monospace, Menlo, monospace; font-size: 11.5px; }
.codigo {
  background: #0d2137;
  color: #d9e6f2;
  border-radius: 9px;
  padding: 13px 15px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11.5px;
  line-height: 1.65;
  overflow-x: auto;
  white-space: pre;
}
.codigo .c { color: #8fa6bb; }
.check-lista { display: flex; flex-direction: column; gap: 7px; max-height: 230px; overflow-y: auto; padding-right: 4px; }
.check-lista label { display: flex; gap: 8px; align-items: center; font-weight: 500; color: var(--ink); font-size: 12px; }
.separador { height: 1px; background: var(--line-soft); margin: 16px 0; }
.nota-pie { font-size: 11px; color: var(--muted); margin-top: 10px; }
.derecha { text-align: right; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .workspace { grid-template-columns: 1fr; }
  .columna-lateral { order: 2; }
  .grid-kpis, .grid-kpis.cinco { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dos-columnas, .dos-columnas-iguales { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .con-barra { display: block; }
  .barra-lateral { width: 100%; height: auto; position: static; flex: none; }
  .barra-lateral .marca { padding-bottom: 14px; }
  .nav-lateral { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 6px; }
  .nav-lateral a { white-space: nowrap; }
  .lateral-pie { margin-top: 12px; }
  .contenedor { padding: 20px 16px 36px; }
  .login-pantalla { grid-template-columns: 1fr; }
  .login-marca { display: none; }
  .form-grid, .form-grid-3, .form-gestion { grid-template-columns: 1fr; }
  .medidor .fila { grid-template-columns: 110px 1fr 48px; }
}
