/* ============================================================
   CRM AGENTE — Estilos dark mode
   ============================================================ */

:root {
  --bg0: #0e1117;
  --bg1: #090b0f;
  --bg2: #161921;
  --bg3: #111318;
  --bd:  #1e2128;
  --bd2: #252830;
  --t1:  #e0ddd5;
  --t2:  #888;
  --t3:  #555;
  --t4:  #333;
  --blue:   #378ADD;
  --blue-d: #185FA5;
  --blue-bg:#0d1625;
  --green:  #1D9E75;
  --green-bg:#091e16;
  --amber:  #EF9F27;
  --purple: #7F77DD;
  --purple-bg:#13122a;
  --coral:  #D85A30;
  --red:    #E24B4A;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg0);
  color: #c9c7bf;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 13px;
  min-height: 100vh;
}

/* ── Layout ── */
.app { display: flex; flex-direction: column; min-height: 100vh; }
.layout { display: flex; flex: 1; }

/* ── Sidebar ── */
.sidebar {
  width: 52px;
  background: var(--bg1);
  border-right: 0.5px solid var(--bd);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 4px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-logo {
  width: 30px; height: 30px;
  background: #1a2236;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 16px;
}

.nav-btn {
  width: 36px; height: 36px;
  border-radius: 8px; border: none;
  background: transparent;
  color: var(--t3);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  transition: background .15s, color .15s;
  position: relative;
}
.nav-btn:hover { background: var(--bg2); color: #aaa; }
.nav-btn.active { background: #1a2236; color: var(--blue); }
.nav-label {
  display: none;
  position: absolute; left: 46px;
  background: #1a1d24;
  border: 0.5px solid var(--bd2);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 11px; color: #ccc;
  white-space: nowrap; z-index: 50;
  pointer-events: none;
}
.nav-btn:hover .nav-label { display: block; }

/* ── Main ── */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.topbar {
  background: var(--bg1);
  border-bottom: 0.5px solid var(--bd);
  padding: 9px 16px;
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  position: sticky; top: 0; z-index: 10;
}
.topbar-title { font-size: 13px; font-weight: 500; color: var(--t1); flex: 1; min-width: 80px; }
.tb-badge {
  background: #1a1d24;
  border: 0.5px solid var(--bd2);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 11px; color: var(--t3);
  white-space: nowrap;
  display: flex; align-items: center; gap: 4px;
}
.tb-badge.success { color: var(--green); }
.btn-nuevo {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 12px;
  background: #1a2236;
  border: 0.5px solid #253050;
  border-radius: 7px;
  color: #85B7EB;
  font-size: 11px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: background .15s;
}
.btn-nuevo:hover { background: #1e2a42; }

/* ── Content & Pages ── */
.content { padding: 14px; overflow-y: auto; flex: 1; }
.page { display: none; }
.page.active { display: block; }

/* ── Metrics ── */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px; margin-bottom: 12px;
}
.mc {
  background: var(--bg2); border-radius: 10px;
  border: 0.5px solid var(--bd);
  padding: 11px 13px; cursor: pointer;
  transition: border-color .15s;
}
.mc:hover { border-color: var(--bd2); }
.mc-lbl { font-size: 10px; color: var(--t3); margin-bottom: 4px; }
.mc-val { font-size: 20px; font-weight: 500; line-height: 1; }
.mc-bar { height: 2px; background: var(--bd); border-radius: 1px; margin-top: 9px; }
.mc-fill { height: 2px; border-radius: 1px; transition: width .5s; }

/* ── Panels ── */
.panel {
  background: var(--bg2); border-radius: 10px;
  border: 0.5px solid var(--bd);
  padding: 12px 14px;
}
.panel-hd {
  font-size: 10px; font-weight: 500;
  color: var(--t4); letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }

/* ── Pipeline ── */
.pipe-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pipe-lbl { font-size: 11px; color: var(--t2); width: 90px; flex-shrink: 0; }
.pipe-track { flex: 1; height: 4px; background: var(--bd); border-radius: 2px; overflow: hidden; }
.pipe-fill { height: 4px; border-radius: 2px; transition: width .4s; }
.pipe-n { font-size: 11px; font-weight: 500; width: 20px; text-align: right; flex-shrink: 0; }

/* ── Actividad ── */
.act-item { display: flex; gap: 9px; padding: 5px 0; border-bottom: 0.5px solid #141720; align-items: flex-start; }
.act-item:last-child { border-bottom: none; }
.act-dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
.act-txt { font-size: 11px; color: var(--t3); flex: 1; line-height: 1.5; }
.act-time { font-size: 10px; color: var(--t4); }

/* ── Tablas ── */
.tbl-wrap { overflow-x: auto; border-radius: 10px; border: 0.5px solid var(--bd); }
.tbl { width: 100%; border-collapse: collapse; min-width: 380px; }
.tbl th {
  font-size: 10px; color: var(--t4); font-weight: 500;
  text-align: left; padding: 8px 10px;
  border-bottom: 0.5px solid var(--bd);
  background: var(--bg2); white-space: nowrap;
}
.tbl td {
  padding: 6px 10px;
  border-bottom: 0.5px solid #141720;
  font-size: 11px; color: var(--t2);
  vertical-align: middle;
}
.tbl td:first-child { color: #ccc; font-weight: 500; }
.tbl tr:hover td { background: #111520; cursor: pointer; }
.tbl tr.selected td { background: #0d1220; }

.badge {
  display: inline-block; padding: 2px 8px;
  border-radius: 20px; font-size: 10px; font-weight: 500; white-space: nowrap;
}
.stars { color: var(--amber); font-size: 10px; }

/* ── Buscador prospectos ── */
.search-bar { display: flex; gap: 7px; margin-bottom: 8px; flex-wrap: wrap; }
.s-inp {
  flex: 1; min-width: 100px;
  background: var(--bg2); border: 0.5px solid var(--bd);
  border-radius: 8px; padding: 6px 10px;
  color: var(--t1); font-size: 12px; outline: none;
  transition: border-color .15s;
}
.s-inp:focus { border-color: var(--blue); }
.s-inp::placeholder { color: var(--t4); }
.s-sel {
  background: var(--bg2); border: 0.5px solid var(--bd);
  border-radius: 8px; padding: 6px 8px;
  color: var(--t2); font-size: 11px;
  outline: none; cursor: pointer;
}
.s-sel option { background: #1a1d24; }
.chips { display: flex; gap: 5px; margin-bottom: 9px; flex-wrap: wrap; }
.chip {
  padding: 3px 10px; border-radius: 20px; font-size: 11px;
  background: var(--bg2); border: 0.5px solid var(--bd);
  color: var(--t3); cursor: pointer; transition: all .15s;
}
.chip.on { border-color: var(--blue); color: #85B7EB; background: var(--blue-bg); }
.empty { text-align: center; padding: 28px; color: var(--t4); font-size: 12px; }

/* ── Kanban ── */
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.k-col {
  background: var(--bg2); border-radius: 10px;
  border: 0.5px solid var(--bd); padding: 10px;
}
.k-hd {
  font-size: 10px; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase;
  margin-bottom: 8px;
  display: flex; align-items: center; justify-content: space-between;
}
.k-cnt {
  background: var(--bd); border-radius: 10px;
  padding: 1px 7px; font-size: 10px; color: var(--t3);
}
.k-card {
  background: var(--bg3); border-radius: 7px;
  border: 0.5px solid var(--bd);
  padding: 9px; margin-bottom: 6px;
  cursor: pointer; transition: border-color .15s;
}
.k-card:hover { border-color: var(--blue); }
.k-name { font-size: 11px; font-weight: 500; color: #ccc; margin-bottom: 3px; }
.k-meta { font-size: 10px; color: var(--t4); display: flex; gap: 7px; }

/* ── Agente ── */
.agent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.agent-left { display: flex; flex-direction: column; gap: 9px; }
.agent-filters { overflow-y: auto; max-height: 400px; }

.field { margin-bottom: 9px; }
.field label { display: block; font-size: 10px; color: var(--t3); margin-bottom: 4px; }
.a-inp {
  width: 100%; background: var(--bg3);
  border: 0.5px solid var(--bd2); border-radius: 7px;
  color: #ccc; font-size: 12px; padding: 6px 9px;
  font-family: inherit; outline: none; transition: border-color .15s;
}
.a-inp:focus { border-color: var(--blue); }
.a-inp::placeholder { color: var(--t4); }
.a-sel {
  width: 100%; background: var(--bg3);
  border: 0.5px solid var(--bd2); border-radius: 7px;
  color: #ccc; font-size: 12px; padding: 6px 9px;
  font-family: inherit; outline: none; cursor: pointer;
}
.a-sel option { background: #1a1d24; }
.row2f { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Fuentes */
.src-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.src-card {
  background: var(--bg3); border: 0.5px solid var(--bd);
  border-radius: 8px; padding: 9px 11px;
  cursor: pointer; transition: border-color .15s;
}
.src-card.on { border-color: var(--blue); background: #0a1020; }
.src-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 3px; }
.src-name { font-size: 11px; font-weight: 500; color: #ccc; display: flex; align-items: center; gap: 4px; }
.src-card.on .src-name { color: #85B7EB; }
.src-desc { font-size: 10px; color: var(--t3); line-height: 1.4; }
.src-chk {
  width: 15px; height: 15px; border-radius: 3px;
  border: 0.5px solid var(--bd2);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; flex-shrink: 0;
}
.src-card.on .src-chk { background: var(--blue-d); border-color: var(--blue-d); color: #fff; }

/* Filtros */
.fi-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 7px 0; border-bottom: 0.5px solid var(--bg3); gap: 10px;
}
.fi-row:last-child { border-bottom: none; padding-bottom: 0; }
.fi-l { flex: 1; }
.fi-name { font-size: 11px; color: #ccc; margin-bottom: 2px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.fi-desc { font-size: 10px; color: var(--t3); line-height: 1.4; }
.bc { font-size: 9px; padding: 1px 5px; border-radius: 8px; font-weight: 500; }
.bc-crit { background: #2a1010; color: var(--red); }
.bc-rec  { background: var(--blue-bg); color: var(--blue); }
.bc-opt  { background: #1c1f26; color: var(--t3); }
.tog {
  width: 28px; height: 16px;
  background: var(--bd2); border-radius: 8px;
  position: relative; cursor: pointer;
  transition: background .2s; border: none; padding: 0;
  flex-shrink: 0; margin-top: 2px;
}
.tog.on { background: var(--blue-d); }
.tog-t {
  width: 12px; height: 12px; background: #fff;
  border-radius: 50%; position: absolute; top: 2px; left: 2px;
  transition: transform .2s; pointer-events: none;
}
.tog.on .tog-t { transform: translateX(12px); }
.sub-f { margin-top: 5px; display: none; }
.sub-f.show { display: block; }
.sub-inp {
  background: var(--bg3); border: 0.5px solid var(--bd2);
  border-radius: 5px; color: #ccc; font-size: 11px;
  padding: 4px 7px; outline: none; font-family: inherit;
}

/* Botón buscar */
.btn-buscar {
  width: 100%; padding: 10px;
  background: #1a2236; border: 0.5px solid #253050;
  border-radius: 9px; color: #85B7EB;
  font-size: 12px; font-weight: 500;
  cursor: pointer; transition: background .15s;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 8px;
}
.btn-buscar:hover { background: #1e2a42; }
.btn-buscar.running { background: #0d1a10; border-color: #1a4020; color: #5DCAA5; }

/* Progress */
.prog-wrap {
  background: var(--bg2); border-radius: 10px;
  border: 0.5px solid var(--bd); padding: 12px;
  margin-bottom: 10px; margin-top: 10px;
  display: none;
}
.prog-wrap.show { display: block; }
.prog-status-row { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #ccc; margin-bottom: 8px; }
.prog-bar-bg { background: var(--bg3); border-radius: 3px; height: 4px; overflow: hidden; margin-bottom: 8px; }
.prog-bar { height: 4px; background: var(--blue); border-radius: 3px; transition: width .4s; width: 0%; }
.prog-log { font-size: 11px; color: var(--t3); max-height: 100px; overflow-y: auto; }
.pll { display: flex; align-items: flex-start; gap: 6px; line-height: 1.7; }
.pld { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }

/* Resultados */
.res-wrap {
  background: var(--bg2); border-radius: 10px;
  border: 0.5px solid var(--bd); padding: 12px;
  display: none; margin-top: 10px;
}
.res-wrap.show { display: block; }
.res-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 10px; }
.rm { background: var(--bg3); border-radius: 7px; padding: 8px; text-align: center; border: 0.5px solid var(--bd); }
.rm-v { font-size: 17px; font-weight: 500; line-height: 1; margin-bottom: 2px; }
.rm-l { font-size: 10px; color: var(--t3); }

/* Toolbar resultados */
.toolbar { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; flex-wrap: wrap; }
.tbl-left { display: flex; align-items: center; gap: 6px; flex: 1; }
.sel-btn {
  background: var(--bg2); border: 0.5px solid var(--bd);
  border-radius: 6px; padding: 3px 9px;
  color: var(--t2); font-size: 11px; cursor: pointer; transition: all .15s;
}
.sel-btn:hover { color: #ccc; }
.sel-info { font-size: 11px; color: var(--t3); }
.btn-q {
  padding: 4px 10px; background: #1a0d0d;
  border: 0.5px solid #3a1515; border-radius: 6px;
  color: var(--red); font-size: 11px; cursor: pointer;
  display: flex; align-items: center; gap: 4px;
  transition: background .15s;
}
.btn-q:hover { background: #220d0d; }
.btn-q:disabled { opacity: .3; cursor: not-allowed; }
.btn-ag {
  padding: 4px 11px; background: var(--green-bg);
  border: 0.5px solid #1a4020; border-radius: 6px;
  color: #5DCAA5; font-size: 11px; font-weight: 500;
  cursor: pointer; display: flex; align-items: center; gap: 4px;
  transition: background .15s;
}
.btn-ag:hover { background: #111f14; }
.btn-ag:disabled { opacity: .3; cursor: not-allowed; }
.cb {
  width: 14px; height: 14px; border-radius: 3px;
  border: 0.5px solid var(--bd2); background: transparent;
  cursor: pointer; appearance: none; position: relative;
  transition: all .15s; flex-shrink: 0;
}
.cb:checked { background: var(--blue-d); border-color: var(--blue-d); }
.cb:checked::after {
  content: '✓'; color: #fff; font-size: 9px;
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%); line-height: 1;
}
.tag { display: inline-block; padding: 1px 6px; border-radius: 10px; font-size: 10px; white-space: nowrap; }
.t-both { background: #091e16; color: #1D9E75; }
.t-maps { background: var(--blue-bg); color: var(--blue); }
.t-ig   { background: var(--purple-bg); color: var(--purple); }
.btn-anal {
  padding: 2px 8px; background: var(--purple-bg);
  border: 0.5px solid #2a2560; border-radius: 5px;
  color: var(--purple); font-size: 10px; cursor: pointer;
  white-space: nowrap; display: flex; align-items: center; gap: 3px;
  transition: background .15s;
}
.btn-anal:hover { background: #1a1838; }
.btn-x {
  width: 22px; height: 22px; border-radius: 4px; border: none;
  background: transparent; color: var(--t4); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; transition: all .15s;
}
.btn-x:hover { background: #1a0d0d; color: var(--red); }

/* ── Modales ── */
.modal-bg {
  display: none; background: rgba(0,0,0,.8);
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  align-items: flex-start; justify-content: center;
  z-index: 100; padding: 16px; overflow-y: auto;
}
.modal-bg.open { display: flex; }
.modal {
  background: var(--bg2); border-radius: 14px;
  border: 0.5px solid var(--bd2); padding: 18px;
  width: 100%; max-width: 380px; margin: auto;
}
.modal-wide { max-width: 440px; }
.modal-hd {
  font-size: 13px; font-weight: 500; color: var(--t1);
  margin-bottom: 3px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
}
.modal-close { background: none; border: none; color: var(--t3); cursor: pointer; font-size: 17px; flex-shrink: 0; }
.modal-sub { font-size: 10px; color: var(--t3); margin-bottom: 12px; }
.mf { margin-bottom: 9px; }
.mf label { display: block; font-size: 10px; color: var(--t3); margin-bottom: 4px; }
.mf input, .mf select, .mf textarea {
  width: 100%; background: var(--bg3);
  border: 0.5px solid var(--bd2); border-radius: 7px;
  color: #ccc; font-size: 12px; padding: 6px 9px;
  font-family: inherit; outline: none;
}
.mf input:focus, .mf select:focus, .mf textarea:focus { border-color: var(--blue); }
.mf textarea { resize: vertical; min-height: 48px; }
.mf select option { background: #1a1d24; }
.est-sel { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.est-opt {
  padding: 3px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 500; cursor: pointer;
  border: 0.5px solid transparent; transition: all .15s;
}
.btn-save {
  width: 100%; padding: 8px;
  background: #1a2236; border: 0.5px solid #253050;
  border-radius: 7px; color: #85B7EB;
  font-size: 12px; font-weight: 500; cursor: pointer; margin-top: 5px;
  transition: background .15s;
}
.btn-save:hover { background: #1e2a42; }
.btn-cancel {
  flex: 1; padding: 8px; background: transparent;
  border: 0.5px solid var(--bd2); border-radius: 7px;
  color: var(--t3); font-size: 12px; cursor: pointer;
}
.btn-row { display: flex; gap: 7px; margin-top: 5px; }

/* Modal análisis */
.an-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.an-item { background: var(--bg3); border-radius: 7px; padding: 8px 10px; border: 0.5px solid var(--bd); }
.an-lbl { font-size: 10px; color: var(--t3); margin-bottom: 2px; }
.an-val { font-size: 12px; color: #ccc; font-weight: 500; }
.an-val.good { color: var(--green); }
.an-val.warn { color: var(--amber); }
.an-val.bad  { color: var(--red); }
.sc-bar { height: 3px; border-radius: 2px; background: var(--bd); margin-top: 4px; overflow: hidden; }
.sc-fill { height: 3px; border-radius: 2px; }

.dolor-box { background: #120d1e; border: 0.5px solid #2a2050; border-radius: 8px; padding: 10px; margin-bottom: 10px; }
.dolor-title { font-size: 10px; color: var(--purple); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 7px; display: flex; align-items: center; gap: 5px; }
.dolor-item { display: flex; align-items: flex-start; gap: 6px; font-size: 11px; color: #9b94cc; line-height: 1.5; margin-bottom: 4px; }
.dolor-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--purple); flex-shrink: 0; margin-top: 5px; }

.msg-box { background: #0a1520; border: 0.5px solid #1a3050; border-radius: 8px; padding: 10px; margin-bottom: 10px; }
.msg-box-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.msg-box-label { font-size: 10px; color: var(--blue); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.canal-row { display: flex; gap: 5px; }
.c-btn { padding: 3px 9px; border-radius: 5px; font-size: 10px; cursor: pointer; border: 0.5px solid transparent; color: var(--t3); transition: all .15s; background: transparent; }
.c-btn.active { background: #1a2236; border-color: #253050; color: #85B7EB; }
.msg-loading { font-size: 11px; color: var(--t3); display: flex; align-items: center; gap: 6px; padding: 10px 0; }
.msg-txt { font-size: 11px; color: #9db8d4; line-height: 1.7; white-space: pre-wrap; }
.msg-acts { display: flex; gap: 6px; margin-top: 8px; }
.btn-copy {
  flex: 1; padding: 6px;
  background: #1a2236; border: 0.5px solid #253050;
  border-radius: 6px; color: #85B7EB; font-size: 11px;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px;
  transition: background .15s;
}
.btn-copy:hover { background: #1e2a42; }
.btn-regen {
  padding: 6px 10px; background: var(--bg3);
  border: 0.5px solid var(--bd2); border-radius: 6px;
  color: var(--t2); font-size: 11px; cursor: pointer;
  display: flex; align-items: center; gap: 4px;
  transition: background .15s;
}
.btn-regen:hover { background: #1a1d24; }

/* ── Bottom nav móvil ── */
.bottomnav {
  display: none;
  background: var(--bg1); border-top: 0.5px solid var(--bd);
  padding: 5px 0;
  justify-content: space-around;
  position: sticky; bottom: 0;
}
.bnav-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: none; border: none; color: var(--t3);
  cursor: pointer; padding: 4px 8px;
  border-radius: 8px; font-size: 9px; transition: color .15s;
}
.bnav-btn.active { color: var(--blue); }
.bnav-btn i { font-size: 18px; }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 20px; right: 20px;
  background: #1D9E75; color: #fff;
  padding: 7px 14px; border-radius: 8px;
  font-size: 11px; font-weight: 500;
  opacity: 0; transition: opacity .3s;
  pointer-events: none; z-index: 200;
}
.toast.show { opacity: 1; }

/* ── Utilidades ── */
.spin { animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ── */
@media (max-width: 600px) {
  .sidebar { display: none; }
  .bottomnav { display: flex; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .grid2 { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-grid { grid-template-columns: 1fr; }
  .row2f { grid-template-columns: 1fr; }
  .btn-nuevo span { display: none; }
  .res-metrics { grid-template-columns: repeat(2, 1fr); }
  .an-grid { grid-template-columns: 1fr 1fr; }
  .modal { max-width: 100%; }
}
