/* Conexity CRM · estilos (móvil primero, letra grande, alto contraste) */
/* Conexity CRM · Dirección visual: azul noche del logo, cian y azul como acentos, mucho aire y poco brillo.
   Temas: claro (por defecto), oscuro (sigue al sistema o se elige), alto contraste. Todo color sale de estos tokens. */
:root {
  --font-d: "Montserrat", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-b: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r: 18px; --nav-h: 76px;
  --bg: #f2f5fc; --card: #ffffff; --card2: #f7f9ff; --ink: #0b1533; --muted: #4b5b82; --line: #d3ddf1;
  --brand: #0e9fc4; --brand-text: #0a5cc4; --brand-ink: #031025; --brand-soft: rgba(10,92,196,.09); --brand-line: rgba(10,92,196,.28);
  --grad: linear-gradient(135deg, #22d3ee 0%, #5b8cff 100%);
  --green: #0b7a52; --green-soft: rgba(11,138,90,.12); --wa: #25d366; --wa-ink: #04210f;
  --amber: #8a5200; --amber-soft: rgba(184,110,0,.14); --red: #b42339; --red-soft: rgba(196,43,63,.1); --on-red: #ffffff;
  --violet-text: #4f35c9; --violet-soft: rgba(100,70,230,.1);
  --glow-a: rgba(79,107,255,.10); --glow-b: rgba(34,211,238,.10); --ring: rgba(10,92,196,.35);
  --sheet-top: #ffffff; --placeholder: #68789d; --overlay: rgba(11,21,51,.5); --glass: rgba(255,255,255,.9);
  --preview-bg: #dcf8c6; --preview-ink: #0b2a14;
  --shadow: 0 1px 2px rgba(11,21,51,.06), 0 8px 22px rgba(11,21,51,.07); --shadow-btn: 0 6px 16px rgba(14,159,196,.22);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="contrast"]) {
  --bg: #040a1f; --card: #0a1433; --card2: #0e1b44; --ink: #eaf1ff; --muted: #9eadd2; --line: #22346a;
  --brand: #22d3ee; --brand-text: #22d3ee; --brand-ink: #031025; --brand-soft: rgba(34,211,238,.13); --brand-line: rgba(34,211,238,.3);
  --grad: linear-gradient(135deg, #22d3ee 0%, #5b8cff 100%);
  --green: #34d399; --green-soft: rgba(52,211,153,.14); --wa: #25d366; --wa-ink: #04210f;
  --amber: #fbbf24; --amber-soft: rgba(251,191,36,.14); --red: #fb7185; --red-soft: rgba(251,113,133,.15); --on-red: #2a0610;
  --violet-text: #a9b6ff; --violet-soft: rgba(122,92,255,.18);
  --glow-a: rgba(79,107,255,.20); --glow-b: rgba(34,211,238,.12); --ring: rgba(34,211,238,.4);
  --sheet-top: #0b1738; --placeholder: #7081ad; --overlay: rgba(2,5,18,.72); --glass: rgba(6,13,38,.88);
  --preview-bg: #123a2a; --preview-ink: #e9fff3;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 8px 22px rgba(0,0,0,.32); --shadow-btn: 0 6px 16px rgba(34,211,238,.18);
  color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #040a1f; --card: #0a1433; --card2: #0e1b44; --ink: #eaf1ff; --muted: #9eadd2; --line: #22346a;
  --brand: #22d3ee; --brand-text: #22d3ee; --brand-ink: #031025; --brand-soft: rgba(34,211,238,.13); --brand-line: rgba(34,211,238,.3);
  --grad: linear-gradient(135deg, #22d3ee 0%, #5b8cff 100%);
  --green: #34d399; --green-soft: rgba(52,211,153,.14); --wa: #25d366; --wa-ink: #04210f;
  --amber: #fbbf24; --amber-soft: rgba(251,191,36,.14); --red: #fb7185; --red-soft: rgba(251,113,133,.15); --on-red: #2a0610;
  --violet-text: #a9b6ff; --violet-soft: rgba(122,92,255,.18);
  --glow-a: rgba(79,107,255,.20); --glow-b: rgba(34,211,238,.12); --ring: rgba(34,211,238,.4);
  --sheet-top: #0b1738; --placeholder: #7081ad; --overlay: rgba(2,5,18,.72); --glass: rgba(6,13,38,.88);
  --preview-bg: #123a2a; --preview-ink: #e9fff3;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 8px 22px rgba(0,0,0,.32); --shadow-btn: 0 6px 16px rgba(34,211,238,.18);
  color-scheme: dark;
}
:root[data-theme="contrast"] {
  --bg: #000000; --card: #000000; --card2: #0a0a0a; --ink: #ffffff; --muted: #e8e8e8; --line: #ffffff;
  --brand: #00e5ff; --brand-text: #00e5ff; --brand-ink: #000000; --brand-soft: #00262b; --brand-line: #00e5ff;
  --grad: linear-gradient(#00e5ff, #00e5ff);
  --green: #3dff9a; --green-soft: #002914; --wa: #3dff9a; --wa-ink: #000000;
  --amber: #ffd400; --amber-soft: #2b2400; --red: #ff7b7b; --red-soft: #2e0000; --on-red: #000000;
  --violet-text: #c9d1ff; --violet-soft: #14123d;
  --glow-a: transparent; --glow-b: transparent; --ring: #ffffff;
  --sheet-top: #000000; --placeholder: #cfcfcf; --overlay: rgba(0,0,0,.85); --glass: #000000;
  --preview-bg: #003b1f; --preview-ink: #ffffff;
  --shadow: none; --shadow-btn: none;
  color-scheme: dark;
}
html[data-size="grande"] { font-size: 20.5px; }
html[data-size="enorme"] { font-size: 23px; }
:focus-visible { outline: 3px solid var(--brand-text); outline-offset: 2px; }
:root[data-theme="contrast"] :focus-visible { outline-color: #ffd400; outline-width: 4px; }
:root[data-theme="contrast"] .card, :root[data-theme="contrast"] .client, :root[data-theme="contrast"] .stat, :root[data-theme="contrast"] .list-row, :root[data-theme="contrast"] .input, :root[data-theme="contrast"] .chip, :root[data-theme="contrast"] .option { border: 2px solid #fff; }
:root[data-theme="contrast"] .btn.soft, :root[data-theme="contrast"] .banner { border: 2px solid var(--brand-line); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 18px; }
body { margin: 0; color: var(--ink); background: radial-gradient(820px 460px at 100% -8%, var(--glow-a), transparent 62%), radial-gradient(640px 420px at -8% 0%, var(--glow-b), transparent 62%), var(--bg); background-repeat: no-repeat; font-family: var(--font-b); line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-family: var(--font-d); letter-spacing: -.01em; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.05rem; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.hidden { display: none !important; }
a { color: var(--brand-text); }

/* ---------- estructura ---------- */
#app { min-height: 100dvh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.logo { width: 44px; height: 44px; flex: none; border-radius: 50%; display: block; box-shadow: 0 0 0 1px var(--ring); }
.topbar .title { font-family: var(--font-d); font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; }
.topbar .sub { font-size: .8rem; color: var(--muted); }
main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 4px 16px calc(var(--nav-h) + 28px); }
.nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: var(--nav-h); background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); }
.nav button { background: none; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-weight: 700; font-size: .78rem; cursor: pointer; position: relative; }
.nav button svg { width: 28px; height: 28px; }
.nav button[aria-current="page"] { color: var(--brand-text); }
.nav button[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 44px; height: 4px; border-radius: 0 0 4px 4px; background: var(--grad); }
.nav .dot { position: absolute; top: 10px; left: calc(50% + 8px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: var(--on-red); font-size: .7rem; display: grid; place-items: center; }
@media (min-width: 900px) {
  #app { padding-left: 120px; }
  .nav { top: 0; bottom: auto; right: auto; width: 120px; height: 100dvh; grid-template-columns: 1fr; grid-template-rows: repeat(4, 90px); align-content: start; padding-top: 90px; border-top: 0; border-right: 1px solid var(--line); }
  .nav button[aria-current="page"]::before { top: auto; left: 0; width: 4px; height: 44px; border-radius: 0 4px 4px 0; }
  main { padding-bottom: 40px; }
}

/* ---------- componentes ---------- */
.card { background: linear-gradient(180deg, var(--card2), var(--card)); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; border: 1px solid var(--line); }
.stack > * + * { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.section-title { margin: 22px 2px 10px; font-size: 1.05rem; font-weight: 800; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 22px; border-radius: 16px; border: 2px solid transparent; font-family: var(--font-d); font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none; background: var(--grad); color: var(--brand-ink); box-shadow: var(--shadow-btn); transition: transform .06s, filter .15s; }
.btn:active { transform: scale(.98); }
.btn:hover { filter: brightness(1.06); }
.btn svg { width: 24px; height: 24px; flex: none; }
.btn.block { display: flex; width: 100%; }
.btn.green { background: var(--wa); color: var(--wa-ink); box-shadow: none; }
.btn.soft { background: var(--brand-soft); color: var(--brand-text); box-shadow: none; border-color: var(--brand-line); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); box-shadow: none; }
.btn.danger { background: var(--red-soft); color: var(--red); box-shadow: none; }
.btn.small { min-height: 44px; padding: 0 16px; font-size: .9rem; border-radius: 12px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.big-actions { display: grid; gap: 12px; }
.big-action { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 18px; border-radius: 20px; border: 0; cursor: pointer; background: var(--grad); color: var(--brand-ink); box-shadow: var(--shadow-btn); font-family: inherit; }
.big-action.alt { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.big-action .ic { width: 52px; height: 52px; border-radius: 16px; background: rgba(3,16,37,.16); display: grid; place-items: center; flex: none; }
.big-action.alt { box-shadow: var(--shadow); }
.big-action.alt .ic { background: var(--brand-soft); color: var(--brand-text); }
.big-action .ic svg { width: 28px; height: 28px; }
.big-action b { display: block; font-family: var(--font-d); font-size: 1.08rem; }
.big-action span { font-size: .88rem; opacity: .85; }

label.field { display: block; }
label.field > span { display: block; font-weight: 700; margin: 0 0 6px 2px; font-size: .95rem; }
.input, textarea.input, select.input { width: 100%; min-height: 56px; padding: 12px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); outline: none; }
textarea.input { min-height: 130px; resize: vertical; }
.input:focus { border-color: var(--brand-text); box-shadow: 0 0 0 4px var(--brand-soft); }
.input::placeholder { color: var(--placeholder); }
.hint { font-size: .85rem; color: var(--muted); margin: 6px 2px 0; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 2px solid var(--line); background: var(--card); font-weight: 700; font-size: .9rem; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.chip[aria-pressed="true"] { background: var(--grad); border-color: transparent; color: var(--brand-ink); }
.chip .n { opacity: .7; font-weight: 600; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 14px; font-size: .78rem; font-weight: 800; background: var(--brand-soft); color: var(--brand-text); border: 1px solid var(--brand-line); white-space: nowrap; }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.gray { background: var(--line); color: var(--muted); border-color: transparent; }
.pill.green, .pill.amber, .pill.red { border-color: transparent; }

.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-d); font-weight: 800; color: #fff; flex: none; font-size: 1rem; box-shadow: 0 0 0 2px rgba(255,255,255,.08); }
.client { display: flex; align-items: center; gap: 14px; padding: 14px; background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; cursor: pointer; box-shadow: var(--shadow); }
.client:active { transform: scale(.99); }
.client .name { font-weight: 800; }
.wa-btn { width: 52px; height: 52px; border-radius: 50%; background: var(--wa); color: var(--wa-ink); box-shadow: none; border: 0; display: grid; place-items: center; cursor: pointer; flex: none; }
.wa-btn svg { width: 28px; height: 28px; }

.banner { border-radius: var(--r); padding: 14px 16px; margin: 4px 0 14px; display: flex; align-items: center; gap: 12px; background: var(--brand-soft); color: var(--brand-text); font-weight: 700; }
.banner.warn { background: var(--amber-soft); color: var(--amber); }
.banner.bad { background: var(--red-soft); color: var(--red); }
.banner .btn { margin-left: auto; white-space: nowrap; flex: none; }
.banner { font-size: .95rem; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: 16px; padding: 14px 8px; text-align: center; box-shadow: var(--shadow); }
.stat b { display: block; font-family: var(--font-d); font-size: 1.8rem; line-height: 1.1; color: var(--brand-text); }
.stat span { font-size: .78rem; color: var(--muted); font-weight: 700; }

.search { position: relative; }
.search svg { position: absolute; left: 16px; top: 16px; width: 24px; height: 24px; color: var(--muted); }
.search .input { padding-left: 52px; }

.fab { position: fixed; z-index: 25; right: 18px; bottom: calc(var(--nav-h) + 18px); min-height: 60px; padding: 0 24px; border-radius: 30px; box-shadow: var(--shadow-btn), 0 6px 18px rgba(0,0,0,.18); }
@media (min-width: 900px) { .fab { right: calc(50% - 360px); bottom: 28px; } }

.steps { display: flex; gap: 6px; margin: 4px 0 16px; }
.steps i { flex: 1; height: 8px; border-radius: 4px; background: var(--line); }
.steps i.on { background: var(--grad); }
.option { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); cursor: pointer; margin-bottom: 10px; }
.option[aria-checked="true"] { border-color: var(--brand-text); background: var(--brand-soft); }
.option .radio { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); flex: none; }
.option[aria-checked="true"] .radio { border-color: var(--brand-text); background: radial-gradient(var(--brand) 45%, transparent 50%); }
.option b { display: block; }
.preview { background: var(--preview-bg); color: var(--preview-ink); border-radius: 4px 18px 18px 18px; padding: 14px 16px; white-space: pre-wrap; max-width: 92%; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--line); padding: 4px; border-radius: 16px; margin: 6px 0 16px; }
.seg button { min-height: 52px; padding: 0 8px; font-size: .92rem; line-height: 1.15; border: 0; background: transparent; border-radius: 12px; font-weight: 800; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--card2); color: var(--brand-text); box-shadow: var(--shadow); }

.list-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 68px; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; cursor: pointer; text-align: left; }
.list-row .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; flex: none; }
.list-row .ic svg { width: 24px; height: 24px; }
.list-row b { display: block; }
.list-row .chev { color: var(--muted); width: 22px; height: 22px; }

.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty svg { width: 76px; height: 76px; padding: 18px; margin-bottom: 12px; color: var(--brand-text); border-radius: 50%; background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand-line); }
.empty b { display: block; color: var(--ink); font-size: 1.1rem; margin-bottom: 4px; }

.timeline { border-left: 3px solid var(--line); margin-left: 8px; padding-left: 16px; }
.timeline div { position: relative; padding-bottom: 12px; font-size: .9rem; }
.timeline div::before { content: ""; position: absolute; left: -23px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--brand); }

/* hojas y avisos */
.overlay { position: fixed; inset: 0; z-index: 50; background: var(--overlay); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet { width: 100%; max-width: 640px; max-height: 94dvh; overflow: auto; background: linear-gradient(180deg, var(--sheet-top), var(--bg) 40%); border: 1px solid var(--line); border-bottom: 0; border-radius: 26px 26px 0 0; padding: 18px 18px calc(24px + env(safe-area-inset-bottom)); animation: up .2s ease-out; }
@media (min-width: 700px) { .overlay { align-items: center; } .sheet { border-radius: 26px; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.x { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; display: grid; place-items: center; flex: none; }
.x svg { width: 24px; height: 24px; }
.toast { position: fixed; z-index: 80; left: 0; right: 0; margin: 0 auto; width: max-content; max-width: calc(100% - 32px); bottom: calc(var(--nav-h) + 92px); background: var(--ink); color: var(--bg); padding: 14px 22px; border-radius: 16px; font-weight: 700; text-align: center; box-shadow: var(--shadow); animation: up .2s; }
@media (min-width: 900px) { .toast { bottom: 40px; } }
.toast.bad { background: var(--red); color: var(--on-red); }
@keyframes up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--brand-text); animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- acceso ---------- */
.auth { max-width: 460px; margin: 0 auto; padding: 28px 20px 40px; width: 100%; position: relative; }
.auth .hero { text-align: center; margin-bottom: 22px; position: relative; }
.auth .net { position: absolute; left: 50%; top: -22px; width: 440px; max-width: 120%; transform: translateX(-50%); opacity: .55; pointer-events: none; z-index: 0; }
.auth .hero > :not(.net) { position: relative; z-index: 1; }
.auth .hero .logo-xl { width: 132px; height: 132px; border-radius: 50%; display: block; margin: 0 auto 14px; box-shadow: 0 0 0 1px var(--ring), 0 10px 40px var(--glow-b); }
.auth .hero h1 { font-size: 2rem; letter-spacing: -.02em; }
.auth .hero h1 b { color: var(--brand-text); }
.auth .hero p { margin-top: 6px; color: var(--muted); font-weight: 500; }
.auth .tagline { display: inline-block; margin-top: 10px; padding: 5px 14px; border-radius: 20px; border: 1px solid var(--brand-line); background: var(--brand-soft); color: var(--brand-text); font-weight: 700; font-size: .85rem; letter-spacing: .02em; }
.perks { display: grid; gap: 8px; margin: 18px 0 4px; }
.perks div { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: .95rem; }
.perks svg { width: 22px; height: 22px; color: var(--brand-text); flex: none; }
.pw { position: relative; }
.pw button { position: absolute; right: 6px; top: 6px; height: 44px; padding: 0 14px; border-radius: 10px; border: 0; background: var(--line); color: var(--ink); font-weight: 700; cursor: pointer; }
.demo-tag { position: fixed; z-index: 90; bottom: calc(var(--nav-h) + 8px + env(safe-area-inset-bottom)); left: 8px; background: #fbbf24; color: #2a1a00; font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 10px; }

/* ---------- panel de avance ---------- */
.eyebrow { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-text); }
.greet { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 2px 16px; }
.greet .mark { width: 68px; height: auto; padding: 10px 9px; border-radius: 18px; background: #040a1f; box-sizing: border-box; }
.stat .ico { width: 34px; height: 34px; margin: 0 auto 8px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); }
.stat .ico svg { width: 20px; height: 20px; }
.stat.g .ico { background: var(--green-soft); color: var(--green); }
.stat.v .ico { background: var(--violet-soft); color: var(--violet-text); }
.funnel { padding: 16px; }
.funnel .bar { display: flex; height: 14px; border-radius: 8px; overflow: hidden; background: var(--line); gap: 2px; margin: 12px 0 14px; }
.funnel .bar i { display: block; min-width: 4px; }
.funnel .legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.funnel .legend div { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; min-width: 0; }
.funnel .legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.funnel .legend b { margin-left: auto; font-family: var(--font-d); }

/* ---------- fase 3: inicio, agenda, ventas, oportunidades, resultados ---------- */
.lead { font-size: 1.05rem; margin: 0 2px 14px; color: var(--ink); }
.quad { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quad .big-action { padding: 14px; gap: 12px; flex-direction: column; align-items: flex-start; }
.quad .big-action .ic { width: 44px; height: 44px; border-radius: 14px; }
.quad .big-action b { font-size: 1rem; }
.opp-card, .opp-hero { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; margin: 14px 0 0; padding: 16px; border-radius: var(--r); border: 1px solid var(--brand-line); background: var(--brand-soft); color: var(--ink); cursor: pointer; font-family: inherit; }
.opp-card b, .opp-hero b { display: block; }
.opp-card .small { display: block; color: var(--muted); }
.opp-card .ic, .opp-hero .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: var(--brand-ink); display: grid; place-items: center; flex: none; }
.opp-card .ic svg, .opp-hero .ic svg { width: 26px; height: 26px; }
.opp-card .chev { width: 22px; height: 22px; color: var(--muted); }
.opp-hero { cursor: default; margin: 0 0 14px; align-items: flex-start; }
.opp-g { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 14px 14px; margin-bottom: 12px; }
.opp-g summary { display: flex; align-items: center; gap: 10px; min-height: 56px; cursor: pointer; list-style: none; }
.opp-g summary::-webkit-details-marker { display: none; }
.opp-g[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.opp-g .client { box-shadow: none; }
.stats.two { grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.stat .trend, .stat .muted { display: block; font-size: .72rem; margin-top: 4px; }
.trend { font-weight: 700; font-size: .82rem; }
.trend.up { color: var(--green); }
.trend.down { color: var(--red); }
.big-num { font-family: var(--font-d); font-weight: 800; font-size: 2.1rem; line-height: 1.15; margin: 4px 0; }
.ev.done { opacity: .7; }
.chip svg { width: 18px; height: 18px; }
.cal { margin-bottom: 8px; }
.cal-h, .cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-h span { text-align: center; font-weight: 800; font-size: .8rem; color: var(--muted); padding: 4px 0; }
.cal-g i { display: block; }
.day { position: relative; min-height: 56px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-weight: 700; }
.day b { background: var(--brand); color: var(--brand-ink); border-radius: 10px; font-size: .7rem; min-width: 20px; padding: 0 5px; }
.day.today { border: 2px solid var(--brand-text); }
@media (min-width: 900px) { .quad { grid-template-columns: repeat(4, 1fr); } }

/* Fase 4: planes y medidores */
.plan-card { padding: 16px; display: grid; gap: 10px; }
.plan-card.current { border-color: var(--brand-line); box-shadow: 0 0 0 2px var(--brand-line); }
.plan-price { font-family: var(--font-d); font-size: 2rem; font-weight: 800; line-height: 1.1; }
.meter { height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; background: var(--brand-text); border-radius: 6px; }
.meter i.full { background: var(--red); }

/* Ventana al centro (opinión) */
.overlay.center { align-items: center; padding: 16px; }
.overlay.center .sheet { border-radius: 26px; border-bottom: 1px solid var(--line); max-width: 460px; }
.overlay.center .sheet-head { display: none; }
.fb-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-opts .chip { text-align: left; }
