/* estilos del panel interno (sin dependencias). */
@font-face { font-family: Poppins; src: url('/fonts/poppins-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Poppins; src: url('/fonts/poppins-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
:root {
  --orange: #EF580C; --orange-dark: #B8430A; --steel: #2B2B2B; --ink: #2B2B2B; --soft: #5E6873;
  --line: #DDE2E7; --bg: #F3F5F7; --card: #fff; --ok: #1E7B45; --err: #B3261E; --warn: #8A5A00; --wa: #1E7B45;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 Poppins, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--orange-dark); }
h1 { font-size: 24px; margin: 8px 0 16px; line-height: 1.25; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
h2 { font-size: 17px; margin: 0 0 12px; }
h3 { font-size: 15px; margin: 16px 0 8px; }
code { font-size: 12px; background: var(--bg); padding: 1px 4px; word-break: break-all; }
.muted { color: var(--soft); }
.small { font-size: 13px; }
.r { text-align: right; }
[hidden] { display: none !important; }

/* Barra superior */
.top { background: var(--steel); color: #fff; display: flex; align-items: center; flex-wrap: wrap; padding: 0 16px; position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; padding: 12px 0; margin-right: auto; }
.brand img { height: 26px; width: auto; }
.brand span { font-weight: 600; letter-spacing: .12em; font-size: 12px; background: var(--orange-dark); padding: 2px 8px; }
.top nav { display: flex; flex-wrap: wrap; }
.top nav a { color: #E6E6E6; text-decoration: none; padding: 18px 12px; font-size: 14px; border-bottom: 3px solid transparent; }
.top nav a:hover { color: #fff; }
.top nav a.on { color: #fff; border-bottom-color: var(--orange); }
.top nav a.out { color: #BFC5CB; }
.menu-toggle, .menu-btn { display: none; }
@media (max-width: 900px) {
  .menu-btn { display: block; font-size: 26px; padding: 8px 4px; cursor: pointer; color: #fff; }
  .top nav { display: none; width: 100%; flex-direction: column; padding-bottom: 8px; }
  .menu-toggle:checked ~ nav { display: flex; }
  .top nav a { padding: 12px 4px; border-bottom: 1px solid #3a3a3a; }
  .top nav a.on { border-bottom-color: var(--orange); }
}

.wrap { max-width: 1240px; margin: 0 auto; padding: 16px 16px 48px; }
.card { background: var(--card); border: 1px solid var(--line); padding: 18px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.narrow { max-width: 640px; }
.grid2, .grid3 { display: grid; gap: 16px; align-items: start; }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid2.wide-left { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid2.tight, .grid3.tight { gap: 12px; }
.span2 { grid-column: span 2; }
.span3 { grid-column: span 3; }
@media (max-width: 900px) {
  .grid2, .grid3, .grid2.wide-left { grid-template-columns: minmax(0, 1fr); }
  .span2, .span3 { grid-column: auto; }
}
.row-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions form { margin: 0; }
.actions.sticky { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; border-top: 1px solid var(--line); }

/* Formularios */
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--steel); }
input, select, textarea { font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 1.5px solid #C9D0D6; border-radius: 0; padding: 9px 10px; min-height: 42px; width: 100%; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
input[readonly] { background: var(--bg); }
input[type=checkbox] { width: 18px; height: 18px; min-height: 0; accent-color: var(--orange-dark); }
input[type=file] { border-style: dashed; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
fieldset { border: 0; padding: 0; margin: 0; }
.inline { display: grid; grid-template-columns: 150px 1fr; gap: 8px; }
@media (max-width: 600px) { .inline { grid-template-columns: 1fr; } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
.filters input[type=search] { flex: 1 1 260px; width: auto; }
.filters select { width: auto; }
.filters label { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 18px; border: 1.5px solid var(--orange-dark); background: var(--orange-dark); color: #fff; font: inherit; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #9A3808; border-color: #9A3808; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn.ghost { background: #fff; color: var(--steel); border-color: #C9D0D6; }
.btn.ghost:hover { border-color: var(--steel); }
.btn.wa { background: var(--wa); border-color: var(--wa); }
.btn.danger { background: #fff; color: var(--err); border-color: var(--err); }
.link { background: none; border: 0; padding: 4px; font: inherit; font-size: 13px; color: var(--orange-dark); cursor: pointer; text-decoration: underline; }
.link.danger { color: var(--err); }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }

.flash { padding: 12px 14px; margin: 0 0 16px; border-left: 4px solid var(--ok); background: #E8F4EC; }
.flash.err { border-color: var(--err); background: #FBEAEA; }
.flash.warn { border-color: #C98A00; background: #FFF6DD; }

/* Indicadores */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.kpi { background: var(--card); border: 1px solid var(--line); padding: 14px 16px; color: inherit; text-decoration: none; display: flex; flex-direction: column; }
.kpi span { font-size: 13px; color: var(--soft); }
.kpi strong { font-size: 26px; line-height: 1.2; }
.kpi small { color: var(--soft); }
a.kpi { border-top: 3px solid var(--orange); }
.pipeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; }
.stage { background: var(--card); border: 1px solid var(--line); border-bottom: 3px solid var(--c, var(--line)); padding: 10px; text-decoration: none; color: inherit; display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; gap: 6px; }
.stage strong { font-size: 18px; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi strong { font-size: 22px; } }

.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; background: #E9ECEF; color: var(--steel); white-space: nowrap; vertical-align: middle; }
.b-nueva, .b-borrador { --c: #EF580C; background: #FDE7DA; color: #8A3306; }
.b-contactada, .b-enviada { --c: #2F6FB3; background: #E2EDF8; color: #1D4A7A; }
.b-cotizada { --c: #7A4DB3; background: #EEE6F8; color: #4E2F78; }
.b-negociacion { --c: #C98A00; background: #FFF3D1; color: #6E4B00; }
.b-ganada, .b-aceptada { --c: #1E7B45; background: #E3F3E9; color: #155C33; }
.b-perdida, .b-rechazada { --c: #B3261E; background: #FBE5E4; color: #8A1C16; }

/* Listas y tablas */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list li > a { display: flex; flex-direction: column; color: inherit; text-decoration: none; min-width: 0; }
.list li > a:hover strong { color: var(--orange-dark); }
.list li details { width: 100%; }
.plain { list-style: none; padding: 0; margin: 0 0 12px; line-height: 1.8; word-break: break-word; }
.files { padding-left: 18px; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); }
.card .table-wrap { border: 0; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--soft); padding: 10px 12px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tbody tr[onclick] { cursor: pointer; }
.table tbody tr[onclick]:hover { background: #FAFBFC; }
.table.compact td, .table.compact th { padding: 6px 8px; font-size: 13px; }
.table.preview td { white-space: nowrap; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
/* En celular, cada fila se vuelve una tarjeta */
@media (max-width: 700px) {
  .table:not(.preview) thead { display: none; }
  .table:not(.preview), .table:not(.preview) tbody, .table:not(.preview) tr, .table:not(.preview) td { display: block; width: 100%; }
  .table:not(.preview) tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .table:not(.preview) td { border: 0; padding: 2px 0 2px 106px; text-align: left; position: relative; min-height: 24px; }
  .table:not(.preview) td[data-l]::before { content: attr(data-l); position: absolute; left: 0; top: 4px; width: 96px; color: var(--soft); font-size: 12px; }
  .table:not(.preview) td[colspan] { padding-left: 0; }
}
.pager { display: flex; gap: 16px; justify-content: center; align-items: center; margin-top: 16px; }
.pre { white-space: pre-wrap; font: inherit; background: var(--bg); padding: 12px; margin: 0 0 12px; }

.timeline { list-style: none; padding: 0; margin: 16px 0 0; border-left: 2px solid var(--line); }
.timeline li { padding: 0 0 14px 14px; position: relative; word-break: break-word; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; background: var(--line); border-radius: 50%; }
.timeline li.t-llamada::before, .timeline li.t-whatsapp::before, .timeline li.t-correo::before, .timeline li.t-visita::before { background: var(--orange); }
.timeline li.t-estado::before, .timeline li.t-cotizacion::before { background: var(--steel); }
.timeline li > div { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }

/* Editor de cotización */
.qitems { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.qitem { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--orange); padding: 14px 16px; }
.qitem-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.qitem-head [data-remove] { margin-left: auto; }
.qgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px 12px; }
.qgrid .span2 { grid-column: span 3; }
.qgrid label:has([data-f=codigo]) { grid-column: span 3; }
.qgrid .span3 { grid-column: span 6; }
.qtotal { grid-column: span 2; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; }
.qtotal strong { font-size: 18px; }
@media (max-width: 900px) {
  .qgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qgrid .span2, .qgrid .span3, .qgrid label:has([data-f=codigo]) { grid-column: span 2; }
  .qtotal { grid-column: span 2; flex-direction: row; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 8px; }
}
.totals { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.totals div { display: flex; flex-direction: column; }
.totals span { font-size: 13px; color: var(--soft); }
.totals strong { font-size: 18px; }
.totals .grand strong { color: var(--orange-dark); font-size: 22px; }
@media (max-width: 700px) {
  .totals { grid-template-columns: 1fr; gap: 6px; }
  .totals div { flex-direction: row; justify-content: space-between; align-items: baseline; }
}

/* Acceso */
.auth { max-width: 420px; margin: 8vh auto 0; text-align: center; }
.auth img { height: auto; max-width: 200px; }
.auth form { text-align: left; margin-top: 16px; }

/* Hoja de cotización */
.sheet { background: #fff; border: 1px solid var(--line); padding: 28px; margin: 16px 0; overflow-x: auto; }
@media (max-width: 600px) { .sheet { padding: 14px; } }
@media print {
  @page { margin: 12mm; }
  body { background: #fff; }
  .top, .no-print, .flash { display: none !important; }
  .wrap { padding: 0; max-width: none; }
  .sheet { border: 0; padding: 0; margin: 0; overflow: visible; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Ritmo de ventas */
.kpis:has(.kpi:nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .kpis:has(.kpi:nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chart-wrap { position: relative; }
.chart { width: 100%; height: auto; display: block; }
@media (max-width: 700px) { .chart-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; } .chart { min-width: 640px; } }
.chart .grid { stroke: #E6E9EC; stroke-width: 1; }
.chart .axis { fill: var(--soft); font-size: 11px; font-family: inherit; }
.chart .cross { stroke: #9AA3AB; stroke-width: 1; }
.tip { position: absolute; top: 8px; background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0,0,0,.08); padding: 8px 10px; font-size: 13px; line-height: 1.5; pointer-events: none; white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--soft); }
.legend i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.legend i.dash { background: repeating-linear-gradient(90deg, #5E6873 0 4px, transparent 4px 7px); }
.table tr.tot td { border-top: 2px solid var(--line); font-weight: 600; }
.table.metas input { min-height: 34px; padding: 4px 8px; min-width: 120px; }

/* Análisis */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--line); margin: 0 0 14px; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--soft); font-weight: 600; font-size: 14px; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--orange-dark); }
.share { display: inline-block; width: 90px; height: 6px; background: #EEF1F4; border-radius: 3px; vertical-align: middle; overflow: hidden; }
.share i { display: block; height: 100%; background: var(--orange-dark); border-radius: 0 3px 3px 0; }
.clase { display: inline-block; min-width: 24px; text-align: center; font-weight: 600; font-size: 12px; padding: 1px 6px; border: 1.5px solid currentColor; }
.clase.cA { color: var(--orange-dark); } .clase.cB { color: #2F6FB3; } .clase.cC { color: var(--soft); }
.up { color: var(--ok); white-space: nowrap; } .down { color: var(--err); white-space: nowrap; }
.table.heat td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.table.heat td:first-child { white-space: normal; min-width: 180px; }
.table td.r { white-space: nowrap; }
.tipo-archivo { border: 1.5px solid var(--orange-dark); padding: 10px 14px; margin: 0; }
.tipo-archivo legend { font-weight: 600; padding: 0 6px; }

/* Agenda comercial y visitas */
.err-text { color: var(--err); }
.v-programada { --vc: #2F6FB3; --vb: #E2EDF8; --vt: #1D4A7A; }
.v-confirmada { --vc: #7A4DB3; --vb: #EEE6F8; --vt: #4E2F78; }
.v-en_camino { --vc: #C98A00; --vb: #FFF3D1; --vt: #6E4B00; }
.v-realizada { --vc: #1E7B45; --vb: #E3F3E9; --vt: #155C33; }
.v-no_atendida { --vc: #B3261E; --vb: #FBE5E4; --vt: #8A1C16; }
.v-cancelada { --vc: #8C959E; --vb: #EEF0F2; --vt: #5E6873; }
.badge[class*=" v-"] { background: var(--vb); color: var(--vt); }
.vchip { display: block; border-left: 4px solid var(--vc, var(--line)); background: var(--vb, #fff); color: var(--ink); text-decoration: none; padding: 6px 8px; font-size: 13px; line-height: 1.35; margin: 0 0 6px; word-break: break-word; }
.vchip:hover { filter: brightness(.97); }
.vchip small { display: block; color: var(--soft); font-size: 12px; }
.vchip.v-cancelada { text-decoration: line-through; opacity: .75; }
.vchip-l { display: inline-block; border-left: 4px solid var(--vc); padding: 0 6px; margin: 0 6px 4px 0; }
.tarea-chip { display: block; font-size: 12px; color: var(--soft); text-decoration: none; padding: 2px 0; }
.card .tarea-chip { display: inline-block; background: var(--bg); padding: 2px 8px; margin: 2px 4px 2px 0; color: var(--ink); }
.mas { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1.5px dashed #C9D0D6; color: var(--soft); text-decoration: none; font-size: 18px; flex: none; }
.mas:hover { border-color: var(--orange-dark); color: var(--orange-dark); }
.dia { background: var(--card); border: 1px solid var(--line); }
.hora { display: grid; grid-template-columns: 56px 1fr; border-bottom: 1px solid var(--line); min-height: 44px; }
.hora:last-child { border-bottom: 0; }
.hora-l { font-size: 12px; color: var(--soft); padding: 8px; border-right: 1px solid var(--line); }
.hora-c { padding: 6px 8px; display: flex; flex-direction: column; gap: 0; }
.hora-c .mas { align-self: flex-start; opacity: .5; }
.hora:hover .mas, .hora-c .mas:focus { opacity: 1; }
.hora.vacia { min-height: 38px; }
.semana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.dcol { background: var(--card); border: 1px solid var(--line); padding: 8px; min-height: 160px; }
.dcol.hoy { border-top: 3px solid var(--orange); }
.dcol header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.dcol header a:first-child { color: var(--ink); text-decoration: none; font-size: 13px; }
.dcol header strong { font-size: 18px; }
.dcol .vacio { margin: 0; }
@media (max-width: 900px) {
  .semana { grid-template-columns: 1fr; gap: 8px; }
  .dcol { min-height: 0; }
  .dcol .vacio { display: none; }
}
.mes { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.mes-h { font-size: 12px; color: var(--soft); text-align: center; padding: 4px 0; font-weight: 600; }
.mes-d { background: var(--card); border: 1px solid var(--line); min-height: 96px; padding: 4px 6px; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: 2px; position: relative; overflow: hidden; }
.mes-d:hover { border-color: var(--steel); }
.mes-d.fuera { opacity: .45; }
.mes-d.hoy { border-top: 3px solid var(--orange); }
.mes-d .n { font-size: 13px; font-weight: 600; }
.mchip { font-size: 11px; border-left: 3px solid var(--vc); padding-left: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mes-d .cuenta { display: none; }
@media (max-width: 700px) {
  .mes-d { min-height: 52px; align-items: center; }
  .mes-d .mchip, .mes-d > .muted { display: none; }
  .mes-d .cuenta { display: inline-block; background: var(--orange-dark); color: #fff; font-size: 11px; font-weight: 600; min-width: 20px; text-align: center; border-radius: 10px; padding: 0 5px; }
}
.leyenda { margin-top: 16px; }
.visita-resumen .big { font-size: 18px; margin: 0 0 6px; }
.big-actions .btn { min-height: 52px; font-size: 16px; }
@media (max-width: 600px) { .big-actions, .big-actions form, .big-actions .btn { width: 100%; } }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; }
fieldset.ubicacion, fieldset.punto { border: 1px solid var(--line); padding: 10px 12px; }
fieldset.ubicacion legend { font-size: 13px; font-weight: 600; padding: 0 4px; }
.sync { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; margin-right: 4px; }
.sync.s-ok { background: #E3F3E9; color: #155C33; }
.sync.s-pend { background: #FFF3D1; color: #6E4B00; }
.sync.s-error { background: #FBE5E4; color: #8A1C16; }
.tareas li { align-items: flex-start; flex-wrap: wrap; }
.tareas li.vencida { border-left: 3px solid var(--err); padding-left: 10px; }
.tarea-txt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 220px; }
.aplazar summary { padding: 8px 4px; }

/* Ruta del día */
.ruta-tipo { border-left: 4px solid var(--soft); background: var(--card); padding: 10px 14px; margin: 0 0 14px; display: flex; flex-direction: column; gap: 2px; }
.ruta-tipo.opt { border-left-color: var(--ok); background: #F1F8F3; }
.ruta-tipo.man { border-left-color: #C98A00; background: #FFFBEF; }
.ruta-tipo .fuente { color: var(--soft); }
.mapa { height: 360px; border: 1px solid var(--line); background: #E9ECEF; z-index: 0; }
.mapa-picker { height: 300px; margin-top: 10px; }
@media (max-width: 700px) { .mapa { height: 280px; } }
.paradas { list-style: none; padding: 0; margin: 0; }
.paradas > li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.paradas > li:last-child { border-bottom: 0; }
.paradas .descanso { padding: 6px 0 6px 40px; }
.parada-c { min-width: 0; flex: 1; }
.viaje { margin-bottom: 2px; }
.pin { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--orange-dark); color: #fff; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.pin.s { background: var(--steel); }
.aviso { margin-top: 4px; padding: 2px 8px; display: inline-block; margin-right: 4px; }
.aviso.a-err { background: #FBE5E4; color: #8A1C16; font-weight: 600; }
.aviso.a-warn { background: #FFF3D1; color: #6E4B00; }
.aviso.a-info { background: var(--bg); color: var(--soft); }
.pin-mapa span { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--orange-dark); color: #fff; font: 600 13px/1 Poppins, system-ui, sans-serif; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.pin-mapa.extremo span { background: var(--steel); }
.pin-mapa.v-realizada span { background: var(--ok); }
.rut-box { border: 1.5px dashed var(--orange-dark); background: #FFF8F3; padding: 10px 12px; }
.rut-aviso { margin: 0; padding: 6px 10px; background: var(--bg); }
.rut-aviso.ok { background: #E3F3E9; color: #155C33; }
.rut-aviso.warn { background: #FFF3D1; color: #6E4B00; }
.rut-aviso.err { background: #FBE5E4; color: #8A1C16; }
input.rut-lleno { background: #FFFBEA; border-color: #C98A00; }
/* Calificación comercial y "A quién contactar hoy" */
.pr-p1 { background: #FBE5E4; color: #8A1C16; }
.pr-p2 { background: #FDE7DA; color: #8A3306; }
.pr-p3 { background: #FFF3D1; color: #6E4B00; }
.pr-p4 { background: #E9ECEF; color: var(--steel); }
.pr-inv { background: #E2EDF8; color: #1D4A7A; }
.pr-sc { background: #F1F3F5; color: var(--soft); }
.pr-nc { background: #343A40; color: #fff; }
.table.contactar td { min-width: 90px; }
.table.contactar td:first-child { min-width: 170px; }
fieldset.crit { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
fieldset.crit legend { font-weight: 600; }
details.card > summary { cursor: pointer; }
details.card[open] > summary { margin-bottom: 10px; }
.btn.on { background: var(--steel); color: #fff; }
