/* Estados en color sólido y barras de "batería" (tipo Monday) sobre un marco limpio con degradados azul-violeta. */
:root {
  color-scheme: light;
  --bg: #f4f6fb; --card: #ffffff; --text: #1f2433; --muted: #6b7189; --line: #e4e8f1; --hover: #f1f5ff;
  --accent: #1570ef; --accent-strong: #0b5ad4; --accent-soft: #e8f0fe; --danger: #e2445c; --empty: #c3c6d4;
  --nav: #1f2433;
  --grad: linear-gradient(135deg, #0a64e0 0%, #3b8bf6 100%);
  --grad-hero: linear-gradient(100deg, #1a73e8 0%, #4a8ff2 45%, #8a78e2 100%);
  /* Etapas (validadas para daltonismo en el orden del embudo) */
  --nuevo: #579bfc; --nuevo_perfil: #9d50dd; --cotizando: #f59e0b; --declinado: #ff5a8a; --vendido: #037f4c;
  /* Etapas que se ven: Contactando (se intentó, no contesta), Contestó (igual que el paso del embudo) y declinados con / sin perfil */
  --contactando: #3b4fc4; --contesto: #00a39b; --declinado_perfil: #ff5a8a; --declinado_sin: #c3c6d4;
  /* Perfil */
  --cumple: #037f4c; --no_cumple: #ff5a8a; --sin_perfilar: var(--empty);
  /* Origen */
  --formulario: #6161ff; --whatsapp: #00a39b; --llamada: #ff7a00; --otro: #e2445c;
  /* Pasos del embudo */
  --f-recibidos: #579bfc; --f-contactados: #00a39b; --f-perfilados: #9d50dd; --f-cotizados: #f59e0b; --f-cerrados: #037f4c;
  --radius: 14px; --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(31, 36, 51, .04), 0 4px 16px rgba(31, 36, 51, .05);
  --shadow-lift: 0 10px 28px rgba(31, 36, 51, .12);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-title: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { background: var(--bg); }
body { margin: 0; font: 14px/1.45 var(--font); color: var(--text); }
h1, h2, h3 { font-family: var(--font-title); font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
.ico { flex: none; display: block; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.error { color: var(--danger); min-height: 1.2em; margin: 4px 0; }
.spacer { flex: 1; }
.num { font-variant-numeric: tabular-nums; }

button, select, input, textarea { font: inherit; }
button { background: var(--grad); color: #fff; border: 0; border-radius: 10px; padding: 9px 16px; cursor: pointer;
  font-weight: 600; box-shadow: 0 4px 12px rgba(21, 112, 239, .28); transition: filter .15s, transform .1s, box-shadow .15s; }
button:hover { filter: brightness(1.07); box-shadow: 0 6px 16px rgba(21, 112, 239, .34); }
button:active { transform: translateY(1px); }
button.ghost { background: #fff; color: var(--accent); border: 1.5px solid #b9d0f7; box-shadow: none; }
button.ghost:hover { background: var(--hover); border-color: var(--accent); filter: none; }
button.danger { background: linear-gradient(135deg, #d9304e, #f0607a); box-shadow: 0 4px 12px rgba(226, 68, 92, .28); }
button.small { padding: 3px 9px; font-size: 12px; }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input, select, textarea { border: 1px solid #d5dae6; border-radius: 10px; padding: 8px 11px; background: #fff; color: var(--text);
  transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
textarea { width: 100%; min-height: 60px; resize: vertical; }
label { display: block; margin: 8px 0; color: var(--muted); font-size: 13px; }
label input, label select, label textarea { display: block; width: 100%; margin-top: 4px; color: var(--text); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); }
.card-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-title h3 { margin: 0; font-size: 16px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card-title h3 small { font-weight: 400; color: var(--muted); font-size: 12px; letter-spacing: 0; }
.ico-badge { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 65%, #fff));
  box-shadow: 0 3px 10px color-mix(in srgb, var(--c) 35%, transparent); }

/* ---------- Acceso: portada de Maass Leads (marca y celular a la izquierda, formulario a la derecha) ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); background: var(--bg); }
.auth-hero { position: relative; overflow: hidden; color: #fff; padding: 40px 48px; display: flex; flex-direction: column; gap: 28px;
  background: radial-gradient(circle at 86% 10%, rgba(255, 255, 255, .2) 0, transparent 36%), radial-gradient(circle at 8% 96%, rgba(52, 211, 153, .24) 0, transparent 40%),
    linear-gradient(140deg, #0f4fc2 0%, #1a73e8 36%, #5b7ff0 68%, #8a78e2 100%); }
.auth-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px);
  background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%, transparent); mask-image: linear-gradient(180deg, transparent, #000 45%, transparent); }
.wordmark, .auth-mobile-brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; position: relative; z-index: 1; }
.wordmark b, .auth-mobile-brand b { font-weight: 800; }
.wordmark .mark { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .6), 0 8px 18px rgba(0, 0, 0, .18); }
.hero-copy { position: relative; z-index: 1; max-width: 470px; }
.hero-copy h2 { font-size: clamp(30px, 3.3vw, 42px); line-height: 1.08; margin: 0 0 12px; letter-spacing: -.025em; color: #fff; }
.hero-copy p { margin: 0 0 18px; font-size: 16px; color: rgba(255, 255, 255, .9); }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.hero-points li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.hero-points span { width: 22px; height: 22px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .22) center / 12px no-repeat
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

/* El celular de muestra (decorativo): Mi día con las mismas etapas y colores de la app. */
.phone-stage { position: relative; z-index: 1; flex: 1; display: grid; place-items: start center; min-height: 300px; padding-top: 8px; }
.phone { width: 272px; height: 552px; border-radius: 46px; background: #0f1422; padding: 11px; position: relative; transform: rotate(-4deg);
  box-shadow: 0 34px 70px rgba(8, 18, 60, .5), inset 0 0 0 1.5px rgba(255, 255, 255, .22), 0 0 0 1px #2a3247; }
.phone-notch { position: absolute; top: 19px; left: 50%; transform: translateX(-50%); width: 86px; height: 25px; background: #0f1422; border-radius: 14px; z-index: 2; }
.phone-screen { height: 100%; border-radius: 36px; background: var(--bg); overflow: hidden; padding: 12px; color: var(--text); font-size: 11px;
  display: flex; flex-direction: column; gap: 8px; }
.ph-status { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 11px; padding: 2px 12px 8px; }
.ph-icons { display: flex; gap: 3px; align-items: flex-end; }
.ph-icons i { width: 3px; background: var(--text); border-radius: 1px; }
.ph-icons i:nth-child(1) { height: 5px; } .ph-icons i:nth-child(2) { height: 7px; } .ph-icons i:nth-child(3) { height: 9px; }
.ph-head { display: flex; justify-content: space-between; align-items: center; padding: 0 2px; }
.ph-head b { font-size: 21px; letter-spacing: -.02em; }
.ph-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.ph-pills { display: flex; gap: 6px; }
.ph-pill { padding: 3px 9px; border-radius: 999px; font-weight: 700; font-size: 10px; }
.ph-pill.late, .ph-badge.late { background: #ffe3ec; color: #c21e56; }
.ph-pill.today, .ph-badge { background: #fff1d6; color: #9a5b00; }
.ph-group { background: var(--card); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(31, 36, 51, .08); }
.ph-gh { background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 72%, #fff)); color: #fff; font-weight: 700; padding: 6px 10px;
  display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.ph-gh.dark { color: #3a2a00; }
.ph-gh small { background: rgba(255, 255, 255, .32); border-radius: 999px; padding: 0 7px; font-weight: 700; font-size: 9.5px; }
.ph-row { padding: 7px 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.ph-row + .ph-row { border-top: 1px solid var(--line); }
.ph-row b { font-size: 11.5px; }
.ph-badge { font-size: 9.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.ph-badge.ok { background: #dcf3e7; color: #037f4c; }
.ph-money { margin-left: auto; color: var(--muted); font-weight: 600; }
.ph-actions { width: 100%; display: flex; gap: 5px; margin-top: 2px; }
.ph-btn { flex: 1; text-align: center; padding: 5px 0; border-radius: 8px; color: #fff; font-weight: 700; font-size: 10px; }
.ph-btn.call { background: var(--accent); } .ph-btn.wa { background: #1faa53; }
.float-card { position: absolute; z-index: 3; background: rgba(255, 255, 255, .96); color: var(--text); border-radius: 14px; padding: 10px 14px;
  box-shadow: 0 16px 36px rgba(8, 18, 60, .3); }
.kpi-float { top: 44px; right: max(0px, calc(50% - 270px)); display: grid; gap: 1px; }
.kpi-float small { color: var(--muted); font-size: 11px; font-weight: 600; }
.kpi-float b { font-size: 21px; letter-spacing: -.02em; }
.kpi-float em { font-style: normal; color: #037f4c; font-weight: 700; font-size: 11px; }
.lead-float { top: 190px; left: max(0px, calc(50% - 285px)); display: flex; gap: 10px; align-items: center; }
.lead-float .dot { width: 10px; height: 10px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 5px rgba(52, 211, 153, .25); flex: none; }
.lead-float b { display: block; font-size: 13px; }
.lead-float small { color: var(--muted); font-size: 11px; }
@media (prefers-reduced-motion: no-preference) {
  .phone { animation: phone-float 7s ease-in-out infinite; }
  .lead-float { animation: lead-pop 7s ease-in-out infinite; }
}
@keyframes phone-float { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-9px); } }
@keyframes lead-pop { 0%, 10% { opacity: 0; transform: translateY(12px); } 18%, 86% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }

.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px; gap: 18px; }
.auth-main .login { width: 100%; display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 410px; padding: 34px 32px; border-radius: 22px; box-shadow: var(--shadow-lift); }
.auth-card h1 { margin: 0 0 4px; font-size: 28px; letter-spacing: -.025em; color: var(--text); }
.auth-card > .muted { margin: 0 0 18px; }
.auth-card button[type=submit], .auth-card #access-login { width: 100%; margin-top: 12px; padding: 12px; font-size: 15px; }
.auth-card .error:empty { display: none; }
.auth-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.auth-foot { color: var(--muted); font-size: 12px; margin: 0; text-align: center; }
.auth-mobile-brand { display: none; }
.auth-mobile-brand .mark { width: 34px; height: 34px; border-radius: 10px; }

/* Pantallas medianas: sin el celular. Celular: la portada se vuelve una franja arriba y el formulario se monta encima. */
@media (max-width: 1100px) { .phone-stage { display: none; } .auth-hero { justify-content: center; } }
@media (max-width: 760px) {
  .auth { grid-template-columns: 1fr; align-content: start; }
  .auth-hero { padding: 26px 20px 72px; gap: 16px; justify-content: flex-start; }
  .hero-copy h2 { font-size: 27px; margin-bottom: 8px; }
  .hero-copy p { font-size: 14px; margin: 0; }
  .hero-points { display: none; }
  .auth-main { padding: 0 16px 28px; margin-top: -52px; justify-content: flex-start; position: relative; z-index: 2; }
  .auth-card { padding: 26px 20px; }
}

/* ---------- Barra superior ---------- */
.topbar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; margin: 12px 16px 0; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.brand .mark { width: 32px; height: 32px; border-radius: 10px; box-shadow: 0 3px 10px rgba(21, 112, 239, .3); flex: none; }
/* Empresa de esta instalación junto a la marca de la plataforma. */
.topbar-company { display: flex; align-items: center; gap: 8px; padding-left: 12px; border-left: 1px solid var(--line); font-weight: 600; color: var(--muted); font-size: 14px; }
.topbar-company .brand-logo { height: 28px; }
@media (max-width: 640px) { .topbar-company { display: none; } }
.topbar nav { display: flex; gap: 4px; flex-wrap: wrap; }
.topbar nav button { background: transparent; color: var(--muted); padding: 8px 14px; box-shadow: none; font-weight: 600; }
.topbar nav button:hover { background: var(--hover); color: var(--accent); filter: none; }
.topbar nav button.active { background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(21, 112, 239, .28); }
#me { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); background: #f1f4fa; padding: 4px 12px 4px 4px; border-radius: 999px; }
#me.me-btn { border: 0; box-shadow: none; cursor: pointer; }
#me.me-btn:hover { background: var(--hover); filter: none; }
.brand-logo { height: 32px; max-width: 140px; object-fit: contain; border-radius: 6px; }
.login-logo { display: block; height: 52px; max-width: 220px; margin: 0 0 14px; object-fit: contain; }
.login-help { margin: 12px 0 0; text-align: center; }
.logo-preview { height: 48px; max-width: 200px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; padding: 4px; background: #fff; }
.link-box { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.link-box input { flex: 1 1 260px; font-size: 12px; }
.user-status { font-size: 12px; }
.price-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.price-row input[type=text], .price-row input:not([type]) { width: 110px; }
.period-custom { display: flex; gap: 8px; flex-wrap: wrap; }
.avatar.big { width: 30px; height: 30px; font-size: 12px; margin: 0; vertical-align: middle; background: var(--grad); }
.page-head { padding: 18px 16px 0; }
.page-head h1 { margin: 0; font-size: 28px; }
.page-head p { margin: 4px 0 0; }
.page-head p::first-letter { text-transform: uppercase; }
.toolbar { display: flex; gap: 8px; padding: 12px 16px; flex-wrap: wrap; align-items: center; }
.toolbar input[type=search] { min-width: 200px; flex: 0 1 280px; }
.toolbar select { max-width: 165px; }
main { padding: 0 16px 28px; }

/* ---------- Tablero ---------- */
.board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)) repeat(3, minmax(190px, .8fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.column { background: #eaeef6; border-radius: var(--radius-lg); padding: 0 8px 8px; min-height: 60vh; transition: box-shadow .15s, background .15s; }
.column.drop { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.col-head { display: flex; align-items: center; justify-content: space-between; margin: 0 -8px 10px; padding: 11px 14px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 72%, #fff));
  color: #fff; font-size: 14px; }
.col-head.dark-text { color: var(--text); }
.col-head .count { background: rgba(255, 255, 255, .28); border-radius: 10px; padding: 0 8px; font-size: 12px; font-weight: 600; }
.lead-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 8px;
  cursor: pointer; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; animation: pop .25s ease-out both; }
.lead-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.lead-card[draggable=true] { cursor: grab; }
.lead-card .name { font-weight: 600; }
.lead-card .meta { color: var(--muted); font-size: 12px; margin-top: 3px; }
.lead-card .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.lead-card.compact { padding: 11px 13px; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.card-top .name { line-height: 1.3; }
.card-top .avatar { width: 26px; height: 26px; font-size: 11px; margin: 0; flex: none; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 8px; margin-top: 8px; }
.card-bottom .touch-badge { margin: 0; white-space: normal; }
.card-bottom .ago { font-size: 11px; color: var(--muted); white-space: nowrap; margin-left: auto; }
.drawer-panel .tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 2px; }
.contact-line { margin: 2px 0 0; color: var(--text); }
.avatar { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; margin-right: 4px; vertical-align: -5px; }
.avatar.none { background: var(--empty); }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #eef0f5; color: var(--muted); }
.tag.cumple { background: #dcf3e7; color: #037f4c; }
.tag.no_cumple { background: #ffe3ec; color: #c21e56; }
.tag.formulario { background: var(--accent-soft); color: #4b4bdb; }
.tag.whatsapp { background: #d9f4f1; color: #00736d; }
.tag.llamada { background: #ffecd9; color: #b35500; }
.tag.otro { background: #fde4e8; color: #b52a40; }
.tag.product { background: #f1e6fb; color: #7a36b8; }
.pill { display: inline-block; min-width: 110px; text-align: center; padding: 4px 10px; border-radius: 4px; color: #fff;
  font-size: 12px; font-weight: 600; background: var(--c); }
.pill.dark-text, .dark-text { color: var(--text); }

/* ---------- Lista ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.card .table-wrap { box-shadow: none; }
table { width: 100%; border-collapse: collapse; background: var(--card); }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; color: var(--muted); font-weight: 600; background: #fafbfd; white-space: nowrap; }
tbody tr { cursor: pointer; transition: background .12s; }
tbody tr:hover { background: var(--hover); }
td.status-cell { padding: 0; width: 150px; border-left: 2px solid var(--card); border-right: 2px solid var(--card); }
td.status-cell span { display: block; padding: 12px 8px; text-align: center; color: #fff; font-weight: 600; font-size: 13px; background: var(--c); }
td.status-cell span.dark-text { color: var(--text); }

/* ---------- Resumen ---------- */
.dash { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.dash > * { grid-column: span 12; min-width: 0; }
.span-4 { grid-column: span 4 !important; } .span-6 { grid-column: span 6 !important; }
.span-8 { grid-column: span 8 !important; }
.kpis { --cols: 6; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(max(210px, calc((100% - (var(--cols) - 1) * 14px) / var(--cols))), 1fr)); }
/* Indicador: fondo teñido del color, cuadrito con degradado y número grande del mismo color */
.kpi-tile { display: flex; align-items: center; gap: 16px; border-radius: var(--radius-lg); padding: 18px 20px;
  background: color-mix(in srgb, var(--c) 9%, #fff); border: 1px solid color-mix(in srgb, var(--c) 14%, #fff);
  transition: transform .15s, box-shadow .15s; }
.kpi-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.kpi-ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex: none;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 62%, #fff));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 38%, transparent); }
.kpi-tile .value { font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--c) 85%, #000); }
.kpi-tile .label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text); margin-top: 2px; }
.kpi-tile .sub { font-size: 12px; color: var(--muted); }
.kpi-tile > div { min-width: 0; }
.kpi-tile .value.money { font-size: 22px; overflow-wrap: anywhere; }

/* Aviso con degradado (lectura rápida) */
.hero { display: flex; gap: 14px; align-items: flex-start; padding: 22px 24px; border-radius: var(--radius-lg); color: #fff;
  background: var(--grad-hero); box-shadow: 0 10px 30px rgba(26, 115, 232, .25); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 70%); }
.hero .ico { margin-top: 2px; }
.hero h2 { margin: 0 0 6px; font-size: 18px; }
.hero p { margin: 0; line-height: 1.6; max-width: 90ch; opacity: .96; }
.hero b { font-weight: 700; }

.battery { display: flex; gap: 2px; height: 30px; border-radius: 6px; overflow: hidden; background: #eef0f5; }
.battery.thin { height: 18px; border-radius: 4px; }
.battery .seg { width: 0; background: var(--c); transition: width .7s cubic-bezier(.2, .8, .2, 1), filter .15s; display: grid; place-items: center;
  color: #fff; font-size: 12px; font-weight: 600; overflow: hidden; white-space: nowrap; }
.battery .seg.dark-text { color: var(--text); }
.battery .seg:hover { filter: brightness(1.08) saturate(1.1); }
.ready .battery .seg { width: var(--w); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.legend b { font-variant-numeric: tabular-nums; }
.brows { display: grid; gap: 10px; }
.brow { display: grid; grid-template-columns: minmax(90px, 160px) 1fr 44px; gap: 10px; align-items: center; font-size: 13px; }
.brow .k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }

.donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut { width: 150px; height: 150px; flex: none; }
.donut circle.seg { fill: none; stroke-width: 18; transition: stroke-dasharray .8s cubic-bezier(.2, .8, .2, 1); cursor: default; }
.donut circle.seg:hover { stroke-width: 22; }
.donut text { font-family: var(--font-title); fill: var(--text); }
.donut-wrap .legend { flex-direction: column; margin: 0; }

.area svg { width: 100%; height: auto; display: block; overflow: visible; }
.area .grid line { stroke: var(--line); }
.area .grid text, .area .xlab { fill: var(--muted); font-size: 9px; }
.area path.line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.area path.fill { fill: url(#areaGrad); }
.area .cross { stroke: var(--muted); stroke-dasharray: 3 3; }
.area .pt { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.area path.line { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1s ease-out; }
.ready .area path.line { stroke-dashoffset: 0; }

/* Embudo de conversión */
.funnel { display: grid; gap: 2px; }
.f-row { display: grid; grid-template-columns: 96px 1fr 44px; align-items: center; gap: 10px; }
.f-name { font-weight: 600; font-size: 13px; }
.f-track { display: flex; justify-content: center; }
.f-bar { width: 0; height: 42px; border-radius: 10px; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 75%, #fff)); color: #fff; display: grid; place-items: center;
  transition: width .8s cubic-bezier(.2, .8, .2, 1), filter .15s; min-width: 0; overflow: hidden; }
.f-bar:hover { filter: brightness(1.08) saturate(1.1); }
.f-bar b { font-family: var(--font-title); font-size: 16px; }
.f-bar.dark-text { color: var(--text); }
.ready .f-bar { width: var(--w); min-width: 34px; }
.f-pct { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.f-step { display: grid; grid-template-columns: 96px 1fr 44px; gap: 10px; font-size: 11px; color: var(--muted); }
.f-step span { grid-column: 2; text-align: center; }
.funnel-table td, .funnel-table th { white-space: nowrap; }
.funnel-table td.rate { min-width: 96px; }
.funnel-table .mini { height: 4px; border-radius: 2px; background: #eef0f5; margin-top: 4px; overflow: hidden; }
.funnel-table .mini i { display: block; height: 100%; width: 0; background: var(--c); border-radius: 2px; transition: width .7s ease-out; }
.ready .funnel-table .mini i { width: var(--w); }
.funnel-table tr.unassigned td { color: var(--muted); background: #fafbfd; }
.conv { display: inline-block; min-width: 52px; text-align: center; padding: 3px 8px; border-radius: 12px; background: var(--accent-soft);
  color: var(--accent-strong); font-weight: 700; font-variant-numeric: tabular-nums; }
.conv.top { background: var(--f-cerrados); color: #fff; }
.conv.good { background: #dcf3e7; color: #037f4c; }
.conv.bad { background: #ffe3ec; color: #c21e56; }
.items .budget { flex: none; font-variant-numeric: tabular-nums; font-weight: 600; margin-right: 6px; }
.items .budget.missing { color: var(--muted); font-weight: 400; font-style: italic; }
.small-note { font-size: 12px; margin: 8px 0 0; }

/* Pasos en la ficha del lead */
.tracker { display: grid; grid-template-columns: repeat(5, 1fr); margin: 12px 0 8px; }
.t-step { display: grid; justify-items: center; text-align: center; gap: 2px; position: relative; font-size: 12px; }
.t-step::before { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.t-step:first-child::before { display: none; }
.t-step.done::before { background: var(--c); }
.t-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center;
  z-index: 1; color: #fff; font-size: 12px; font-weight: 700; }
.t-step.done .t-dot { background: var(--c); border-color: var(--c); }
.t-step.done .t-name { font-weight: 600; }
.t-date { color: var(--muted); font-size: 11px; min-height: 1em; }
.contact-btn { background: linear-gradient(135deg, #00a39b, #2cc4b5); box-shadow: 0 4px 12px rgba(0, 163, 155, .3); width: 100%; margin-bottom: 4px; }
.contact-btn:hover { background: #008a83; }

/* Toques */
.touch-badge { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap;
  background: #eef1f7; padding: 3px 9px; border-radius: 999px; }
.touch-badge.today { background: #fff1d6; color: #9a5b00; }
.touch-badge.late { background: #ffe3ec; color: #c21e56; }
.touch-badge.ok { background: #d9f4f1; color: #00736d; }
.touch-badge .ico { width: 13px; height: 13px; }
.board-alert { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; font-size: 13px; }
.alert-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-weight: 700; }
.alert-pill.late { background: #ffe3ec; color: #c21e56; }
.alert-pill.today { background: #fff1d6; color: #9a5b00; }
.touches { margin: 6px 0 14px; padding: 14px; border-radius: var(--radius); background: #f6f8fc; border: 1px solid var(--line); }
.touch-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tp { display: grid; justify-items: center; gap: 2px; min-width: 52px; font-size: 11px; color: var(--muted); }
.tp-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px;
  border: 2px dashed #c9cfdd; color: var(--muted); background: #fff; }
.tp.ok .tp-dot { border: 0; color: #fff; background: linear-gradient(135deg, #00a39b, #2cc4b5); }
.tp.miss .tp-dot { border: 0; color: #fff; background: linear-gradient(135deg, #8f95a8, #b3b8c6); }
.tp-n { font-weight: 700; color: var(--text); }
.touch-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.touch-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.touch-head .touch-badge { margin: 0; }
.seg-group { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.seg { margin: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1.5px solid #d5dae6; color: var(--text); font-size: 13px;
  cursor: pointer; background: #fff; }
.seg input:checked + span { background: var(--grad); color: #fff; border-color: transparent; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.outcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
button.outcome { font-size: 13px; padding: 9px 10px; box-shadow: none; }
button.outcome.sin_respuesta { background: #fff; color: var(--text); border: 1.5px solid #d5dae6; }
button.outcome.cumple, button.outcome.cotizado, button.outcome.vendido { background: linear-gradient(135deg, #037f4c, #1fa56b); }
button.outcome.conversacion, button.outcome.seguimiento { background: linear-gradient(135deg, #00a39b, #2cc4b5); }
button.outcome.no_cumple, button.outcome.rechazo { background: linear-gradient(135deg, #d9304e, #f0607a); }
#modal-select { width: 100%; }

.tip { position: fixed; z-index: 40; pointer-events: none; background: var(--nav); color: #fff; font-size: 12px; line-height: 1.4;
  padding: 7px 10px; border-radius: 6px; box-shadow: var(--shadow-lift); white-space: pre-line; max-width: 240px; }

/* ---------- Detalle ---------- */
.drawer { position: fixed; inset: 0; z-index: 10; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(41, 47, 76, .35); animation: fade .2s both; }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(500px, 100%); background: var(--card); padding: 22px; border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  overflow-y: auto; box-shadow: -8px 0 30px rgba(41, 47, 76, .18); animation: slide .25s cubic-bezier(.2, .8, .2, 1) both; }
.drawer-panel h2 { margin: 0 0 4px; }
select.status-select { background: var(--c); color: #fff; font-weight: 600; border-color: transparent; }
select.status-select.dark-text { color: var(--text); }
select.status-select option { background: #fff; color: var(--text); }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }
.events { list-style: none; padding: 0; margin: 8px 0; }
.events li { border-left: 3px solid var(--line); padding: 4px 12px; margin-bottom: 10px; }
.events li.nota { border-color: var(--accent); }
.events li.contacto { border-color: var(--whatsapp); }
.events li.estado { border-color: var(--cotizando); }
.events small { color: var(--muted); display: block; }
.actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* ---------- Configuración ---------- */
.settings { max-width: 860px; }
.settings .card { margin: 14px 0; }
.settings h3 { margin-top: 0; }
.copy { display: flex; gap: 8px; margin: 6px 0 10px; align-items: flex-start; }
.copy input, .copy textarea { flex: 1; font-family: ui-monospace, monospace; font-size: 12px; background: #fafbfd; }
.lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.lists .card { margin: 14px 0 0; }
.list-form { display: flex; gap: 8px; }
.list-form input { flex: 1; min-width: 0; }
.items { list-style: none; padding: 0; margin: 10px 0 0; }
.items li { display: flex; align-items: center; gap: 6px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.items li span { flex: 1; }
.items li.inactive span { color: var(--muted); text-decoration: line-through; }
.items li small { text-decoration: none; }
.ok { color: var(--vendido); }
.warn { color: #b36b00; }

/* ---------- Avisos ---------- */
.modal { position: fixed; inset: 0; z-index: 20; background: rgba(41, 47, 76, .4); display: grid; place-items: center; padding: 16px; animation: fade .15s both; }
.modal-box { width: min(420px, 100%); border-radius: var(--radius-lg); }
.modal-box p { margin-top: 0; }
.modal-box input { width: 100%; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 30; background: var(--nav); color: #fff; border-radius: 12px !important;
  padding: 11px 18px; border-radius: 8px; max-width: calc(100% - 32px); box-shadow: var(--shadow-lift); animation: pop .2s both; }
.toast.error { background: var(--danger); }
.toast.ok { background: var(--vendido); }

@media (max-width: 900px) {
  .span-4, .span-6, .span-8 { grid-column: span 12 !important; }
}
@media (max-width: 700px) {
  .board { grid-template-columns: repeat(5, 82vw); }
  .toolbar input[type=search] { min-width: 0; flex: 1 1 100%; }
  .toolbar select { max-width: none; flex: 1 1 45%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Filtros ---------- */
.extra-filters { flex: 1 1 100%; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 10px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.extra-filters select { max-width: 185px; }
button.ghost.active-filters { background: var(--accent-soft); border-color: var(--accent); }

/* ---------- Mi día ---------- */
.alert-pill.ok { background: #d9f4f1; color: #00736d; }
#view-today { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 1100px; }
.today-summary { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.today-search { width: 260px; max-width: 100%; }
.today-results { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding: 10px; border-radius: 14px; background: var(--card);
  border: 1px solid var(--line); }
.today-results p { margin: 4px 6px; }
.search-hit { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; width: 100%; text-align: left; background: transparent; color: inherit;
  border: 0; border-radius: 10px; padding: 8px 10px; box-shadow: none; font-weight: 400; }
.search-hit:hover, .search-hit:focus-visible { background: var(--hover); }
@media (max-width: 640px) { .today-search { width: 100%; order: 5; } }
.today-group .card-title { margin-bottom: 6px; }
.today-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 10px 0; border-top: 1px solid var(--line); }
.today-main { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.today-main .touch-badge { margin: 0; white-space: normal; max-width: 100%; }
.today-main a { text-decoration: none; }
.today-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.today-actions button.outcome { padding: 6px 10px; font-size: 12px; }
button.link { background: none; border: 0; box-shadow: none; padding: 0; color: var(--text); font-weight: 700; font-size: 15px; text-align: left; }
button.link:hover { color: var(--accent); filter: none; box-shadow: none; text-decoration: underline; }
.small-select { padding: 5px 8px; font-size: 13px; border-radius: 8px; max-width: 150px; }
.empty-today { text-align: center; padding: 36px 20px; color: var(--f-contactados); }
.empty-today .ico { margin: 0 auto; }
.empty-today h3 { color: var(--text); margin: 10px 0 4px; }

/* ---------- Resumen: pestañas ---------- */
.tabs { grid-column: 1 / -1; display: inline-flex; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; justify-self: start; box-shadow: var(--shadow); }
.tabs button { background: none; color: var(--muted); box-shadow: none; border-radius: 999px; padding: 7px 20px; }
.tabs button:hover { color: var(--text); filter: none; box-shadow: none; }
.tabs button.active { background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(21, 112, 239, .28); }

/* ---------- Ficha ---------- */
.contact-line { margin: -4px 0 8px; }
.decline-note { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 12px; border-radius: 10px;
  background: #ffe3ec; color: #a3173f; font-weight: 600; }
.note-form textarea { min-height: 60px; }
details.lead-data { margin: 16px 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 14px; background: #fafbfe; }
details.lead-data > summary { cursor: pointer; padding: 12px 0; font-weight: 700; list-style: none; }
details.lead-data > summary::before { content: '▸ '; color: var(--muted); }
details.lead-data[open] > summary::before { content: '▾ '; }
details.lead-data[open] { padding-bottom: 12px; }
fieldset.plain { border: 0; padding: 0; margin: 0 0 10px; }
fieldset.plain legend { padding: 0; margin-bottom: 6px; }

/* ---------- Configuración ---------- */
.switch-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.switch-row input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.items.campaigns li { flex-wrap: wrap; }
.items.campaigns li > span:first-child { flex: 1 1 180px; }
.items.campaigns li .budget { flex: none; }
details.months { flex: 1 1 100%; }
details.months summary { cursor: pointer; color: var(--accent); font-size: 13px; font-weight: 600; }
.month-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 8px; }
.month-grid label { font-size: 12px; color: var(--muted); display: grid; gap: 3px; text-transform: capitalize; }
code { background: var(--accent-soft); padding: 1px 5px; border-radius: 5px; font-size: 12px; word-break: break-all; }

/* ---------- Asignación ---------- */
.assign { display: grid; gap: 14px; max-width: 1100px; }
.load-row { display: grid; grid-template-columns: minmax(150px, 220px) 1fr auto auto; gap: 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.load-row .k { display: flex; align-items: center; gap: 8px; min-width: 0; }
.load-row .n { white-space: nowrap; font-variant-numeric: tabular-nums; }
.load-extra { white-space: nowrap; font-size: 13px; }
.load-bar { gap: 2px; }
.assign-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
@media (max-width: 700px) {
  .load-row { grid-template-columns: 1fr auto; }
  .load-row .load-bar { grid-column: 1 / -1; grid-row: 2; }
  .load-extra { grid-column: 1 / -1; }
}
.load-rows { gap: 0; }
#view-assign .small-select { max-width: 240px; }

/* ---------- Audiencias y ajustes ---------- */
.audience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.audience { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.audience .value { font-size: 26px; font-weight: 800; color: var(--nuevo_perfil); line-height: 1.1; }
.audience p { margin: 0 0 8px; font-size: 13px; flex: 1; }
.audience button { align-self: flex-start; }
button:disabled { opacity: .45; cursor: default; }
.col-note { padding: 4px 6px; }
.inline-check { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; white-space: nowrap; }

/* ---------- WhatsApp y avisos ---------- */
.wa-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 10px; background: #1faa53; color: #fff;
  font-weight: 700; font-size: 13px; text-decoration: none; box-shadow: 0 3px 10px rgba(31, 170, 83, .28); white-space: nowrap; }
.wa-btn:hover { filter: brightness(1.06); }
.wa-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wa-btn.small { padding: 5px 10px; font-size: 12px; box-shadow: none; }
.call-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 10px; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap; }
.call-btn:hover { filter: brightness(1.06); }
.call-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.call-btn.small { padding: 5px 10px; font-size: 12px; }
.contact-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.nav-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; }
.nav-badge.late { background: var(--danger); }
.wa-form { display: grid; gap: 10px; }
.wa-form textarea { width: 100%; }
.wa-form button { justify-self: start; }
.small { font-size: 12px; }

/* Mi día con las etapas del Tablero */
.today-group .today-head { margin: -20px -20px 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; font-size: 15px; }
.today-help { margin: 10px 0 4px; }
.today-none { margin: 8px 0 0; font-size: 13px; }


/* Perfil rápido, acuerdo y última nota */
.modal-extra { display: grid; gap: 10px; margin: 6px 0 12px; }
.modal-extra label { display: grid; gap: 4px; }
.modal-extra .seg-group { margin-bottom: 0; }
.modal-box { max-height: 90vh; overflow-y: auto; }
.quick-profile { display: grid; gap: 6px; margin: 10px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fafbfe; }
.qp-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.qp-q { color: var(--muted); min-width: 170px; }
button.qp { background: #fff; color: var(--text); border: 1.5px solid #d5dae6; box-shadow: none; padding: 3px 10px; font-size: 12px; font-weight: 600; border-radius: 999px; }
button.qp:hover { border-color: var(--accent); filter: none; box-shadow: none; }
button.qp.on { background: var(--f-contactados); border-color: var(--f-contactados); color: #fff; }
button.qp:disabled { opacity: 1; }
.agreed-note { display: flex; gap: 8px; align-items: flex-start; padding: 8px 12px; border-radius: 10px; background: var(--accent-soft); color: #0b4a9c; margin: 8px 0; }
.touch-badge.agreed:not(.late):not(.today) { background: var(--accent-soft); color: #0b4a9c; }
.today-note { flex: 1 1 100%; color: var(--muted); font-size: 13px; font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.touch-head { flex-wrap: wrap; }
.touch-head strong { white-space: nowrap; }
.touch-head .touch-badge { white-space: normal; max-width: 100%; }

/* Marketing: comparación, tabla de campañas, audiencias y links */
.delta { font-size: 11px; font-weight: 700; margin-top: 3px; color: var(--muted); }
.delta.good { color: #037f4c; }
.delta.bad { color: #c21e56; }
.stats-hint { grid-column: 1 / -1; margin: -4px 0 0; }
.campaigns-table th, .campaigns-table td { white-space: nowrap; }
.campaigns-table td:first-child, .campaigns-table th:first-child { position: sticky; left: 0; background: var(--card); z-index: 1; }
.discard { font-size: 12px; color: #a3173f; background: #ffe3ec; padding: 2px 8px; border-radius: 999px; }
.audience-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.link-form { display: grid; gap: 10px; }
.link-form label { display: grid; gap: 4px; }

/* Gerente: Equipo hoy, pedidos de seguimiento y pipeline */
.team { display: grid; gap: 14px; }
.light { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.light.red { background: #e2445c; box-shadow: 0 0 0 3px #ffe3ec; }
.light.yellow { background: #f59e0b; box-shadow: 0 0 0 3px #fff1d6; }
.light.green { background: #037f4c; box-shadow: 0 0 0 3px #d9f4f1; }
.team-table td, .team-table th, .sellers-table td, .sellers-table th { white-space: nowrap; }
.alerts-row td { padding-top: 0 !important; border-top: 0 !important; }
.team-alerts { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 24px; }
button.chip-alert { background: #fff6f8; color: #7a1633; border: 1px solid #ffc9d8; box-shadow: none; padding: 3px 10px; font-size: 12px; font-weight: 500; border-radius: 999px; }
button.chip-alert:hover { border-color: #e2445c; filter: none; box-shadow: none; }
.request-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: #0b4a9c; font-size: 12px; font-weight: 700; }
.request-note { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 12px; border-radius: 10px; background: var(--accent-soft); color: #0b4a9c; margin: 8px 0; }
.request-note > span { flex: 1; }
.ask-followup { margin: 6px 0; display: inline-flex; align-items: center; gap: 6px; }
.today-group.requests { border: 2px solid var(--accent); }
.compact-card { padding: 14px 18px; }
.total-row td { border-top: 2px solid var(--line); background: #fafbfe; }
.team > *, .assign > * { min-width: 0; }
.operator-question { flex: 1 1 100%; margin: 0; } .operator-question legend { font-size: 13px; }
.inline-check input { width: auto; margin: 0; }
a.button-link { display: inline-block; background: var(--grad); color: #fff; border-radius: 10px; padding: 9px 16px; font-weight: 600; text-decoration: none; }
.storage-warning { margin: 10px 16px 0; }
.cartera-reminder { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 16px 0; padding: 10px 14px; border-radius: 10px;
  background: var(--accent-soft); border: 1px solid var(--line); font-size: 13px; }
.cartera-reminder span { flex: 1 1 260px; }
.board-archived { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; font-size: 13px; color: var(--muted); }

/* Ficha del vendedor, cotizaciones grandes y avisos de datos */
.seller-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.seller-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.seller-head select { max-width: 180px; }
.big-line { font-size: 16px; margin: 4px 0; }
button.chip-alert.data { background: #f4f6fb; color: #4a5068; border-color: #d5dae6; }
.team-alerts.no-pad { padding-left: 0; }
details.fold-card > summary { list-style: none; cursor: pointer; }
details.fold-card > summary::-webkit-details-marker { display: none; }
details.fold-card:not([open]) .card-title { margin-bottom: 0; }
button.link.name, .sellers-table button.link, .team-table button.link { font-size: 14px; }

/* Marketing: campañas a revisar, ficha de campaña y pestañas de Configuración */
.health-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.health-row .light { margin-top: 6px; }
.health-main { flex: 1 1 320px; min-width: 0; }
.health-main ul { margin: 4px 0 0; padding-left: 18px; color: #7a1633; font-size: 13px; }
.health-nums { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.health-nums b { color: var(--text); }
.hero { position: relative; }
.hero-btn { margin-left: auto; align-self: center; background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.5); }
.hero-btn:hover { background: rgba(255,255,255,.28); }
.week-bars { display: grid; grid-template-columns: repeat(var(--n, 12), 1fr); gap: 6px; align-items: end; height: 190px; }
.wk { display: flex; flex-direction: column; align-items: center; height: 100%; gap: 4px; }
.wk-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.wk-bars i { display: block; width: 42%; border-radius: 4px 4px 0 0; min-height: 2px; }
.wk-bars i.all { background: var(--f-recibidos); }
.wk-bars i.fit { background: var(--f-perfilados); }
.wk span { font-size: 10px; color: var(--muted); white-space: nowrap; }
.qp-stat { margin-bottom: 14px; }
.qp-stat .qp-q { display: block; margin-bottom: 6px; font-weight: 600; font-size: 13px; }
.settings-tabs { margin-bottom: 4px; }
.settings-group { display: grid; gap: 14px; }
.hero::after { pointer-events: none; } .hero-btn { position: relative; z-index: 1; }
a.button-link.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }
a.button-link.small { padding: 5px 10px; font-size: 12px; }
.stats-actions { display: flex; justify-content: flex-end; grid-column: 1 / -1; }
.stats-actions .ico { margin-right: 4px; vertical-align: -3px; }
