:root{
  --blue:#FB3449;
  --blue-d:#D42A3C;
  --bg:#f4f6fa;
  --card:#fff;
  --text:#111;
  --muted:#667085;
  --ok:#067647;
  --warn:#b54708;
  --err:#b42318;
  --border:#e4e7ec;
  --radius:14px;
  --shadow:0 8px 24px rgba(251,52,73,.08);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:Roboto,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;background:var(--bg);color:var(--text);min-height:100%}
a{color:var(--blue);text-decoration:none}
.wrap{max-width:520px;margin:0 auto;padding:16px 16px 96px}
.app-bar{background:var(--blue);color:#fff}
.app-bar-inner{max-width:520px;margin:0 auto;padding:10px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.app-bar-inner.wrap-wide{max-width:1100px}
.brand{display:flex;align-items:center;gap:10px;min-width:0}
.brand-link{display:flex;align-items:center;flex-shrink:0}
.brand-logo{height:48px;width:auto;display:block}
.brand .tag{font-size:12px;color:rgba(255,255,255,.92);font-weight:600;line-height:1.2}
.app-bar .userbar{color:#fff}
.app-bar .userbar .btn,.app-bar .userbar button{color:#fff;border-color:rgba(255,255,255,.45);background:transparent}
.app-bar .userbar .btn:hover,.app-bar .userbar button:hover{background:rgba(255,255,255,.14);color:#fff}
.top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.nav{display:flex;gap:8px;flex-wrap:wrap}
.nav a,.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 14px;border-radius:999px;border:1px solid var(--border);background:#fff;color:var(--text);font-size:14px;font-weight:600;cursor:pointer}
.nav a.active,.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}
.btn.primary:hover{background:var(--blue-d);border-color:var(--blue-d)}
.btn.ghost{background:transparent}
.btn.block{width:100%;padding:14px;border-radius:12px;font-size:16px}
.btn:disabled{opacity:.5;cursor:not-allowed}
.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow);margin-bottom:14px}
.card h2{margin:0 0 8px;font-size:18px}
.muted{color:var(--muted);font-size:13px;line-height:1.45}
label{display:block;font-size:13px;font-weight:700;margin:12px 0 4px}
label i{font-weight:400;color:var(--muted);font-style:normal}
input,select,textarea{width:100%;padding:12px;font-size:16px;border:1px solid #c9cfd8;border-radius:10px;background:#f8fafc;color:inherit}
textarea{min-height:90px;resize:vertical;font-family:Roboto,sans-serif;font-size:13px}
input:focus,select:focus,textarea:focus{outline:2px solid rgba(251,52,73,.25);border-color:var(--blue)}
.err{border-color:#d33 !important}
.msg{color:#d33;font-size:12px;min-height:14px}
.flt{margin-bottom:6px;padding:8px 11px;font-size:15px}
.otro{display:none;margin-top:6px}
.combo{position:relative}
.combo-in{width:100%;padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23667085' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}
.combo-in:disabled{opacity:.65;cursor:not-allowed}
.combo-list{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:40;max-height:220px;overflow:auto;margin:0;padding:6px 0;list-style:none;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow)}
.combo-list li{padding:10px 14px;font-size:15px;cursor:pointer}
.combo-list li:hover,.combo-list li.active{background:#fff1f3;color:var(--blue)}
.combo-list li.combo-other{border-top:1px solid var(--border);color:var(--muted);font-weight:600}
.combo-list li.combo-empty{color:var(--muted);cursor:default;font-size:13px}
.combo-list li.combo-empty:hover{background:transparent;color:var(--muted)}
.chk{display:flex;align-items:center;gap:8px;margin-top:8px;font-size:15px}
.chk input{width:20px;height:20px;accent-color:var(--blue)}
.banner{background:#fff7ed;border:1px solid #fdba74;color:#9a3412;padding:12px 14px;border-radius:12px;font-size:13px;font-weight:700;margin-bottom:14px}
.banner.dev{background:#fef3c7;border-color:#f59e0b;color:#92400e}
.banner.ok{background:#ecfdf3;border-color:#abefc6;color:#067647}
.banner.err{background:#fef3f2;border-color:#fecdca;color:#b42318}
.hero{text-align:center;padding:28px 8px 8px}
.hero .logo{width:64px;height:64px;border-radius:18px;background:var(--blue);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:700;letter-spacing:1px;margin-bottom:12px;box-shadow:var(--shadow)}
.actions{display:grid;gap:10px;margin-top:16px}
.case{display:flex;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid var(--border)}
.case:last-child{border-bottom:0}
.case .t{font-weight:700;font-size:14px}
.case .s{font-size:12px;color:var(--muted);margin-top:2px}
.pill{font-size:11px;font-weight:700;padding:4px 8px;border-radius:999px;background:#fff1f3;color:var(--blue);white-space:nowrap;height:fit-content}
.pill.wait{background:#fff7ed;color:#b54708}
.pill.ok{background:#ecfdf3;color:#067647}
.pill.review{background:#fffbeb;color:#92400e;box-shadow:inset 0 0 0 1px #f59e0b}
.pill.err{background:#fff7ed;color:#9a3412;box-shadow:inset 0 0 0 1px #fdba74}
.pill.no{background:#fde8ec;color:#9b1c2e}
.footer{position:fixed;left:0;right:0;bottom:0;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);border-top:1px solid var(--border);padding:10px 16px}
.footer .inner{max-width:520px;margin:0 auto;display:flex;gap:8px}
.footer a{flex:1;text-align:center;padding:10px 6px;border-radius:12px;font-size:12px;font-weight:700;color:var(--muted)}
.footer a.active{background:#fff1f3;color:var(--blue)}
.hidden{display:none !important}
.userbar{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}
.userbar img{width:28px;height:28px;border-radius:50%}
#g_btn_wrap{display:flex;justify-content:center;margin:18px 0}
pre.payload{white-space:pre-wrap;word-break:break-word;background:#0f172a;color:#e2e8f0;padding:12px;border-radius:10px;font-size:12px}
.toast{position:fixed;left:50%;bottom:88px;transform:translateX(-50%);background:#111;color:#fff;padding:10px 14px;border-radius:999px;font-size:13px;font-weight:600;z-index:50;opacity:0;pointer-events:none;transition:opacity .2s}
.toast.show{opacity:1}

/* —— Gestión de casos (panel ancho) —— */
.wrap-wide{max-width:960px}
.wrap-wide-footer{max-width:960px}
.kpi-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}
@media(min-width:720px){.kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.kpi{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:14px 16px;box-shadow:var(--shadow)}
.kpi-label{font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin-bottom:6px}
.kpi-val{font-size:28px;font-weight:700;color:var(--blue);line-height:1.1}
.kpi-sub{font-size:11px;color:var(--muted);margin-top:4px}
.kpi-list{display:flex;flex-direction:column;gap:4px}
.ag-row,.canal-row{display:flex;align-items:baseline;gap:8px;font-size:13px}
.ag-row span,.canal-row span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ag-row b,.canal-row b{color:var(--blue);font-size:14px}
.canal-row small{color:var(--muted);font-size:11px;min-width:36px;text-align:right}
.filters-card{padding-bottom:12px}
.filters{display:flex;flex-direction:column;gap:12px}
.flt-group{display:flex;flex-direction:column;gap:6px}
.flt-label{font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{border:1px solid var(--border);background:#fff;color:var(--text);font-size:12px;font-weight:700;padding:7px 12px;border-radius:999px;cursor:pointer}
.chip.active{background:var(--blue);border-color:var(--blue);color:#fff}
.flt-row{display:grid;grid-template-columns:1fr;gap:10px}
@media(min-width:640px){.flt-row{grid-template-columns:repeat(3,minmax(0,1fr))}}
.flt-select{margin:0;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.flt-select select{margin-top:4px;font-size:14px;font-weight:600;text-transform:none;letter-spacing:0}
.sync-note{margin:10px 0 0}
.list-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:4px}
.list-head h2{margin:0;font-size:16px}
.case-mgmt{align-items:flex-start;padding:12px 0;text-decoration:none;color:inherit;cursor:pointer;gap:8px}
.case-mgmt .case-main{flex:1;min-width:0}
.case-mgmt .t{font-size:13px;font-weight:650;letter-spacing:-0.01em;line-height:1.3}
.case-mgmt .s{font-size:11px;line-height:1.4;color:var(--muted);margin-top:3px;overflow-wrap:anywhere;word-break:break-word;white-space:normal}
.case-mgmt > .pill{font-size:10px;padding:3px 7px;flex-shrink:0}
.ch-pills{display:flex;flex-wrap:wrap;gap:4px;margin-top:7px}
.ch-pill{font-size:9px;padding:2px 6px;letter-spacing:0.01em}
.case-detail{display:none;margin-top:10px;padding:10px 12px;background:#f8fafc;border:1px solid var(--border);border-radius:10px}
.case-expandable.open .case-detail{display:block}
.detail-ch{font-size:12px;color:var(--muted);padding:3px 0}
.detail-ch b{color:var(--text)}
.banner.alert-ops{background:#fff7ed;border-color:#fdba74;color:#9a3412}
.banner.alert-ops .alert-title{font-size:12px;text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px;opacity:.85}
.banner.alert-ops div+div{margin-top:4px;font-weight:600}
/* gest3 ops dashboard */
.wrap-wide,.wrap-wide-footer{max-width:1100px}
.ops-head{display:flex;align-items:baseline;gap:10px;margin:4px 0 10px;flex-wrap:wrap}
.ops-title{font-size:20px;font-weight:700;margin:0;color:#111827}
.ops-crumb{font-size:11px}
.ops-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:10px}
@media(min-width:720px){.ops-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:1000px){.ops-kpis{grid-template-columns:repeat(8,minmax(0,1fr))}}
.ops-tile{background:#fff;border:1px solid var(--border);border-radius:8px;padding:8px 10px;min-width:0}
.ops-tl{font-size:10.5px;font-weight:600;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ops-tv{font-size:20px;font-weight:700;color:#111827;line-height:1.2;font-variant-numeric:tabular-nums}
.ops-ts{font-size:10.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ops-tile.t-blue{background:var(--blue);border-color:var(--blue)}.ops-tile.t-blue *{color:#fff}
.ops-tile.t-green .ops-tv{color:#15803d}.ops-tile.t-amber .ops-tv{color:#b45309}.ops-tile.t-red .ops-tv{color:#b91c1c}
.ops-bars{padding:10px 12px;margin-bottom:10px}
.ops-bars-h{font-size:11px;font-weight:700;color:var(--muted);margin-bottom:6px;text-transform:uppercase;letter-spacing:.03em}
.ops-bar{display:grid;grid-template-columns:150px 1fr 32px;gap:8px;align-items:center;font-size:12px;margin:3px 0}
.ops-bar span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ops-bar div{background:#fde8ec;border-radius:4px;height:10px}.ops-bar i{display:block;height:100%;background:var(--blue);border-radius:4px}
.ops-bar b{text-align:right;font-variant-numeric:tabular-nums}
.ops-card{padding:10px 12px}
.ops-toolbar{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.ops-toolbar input,.ops-toolbar select{font:inherit;font-size:12px;height:32px;padding:0 8px;border:1px solid var(--border);border-radius:6px;background:#fff;width:auto;margin:0}
.ops-toolbar input{flex:1 1 220px;min-width:160px}
.ops-clear{font:inherit;font-size:12px;height:32px;padding:0 12px;border:1px solid var(--border);border-radius:6px;background:#fff;cursor:pointer}
.ops-meta{display:flex;justify-content:space-between;gap:8px;font-size:11px;margin:8px 0 6px;flex-wrap:wrap}
.ops-tablewrap{overflow-x:auto;display:none}
.ops-table{width:100%;border-collapse:collapse;font-size:12px}
.ops-table th{font-size:10.5px;text-transform:uppercase;letter-spacing:.03em;color:var(--muted);font-weight:700;text-align:left;padding:7px 8px;border-bottom:1px solid var(--border);white-space:nowrap;background:#f8fafc}
.ops-table td{padding:7px 8px;border-bottom:1px solid #eef0f4;white-space:nowrap;vertical-align:middle}
.ops-row{cursor:pointer}.ops-row:hover td{background:#fff5f6}
.ops-row.is-link td:first-child{box-shadow:inset 3px 0 0 var(--blue)}
.c-veh{max-width:200px;overflow:hidden;text-overflow:ellipsis}
.c-num{text-align:right;font-variant-numeric:tabular-nums;font-weight:600}
.c-ch{text-align:center}.c-muted{color:var(--muted);font-size:11.5px}
.ops-ag{display:inline-block;max-width:160px;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;font-size:11px;font-weight:600;background:#fff1f3;color:var(--blue);padding:2px 7px;border-radius:4px}
.ops-table .ch-pill,.ops-mcard .ch-pill{font-size:10px;padding:2px 6px;min-width:0;text-align:center;font-weight:700}
.ops-st{display:inline-block;font-size:10.5px;font-weight:700;padding:2px 8px;border-radius:4px}
.ops-st.ok{background:#dcfce7;color:#15803d}.ops-st.no{background:#fde8ec;color:#9b1c2e}.ops-st.wait{background:#fef3c7;color:#b45309}
.ops-st.review{background:#fffbeb;color:#92400e;box-shadow:inset 0 0 0 1px #f59e0b}
.ops-st.err{background:#fff7ed;color:#9a3412}
.ops-detail td{background:#f8fafc;white-space:normal;font-size:12px}
.ops-empty{font-size:12px;padding:12px 0}
.ops-cards{display:flex;flex-direction:column;gap:6px}
.ops-mcard{border:1px solid var(--border);border-radius:8px;padding:8px 10px;font-size:12px;cursor:pointer}
.ops-mcard .m1{display:flex;justify-content:space-between;gap:8px;align-items:center}
.ops-mcard .m2{color:var(--muted);font-size:11.5px;margin:2px 0;overflow-wrap:anywhere}
.ops-mcard .m3{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:11px}
.m-detail{margin-top:6px;font-size:11.5px}
@media(min-width:720px){.ops-tablewrap{display:block}.ops-cards{display:none}}

.ops-btn{font:inherit;font-size:12px;height:32px;padding:0 14px;border:1px solid var(--blue);border-radius:6px;background:var(--blue);color:#fff;font-weight:700;cursor:pointer}
.ops-btn:hover{background:var(--blue-d)}

/* Mis consultas: listado mínimo + filtros plegables + ficha */
.ops-filt-toggle{display:none}
.q-list{display:flex;flex-direction:column;gap:8px;margin-top:4px}
.q-card{border:1px solid var(--border);border-radius:10px;padding:12px 14px;background:#fff;cursor:pointer}
.q-card:hover{border-color:#f5b4bb;background:#fff8f9}
.q-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.q-ag{font-size:11px;font-weight:700;color:var(--blue);background:#fff1f3;padding:2px 8px;border-radius:4px;max-width:70%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.q-cli{font-size:15px;font-weight:700;margin:8px 0 6px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.q-bot{display:flex;align-items:center;justify-content:space-between;gap:10px}
.q-date{font-size:11px;color:var(--muted)}
.q-more{font-size:12px;font-weight:700;color:var(--blue);white-space:nowrap}
.q-more:hover{text-decoration:underline}
.ops-st.void,.pill.void{background:#f2f4f7;color:#667085;box-shadow:none}

@media(max-width:719px){
  .ops-filt-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;height:36px;margin:0 0 8px;padding:0 12px;border:1px solid var(--border);border-radius:8px;background:#fff;font:inherit;font-size:13px;font-weight:700;color:var(--blue);cursor:pointer}
  .ops-filt-toggle::after{content:"▾";font-size:11px;color:var(--muted)}
  .ops-filters.open .ops-filt-toggle::after{content:"▴"}
  #fltPanel{display:none}
  .ops-filters.open #fltPanel{display:block}
}

/* Ficha de una consulta */
.ficha-back{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:var(--blue);margin:0 0 10px;background:none;border:0;padding:0;cursor:pointer;font-family:inherit}
.ficha-back:hover{text-decoration:underline}
.ficha{padding:16px}
.ficha-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:4px}
.ficha-cli{font-size:20px;font-weight:700;margin:0 0 4px;line-height:1.25;word-break:break-word}
.ficha-ag{font-size:13px;font-weight:700;color:var(--blue);margin:0 0 12px}
.ficha-dl{display:grid;grid-template-columns:1fr;gap:10px;margin:0 0 16px}
@media(min-width:520px){.ficha-dl{grid-template-columns:1fr 1fr}}
.ficha-item{min-width:0}
.ficha-item .k{font-size:10.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin-bottom:2px}
.ficha-item .v{font-size:14px;font-weight:600;line-height:1.35;overflow-wrap:anywhere}
.ficha-chs{display:flex;flex-direction:column;gap:8px}
.ficha-ch{border:1px solid var(--border);border-radius:10px;padding:10px 12px;background:#f8fafc}
.ficha-ch-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px}
.ficha-ch-top b{font-size:14px}
.ficha-ch-meta{font-size:12px;color:var(--muted);display:flex;flex-wrap:wrap;gap:8px 14px}
.ficha-ch-meta a{font-weight:700}
.ficha-foot{margin-top:14px;font-size:12px;color:var(--muted)}
.ficha-live{display:inline-block;margin-top:12px;font-size:13px;font-weight:700}

/* Mejor opción + compartir + seguimiento */
.best-card{border:1px solid var(--border);border-radius:12px;padding:14px 16px;background:#fff;margin:0 0 14px;box-shadow:var(--shadow)}
.best-kicker{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--blue);margin:0 0 10px}
.best-block{margin:0 0 12px;padding:0 0 12px;border-bottom:1px solid var(--border)}
.best-block:last-of-type{margin:0;padding:0;border:0}
.best-block-h{font-size:11px;font-weight:700;color:var(--muted);margin:0 0 4px}
.best-bank{font-size:16px;font-weight:700;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.best-neto{font-size:20px;font-weight:700;color:var(--blue);margin:4px 0 2px}
.best-cuota{font-size:13px;font-weight:600;color:var(--text)}
.best-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px}
.best-share{margin-top:12px}
.share-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 14px;border-radius:10px;border:0;background:var(--blue);color:#fff;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.share-btn:hover{background:var(--blue-d)}
.share-btn-mini,.share-btn-ch{padding:6px 10px;font-size:12px;border-radius:8px;background:transparent;color:var(--blue);border:1px solid var(--blue)}
.share-btn-mini:hover,.share-btn-ch:hover{background:var(--blue);color:#fff}
.share-pdf{font-size:13px;font-weight:700}
.seg-select{font:inherit;font-size:12px;height:28px;padding:0 8px;border:1px solid var(--border);border-radius:6px;background:#fff}
.ops-st.seg-presentado{background:#fff1f3;color:var(--blue)}
.seg-box{margin:16px 0 0;padding:14px 0 0;border-top:1px solid var(--border)}
.seg-box h3{margin:0 0 8px;font-size:14px;font-weight:700}
.seg-box textarea{min-height:72px;font-family:inherit;font-size:14px}
.seg-fecha{font-size:11px;color:var(--muted);margin-top:6px}
.q-pills{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.conv-row{display:flex;justify-content:space-between;gap:8px;font-size:12px;margin:3px 0}
.conv-row b{font-variant-numeric:tabular-nums}
.ficha-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 4px}

.plazo-switch{margin:8px 0 0}
.plazo-chips,.ch-opt-plazos.plazo-chips{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
.plazo-chip,button.plazo-chip{font:inherit;font-size:12px;font-weight:700;padding:6px 10px;border:1px solid var(--border);border-radius:999px;background:#fff;color:var(--text);cursor:pointer}
.plazo-chip.is-sel,button.plazo-chip.is-sel{background:var(--blue);color:#fff;border-color:var(--blue)}
.plazo-tipo{font-size:11px;color:var(--muted);font-weight:700;margin-top:4px}
.req-box{margin:8px 0 0;border:1px solid var(--border);border-radius:10px;padding:8px 12px;background:#fafafa}
.req-box summary{cursor:pointer;font-weight:700;font-size:13px;color:var(--text)}
.req-list{margin:8px 0 4px;padding-left:18px;font-size:13px;line-height:1.4}
.req-list li{margin:4px 0}
.aviso-nota{font-size:12px;color:var(--muted)!important;font-weight:500}
#prefillNote{margin:0 0 14px}
.best-pm{color:var(--muted);font-size:12px;font-weight:500;margin-top:2px}
.best-tip{margin-top:12px;padding:10px 12px;border-radius:10px;background:#fff4f5;border:1px solid #fecdd3;font-size:13px;line-height:1.4}
/* Mis consultas: tabla estilo fintech (una tipografía, color solo para el estado) */
.q-list{gap:0;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#fff}
.q-head{display:none}
.q-card{display:grid;grid-template-columns:1fr auto;grid-template-areas:"ag st" "cli cli" "date more";gap:2px 12px;
  padding:12px 14px;border:0;border-bottom:1px solid var(--border);border-radius:0;background:#fff;cursor:pointer;
  font-size:14px;font-weight:400;color:var(--text);font-variant-numeric:tabular-nums}
.q-card:last-child{border-bottom:0}
.q-card:hover{background:#fafafa}
.q-ag{grid-area:ag;color:var(--muted);font-size:13px;background:none;padding:0;border-radius:0;font-weight:400;max-width:none}
.q-cli{grid-area:cli;margin:0;font-size:15px;font-weight:500;color:var(--text)}
.q-date{grid-area:date;color:var(--muted);font-size:13px}
.q-st{grid-area:st;display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:400;color:var(--text);white-space:nowrap}
.q-st i{width:7px;height:7px;border-radius:50%;background:#94a3b8;display:inline-block}
.q-st.st-ok i{background:#16a34a}
.q-st.st-review i{background:#f59e0b}
.q-st.st-no i{background:#ef4444}
.q-st.st-err i{background:#64748b}
.q-more{grid-area:more;justify-self:end;font-size:13px;font-weight:500;color:var(--blue);text-decoration:none}
@media (min-width: 900px){
  .q-list{max-width:760px;margin:0 auto}
  .q-card{padding:14px 20px}
}


/* Detalle de consulta: estilo limpio (una tipografía, color solo en estado y acciones) */
.ficha{padding:20px}
.cx-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin:0 0 16px}
.cx-name{margin:0;font-size:20px;font-weight:500;color:var(--text);line-height:1.3}
.cx-sub{font-size:13px;color:var(--muted);margin-top:2px}
.cx-facts{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px;padding:14px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin:0 0 16px}
.cx-veh{grid-column:1/-1}
@media(min-width:900px){.cx-facts{grid-template-columns:2fr 1fr 1fr 1fr}.cx-veh{grid-column:auto}}
.cx-fact .k{font-size:12px;color:var(--muted);margin-bottom:2px}
.cx-fact .v{font-size:14px;font-weight:400;color:var(--text);overflow-wrap:anywhere}
.ficha .best-card{box-shadow:none;border:1px solid var(--border);border-left:3px solid var(--blue);border-radius:10px;padding:16px}
.best-kicker{font-size:12px;font-weight:500;letter-spacing:.06em;color:var(--blue)}
.best-block-h{font-size:12px;font-weight:400;color:var(--muted)}
.best-bank{font-size:15px;font-weight:500;gap:10px}
.best-bank .q-st{font-size:13px}
.best-neto{font-size:24px;font-weight:500;color:var(--text);margin:6px 0 2px}
.best-neto span{font-size:13px;font-weight:400;color:var(--muted)}
.best-cuota{font-size:13px;font-weight:400;color:var(--muted)}
.best-link{font-size:13px;font-weight:500;color:var(--blue);text-decoration:none}
.best-link:hover{text-decoration:underline}
.best-share{margin-top:14px}
.best-tip{background:#f8fafc;border:1px solid var(--border);color:var(--text);font-size:13px}
.cx-h3{font-size:14px;font-weight:500;margin:22px 0 8px;color:var(--text)}
.cx-table{border:1px solid var(--border);border-radius:10px;overflow:hidden}
.cx-row{display:grid;grid-template-columns:1fr auto;grid-template-areas:"ch st" "neto pl" "cu act" "doc doc";gap:6px 12px;padding:12px 14px;border-bottom:1px solid var(--border);font-size:14px;align-items:center;font-variant-numeric:tabular-nums}
.cx-row:last-child{border-bottom:0}
.cx-thead{display:none}
.cx-c-ch{grid-area:ch;font-weight:500}
.cx-c-st{grid-area:st;justify-self:end}
.cx-c-neto{grid-area:neto}.cx-c-pl{grid-area:pl;justify-self:end;text-align:right}
.cx-c-cu{grid-area:cu}.cx-c-act{grid-area:act;justify-self:end;display:flex;gap:14px}
.cx-c-doc{grid-area:doc}
.cx-k{display:block;font-size:12px;color:var(--muted)}
.cx-row.is-off{grid-template-areas:"ch st"}
.cx-row.is-off .cx-c-neto,.cx-row.is-off .cx-c-pl,.cx-row.is-off .cx-c-cu,.cx-row.is-off .cx-c-act{display:none}
.cx-row.is-off .cx-c-ch{color:var(--muted);font-weight:400}
.cx-c-act a,.cx-linkbtn{font:inherit;font-size:13px;font-weight:500;color:var(--blue);background:none;border:0;padding:0;cursor:pointer;text-decoration:none}
.cx-c-act a:hover,.cx-linkbtn:hover{text-decoration:underline}
.cx-doc summary{font-size:12px;color:var(--muted);cursor:pointer;list-style:none}
.cx-doc summary::before{content:"▸ ";}
.cx-doc[open] summary::before{content:"▾ ";}
.cx-doc .req-list{font-size:13px;color:var(--text)}
.cx-note{font-size:12px;color:var(--muted);margin:8px 2px 0}
.cx-actions{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0 0}
.cx-actions .btn{font-weight:500}
.cx-foot-link{display:inline-block;margin-top:14px;font-size:13px;color:var(--muted)}
@media(min-width:900px){
  .cx-row{grid-template-columns:1.1fr 1.2fr 1.1fr .8fr 1.2fr 1.3fr;grid-template-areas:"ch st neto pl cu act" "doc doc doc doc doc doc";gap:4px 12px}
  .cx-thead{display:grid;background:#f8fafc;font-size:12px;color:var(--muted);padding:9px 14px}
  .cx-c-st,.cx-c-pl{justify-self:start;text-align:left}
  .cx-k{display:none}
  .cx-row.is-off{grid-template-areas:"ch st neto pl cu act"}
  .cx-row.is-off .cx-c-neto,.cx-row.is-off .cx-c-pl,.cx-row.is-off .cx-c-cu{display:block;color:var(--muted)}
  .cx-row.is-off .cx-c-act{display:flex}
}

/* Confirmar */
.cx-confirm{font:inherit;font-size:13px;font-weight:500;color:#fff;background:var(--blue);border:0;border-radius:8px;padding:6px 12px;cursor:pointer}
.cx-confirm:hover{background:var(--blue-d)}
.cx-c-act{align-items:center}
.cx-conf{border:1px solid var(--border);border-radius:10px;padding:12px 14px;margin:0 0 14px;background:#fff}
.cx-conf .q-st{font-size:14px;font-weight:500}
.cx-conf-sub{font-size:13px;color:var(--muted);margin-top:2px}
.cx-conf-msg{font-size:13px;color:var(--text);margin-top:6px}
.cf-back{position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:100;display:flex;align-items:flex-end;justify-content:center}
@media(min-width:700px){.cf-back{align-items:center}}
.cf-sheet{background:#fff;width:100%;max-width:460px;max-height:92vh;overflow:auto;border-radius:16px 16px 0 0;padding:20px}
@media(min-width:700px){.cf-sheet{border-radius:14px}}
.cf-sheet h3{margin:0 0 4px;font-size:18px;font-weight:500}
.cf-sub{font-size:13px;color:var(--muted);margin:0 0 12px}
.cf-form label{display:block;font-size:13px;color:var(--muted);margin:10px 0 4px}
.cf-form input,.cf-form select{width:100%}
.cf-err{font-size:13px;color:#b91c1c;min-height:18px;margin-top:10px}
.cf-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:8px}
.cx-c-act a,.cx-c-act button{white-space:nowrap}
@media(min-width:900px){.cx-row{grid-template-columns:1fr 1.1fr 1fr .7fr 1.1fr 1.9fr}}
.cx-c-doc{display:flex;flex-direction:column;gap:6px}
.cx-plazos summary{color:var(--blue);font-weight:500}
.cx-pl{border-collapse:collapse;margin:8px 0 4px;font-size:14px;font-variant-numeric:tabular-nums;min-width:260px}
.cx-pl th{font-weight:500;color:var(--muted);text-align:left;padding:6px 16px 6px 0;font-size:12px;border-bottom:1px solid var(--border)}
.cx-pl td{padding:6px 16px 6px 0;border-bottom:1px solid var(--border)}
.cx-pl tr.is-pedido td{font-weight:500}
.cx-pl-note{font-size:12px;color:var(--muted);margin:4px 0 0}
.cx-recot{display:flex;align-items:flex-end}
.cx-recot .btn{font-weight:500;padding:8px 18px;border-color:var(--blue);color:var(--blue)}
@media(min-width:900px){.cx-facts{grid-template-columns:2fr 1fr 1fr 1fr auto}}
.cx-c-neto,.cx-c-cu,.cx-pl td{white-space:nowrap}
@media(max-width:899px){
  .cx-row{grid-template-areas:"ch st" "neto pl" "cu cu" "act act" "doc doc"}
  .cx-c-act{justify-self:start;margin-top:4px}
}
.cx-pl{width:100%;max-width:560px;table-layout:fixed}
.cx-pl th:nth-child(1),.cx-pl td:nth-child(1){width:30%}
.cx-pl th:nth-child(2),.cx-pl td:nth-child(2){width:25%}
.cx-pl th:nth-child(3),.cx-pl td:nth-child(3){width:25%}
.cx-pl th:nth-child(4),.cx-pl td:nth-child(4){width:20%;text-align:right;padding-right:0}
@media (max-width:600px){
  .cx-pl{table-layout:auto;font-size:12.5px}
  .cx-pl th,.cx-pl td{width:auto!important;padding:6px 6px 6px 0}
  .cx-pl td:nth-child(4),.cx-pl th:nth-child(4){padding-right:0}
  .cx-pl .cx-confirm{padding:5px 8px;font-size:12px}
  .cx-pl-tipo{display:block;font-size:11px;color:var(--muted);font-weight:400}
}
.cx-revision{margin:8px 0 4px;padding:8px 12px;border-left:3px solid var(--blue);background:rgba(228,35,59,.05);font-size:13px;line-height:1.4;border-radius:4px}
.cx-pl-boxes{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:12px;margin:8px 0;max-width:900px}
.cx-pl-box{border:1px solid rgba(127,127,127,.25);border-radius:10px;padding:10px 12px}
.cx-pl-box-h{font-weight:700;font-size:13px;letter-spacing:.04em;text-transform:uppercase;margin-bottom:4px;color:var(--blue)}
.cx-pl-box .cx-pl{max-width:none}
.cx-pl tr.is-pedido td{font-weight:700}
/* ---- Resultado por canal: una tarjeta por canal (dic 2026) ---- */
.cx-chs{display:flex;flex-direction:column;gap:14px;margin-top:8px}
.cx-ch{background:#fff;border:1px solid #e3e6eb;border-radius:12px;box-shadow:0 1px 2px rgba(16,24,40,.05);overflow:hidden}
.cx-ch-head{display:grid;grid-template-columns:minmax(170px,1.1fr) 3fr auto;align-items:center;gap:16px;padding:14px 18px;background:#f8f9fb;border-bottom:1px solid #e3e6eb}
.cx-ch.is-off .cx-ch-head{grid-template-columns:1fr auto;border-bottom:0;background:#fbfbfc}
.cx-ch.is-off{opacity:.75}
.cx-ch-id{display:flex;flex-direction:column;gap:4px}
.cx-ch-name{font-weight:700;font-size:16px;color:#111827}
.cx-ch-none{color:#6b7280;font-size:13px}
.cx-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-left:1px solid #e3e6eb}
.cx-stat{padding:2px 16px;border-right:1px solid #e3e6eb}
.cx-stat:last-child{border-right:0}
.cx-stat-k{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:#6b7280;margin-bottom:2px}
.cx-stat-v{font-size:15px;font-weight:600;color:#111827;font-variant-numeric:tabular-nums;white-space:nowrap}
.cx-stat-v small{font-weight:500;color:#6b7280;font-size:11px}
.cx-stat.is-main .cx-stat-v{font-size:18px;font-weight:700}
.cx-ch-act{display:flex;gap:8px;justify-content:flex-end}
.cx-ch-act a,.cx-ch-act .cx-linkbtn{display:inline-flex;align-items:center;padding:6px 12px;border:1px solid #d0d5dd;border-radius:8px;background:#fff;font-size:13px;font-weight:600;color:#344054;text-decoration:none;cursor:pointer}
.cx-ch-act a:hover,.cx-ch-act .cx-linkbtn:hover{background:#f2f4f7}
.cx-ch-body{padding:14px 18px 16px}
.cx-ch-body .cx-doc{margin-top:10px}
/* tablas de plazos */
.cx-pl-boxes{max-width:none;gap:14px;margin:0}
.cx-pl-box{padding:0;border:1px solid #e3e6eb;border-radius:10px;overflow:hidden;background:#fff}
.cx-pl-box-h{margin:0;padding:9px 14px;background:#fdf1f2;border-bottom:1px solid #f3d3d7;color:var(--blue);font-size:12px}
.cx-pl-box .cx-pl-note{padding:6px 14px 10px;margin:0}
.cx-pl{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;table-layout:auto}
.cx-pl th{background:#f8f9fb;font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:#6b7280;font-weight:600;padding:8px 14px;border-bottom:1px solid #e3e6eb;text-align:left}
.cx-pl td{padding:8px 14px;border-bottom:1px solid #eef0f3;font-size:14px;color:#1f2937;width:auto!important}
.cx-pl th,.cx-pl td{width:auto!important}
.cx-pl th:nth-child(2),.cx-pl th:nth-child(3),.cx-pl td:nth-child(2),.cx-pl td:nth-child(3){text-align:right}
.cx-pl tr:last-child td{border-bottom:0}
.cx-pl tbody tr:hover td,.cx-pl tr:hover td{background:#fafbfc}
.cx-pl tr.is-pedido td{background:#fff6f7;font-weight:700}
.cx-pl-chip{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:999px;background:var(--blue);color:#fff;font-size:10px;font-weight:700;letter-spacing:.03em;vertical-align:middle}
.cx-pl td.cx-pl-btn{text-align:right;padding:5px 12px}
.cx-pl .cx-confirm{background:#fff;color:var(--blue);border:1px solid var(--blue);padding:4px 12px;font-size:12.5px;border-radius:7px;font-weight:600;box-shadow:none}
.cx-pl .cx-confirm:hover{background:var(--blue);color:#fff}
.cx-ch-body > .cx-pl{border:1px solid #e3e6eb;border-radius:10px;overflow:hidden;max-width:620px}
.cx-ch-body > details.cx-plazos > .cx-pl{border:1px solid #e3e6eb;max-width:620px;margin-top:6px}
@media (max-width:820px){
  .cx-ch-head{grid-template-columns:1fr;gap:10px;padding:12px 14px}
  .cx-ch-id{flex-direction:row;align-items:center;justify-content:space-between}
  .cx-stats{border-left:0;border-top:1px solid #e3e6eb;padding-top:8px}
  .cx-stat{padding:2px 10px 2px 0}
  .cx-stat-v{font-size:14px}
  .cx-stat.is-main .cx-stat-v{font-size:16px}
  .cx-ch-act{justify-content:flex-start}
  .cx-ch-body{padding:12px 12px 14px}
  .cx-pl th,.cx-pl td{padding:7px 8px;font-size:13px}
}
.cx-ch-body > table.cx-pl{border:1px solid #e3e6eb!important;border-radius:10px;border-collapse:separate;border-spacing:0;overflow:hidden}
.cx-ch-body > table.cx-pl td{border-bottom:0}
@media (max-width:600px){
  .cx-pl-chip{display:none}
  .cx-pl th,.cx-pl td{padding:7px 5px;font-size:12.5px}
  .cx-pl th:first-child,.cx-pl td:first-child{padding-left:10px}
  .cx-pl td.cx-pl-btn{padding:4px 8px 4px 2px}
  .cx-pl .cx-confirm{padding:4px 7px;font-size:11.5px}
  .cx-pl-box{overflow:hidden}
  .cx-stat-v small{display:block}
}
.cx-confirm .cf-ico{display:none}
@media (max-width:600px){
  .cx-pl .cx-confirm{width:30px;height:30px;padding:0;border-radius:50%;border:1.5px solid #16a34a;color:#16a34a;background:#fff;display:inline-flex;align-items:center;justify-content:center}
  .cx-pl .cx-confirm:hover,.cx-pl .cx-confirm:active{background:#16a34a;color:#fff}
  .cx-pl .cx-confirm .cf-txt{display:none}
  .cx-pl .cx-confirm .cf-ico{display:inline;font-size:16px;font-weight:700;line-height:1}
}
.cx-pl-boxes{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:820px){.cx-pl-boxes{grid-template-columns:1fr}}
.cx-logo{height:26px;width:auto;max-width:150px;object-fit:contain;display:block}
.ch-logo{display:inline-flex;align-items:center;background:#fff;border-radius:8px;padding:5px 9px}
.ch-logo img{height:22px;width:auto;max-width:130px;object-fit:contain;display:block}
@media (max-width:600px){.cx-logo{height:22px}}
.best-bank{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.best-logo{display:inline-flex;align-items:center;background:#fff;border-radius:8px;padding:4px 8px;border:1px solid rgba(0,0,0,.06)}
.best-logo img{height:24px;width:auto;max-width:140px;object-fit:contain;display:block}
.cf-form textarea{width:100%;box-sizing:border-box;min-height:56px;font:inherit;font-size:14px;padding:8px 10px;border-radius:8px;border:1px solid #d0d5dd}
.cf-form .cf-check{display:flex;align-items:center;gap:8px;color:inherit;font-weight:600;margin-top:14px;cursor:pointer}
.cf-form .cf-check input{width:auto;margin:0}

/* En celulares: letra de 16px en campos para que iOS no haga zoom solo al tocarlos (el zoom con los dedos queda habilitado). */
@media (pointer:coarse){input,select,textarea{font-size:16px !important}}
