:root {
  /* Papel cartográfico: base fría gris-verdosa, tinta verde profunda, un solo acento */
  --bg: #F2F4EE;
  --panel: #FFFFFF;
  --ink: #11261F;
  --ink-2: #3F524A;
  --ink-3: #5B6D65;
  --line: #D3DACF;
  --line-2: #E3E8DF;
  --brand: #0F6B5C;
  --brand-2: #0A5246;
  --brand-soft: #DDEBE5;
  --accent: #F29A1F;
  --accent-2: #DB8509;
  --ok: #1E7A45;
  --warn: #9A6A12;
  --err: #B8381F;
  --radius: 8px;
  --shadow: 0 1px 0 rgba(17, 38, 31, .05);
  --sidebar: 220px;
  --f-display: "Archivo", "Hanken Grotesk", system-ui, sans-serif;
  --f-text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--f-text);
  font-size: 14px; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .5em; letter-spacing: -.01em; font-family: var(--f-display); }
h1 { font-size: 22px; } h2 { font-size: 17px; } h3 { font-size: 14px; }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }
.hidden { display: none !important; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

/* Botones e inputs */
button, .btn {
  font: inherit; border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  padding: 7px 12px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
button:hover { border-color: #c6d2ce; background: #fafcfb; }
button.primary { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
button.primary:hover { background: var(--brand-2); }
button.accent { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 700; }
button.accent:hover { background: var(--accent-2); border-color: var(--accent-2); }
button.ghost { border-color: transparent; background: transparent; }
button.danger { color: var(--err); }
button:disabled { opacity: .5; cursor: not-allowed; }
input, select, textarea {
  font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 10px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
input[type=checkbox] { width: auto; accent-color: var(--brand); }
label.f { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin: 10px 0 4px; }
textarea { min-height: 80px; resize: vertical; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

/* Layout */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; height: 100vh; }
.side { background: var(--ink); color: #cfe0db; display: flex; flex-direction: column; padding: 16px 10px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; color: #fff; padding: 4px 10px 18px; }
.logo .dot { width: 26px; height: 26px; flex: none; background: url(/icon.svg) center/contain no-repeat; }
.nav a { display: flex; align-items: center; gap: 10px; color: #cfe0db; padding: 9px 12px; border-radius: 8px; margin-bottom: 2px; }
.nav a:hover { background: rgba(255,255,255,.06); text-decoration: none; }
.nav a.on { background: rgba(43,181,156,.18); color: #fff; font-weight: 600; }
.side .pie { margin-top: auto; font-size: 12px; padding: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.side .pie b { color: #fff; }
.main { overflow: auto; display: flex; flex-direction: column; min-width: 0; }
.top { display: flex; align-items: center; gap: 12px; padding: 14px 22px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.content { padding: 18px 22px; flex: 1; min-height: 0; }
.banner { padding: 10px 22px; background: #fff4e5; color: #7a4b0c; border-bottom: 1px solid #f5d9ad; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.kpi .v { font-family: var(--f-display); font-size: 28px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi .l { color: var(--ink-3); font-size: 13px; font-weight: 500; }

/* Buscar */
.buscar { display: grid; grid-template-columns: 300px 1fr; gap: 16px; height: calc(100vh - 100px); }
.filtros { overflow: auto; }
.filtros .card { padding: 12px 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line); background: #fff; cursor: pointer; user-select: none; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip:hover { border-color: var(--brand); }
.chip .x { margin-left: 4px; opacity: .7; }
.lista-mun { max-height: 160px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; margin-top: 6px; }
.lista-mun label { display: flex; gap: 6px; align-items: center; padding: 2px 0; font-size: 13px; }
.sugerencias { border: 1px solid var(--line); border-radius: 8px; margin-top: 4px; max-height: 200px; overflow: auto; background: #fff; }
.sugerencias div { padding: 6px 8px; cursor: pointer; font-size: 12px; }
.sugerencias div:hover { background: var(--brand-soft); }
.resultados { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; padding: 8px 12px; color: var(--ink-2); }
.tabs button.on { border-bottom-color: var(--brand); color: var(--ink); font-weight: 600; }
.panel-tab { flex: 1; min-height: 0; overflow: auto; }
#mapa { height: 100%; min-height: 420px; border-radius: var(--radius); border: 1px solid var(--line); }

table.t { width: 100%; border-collapse: collapse; background: var(--panel); }
table.t th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 9px 10px; border-bottom: 1px solid var(--line); background: #F7F9F4; position: sticky; top: 0; }
table.t td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr:hover td { background: #fafcfb; }
table.t tr.click { cursor: pointer; }
.nombre { font-weight: 600; }
.sub { color: var(--ink-3); font-size: 12px; }
.ico { display: inline-flex; gap: 4px; }
.ico span { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--brand-soft); color: var(--brand-2); }
.ico span.no { background: #f1f3f2; color: #b3bdb9; }
.score { display: inline-block; min-width: 34px; text-align: center; font-weight: 700; padding: 2px 6px; border-radius: 6px; font-size: 12px; }
.s-hi { background: #dff3e7; color: #17663a; } .s-md { background: #fff1d6; color: #8a5a10; } .s-lo { background: #f1f3f2; color: #6b7773; }
.badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #eef1f0; color: var(--ink-2); white-space: nowrap; }
.badge.b-ok { background: #dff3e7; color: #17663a; } .badge.b-err { background: #fbe3e0; color: #9c2b1f; } .badge.b-brand { background: var(--brand-soft); color: var(--brand-2); }
.barra { position: sticky; bottom: 0; background: var(--panel); border-top: 1px solid var(--line); padding: 10px; display: flex; gap: 10px; align-items: center; }
.paginacion { display: flex; gap: 6px; align-items: center; }

/* Barras de mercado */
.hbar { display: grid; grid-template-columns: 140px 1fr 70px; gap: 8px; align-items: center; margin: 4px 0; font-size: 13px; }
.hbar .b { height: 10px; background: var(--brand-soft); border-radius: 5px; overflow: hidden; }
.hbar .b i { display: block; height: 100%; background: var(--brand); border-radius: 5px; }
.hbar .n { text-align: right; font-variant-numeric: tabular-nums; }

/* Kanban */
.kanban { display: grid; grid-template-columns: repeat(7, minmax(210px, 1fr)); gap: 10px; overflow-x: auto; height: calc(100vh - 150px); }
.col { background: #eef2f0; border-radius: var(--radius); display: flex; flex-direction: column; min-height: 0; }
.col h3 { padding: 10px 12px 6px; margin: 0; display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.col .cards { padding: 6px; overflow: auto; flex: 1; min-height: 60px; }
.col.drop { outline: 2px dashed var(--brand); }
.kcard { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; margin-bottom: 6px; cursor: grab; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.kcard:hover { border-color: #b9c9c3; }
.kcard .nombre { font-size: 13px; }

/* Drawer */
.velo { position: fixed; inset: 0; background: rgba(10, 20, 18, .35); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--panel); z-index: 41; box-shadow: -8px 0 30px rgba(0,0,0,.12); display: flex; flex-direction: column; }
.drawer .hd { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer .bd { padding: 16px 18px; overflow: auto; flex: 1; }
.timeline .it { border-left: 2px solid var(--line); padding: 0 0 12px 12px; margin-left: 6px; position: relative; }
.timeline .it::before { content: ""; position: absolute; left: -6px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.timeline .it.sistema::before { background: #b3bdb9; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 4px 10px; font-size: 13px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }

.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: #15201d; color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 60; box-shadow: var(--shadow); max-width: 90vw; }
.toast.err { background: var(--err); }
.vacio { text-align: center; padding: 40px 20px; color: var(--ink-3); }
.cargando { opacity: .55; pointer-events: none; }
.fuente { font-size: 11px; color: var(--ink-3); margin-top: 8px; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; height: 100vh; height: 100dvh; }
  /* Menú como barra inferior (estilo app) */
  .side { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; flex-direction: row; padding: 0 0 env(safe-area-inset-bottom); border-top: 1px solid rgba(255,255,255,.1); }
  .side .pie, .logo { display: none; }
  .nav { display: flex; width: 100%; }
  .nav a { flex: 1; flex-direction: column; justify-content: center; gap: 2px; margin: 0; padding: 7px 2px; border-radius: 0; min-height: 56px; font-size: 11px; text-align: center; }
  .nav a .i { font-size: 20px; line-height: 1; }
  .nav a .r { display: none; }
  .top { padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top)); gap: 8px; }
  .top h1 { font-size: 17px; }
  #usuario { display: none; }
  .content { padding: 14px 14px calc(76px + env(safe-area-inset-bottom)); }
  .banner { padding: 10px 14px; }
  .buscar { grid-template-columns: 1fr; height: auto; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .row { flex-wrap: wrap; }
  .barra { bottom: calc(56px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(70px + env(safe-area-inset-bottom)); }
  .drawer .bd { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .kanban { grid-template-columns: repeat(7, 78vw); scroll-snap-type: x proximity; height: calc(100vh - 200px); height: calc(100dvh - 200px); }
  .col { scroll-snap-align: start; }
  .hbar { grid-template-columns: 96px 1fr 58px; }
  .kv { grid-template-columns: 96px 1fr; }
}
/* Pantallas táctiles: objetivos de toque cómodos y sin zoom automático en iOS */
@media (pointer: coarse) {
  button, .btn { min-height: 40px; }
  input, select, textarea { font-size: 16px; min-height: 40px; }
  input[type=checkbox] { min-height: 0; width: 20px; height: 20px; }
  .chip { padding: 10px 13px; font-size: 13px; min-height: 36px; display: inline-flex; align-items: center; }
  textarea, textarea.mono { font-size: 16px !important; }
  .tabs button { min-height: 44px; }
  table.t td { padding: 11px 10px; }
  .ico span { padding: 3px 7px; }
}

/* ===== Mapa de cartera, GPS y rutas ===== */
.mp { display: flex; flex-direction: column; gap: 10px; height: calc(100vh - 92px); }
.mp-barra { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.mp-etapas { display: flex; flex-wrap: wrap; gap: 6px; }
.mp-chip { padding: 5px 10px; border-radius: 6px; font-size: 13px; gap: 7px; }
.mp-chip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.mp-chip b { font-variant-numeric: tabular-nums; color: var(--ink-3); font-weight: 600; }
.mp-chip:not(.on) { opacity: .5; background: transparent; }
.mp-chip.on { border-color: var(--ink-3); }
.mp-acc { flex-wrap: wrap; }
.mp-cuerpo { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.mp.panel .mp-cuerpo { grid-template-columns: minmax(0, 1fr) 360px; }
.mp-mapa { height: 100%; min-height: 360px; border-radius: var(--radius); border: 1px solid var(--line); z-index: 0; }
.mp-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; overflow: auto; }
.rp-meta { margin-top: 8px; flex-wrap: nowrap !important; }
.rp-meta input { min-width: 0; }
.rp-meta input[type=date] { width: 138px !important; }
.rp-resumen { margin: 10px 0 6px; font-size: 13px; color: var(--ink-2); }
.rp-lista { list-style: none; margin: 0; padding: 0; }
.rp-lista li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-2); }
.rp-lista .n { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.rp-lista li.hecha .n { background: var(--ok); }
.rp-lista li.hecha .rp-t { opacity: .6; }
.rp-t { min-width: 0; } .rp-t b { display: block; font-size: 13px; } .rp-t small { display: block; color: var(--ink-3); font-size: 12px; line-height: 1.35; }
.rp-b { display: flex; gap: 2px; } .rp-b button { padding: 4px 8px; min-height: 32px; }
.rp-acc { display: grid; gap: 8px; margin-top: 12px; } .rp-acc .btn, .rp-acc button { justify-content: center; text-decoration: none; }
.pin-cli { width: 22px; height: 22px; border-radius: 5px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.pin-cli.dudoso { background: #fff; color: var(--ink); border: 2px dashed var(--ink); }
.pin-n { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 12px var(--f-text); display: grid; place-items: center; border: 2px solid var(--accent); box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.pin-n.hecha { background: var(--ok); border-color: #fff; }
.pp { font-family: var(--f-text); font-size: 13px; color: var(--ink); }
.pp-t { font-family: var(--f-display); font-weight: 700; font-size: 15px; line-height: 1.25; margin-bottom: 5px; }
.pp-r { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.pp-et { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.pp-l { margin: 3px 0; line-height: 1.4; }
.pp-b { display: grid; gap: 6px; margin-top: 8px; } .pp-b button { justify-content: center; }
.pp select { width: 100%; }
.leaflet-popup-content { margin: 12px 14px; }
.ci-gps { padding: 10px 12px; border-radius: 8px; background: var(--brand-soft); font-size: 13px; margin-bottom: 4px; }
.ci-gps.ok { background: #DFF3E7; color: #17663A; } .ci-gps.lejos { background: #FFF1D6; color: #7A4B0C; }
.ci-res { display: grid; gap: 6px; } .ci-res label { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 14px; }
.ci-res input { width: auto; }
@media (max-width: 900px) {
  .mp { height: calc(100dvh - 170px); }
  .mp.panel .mp-cuerpo { grid-template-columns: minmax(0, 1fr); }
  .mp-panel { position: fixed; left: 8px; right: 8px; bottom: calc(64px + env(safe-area-inset-bottom)); max-height: 44vh; z-index: 35; box-shadow: 0 -8px 30px rgba(17,38,31,.25); display: flex; flex-direction: column; overflow: hidden; padding: 12px; }
  .mp-panel .rp-lista { overflow: auto; flex: 1 1 auto; min-height: 96px; }
  .mp-panel .rp-acc { display: flex; overflow-x: auto; gap: 8px; margin-top: 8px; padding-bottom: 2px; scrollbar-width: none; }
  .mp-panel .rp-acc > * { flex: 0 0 auto; }
  .mp-panel > p.small { display: none; }
  .mp-etapas { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; padding-bottom: 2px; }
  .mp-chip { flex: 0 0 auto; }
  .mp-acc { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; padding-bottom: 2px; }
  .mp-acc > * { flex: 0 0 auto; }
  .mp { height: calc(100dvh - 150px); }
}

/* ===== Pronóstico ===== */
.mbar { display: grid; grid-template-columns: 110px 1fr 170px; gap: 10px; align-items: center; margin: 7px 0; font-size: 13px; }
.mbar .t { position: relative; height: 14px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.mbar .t i { position: absolute; left: 0; top: 0; bottom: 0; display: block; }
.mbar .t .v { background: #9DC3B9; } .mbar .t .p { background: var(--brand); }
.mbar .x { text-align: right; font-variant-numeric: tabular-nums; } .mbar .x small { color: var(--ink-3); }
.mbar.vacia { opacity: .55; } .mbar.atrasado .m { color: var(--err); font-weight: 600; } .mbar.atrasado .t .v { background: #E7B1A6; } .mbar.atrasado .t .p { background: var(--err); }
.leyenda i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
@media (max-width: 900px) { .mbar { grid-template-columns: 78px 1fr 118px; gap: 8px; } }

/* Tablas dentro de tarjetas: en pantallas chicas se deslizan en vez de cortarse */
@media (max-width: 900px) { .card:has(> table.t), .card:has(> .t-wrap) { overflow-x: auto; } .card > table.t { min-width: 440px; } }

/* Plantillas */
.pl-vars button { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; border: 1px solid var(--line); min-height: 30px; }

/* ===== Importar leads ===== */
.imp-paso { margin-bottom: 14px; } .imp-paso h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.imp-n { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 13px var(--f-text); display: grid; place-items: center; flex: none; }
.imp-drop { display: block; border: 2px dashed var(--line); border-radius: 10px; padding: 22px; text-align: center; cursor: pointer; background: var(--bg); }
.imp-drop:hover, .imp-drop.sobre { border-color: var(--brand); background: var(--brand-soft); }
.imp-drop-t { font-weight: 600; margin-bottom: 4px; word-break: break-word; }
.imp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 14px; }
.imp-cajas { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 12px; }
.imp-caja { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: #fff; }
.imp-caja .v { font-family: var(--f-display); font-size: 28px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; } .imp-caja .l { font-size: 13px; color: var(--ink-2); }
.imp-caja.bien { border-color: var(--ok); background: #F1FAF4; } .imp-caja.aviso { border-color: var(--accent); background: #FFF8EA; } .imp-caja.mal { border-color: var(--err); background: #FDF2F0; }
.imp-notas { margin: 0 0 8px; padding-left: 18px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.imp-det { margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; overflow: auto; max-height: 320px; } .imp-det summary { cursor: pointer; padding: 10px 12px; font-weight: 600; font-size: 14px; }
.imp-bar { height: 10px; background: var(--line-2); border-radius: 5px; overflow: hidden; margin-top: 8px; } .imp-bar i { display: block; height: 100%; width: 2%; background: var(--brand); transition: width .3s; }
@media (max-width: 900px) { .imp-grid { grid-template-columns: 1fr; } .imp-cajas { grid-template-columns: 1fr 1fr; } }

/* ===== Contactos ===== */
.ct { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; background: #fff; }
.ct-h { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; } .ct-d { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.ct-b { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 6px; margin-left: -8px; } .ct-b button { min-height: 32px; }
.ct-form { margin-top: 8px; background: var(--bg); }

/* ===== Recordatorios ===== */
.av-banner { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 10px 14px; margin-bottom: 12px; background: #FFF6E5; border-color: #F2D39A; }

/* ===== Cadencias ===== */
.cd-e { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; background: #fff; }
.cd-pasos { margin: 8px 0 4px; padding-left: 20px; } .cd-pasos li { margin: 2px 0; }
.cd-paso { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.cd-paso .cd-txt { flex: 1; min-width: 160px; } .cd-b { display: inline-flex; gap: 2px; margin-left: auto; }
.cd-card .badge { margin-left: 2px; }

/* ===== Embudo: selección múltiple ===== */
.k-chk, .k-col { display: none; }
.sel-modo .k-chk { display: inline-block; width: 18px; height: 18px; margin: 0 8px 0 0; flex: none; accent-color: var(--brand); pointer-events: none; }
.sel-modo .k-col { display: inline-block; margin-left: 8px; min-height: 26px; }
.sel-modo .kcard { cursor: pointer; } .kcard.sel { outline: 2px solid var(--brand); background: #f1faf7; }
.sel-barra { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(1040px, calc(100vw - 32px)); z-index: 35; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.sel-barra select { width: auto; max-width: 260px; } .sel-barra #sel-n { min-width: 110px; }
.sel-res { margin-bottom: 12px; background: #F1FAF7; border-color: #BFE3D6; }
@media (max-width: 900px) { .sel-barra { left: 8px; right: 8px; width: auto; transform: none; bottom: calc(64px + env(safe-area-inset-bottom)); } .sel-barra select { max-width: 100%; flex: 1; } }

/* ===== «Respondió» ===== */
.rs-form { margin-top: 8px; background: var(--bg); }
.rs-aviso { background: #FFF6E5; border: 1px solid #F2D39A; border-radius: 8px; padding: 8px 10px; margin-top: 8px; }
.rs-ok { color: #1b7f5c; margin-top: 6px; font-weight: 600; }

/* ===== Negocios parecidos ===== */
.par-card { margin-top: 6px; } .par-ganado { border-color: #BFE3D6; background: #F1FAF7; }
.par-ops { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; } .par-op { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.par-op input[type=number] { width: 64px; padding: 4px 6px; margin: 0; } .par-op input[type=radio] { width: auto; margin: 0; }
.par-banner { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; margin-bottom: 10px; background: #F1FAF7; border-color: #BFE3D6; }
.par-oferta { margin-bottom: 10px; background: #FFF6E5; border-color: #F2D39A; }

/* ===== Paquetes de contactos extra ===== */
.modal-capa { position: fixed; inset: 0; background: rgba(17, 38, 31, .55); display: flex; align-items: center; justify-content: center; z-index: 80; padding: 16px; }
.modal-caja { width: 100%; max-width: 440px; padding: 22px; border-radius: 12px; max-height: 94vh; overflow: auto; }
.paq-oferta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--brand-soft); border-color: transparent; }
.paq-precio { font-family: var(--f-display); font-weight: 800; font-size: 26px; color: var(--brand-2); font-variant-numeric: tabular-nums; }
.paq-saldo { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.paq-saldo .v { font-family: var(--f-display); font-weight: 800; font-size: 30px; line-height: 1; }

/* Celular: la barra inferior es solo navegación (7 accesos); Privacidad/Términos viven en Ajustes y en la landing */
@media (max-width: 900px) {
  .side > .small { display: none; }
  .nav a { font-size: 10.5px; padding: 7px 0; }
  .nav a .i { font-size: 19px; }
}

/* ===================== Vista HOY ===================== */
.hoy { max-width: 880px; margin: 0 auto; }
.hoy-hd { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.hoy-saludo { font-family: var(--f-display); font-weight: 800; font-size: 24px; letter-spacing: -.02em; line-height: 1.15; }
.hoy-fecha::first-letter { text-transform: uppercase; }
.seg { display: inline-flex; background: var(--line-2); border-radius: 9px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; font-size: 13px; color: var(--ink-2); }
.seg button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(17,38,31,.12); }
.seg-full { display: flex; width: 100%; } .seg-full button { flex: 1; justify-content: center; padding: 8px 4px; }

.hoy-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.hoy-kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.hoy-kpi b { font-family: var(--f-display); font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.hoy-kpi span { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.hoy-kpi.k-err b { color: var(--err); } .hoy-kpi.k-brand b { color: var(--brand); } .hoy-kpi.k-frio b { color: #4A6A86; }
.hoy-kpi.k-cero b { color: var(--line); }

.hoy-pp, .hoy-vacio { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: center; margin-bottom: 14px; padding: 14px 18px; }
.hoy-pp img, .hoy-vacio img { width: 100%; height: auto; border-radius: 8px; }
.hoy-pp h2, .hoy-vacio h2 { margin: 0 0 6px; }
.pp-barra { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; margin: 4px 0 10px; }
.pp-barra i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.pp-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pp-lista li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.pp-lista .ck { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.pp-lista li.ok { color: var(--ink-3); text-decoration: line-through; }
.pp-lista li.ok .ck { background: var(--brand); border-color: var(--brand); color: #fff; }
.hoy-ruta { margin-bottom: 14px; padding: 12px 14px; }

.hoy-sec { margin: 18px 0 6px; }
.hoy-sec > h2, .hoy-prox summary h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 0 0 4px; }
.hoy-sec .cnt { font-family: var(--f-text); font-size: 12px; font-weight: 700; background: var(--line-2); color: var(--ink-2); border-radius: 10px; padding: 1px 8px; }
.hoy-sec.t-err .cnt { background: #F6DED8; color: var(--err); } .hoy-sec.t-brand .cnt { background: var(--brand-soft); color: var(--brand-2); } .hoy-sec.t-frio .cnt { background: #E1E9F0; color: #4A6A86; }
.hoy-sec.t-err .hoy-fila { border-left: 3px solid var(--err); }
.hoy-ayuda { margin: 0 0 8px; }
.hoy-lista { display: grid; gap: 6px; }
.hoy-pie { margin-top: 8px; }
.hoy-prox summary { cursor: pointer; list-style: none; } .hoy-prox summary::-webkit-details-marker { display: none; }
.hoy-prox summary h2::after { content: "▾"; font-size: 12px; color: var(--ink-3); } .hoy-prox[open] summary h2::after { content: "▴"; }
.hoy-prox .hoy-lista { margin-top: 8px; }

.hoy-fila { position: relative; display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 8px 8px 12px; }
.hoy-ico { font-size: 18px; width: 26px; text-align: center; flex: none; }
.hoy-info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; border: 0; background: transparent; padding: 2px 0; text-align: left; white-space: normal; }
.hoy-info:hover { background: transparent; } .hoy-info:hover b { color: var(--brand); }
.hoy-info b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.hoy-info .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.hoy-cuando { font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; } .hoy-cuando.tarde { color: var(--err); }
.hoy-acc { display: flex; gap: 4px; flex: none; }
button.ic { width: 38px; height: 38px; padding: 0; justify-content: center; font-size: 16px; border-radius: 9px; }
button.ic[data-hecho] { color: var(--ok); font-weight: 700; }
.posp-menu { position: absolute; right: 8px; top: calc(100% + 4px); z-index: 20; padding: 4px; display: flex; flex-direction: column; min-width: 160px; box-shadow: 0 8px 24px rgba(17,38,31,.16); }
.posp-menu button { border: 0; justify-content: flex-start; }

/* ===================== Hoja inferior («¿Cómo te fue?», «¿Qué sigue?») ===================== */
.hoja-capa { position: fixed; inset: 0; z-index: 90; background: rgba(17,38,31,0); display: flex; align-items: flex-end; justify-content: center; transition: background .18s; }
.hoja-capa.on { background: rgba(17,38,31,.5); }
.hoja { background: var(--panel); width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; border-radius: 16px 16px 0 0; padding: 10px 18px calc(16px + env(safe-area-inset-bottom)); transform: translateY(24px); opacity: 0; transition: transform .2s, opacity .2s; }
.hoja-capa.on .hoja { transform: none; opacity: 1; }
@media (min-width: 901px) { .hoja-capa { align-items: center; } .hoja { border-radius: 14px; padding-bottom: 16px; } }
.hoja-asa { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 10px; }
.hoja h2 { font-size: 18px; margin: 0 0 12px; }
.hoja h3 { margin: 14px 0 6px; }
.hoja-pie { margin-top: 12px; justify-content: flex-end; gap: 8px; }
.res-lista { display: grid; gap: 6px; margin-top: 12px; }
.res { justify-content: flex-start; gap: 10px; padding: 11px 12px; font-size: 15px; border-radius: 10px; }
.res span { font-size: 18px; width: 24px; text-align: center; }
.res.on { border-color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.res-paso2 { margin-top: 12px; display: grid; gap: 8px; }
.res-paso2 .res-guardar { justify-content: center; padding: 11px; font-size: 15px; margin-top: 4px; }
.res-nota { min-height: 64px; }
.aviso-perdido { background: #FBEDE9; color: var(--err); border-radius: 8px; padding: 9px 11px; }
.sig { display: grid; gap: 8px; }
.sig .chip { font-size: 13px; padding: 6px 10px; }
.sig-fecha { align-items: center; }
.sig-otra { width: auto; flex: 1; min-width: 140px; }

/* ===================== Ficha del prospecto ===================== */
.fx-acc { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.fx-acc .btn, .fx-acc button { flex: 1 1 auto; justify-content: center; }
.fx-sig { display: flex; align-items: center; gap: 10px; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; background: var(--brand-soft); }
.fx-sig.sin { background: #FDF3E3; }
.fx-sig .t { flex: 1; min-width: 0; font-size: 13px; }
.fx-sig .t b { display: block; font-size: 14px; }
.fx-tabs { position: sticky; top: -16px; background: var(--panel); z-index: 2; overflow-x: auto; scrollbar-width: none; margin: 0 -18px 12px; padding: 0 12px; }
.fx-tabs button { white-space: nowrap; }
.fx-tabs .n { font-size: 11px; background: var(--line-2); border-radius: 8px; padding: 0 6px; margin-left: 3px; }
.fx-panel { display: none; } .fx-panel.on { display: block; }
.fx-ult .it { padding: 6px 0; border-bottom: 1px solid var(--line-2); } .fx-ult .it:last-child { border: 0; }

/* ===================== Embudo en celular ===================== */
.kcard .paso { font-size: 11.5px; margin-top: 5px; color: var(--ink-2); }
.kcard .paso.tarde { color: var(--err); font-weight: 600; } .kcard .paso.sin { color: var(--warn); }
.emb-m { display: none; }
@media (max-width: 900px) {
  .kanban.movil { display: none; }
  .emb-m { display: block; }
  .emb-m .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px 10px; padding: 0 14px 4px; }
  .emb-m .chip { white-space: nowrap; font-size: 13px; padding: 8px 12px; }
  .emb-m .chip small { opacity: .75; margin-left: 4px; }
  .emb-m .kcard { cursor: pointer; display: flex; gap: 8px; align-items: flex-start; }
  .emb-m .kcard .cuerpo { flex: 1; min-width: 0; }
  .emb-m .mover { width: auto; max-width: 118px; font-size: 13px; min-height: 36px; padding: 4px 6px; }
  .hoy-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hoy-pp, .hoy-vacio { grid-template-columns: 96px 1fr; gap: 12px; padding: 12px; }
  .hoy-saludo { font-size: 20px; }
  .hoy-fila { flex-wrap: wrap; padding: 8px 8px 8px 10px; }
  .hoy-info { flex: 1 1 calc(100% - 110px); }
  .hoy-cuando { order: 3; }
  .hoy-acc { order: 4; margin-left: auto; }
  button.ic { width: 42px; height: 42px; }
  .fx-tabs { top: -16px; }
}
.fx-sig .tarde { color: var(--err); font-weight: 600; }
.drawer .hd > .row:first-child { flex-wrap: nowrap; align-items: flex-start; }
.drawer .hd > .row:first-child h2 { overflow-wrap: anywhere; }

/* Íconos SVG (Lucide, ISC) desde /vendor/iconos.svg. Clase distinta de .ico (badges de contacto) */
.ico-svg { width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex: none; }
.nav a .i .ico-svg { width: 20px; height: 20px; }
/* Score explicable */
button.score { border: 0; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; line-height: inherit; }
button.score:focus-visible { outline: 2px solid var(--ok); outline-offset: 2px; }
.score-pop { position: fixed; z-index: 100; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(17,38,31,.16); max-width: min(280px, calc(100vw - 16px)); padding: 10px 12px; font-size: 13px; line-height: 1.4; color: var(--ink); }
.score-pop .sp-t { font-weight: 700; margin-bottom: 6px; }
.score-pop ul { list-style: none; margin: 0; padding: 0; }
.score-pop li { padding: 2px 0; }
.score-pop li.si { color: var(--ok); }
.score-pop li.no { color: var(--ink-3); }
.score-pop li.no span { font-size: 12px; }
.score-pop p { margin: 8px 0 0; color: var(--ink-3); font-size: 12px; }

/* Clau */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.clau-av { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; overflow: hidden; background: var(--brand); color: #fff; font-weight: 700; font-family: var(--f-display); }
.clau-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clau-av.grande { width: 100%; height: 100%; font-size: 24px; }
.clau-av.med { width: 38px; height: 38px; font-size: 18px; }
.clau-av.mini { width: 26px; height: 26px; font-size: 13px; margin-top: 2px; }
.clau-fab { position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: var(--brand); z-index: 38; cursor: pointer; box-shadow: 0 6px 18px rgba(17,38,31,.3); animation: clau-resp 3.6s ease-in-out infinite; }
.clau-fab:hover { background: var(--brand-2); border-color: #fff; }
.clau-fab:focus-visible, .clau-panel button:focus-visible, .clau-panel textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.clau-fab::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; animation: clau-aro 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes clau-resp { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes clau-aro { 0%, 100% { opacity: 0; transform: scale(.94); } 50% { opacity: .35; transform: scale(1.08); } }
.clau-panel { position: fixed; right: 20px; bottom: 20px; width: 400px; height: min(600px, calc(100vh - 40px)); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 48px rgba(17,38,31,.28); z-index: 95; display: flex; flex-direction: column; overflow: hidden; }
.clau-hd { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; background: var(--brand); color: #fff; }
.clau-hd-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.clau-hd-t b { font-family: var(--f-display); font-size: 15px; }
.clau-cont { color: #cfe7df; }
.clau-cont.bajo { color: #FFD58A; font-weight: 600; }
.clau-ib { color: #fff; padding: 7px; border-radius: 8px; }
.clau-ib:hover { background: rgba(255,255,255,.14); border-color: transparent; }
.clau-ib .ico-svg { width: 20px; height: 20px; }
.clau-lista { flex: 1; overflow-y: auto; padding: 14px 12px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.clau-m { display: flex; gap: 8px; max-width: 92%; }
.clau-m.u { align-self: flex-end; flex-direction: row-reverse; }
.clau-b { padding: 9px 12px; border-radius: 14px; line-height: 1.45; font-size: 14px; overflow-wrap: anywhere; min-width: 0; }
.clau-m.c .clau-b { background: #fff; border: 1px solid var(--line); border-top-left-radius: 4px; }
.clau-m.u .clau-b { background: #CDEEDD; border: 1px solid #B4E0C9; border-top-right-radius: 4px; }
.clau-m.err .clau-b { background: #FDF0EC; border-color: #F0C5BA; color: #7a2a18; }
.clau-b p { margin: 0 0 .5em; } .clau-b p:last-child, .clau-b ul:last-child, .clau-b ol:last-child { margin-bottom: 0; }
.clau-b ul, .clau-b ol { margin: 0 0 .5em; padding-left: 1.2em; } .clau-b li { margin: 2px 0; }
.clau-pts { display: inline-flex; gap: 4px; align-items: center; height: 18px; }
.clau-pts i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: clau-pt 1.1s ease-in-out infinite; }
.clau-pts i:nth-child(2) { animation-delay: .15s; } .clau-pts i:nth-child(3) { animation-delay: .3s; }
@keyframes clau-pt { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.clau-prop { margin-top: 8px; padding: 10px; border: 1px solid var(--brand); background: var(--brand-soft); border-radius: 10px; display: grid; gap: 6px; }
.clau-prop-t { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.clau-prop-t .ico-svg { width: 16px; height: 16px; margin-top: 2px; flex: none; }
.clau-prop button { justify-content: center; }
.clau-prop button.hecho { color: var(--ok); font-weight: 700; border-color: transparent; background: transparent; }
.clau-hero { display: block; width: 120px; height: auto; align-self: center; flex: none; margin: 4px 0 6px; border-radius: 16px; }
.clau-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px; background: var(--bg); }
.clau-chips:not(:empty) { padding-bottom: 8px; }
.clau-chip { border-radius: 999px; padding: 6px 12px; font-size: 13px; background: #fff; border-color: var(--brand); color: var(--brand); white-space: normal; text-align: left; }
.clau-chip:hover { background: var(--brand-soft); }
.clau-escuchar { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; min-height: 32px; padding: 4px 10px; font-size: 12.5px; border-radius: 999px; color: var(--brand); border-color: var(--line); background: #fff; }
.clau-escuchar:hover { background: var(--brand-soft); }
.clau-escuchar[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand); font-weight: 600; }
.clau-escuchar[aria-busy="true"] { opacity: .75; }
.clau-escuchar .ico-svg { width: 15px; height: 15px; }
.clau-prop + .clau-escuchar { margin-top: 10px; }
.clau-hd-av.hablando .clau-av, .clau-hd-av .clau-av.hablando { box-shadow: 0 0 0 3px rgba(255,255,255,.55); }
.clau-pie { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--panel); }
.clau-pie textarea { resize: none; min-height: 38px; max-height: 110px; line-height: 1.35; }
.clau-pie button { height: 38px; }
@media (max-width: 900px) {
  .clau-fab { right: 14px; bottom: calc(68px + env(safe-area-inset-bottom)); width: 54px; height: 54px; }
  /* La barra de navegación de abajo (56 px) queda libre; el botón ✕ del encabezado siempre es alcanzable */
  .clau-panel { left: 0; right: 0; top: calc(env(safe-area-inset-top) + 5vh); bottom: calc(56px + env(safe-area-inset-bottom)); width: auto; height: auto; border-radius: 16px 16px 0 0; }
  .clau-pie { padding-bottom: 10px; }
  .clau-pie textarea { font-size: 16px; }
}
@media (max-width: 760px) { .clau-escuchar { min-height: 36px; padding: 6px 12px; font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .clau-fab, .clau-fab::after, .clau-pts i { animation: none !important; } .clau-fab::after { display: none; } }

/* Clau en movimiento */
.clau-av { position: relative; }
.clau-av video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; pointer-events: none; }
.clau-av.vivo video { opacity: 1; }
.clau-av.vivo.pose video { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .clau-av video { display: none; } }

/* Equipos */
.eq-cupo { margin-bottom: 12px; font-size: 14px; }
.eq-uso { height: 8px; background: #eef1f0; border-radius: 4px; overflow: hidden; margin-top: 6px; max-width: 420px; }
.eq-uso i { display: block; height: 100%; background: var(--brand); }
.eq-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; align-items: start; }
.eq-lado { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.eq-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--line); min-width: 0; }
.eq-fila:first-of-type { border-top: 0; }
.eq-fila.inactivo .eq-quien { opacity: .6; }
.eq-quien { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.eq-campos { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; min-width: 0; }
.eq-lbl { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--ink-3); min-width: 0; }
.eq-lbl select { width: auto; max-width: 100%; min-width: 120px; }
.eq-acc { display: flex; gap: 6px; flex-wrap: wrap; }
.eq-err { color: var(--err); font-size: 13px; min-height: 18px; margin-top: 8px; }
.eq-chk, .inv-acepta { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; margin-top: 12px; }
.eq-chk input, .inv-acepta input { width: auto; margin-top: 3px; }
.eq-modal input, .eq-modal select { max-width: 100%; }
.eq-filtro select { max-width: 200px; }
.eq-tj { gap: 6px; align-items: center; }
.eq-tj button { padding: 2px 10px; }
.eq-rea { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.eq-resp select { max-width: 100%; }
@media (max-width: 900px) { .eq-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .eq-lbl select { min-width: 0; width: 100%; } .eq-campos { width: 100%; } .eq-lbl { flex: 1 1 130px; } .eq-rea { width: 100%; } .eq-rea select { flex: 1; } }

/* Oferta: pago único */
.banner { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.btn-banner { background: var(--accent, #f5b301); color: #111; font-weight: 800; border: 0; border-radius: 8px; padding: 7px 14px; cursor: pointer; }
body.solo-lectura [data-escritura] { opacity: .5; pointer-events: none; }
.of-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 900px) { .of-grid { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.of-acceso { border: 2px solid var(--brand, #0f6b5c); }
.of-acceso .tag { background: var(--accent, #f5b301); color: #111; font-weight: 800; font-size: 12px; padding: 3px 10px; border-radius: 99px; }
.of-precio { font-family: var(--f-display); font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin: 8px 0; }
.of-precio span { font-size: 14px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.of-lista { padding-left: 18px; margin: 6px 0 10px; font-size: 14px; }
.of-sellos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.of-paquetes { display: grid; gap: 8px; margin-top: 10px; }
.btn-creditos { font-weight: 800; }
#pie-creditos { display: block; }
