/* CRM: estilos propios sobre gg.css */
.st-nuevo { --c: #6b7280; } .st-contactado { --c: #1f5fd6; } .st-propuesta { --c: #b45309; } .st-ganado { --c: #15803d; } .st-perdido { --c: #c22a2a; }
:root[data-theme="dark"] .st-nuevo { --c: #9ca3af; } :root[data-theme="dark"] .st-contactado { --c: #4b83f0; } :root[data-theme="dark"] .st-propuesta { --c: #fbbf24; } :root[data-theme="dark"] .st-ganado { --c: #4ade80; } :root[data-theme="dark"] .st-perdido { --c: #f87171; }
.board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; align-items: start; overflow-x: auto; padding-bottom: 8px; }
.col { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); display: flex; flex-direction: column; min-height: 200px; transition: border-color .12s, background .12s; }
:root[data-theme="dark"] .col { background: #121214; }
.col.drop { border-color: var(--accent); background: var(--accent-soft); }
.col-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
.col-head b { font-weight: 600; }
.col-head .n { color: var(--text-3); font-variant-numeric: tabular-nums; }
.col-head .sum { margin-left: auto; color: var(--text-2); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.col-body { display: flex; flex-direction: column; gap: 6px; padding: 8px; flex: 1; min-height: 48px; }
.lead-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 10px 10px 8px; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: manipulation; box-shadow: var(--shadow-sm); transition: border-color .12s, box-shadow .12s; }
.lead-card:hover { border-color: var(--border-2); box-shadow: var(--shadow-md); }
.lead-card .t { font-weight: 500; font-size: 13.5px; line-height: 1.35; }
.lead-card .co { color: var(--text-3); font-size: 12.5px; }
.lead-card .next { display: flex; gap: 6px; align-items: flex-start; margin-top: 8px; font-size: 12px; color: var(--text-2); }
.lead-card .next svg { width: 13px; height: 13px; flex: none; margin-top: 2px; color: var(--text-3); }
.lead-card .meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--text-3); }
.lead-card .meta .val { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.lead-card .meta .src { margin-left: auto; }
.lead-card.ghosting { opacity: .4; }
.drag-avatar { position: fixed; z-index: 100; pointer-events: none; box-shadow: var(--shadow-lg); border-color: var(--border-2); transform: rotate(1.5deg); }
.placeholder { border: 1px dashed var(--border-2); border-radius: var(--r); background: var(--surface); opacity: .7; }
.col-add { margin: 0 8px 8px; height: 30px; border-radius: var(--r); color: var(--text-3); font-size: 12.5px; text-align: left; padding: 0 8px; display: flex; align-items: center; gap: 6px; }
.col-add:hover { background: var(--hover); color: var(--text); }
.col-add svg { width: 14px; height: 14px; }
.stage-tabs { display: none; }
.stage-select { display: flex; gap: 4px; flex-wrap: wrap; }
.stage-select button { height: 28px; padding: 0 10px; border: 1px solid var(--border-2); border-radius: var(--r); font-size: 12.5px; font-weight: 500; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; background: var(--surface); }
.stage-select button:hover { background: var(--hover); }
.stage-select button.on { color: var(--text); border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); }
.next-box { border: 1px solid var(--border); border-radius: var(--r); padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; background: var(--surface-2); font-size: 13px; }
.next-box svg { width: 15px; height: 15px; color: var(--text-3); margin-top: 2px; flex: none; }
.summary { font-size: 13px; color: var(--text-2); border-left: 2px solid var(--border-2); padding: 2px 0 2px 10px; }
.inline-form { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--border); }
.inline-form .input { flex: 1; min-width: 0; height: 30px; font-size: 13px; }
.inline-form input[type=date] { flex: 0 0 140px; }
.boxed { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.funnel-row { display: grid; grid-template-columns: 110px minmax(0,1fr) 120px; gap: 12px; align-items: center; padding: 6px 0; font-size: 13px; }
.funnel-row .track { height: 20px; background: var(--active); border-radius: 3px; overflow: hidden; }
.funnel-row .fill { height: 100%; background: var(--c); opacity: .7; border-radius: 3px; }
.funnel-row .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
/* formulario público */
.public { min-height: 100dvh; display: grid; place-items: center; padding: 32px 16px; }
.public-card { width: min(560px, 100%); }
.public-card .logo { margin-bottom: 20px; }
.public-card h1 { font-size: 22px; letter-spacing: -0.02em; }
.public-card .lede { color: var(--text-2); margin: 6px 0 20px; }
.public-card form { display: grid; gap: 14px; padding: 24px; }
.public-foot { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 16px; }
@media (max-width: 1080px) { .dash-grid { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .stage-tabs { display: flex; gap: 4px; overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px; scrollbar-width: none; }
  .stage-tabs button { flex: none; height: 30px; padding: 0 10px; border: 1px solid var(--border-2); border-radius: var(--r); font-size: 12.5px; font-weight: 500; color: var(--text-2); background: var(--surface); display: inline-flex; gap: 6px; align-items: center; }
  .stage-tabs button.on { color: var(--text); border-color: var(--text); }
  .stage-tabs .n { color: var(--text-3); }
  .board { grid-template-columns: 1fr; overflow: visible; }
  .board .col { display: none; min-height: 0; }
  .board .col.on, .board.dragging .col { display: flex; }
  .board.dragging .col:not(.on) .col-body, .board.dragging .col:not(.on) .col-add { display: none; }
  .inline-form { flex-wrap: wrap; } .inline-form .input:first-child { flex: 1 1 100%; } .inline-form input[type=date] { flex: 1 1 auto; }
  .funnel-row { grid-template-columns: 84px minmax(0,1fr) 92px; }
  .public-card form { padding: 16px; }
}
