/* Empata · página web. Grafito con un solo acento latón; titulares en serif, datos en sans. */
:root {
  --bg: #f5f4f1; --surface: #ffffff; --sunken: #ecebe7; --line: #e2e0da;
  --ink: #15171b; --ink-2: #4b5059; --ink-3: #868b94;
  --brass: #8c6a2f; --brass-soft: #f2ead9; --brass-ink: #ffffff;
  --primary: #15171b; --on-primary: #ffffff;
  --offer: #1b7250; --offer-bg: #e2f3ea; --seek: #3c4eb0; --seek-bg: #e7eafa; --danger: #a5402f;
  --c-offer: #008300; --c-seek: #2a78d6; --c-neutral: #8a8f98; --grid: #e6e4de;
  --shadow: 0 1px 2px rgba(21, 23, 27, 0.05), 0 12px 32px -16px rgba(21, 23, 27, 0.18);
  --shadow-lg: 0 2px 6px rgba(21, 23, 27, 0.06), 0 30px 60px -24px rgba(21, 23, 27, 0.32);
  --hero: #111316; --hero-ink: #f2efe8; --hero-2: #a9a59a;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0e10; --surface: #15181c; --sunken: #1c2025; --line: #272b31;
    --ink: #f1f0ec; --ink-2: #adb1b9; --ink-3: #747a85;
    --brass: #d8b871; --brass-soft: #2a2416; --brass-ink: #17130a;
    --primary: #d8b871; --on-primary: #17130a;
    --offer: #7fd1a8; --offer-bg: #12281e; --seek: #aab6f7; --seek-bg: #1b2140; --danger: #f0a091;
    --c-offer: #008300; --c-seek: #3987e5; --c-neutral: #6d737d; --grid: #262a30;
    --shadow: 0 0 0 1px var(--line);
    --shadow-lg: 0 0 0 1px var(--line), 0 30px 60px -24px rgba(0, 0, 0, 0.7);
    --hero: #08090b;
    color-scheme: dark;
  }
}
/* El modo elegido a mano en la página gana sobre el de la computadora. */
:root[data-theme="dark"] {
    --bg: #0c0e10; --surface: #15181c; --sunken: #1c2025; --line: #272b31;
    --ink: #f1f0ec; --ink-2: #adb1b9; --ink-3: #747a85;
    --brass: #d8b871; --brass-soft: #2a2416; --brass-ink: #17130a;
    --primary: #d8b871; --on-primary: #17130a;
    --offer: #7fd1a8; --offer-bg: #12281e; --seek: #aab6f7; --seek-bg: #1b2140; --danger: #f0a091;
    --c-offer: #008300; --c-seek: #3987e5; --c-neutral: #6d737d; --grid: #262a30;
    --shadow: 0 0 0 1px var(--line);
    --shadow-lg: 0 0 0 1px var(--line), 0 30px 60px -24px rgba(0, 0, 0, 0.7);
    --hero: #08090b;
    color-scheme: dark;
  }

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
.boot { min-height: 100vh; display: grid; place-items: center; color: var(--ink-3); }
.mark { color: var(--brass); flex: none; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Botones y campos ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 14px; transition: transform 0.12s, border-color 0.15s, opacity 0.15s; text-decoration: none; }
.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn.primary:hover { opacity: 0.92; }
.btn.block { width: 100%; }
.btn.sm { padding: 7px 13px; font-size: 13px; }
.btn:disabled { opacity: 0.55; cursor: default; }
.field { display: grid; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.03em; color: var(--ink-3); }
.input, .select { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 11px 13px; font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--ink); transition: border-color 0.15s; }
.input:focus, .select:focus { outline: none; border-color: var(--brass); }
.input::placeholder { color: var(--ink-3); }
.link { border: 0; background: none; padding: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.link:hover { color: var(--ink); }
.error { color: var(--danger); font-size: 14px; margin: 0; }

/* ---------- Entrar ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.hero { background: var(--hero); color: var(--hero-ink); padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -180px; bottom: -180px; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(216, 184, 113, 0.22); box-shadow: 0 0 0 70px rgba(216, 184, 113, 0.05), 0 0 0 150px rgba(216, 184, 113, 0.03); pointer-events: none; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -0.01em; }
.wordmark { font: 700 23px/1 Manrope, Inter, sans-serif; letter-spacing: -0.045em; }
.hero .mark { --mark-bg: var(--hero); color: #d8b871; }
.empty .mark, .linkbox .mark { --mark-bg: var(--surface); }
.brand small { display: block; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.hero .brand small { color: var(--hero-2); }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.02em; max-width: 16ch; }
.hero h1 em { color: #d8b871; font-style: italic; }
.hero ul { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; max-width: 46ch; color: var(--hero-2); position: relative; z-index: 1; }
.hero li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.hero li b { color: var(--hero-ink); font-weight: 600; }
.hero li svg { margin-top: 3px; color: #d8b871; }
.hero footer { color: var(--hero-2); font-size: 13px; position: relative; z-index: 1; }
.signin { display: grid; place-items: center; padding: clamp(24px, 5vw, 56px); }
.signin form { width: min(380px, 100%); display: grid; gap: 16px; }
.signin h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; letter-spacing: -0.01em; line-height: 1.1; }
.signin p { margin: 0; color: var(--ink-2); }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Barra superior ---------- */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .in { max-width: 1320px; margin: 0 auto; padding: 12px clamp(16px, 3vw, 32px); display: flex; align-items: center; gap: 20px; }
.tabs { display: flex; gap: 4px; margin-left: 8px; overflow-x: auto; }
.tab { border: 0; background: none; padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-current="page"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.who { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.who span { max-width: 22ch; overflow: hidden; text-overflow: ellipsis; }
.page { max-width: 1320px; margin: 0 auto; padding: clamp(20px, 3vw, 36px) clamp(16px, 3vw, 32px) 80px; display: grid; gap: 24px; }
.pagehead { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; }
.pagehead h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.015em; line-height: 1.05; }
.pagehead p { margin: 6px 0 0; color: var(--ink-2); max-width: 60ch; }

/* ---------- Filtros ---------- */
.filters { display: grid; grid-template-columns: minmax(220px, 2fr) auto repeat(2, minmax(150px, 1fr)) auto; gap: 10px; align-items: center; }
.seg { display: inline-grid; grid-auto-flow: column; gap: 2px; padding: 3px; background: var(--sunken); border-radius: 12px; }
.seg button { border: 0; background: none; border-radius: 9px; padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); white-space: nowrap; cursor: pointer; }
.check input { accent-color: var(--brass); width: 16px; height: 16px; }
.count { color: var(--ink-3); font-size: 13px; }

/* ---------- Tarjetas de propiedad ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 0; padding: 0; text-align: left; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.photo { position: relative; aspect-ratio: 4 / 3; background: var(--sunken); overflow: hidden; display: grid; place-items: center; color: var(--ink-3); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .photo img { transform: scale(1.04); }
.photo .flags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 1; }
.photo .more { position: absolute; right: 12px; bottom: 12px; background: rgba(12, 14, 17, 0.66); color: #fff; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 9px; z-index: 1; }
.flag { font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; border-radius: 999px; padding: 4px 10px; background: var(--surface); color: var(--ink); }
.flag.own { background: var(--brass); color: var(--brass-ink); }
.flag.new { background: var(--offer-bg); color: var(--offer); }
.cbody { padding: 16px 18px 18px; display: grid; gap: 8px; }
.price { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price small { font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.price.none { font-size: 15px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.ctitle { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.where { color: var(--ink-2); font-size: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; }
.fact { font-size: 12.5px; border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; color: var(--ink-2); }
.meta { display: flex; justify-content: space-between; gap: 10px; padding-top: 10px; margin-top: 2px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.chg { font-size: 12px; font-weight: 600; border-radius: 6px; padding: 2px 7px; margin-left: 8px; vertical-align: middle; letter-spacing: 0; }
.chg.down { background: var(--offer-bg); color: var(--offer); }
.chg.up { background: var(--sunken); color: var(--danger); }

/* ---------- Solicitudes ---------- */
.rows { display: grid; gap: 12px; }
.rowcard { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: start; }
.rowcard .price { font-size: 20px; }

/* ---------- Mercado ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.kpi { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; display: grid; gap: 2px; }
.kpi b { font-weight: 600; font-size: 36px; line-height: 1.1; letter-spacing: -0.02em; }
.kpi em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--offer); }
.kpi em.flat { color: var(--ink-3); font-weight: 500; }
.kpi span { color: var(--ink-2); font-size: 14px; }
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; display: grid; gap: 14px; }
.panel h2 { font-size: 16px; font-weight: 600; }
.legend { display: flex; gap: 18px; font-size: 13px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.bar { display: grid; grid-template-columns: 130px minmax(0, 1fr) 64px; gap: 14px; align-items: center; font-size: 14px; }
.bar div { display: grid; gap: 4px; }
.bar i { display: block; height: 8px; border-radius: 4px; min-width: 3px; }
.bo { background: var(--c-offer); }
.bs { background: var(--c-seek); }
.bar b { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 600; }

/* ---------- Mercado ---------- */
.bn { background: var(--c-neutral); }
.panel .sub { margin: -6px 0 0; color: var(--ink-2); font-size: 14px; }
.mcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 20px; align-items: start; }
.pairs { display: grid; gap: 14px; }
.pair { display: grid; grid-template-columns: minmax(96px, 150px) minmax(0, 1fr); gap: 14px; align-items: center; font-size: 14px; }
.pl { display: grid; gap: 1px; min-width: 0; overflow-wrap: anywhere; }
.pl small { color: var(--ink-3); font-size: 12px; }
.pair > div { display: grid; gap: 2px; }
.hb { display: flex; align-items: center; gap: 8px; height: 14px; border-radius: 4px; outline-offset: 2px; }
.hb i { display: block; height: 10px; min-width: 2px; border-radius: 0 4px 4px 0; transition: filter 0.12s; }
.hb b { font-size: 12.5px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hb:hover i, .hb:focus-visible i, .col:hover i, .col:focus-visible i { filter: brightness(1.18); }
.chart { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; height: 190px; }
.yaxis { display: flex; flex-direction: column; justify-content: space-between; text-align: right; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; line-height: 1; }
.plot { position: relative; border-bottom: 1px solid var(--grid); }
.plot .grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.plot .grid i { display: block; height: 1px; background: var(--grid); }
.plot .grid i:last-child { visibility: hidden; }
.cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); align-items: end; }
.col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; outline-offset: -2px; border-radius: 4px; }
.col i { display: block; width: min(24px, 62%); min-height: 3px; }
.col i:first-child { border-radius: 4px 4px 0 0; }
.xaxis { display: flex; justify-content: space-between; margin-left: 36px; font-size: 12px; color: var(--ink-3); }
.astable summary { cursor: pointer; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.scroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; padding: 8px 12px 8px 0; white-space: nowrap; }
.tbl td { padding: 10px 12px 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; padding-right: 0; padding-left: 12px; white-space: nowrap; }
.tbl td small { display: block; color: var(--ink-3); font-size: 12px; }
.tbl .link { font-size: 14px; font-weight: 600; color: var(--ink); text-align: left; }
.tip { position: fixed; z-index: 50; pointer-events: none; background: var(--ink); color: var(--bg); border-radius: 10px; padding: 8px 12px; font-size: 12.5px; display: grid; gap: 1px; box-shadow: var(--shadow-lg); max-width: 260px; }
.tip[hidden] { display: none; }
.tip b { font-size: 14px; }
.tip span { opacity: 0.78; }

/* ---------- Asistente ---------- */
.chat { max-width: 720px; display: grid; gap: 12px; }
.thread { background: var(--sunken); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; min-height: 320px; max-height: 62vh; overflow-y: auto; }
.msg { max-width: 82%; border-radius: 16px; padding: 10px 14px; font-size: 15px; display: grid; gap: 8px; }
.msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.me { align-self: flex-end; background: var(--primary); color: var(--on-primary); border-bottom-right-radius: 4px; }
.msg.radar { align-self: flex-start; background: var(--surface); box-shadow: var(--shadow); border-bottom-left-radius: 4px; }
.msg.wide { max-width: 100%; }
.msg.typing p { color: var(--ink-3); }
.msg small { color: var(--ink-3); font-size: 12px; }
.cards { display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.wcard { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: grid; grid-template-rows: 130px 1fr auto; background: var(--surface); }
.wcard img, .wcard .nophoto { width: 100%; height: 130px; object-fit: cover; display: grid; place-items: center; background: var(--sunken); }
.wcard div { padding: 10px 12px; display: grid; gap: 2px; font-size: 13px; color: var(--ink-2); align-content: start; }
.wcard b { color: var(--ink); font-size: 14px; }
.wcard .tag { justify-self: start; margin-top: 4px; }
.wcard .btn { margin: 0 12px 12px; }
.pack .pphotos { display: flex; gap: 6px; overflow-x: auto; }
.pack .pphotos img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; flex: none; }
.pack .ptext { background: var(--sunken); border-radius: 10px; padding: 10px 12px; font-size: 14px; user-select: all; }
.chatbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.chatempty { margin: auto; display: grid; gap: 12px; justify-items: center; text-align: center; color: var(--ink-2); }
.chatempty p { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.notice .link { font-size: inherit; }

/* ---------- Clientes ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.kcol { background: var(--sunken); border-radius: var(--radius); padding: 12px; display: grid; gap: 10px; align-content: start; min-height: 160px; transition: outline-color 0.12s; outline: 2px solid transparent; outline-offset: -2px; }
.kcol.over { outline-color: var(--brass); }
.kcol.final { opacity: 0.86; }
.kcol h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); display: flex; justify-content: space-between; padding: 2px 4px; }
.kcol h2 small { color: var(--ink-3); font-weight: 500; }
.kcard { text-align: left; border: 0; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); padding: 12px 14px; display: grid; gap: 3px; font-size: 13.5px; color: var(--ink-2); cursor: grab; width: 100%; }
.kcard:active { cursor: grabbing; }
.kcard:hover { box-shadow: var(--shadow-lg); }
.kcard b { color: var(--ink); font-size: 15px; font-weight: 600; }
.kcard small { color: var(--ink-3); font-size: 12.5px; }
.kcard.late { box-shadow: inset 3px 0 0 var(--danger), var(--shadow); }
.tag.late { background: var(--danger); color: var(--surface); }
.kempty { margin: 0; padding: 18px 8px; text-align: center; color: var(--ink-3); font-size: 13px; border: 1px dashed var(--line); border-radius: 12px; }
.kgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kgrid .wide { grid-column: 1 / -1; }
@media (max-width: 520px) { .kgrid { grid-template-columns: 1fr; } }

/* ---------- Zonas ---------- */
.phead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.zform { display: grid; grid-template-columns: minmax(180px, 2fr) minmax(120px, 1fr) minmax(140px, 1fr) auto; gap: 12px; align-items: end; }
.zform .actions, .zmerge { grid-column: 1 / -1; }
.zmerge { display: grid; grid-template-columns: minmax(180px, 360px) auto; gap: 12px; align-items: end; justify-content: start; }
.tbl tr.editing td { background: var(--sunken); padding: 16px; border-radius: 12px; }
.zq { max-width: 260px; }
.seg small { color: var(--ink-3); font-weight: 500; }
@media (max-width: 720px) { .zform, .zmerge { grid-template-columns: 1fr; } .zq { max-width: none; } }

/* ---------- Línea de tiempo, estados y contactos ---------- */
.seg.wide { justify-self: start; max-width: 100%; overflow-x: auto; }
.flag.ask, .tag.ask { background: var(--brass-soft); color: var(--brass); }
.attn { display: flex; align-items: center; gap: 16px; background: var(--brass-soft); border-radius: var(--radius); padding: 16px 20px; }
.attn div { display: grid; gap: 2px; min-width: 0; }
.attn.late { background: var(--surface); box-shadow: inset 4px 0 0 var(--danger), var(--shadow); }
.attn span { color: var(--ink-2); font-size: 14px; }
.attn .btn { margin-left: auto; flex: none; }
.tl { display: grid; gap: 28px; }
.tl section { display: grid; gap: 2px; }
.tl h2 { position: sticky; top: 64px; z-index: 2; background: var(--bg); padding: 10px 0 8px; font-family: var(--serif); font-weight: 400; font-size: 24px; display: flex; align-items: baseline; gap: 10px; }
.tl h2 small { font-family: var(--sans); font-size: 12.5px; color: var(--ink-3); }
.ev { display: grid; grid-template-columns: 58px 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 14px; width: 100%; }
.ev:hover { background: var(--surface); box-shadow: var(--shadow); }
.ev time { font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 600; color: var(--ink-2); display: grid; }
.ev time small { font-weight: 500; font-size: 11px; color: var(--ink-3); }
.ev .thumb { width: 56px; height: 56px; border-radius: 12px; background: var(--sunken); display: grid; place-items: center; overflow: hidden; }
.ev .thumb img { width: 100%; height: 100%; object-fit: cover; }
.evbody { display: grid; gap: 2px; min-width: 0; font-size: 14px; color: var(--ink-2); }
.evbody b { color: var(--ink); font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evbody .from { color: var(--ink-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag { font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 2px 9px; background: var(--sunken); color: var(--ink-2); }
.tag.seek { background: var(--seek-bg); color: var(--seek); }
.tag.down { background: var(--offer-bg); color: var(--offer); }
.tag.up { background: var(--sunken); color: var(--danger); }
.tag.own { background: var(--brass); color: var(--brass-ink); }
.evprice { font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cfilters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 280px); gap: 12px; }
@media (max-width: 640px) { .cfilters { grid-template-columns: 1fr; } }
.rowcard.contact { text-align: left; border: 0; width: 100%; align-items: center; }
.rowcard.contact:hover { box-shadow: var(--shadow-lg); }
.hrow { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left; }
.hrow span { display: grid; gap: 2px; min-width: 0; }
.hrow span:last-child { text-align: right; font-weight: 600; flex: none; }
.hrow small { color: var(--ink-3); font-weight: 400; }
button.hrow:hover b { text-decoration: underline; }
@media (max-width: 640px) { .ev { grid-template-columns: 46px 44px minmax(0, 1fr); } .ev .thumb { width: 44px; height: 44px; } .evprice { grid-column: 3; font-size: 14px; } .attn { flex-wrap: wrap; } .attn .btn { margin-left: 0; } .tl h2 { top: 56px; } }

/* ---------- Estado del catálogo y bienvenida ---------- */
.fresh { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13.5px; color: var(--ink-2); }
.fresh i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
.fresh.live i { background: var(--offer); box-shadow: 0 0 0 4px var(--offer-bg); }
.fresh b { font-weight: 600; color: var(--ink); }
.fresh .btn { margin-left: auto; flex: none; }
.fresh .walking { margin-left: auto; color: var(--brass); font-weight: 600; }
.gcols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.gside { display: grid; gap: 20px; }
.panel h2 small { font-weight: 500; color: var(--ink-3); margin-left: 8px; font-size: 13px; }
.glist { display: grid; max-height: 460px; overflow: auto; margin: 0 -8px; }
.grow { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 10px; font-size: 14.5px; cursor: pointer; }
.grow[hidden] { display: none; }
.grow:hover { background: var(--sunken); }
.grow input { accent-color: var(--brass); width: 17px; height: 17px; flex: none; }
.grow span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grow em { margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--brass); background: var(--brass-soft); border-radius: 999px; padding: 2px 9px; flex: none; }
@media (max-width: 860px) { .gcols { grid-template-columns: 1fr; } .fresh { flex-wrap: wrap; } .fresh .btn, .fresh .walking { margin-left: 18px; } }
.welcome { display: grid; gap: 22px; max-width: 760px; }
.path { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.path li { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; opacity: 0.6; }
.path li.now, .path li.done { opacity: 1; }
.path li.now { outline: 2px solid var(--brass); outline-offset: -2px; }
.path .n { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--offer); }
.path li.now .n { border-color: var(--brass); }
.path li.done .n { background: var(--offer-bg); border-color: transparent; }
.path h3 { font-size: 17px; font-weight: 600; }
.path p { margin: 4px 0 0; color: var(--ink-2); font-size: 14.5px; }
.path .btn, .path .actions { margin-top: 14px; }
.path .wait { color: var(--brass); font-weight: 600; }
.found { display: grid; grid-template-columns: repeat(3, auto 1fr); align-items: baseline; gap: 6px 8px; margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.found b { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- Conexión ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; counter-reset: paso; }
.step { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; display: grid; gap: 10px; align-content: start; counter-increment: paso; }
.step::before { content: counter(paso); font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--brass); }
.step h3 { font-size: 17px; font-weight: 600; }
.step p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.token { display: grid; gap: 10px; background: var(--brass-soft); border-radius: 12px; padding: 14px; }
.dl code { font: 12.5px/1.4 ui-monospace, "SF Mono", Menlo, monospace; overflow-wrap: anywhere; font-weight: 500; }
.token code { font: 13px/1.4 ui-monospace, "SF Mono", Menlo, monospace; overflow-wrap: anywhere; user-select: all; color: var(--ink); }
.token small { color: var(--ink-2); }
.linkbox { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.linkbox h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; }
.linkbox p { margin: 6px 0 0; color: var(--ink-2); max-width: 62ch; }
.linkbox .dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--offer-bg); color: var(--offer); }
.manual { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 12px; font-size: 14px; }
.manual summary { cursor: pointer; color: var(--ink-2); font-weight: 600; }
.manual p { margin: 12px 0; color: var(--ink-2); }
.manual b { color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 760px) { .linkbox { grid-template-columns: 1fr; } }
.devices { display: grid; gap: 10px; }
.device { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.device small { display: block; color: var(--ink-3); }

/* ---------- Ficha ---------- */
.scrim { position: fixed; inset: 0; background: rgba(8, 9, 11, 0.5); z-index: 20; display: flex; justify-content: flex-end; animation: fade 0.18s ease-out; }
.sheet { width: min(560px, 100%); height: 100%; background: var(--surface); overflow-y: auto; box-shadow: var(--shadow-lg); animation: slide 0.24s cubic-bezier(0.2, 0.8, 0.2, 1); display: flex; flex-direction: column; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0.4; } }
.gallery { position: relative; aspect-ratio: 4 / 3; background: var(--sunken); flex: none; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(12, 14, 17, 0.6); color: #fff; font-size: 18px; line-height: 1; }
.thumbs { display: flex; gap: 8px; padding: 12px 24px 0; }
.thumbs button { border: 2px solid transparent; padding: 0; border-radius: 10px; overflow: hidden; width: 72px; height: 54px; background: var(--sunken); }
.thumbs button[aria-pressed="true"] { border-color: var(--brass); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sbody { padding: 22px 24px 32px; display: grid; gap: 18px; }
.sbody h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; letter-spacing: -0.01em; }
.sbody .price { font-size: 30px; }
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; margin: 0; }
.dl div { display: grid; gap: 2px; }
.dl dt { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.dl dd { margin: 0; font-weight: 600; }
.box { background: var(--sunken); border-radius: 14px; padding: 16px; display: grid; gap: 10px; }
.box h3 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.box p { margin: 0; color: var(--ink-2); }
.notice { font-size: 13.5px; color: var(--ink-2); border-left: 3px solid var(--brass); padding-left: 12px; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.empty { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 48px 24px; display: grid; gap: 10px; justify-items: center; text-align: center; color: var(--ink-2); }
.empty h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; color: var(--ink); }
.empty p { margin: 0; max-width: 46ch; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero::after { display: none; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters > :first-child { grid-column: 1 / -1; }
  .who span { display: none; }
  .bar { grid-template-columns: 96px minmax(0, 1fr) 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Equipo, créditos e invitaciones */
.member .actions { flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.member b { font-weight: 600; }
.h3 { font-size: 14px; font-weight: 600; margin-top: 4px; }
.invite { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; color: var(--ink); margin: 0; }
.btn.danger { border-color: var(--danger); color: var(--danger); }
.credits { display: grid; gap: 8px; max-width: 520px; }
.credits .chead { display: flex; align-items: baseline; gap: 8px; }
.credits .chead b { font-size: 28px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.credits .chead span { color: var(--ink-2); font-size: 14px; }
.credits small { color: var(--ink-3); font-size: 12.5px; line-height: 1.45; }
.meter { height: 6px; border-radius: 999px; background: var(--sunken); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; background: var(--brass); }
@media (max-width: 640px) { .member { flex-direction: column; align-items: stretch; } .member .actions { justify-content: flex-start; } }
/* Equipo: las zonas de cada quien y quién lleva qué */
.zpick { display: grid; gap: 10px; padding: 14px; margin-bottom: 12px; background: var(--sunken); border-radius: 12px; }
.zpick .where { margin: 0; }
.zchips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.zchip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; }
.zchip small { color: var(--ink-3); }
.zchip.on { background: var(--brass); border-color: var(--brass); color: var(--brass-ink); font-weight: 600; }
p.hint { margin: 0; }
.box .actions .select { width: auto; min-width: 180px; }
.tform { grid-template-columns: minmax(160px, 1fr) minmax(240px, 1.2fr); max-width: 720px; }
@media (max-width: 720px) { .tform { grid-template-columns: 1fr; } }
.msg .pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.cphoto { width: 100%; max-width: 320px; max-height: 220px; object-fit: cover; border-radius: 12px; }
.source .quote { color: var(--ink-2); font-size: 14px; }
.source .pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* La red: grafo de brokers, grupos, lugares y cruces */
.netbar { display: grid; gap: 12px; }
.netbar .input { max-width: 420px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 12px; height: 12px; display: inline-block; border-radius: 50%; }
.lg.yo { background: var(--ink); }
.lg.grupo { background: var(--c-seek); border-radius: 3px; }
.lg.broker { background: var(--surface); box-shadow: inset 0 0 0 2px var(--brass); }
.lg.aliado { background: var(--brass); }
.lg.lugar { background: var(--c-offer); border-radius: 2px; transform: rotate(45deg) scale(0.8); }
.lg.cruce { width: 22px; height: 0; border-radius: 0; border-top: 2px dashed var(--danger); }
.netpanel { overflow: hidden; }
.net { width: 100%; height: auto; display: block; }
.ne { stroke: var(--line); stroke-width: 1.2; }
.ne.grupo { stroke: var(--c-neutral); stroke-opacity: 0.45; }
.ne.opera { stroke: var(--c-offer); stroke-opacity: 0.45; }
.ne.cruce { stroke: var(--danger); stroke-width: 2; stroke-dasharray: 6 5; }
.ne.dim { stroke-opacity: 0.08; }
.nn { cursor: pointer; }
.nn circle, .nn rect, .nn path { stroke: var(--surface); stroke-width: 2; }
.nn.yo circle { fill: var(--ink); }
.nn.grupo rect { fill: var(--c-seek); }
.nn.lugar path { fill: var(--c-offer); }
.nn.broker circle { fill: var(--surface); stroke: var(--brass); }
.nn.broker.aliado circle { fill: var(--brass); stroke: var(--surface); }
.nn text { font-size: 11.5px; fill: var(--ink-2); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.nn.yo text, .nn.lugar text, .nn.aliado text { fill: var(--ink); font-weight: 600; }
.nn.dim { opacity: 0.18; }
.nn:hover circle, .nn:hover rect, .nn:hover path, .nn:focus-visible circle, .nn:focus-visible rect, .nn:focus-visible path { stroke: var(--ink); }
.nn:focus-visible { outline: none; }
.cross .tree { list-style: none; margin: 10px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 8px; }
.cross .tree small { display: block; color: var(--ink-3); font-size: 12.5px; }
.cross .ctitle { font-weight: 600; }
.cvseg { justify-self: start; width: max-content; max-width: 100%; }
.net { max-height: 72vh; }
.ne.lada { stroke: var(--c-neutral); stroke-opacity: 0.7; stroke-dasharray: 2 5; }
.lg.lada { width: 22px; height: 0; border-radius: 0; border-top: 2px dotted var(--c-neutral); }

/* ---------- Angosto: un teléfono o el panel lateral de la extensión ---------- */
/* La misma página en dos tamaños. `.narrow` la pone app.js cuando la ventana mide menos de 760 px o cuando la
   página vive dentro del panel de la extensión (`.panel`): la navegación baja al pie y todo va en una columna. */
.bnav { display: none; }
.narrow .tabs, .narrow .who { display: none; }
.narrow .top .in { padding: 10px 16px; }
.narrow .bnav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
.bnav button { border: 0; background: none; display: grid; justify-items: center; gap: 3px; padding: 6px 2px; color: var(--ink-3); font-size: 11px; font-weight: 600; border-radius: 12px; min-width: 0; }
.bnav button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bnav button[aria-current="page"] { color: var(--ink); background: var(--sunken); }
.narrow .page { padding: 16px 16px 104px; gap: 18px; }
.narrow .pagehead h1 { font-size: 30px; }
.narrow .pagehead p { font-size: 14px; }
.narrow .filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.narrow .filters > :first-child, .narrow .filters > .seg, .narrow .filters > .check { grid-column: 1 / -1; }
.narrow .filters .seg { justify-self: start; max-width: 100%; overflow-x: auto; }
.narrow .seg.wide button, .narrow .filters .seg button { padding: 8px 11px; }
.narrow .grid { grid-template-columns: 1fr; gap: 14px; }
.narrow .rowcard { grid-template-columns: 1fr; padding: 16px; }
.narrow .sheet { width: 100%; }
.narrow .sbody { padding: 18px 16px 28px; }
/* El asistente ocupa la pantalla: la conversación se desliza por dentro y la caja para escribir queda fija abajo. */
.narrow .chat { max-width: none; }
.narrow .thread { min-height: 220px; max-height: none; padding: 12px; }
.panel .pagehead p { display: none; }
.panel .attn { padding: 12px 14px; }
.narrow .kgrid { grid-template-columns: 1fr; }
.narrow .tl h2 { top: 52px; }
.narrow .dl { grid-template-columns: 1fr 1fr; }
.narrow .net { max-height: 60vh; }
.panel .top { position: static; }
.panel .top .in { padding: 8px 16px; }
.panel .brand small { display: none; }

.scrim.low { align-items: flex-end; justify-content: stretch; }
.more { width: 100%; max-height: 86vh; overflow-y: auto; background: var(--surface); border-radius: 20px 20px 0 0; padding: 10px 10px calc(12px + env(safe-area-inset-bottom)); display: grid; gap: 2px; box-shadow: var(--shadow-lg); animation: rise 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes rise { from { transform: translateY(30px); opacity: 0.4; } }
.mrow { border: 0; background: none; text-align: left; padding: 14px 12px; font-size: 16px; font-weight: 500; border-radius: 12px; color: var(--ink); }
.mrow:hover, .mrow[aria-current="page"] { background: var(--sunken); }
.mrow[aria-current="page"] { font-weight: 600; }
.mfoot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 12px 4px; border-top: 1px solid var(--line); margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.mfoot span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- La persona del chat abierto y la caja para escribirle ---------- */
.peer { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px 16px; display: grid; gap: 8px; border-top: 3px solid var(--line); }
.peer.known { border-top-color: var(--brass); }
.phead2 { display: flex; justify-content: space-between; align-items: center; }
.phead2 small { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.pclose { border: 0; background: none; color: var(--ink-3); font-size: 20px; line-height: 1; padding: 0 4px; }
.peer h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; overflow-wrap: anywhere; }
.peer h2 .tag { font-family: var(--sans); vertical-align: middle; }
.peer .where { margin: 0; }
.pnote { margin: 0; font-size: 14px; color: var(--ink-2); font-style: italic; }
.hints { list-style: none; margin: 2px 0; padding: 0; display: grid; gap: 6px; }
.hint { border: 0; background: var(--sunken); border-radius: 12px; padding: 10px 12px; text-align: left; font-size: 14px; line-height: 1.4; width: 100%; color: var(--ink); }
.hint:hover { outline: 1px solid var(--line); }
.peerform { display: flex; gap: 8px; flex-wrap: wrap; }
.peerform .input { flex: 1 1 170px; padding: 8px 12px; }
.composer textarea { resize: vertical; min-height: 120px; line-height: 1.45; font-family: inherit; }
.askai { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.narrow .askai { grid-template-columns: 1fr; }
.narrow .askai .btn { justify-self: start; }
.ok { color: var(--offer); font-size: 14px; margin: 0; font-weight: 500; }
.where.small { font-size: 12.5px; margin: 0; }

/* ---------- Buscar en todo (la caja de arriba, Cmd+K) ---------- */
.findbtn { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 12px; color: var(--ink-2); font-size: 13px; font-weight: 500; white-space: nowrap; flex: none; }
.findbtn:hover { border-color: var(--ink-3); color: var(--ink); }
.findbtn kbd { font: 600 11px/1 var(--sans); border: 1px solid var(--line); border-radius: 6px; padding: 3px 5px; color: var(--ink-3); }
.findbtn + .who { margin-left: 0; }
.narrow .findbtn { flex: 1; margin-left: 6px; padding: 9px 14px; font-size: 14px; }
.narrow .findbtn kbd { margin-left: auto; }
@media (hover: none) { .findbtn kbd, .pesc { display: none; } }
.scrim.find { z-index: 30; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.palette { width: min(640px, 100%); max-height: 72vh; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; animation: rise 0.18s cubic-bezier(0.2, 0.8, 0.2, 1); }
.narrow .scrim.find { padding: 8px 8px 0; }
.narrow .palette { max-height: 84dvh; }
.pin { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.pinput { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 17px; color: var(--ink); }
.pinput::placeholder { color: var(--ink-3); }
.pesc { border: 1px solid var(--line); background: none; border-radius: 6px; font-size: 11px; font-weight: 600; padding: 3px 6px; color: var(--ink-3); }
.plist { overflow-y: auto; padding: 6px 6px 10px; }
.pgroup { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; padding: 10px 10px 4px; }
.frow { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; border: 0; background: none; text-align: left; padding: 9px 10px; border-radius: 10px; color: var(--ink); font-size: 14.5px; }
.frow span { min-width: 0; display: grid; }
.frow b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow small { color: var(--ink-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow em { font-style: normal; color: var(--ink-3); font-size: 12.5px; white-space: nowrap; }
.frow:hover, .frow[aria-selected="true"] { background: var(--sunken); }
.pnone { margin: 0; padding: 14px 10px; color: var(--ink-2); font-size: 14px; }

/* ---------- Seguimiento de la prospección ---------- */
.tag.track { background: var(--sunken); color: var(--ink-2); font-family: var(--sans); vertical-align: middle; }
.tag.track.contesto { background: var(--seek-bg); color: var(--seek); }
.tag.track.interesado { background: var(--offer-bg); color: var(--offer); }
.tag.track.no { background: var(--sunken); color: var(--ink-3); text-decoration: line-through; }
.dseg { justify-self: start; max-width: 100%; overflow-x: auto; }
.dseg button, .tseg button { padding: 6px 11px; font-size: 13px; }
.tseg { max-width: 100%; overflow-x: auto; }
.psum { margin: 0; color: var(--ink-2); font-size: 14px; }
.psum b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- Quién es: el contexto de una persona, antes de escribirle ---------- */
.ctx p { color: var(--ink); }
.ctx .pnote { color: var(--ink-2); }
.lastpub { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; width: 100%; border: 0; background: var(--surface); border-radius: 12px; padding: 10px; text-align: left; color: var(--ink); }
.lastpub:hover { outline: 1px solid var(--line); }
.lastpub img { width: 84px; height: 84px; object-fit: cover; border-radius: 9px; display: block; }
.lastpub span { display: grid; gap: 2px; min-width: 0; }
.lastpub small { color: var(--ink-3); font-size: 12px; }
.lastpub b { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.lastpub em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.lastpub i { font-style: normal; color: var(--ink-2); font-size: 13.5px; line-height: 1.4; }

/* Uso (sólo el dueño del servicio): tablas sencillas. */
.uscroll { overflow-x: auto; }
.utable { width: 100%; border-collapse: collapse; font-size: 14px; }
.utable th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: 12.5px; padding: 6px 14px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.utable td { padding: 9px 14px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.utable tr:last-child td { border-bottom: 0; }
.utable .num { text-align: right; font-variant-numeric: tabular-nums; }
.utable td:first-child { white-space: nowrap; }
.utable small { display: block; color: var(--ink-3); font-size: 12px; }
.utable small.bad { color: var(--danger); }
.ubad { box-shadow: inset 4px 0 0 var(--danger), var(--shadow); }
.ulist { margin: 0; padding-left: 18px; display: grid; gap: 4px; }

/* Cambiar entre modo claro y oscuro. */
.themebtn { white-space: nowrap; }

/* Entrar con WhatsApp: el código QR y lo que hay que hacer con él. */
.qrbox { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 16px; align-items: center; background: var(--brass-soft); border-radius: 14px; padding: 14px; }
.qrbox .qr { width: 148px; height: 148px; border-radius: 8px; display: block; }
.qrbox > div { display: grid; gap: 8px; min-width: 0; }
.qrbox p { margin: 0; color: var(--ink-2); font-size: 14px; }
.qrbox small { color: var(--ink-3); }
@media (max-width: 480px) { .qrbox { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; } }
/* Los planes, uno por renglón. */
.plans { display: grid; gap: 8px; margin-top: 14px; }
.plan { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; border: 1px solid var(--line, rgba(0, 0, 0, 0.1)); border-radius: 12px; padding: 12px 14px; }
.plan.now { box-shadow: inset 3px 0 0 var(--offer); }
.plan > div:first-child { display: grid; gap: 2px; min-width: 0; }
.plan small { color: var(--ink-2); font-size: 13px; }
.plan .pprice { font-weight: 600; white-space: nowrap; }
.plan .actions { margin: 0; justify-content: flex-end; }
@media (max-width: 640px) { .plan { grid-template-columns: minmax(0, 1fr) auto; } .plan .actions { grid-column: 1 / -1; justify-content: flex-start; } }
