/* Inter servida desde Verifa (sin peticiones a terceros: privacidad y CSP). Licencia OFL en fonts/LICENSE.txt */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Verifa — sistema visual. Tokens claro/oscuro; el oscuro tiene sus propios pasos. */
:root {
  color-scheme: light;
  --bg: #f6f6f3; --surface: #ffffff; --surface-2: #f0efeb; --line: #e2e1dc; --line-strong: #cfcec8;
  --text: #191917; --text-2: #52514e; --muted: #6b6a64;
  --brand: #2f5d50; --brand-2: #3f7a69; --brand-ink: #ffffff; --brand-soft: #e3eee9;
  --series-1: #2a78d6; --series-2: #eb6834; --grid: #ecebe6;
  --ok: #1f7a46; --ok-soft: #e1f2e7; --warn: #8f5b00; --warn-soft: #fbefd6;
  --err-ink: #ffffff; --warn-ink: #ffffff;
  --err: #b3362a; --err-soft: #fbe4e1; --info: #2a63b8; --info-soft: #e2ecfa; --neutral-soft: #ecebe7;
  --radius: 10px; --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 2px 8px rgb(0 0 0 / 0.04);
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --bg: #141413; --surface: #1d1d1b; --surface-2: #252523; --line: #30302d; --line-strong: #44443f;
    --text: #efeee9; --text-2: #c3c2b7; --muted: #94938b;
    --brand: #6fb39c; --brand-2: #86c4af; --brand-ink: #0f231c; --brand-soft: #1f3530;
    --series-1: #3987e5; --series-2: #d95926; --grid: #2a2a27;
    --ok: #6fc28f; --ok-soft: #1c3426; --warn: #e0a83c; --warn-soft: #3a2e14;
    --err-ink: #29120f; --warn-ink: #241b0c;
    --err: #ee7e6e; --err-soft: #3f211d; --info: #7fb0f0; --info-soft: #1c2b42; --neutral-soft: #2a2a27;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141413; --surface: #1d1d1b; --surface-2: #252523; --line: #30302d; --line-strong: #44443f;
  --text: #efeee9; --text-2: #c3c2b7; --muted: #94938b;
  --brand: #6fb39c; --brand-2: #86c4af; --brand-ink: #0f231c; --brand-soft: #1f3530;
  --series-1: #3987e5; --series-2: #d95926; --grid: #2a2a27;
  --ok: #6fc28f; --ok-soft: #1c3426; --warn: #e0a83c; --warn-soft: #3a2e14;
  --err-ink: #29120f; --warn-ink: #241b0c;
  --err: #ee7e6e; --err-soft: #3f211d; --info: #7fb0f0; --info-soft: #1c2b42; --neutral-soft: #2a2a27;
  --shadow: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; font-weight: 700; }
h1 .chip { vertical-align: middle; margin-left: 6px; }
h1 { font-size: 26px; } h2 { font-size: 18px; } h3 { font-size: 15px; }
p { margin: 0 0 0.8em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .pre { white-space: pre-line; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* Botones y formularios */
button, .button { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border: 1px solid transparent; border-radius: 8px;
  background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
button:hover, .button:hover { background: var(--brand-2); }
button.secondary, .button.secondary { background: transparent; color: var(--brand); border-color: var(--line-strong); }
button.secondary:hover, .button.secondary:hover { border-color: var(--brand); background: var(--brand-soft); }
button.danger { background: transparent; color: var(--err); border-color: var(--err); }
button.link { background: none; color: var(--text-2); padding: 0; font-weight: 500; border: 0; }
button.link:hover { color: var(--text); background: none; }
.button.lg { padding: 13px 22px; font-size: 16px; }
form.inline { display: inline; }
label { display: block; margin: 12px 0; font-weight: 500; font-size: 14px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
input:not([type=checkbox]):not([type=radio]), textarea, select {
  width: 100%; margin-top: 4px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--surface); color: var(--text); font: inherit; }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 12px 0; }
.alert { background: var(--err-soft); color: var(--err); padding: 10px 14px; border-radius: 8px; }
.notice { background: var(--info-soft); color: var(--info); padding: 10px 14px; border-radius: 8px; }

/* Tarjetas */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.card + .card, form + .card, .card + form { margin-top: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.narrow { max-width: 460px; margin: 40px auto; }
.fields-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 0 12px; }
input[type=color] { padding: 2px; height: 40px; cursor: pointer; }
.field-help { position: relative; display: inline-block; margin-left: 4px; vertical-align: 1px; }
.help-toggle { width: 20px; height: 20px; min-height: 0; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: 12px; font-weight: 700; line-height: 1; cursor: help; }
.help-toggle:hover, .help-toggle[aria-expanded=true] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.help-tip { display: none; position: absolute; z-index: 20; left: -8px; bottom: calc(100% + 8px); width: max-content; max-width: min(300px, calc(100vw - 48px)); padding: 8px 10px; border-radius: 8px; background: var(--text); color: var(--surface); font-size: 13px; font-weight: 400; line-height: 1.4; box-shadow: 0 4px 16px rgb(0 0 0 / .18); }
.field-help:hover .help-tip, .help-toggle:focus-visible + .help-tip, .help-toggle[aria-expanded=true] + .help-tip { display: block; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; margin-top: 16px; align-items: start; }
.grid-2 > .card { margin-top: 0; min-width: 0; }

/* Chips de estado: color + texto, nunca solo color */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-active { background: var(--ok-soft); color: var(--ok); }
.chip-error { background: var(--err-soft); color: var(--err); }
.chip-invited, .chip-expired, .chip-pending, .chip-provisioning, .chip-maintenance { background: var(--warn-soft); color: var(--warn); }
.chip-revoked { background: var(--neutral-soft); color: var(--muted); }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--err); color: var(--err-ink); font-size: 12px; font-weight: 700; text-align: center; }

/* Maqueta de la aplicación */
.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.sidebar { align-self: start; background: var(--surface); border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; overscroll-behavior: contain; }
.sidebar .brand { margin: 0 8px 18px; }
.sidebar .org { margin: 0 8px 14px; font-size: 13px; color: var(--muted); }
.sidebar .org strong { display: block; color: var(--text); font-size: 14px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-weight: 500; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
.nav-group { margin-top: 6px; }
.nav-group > summary { display: flex; align-items: center; gap: 6px; padding: 6px 10px; cursor: pointer; list-style: none; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-radius: 8px; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::after { content: ""; margin-left: auto; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.nav-group[open] > summary::after { transform: rotate(45deg); }
.nav-group > summary:hover { color: var(--text); background: var(--surface-2); }
.nav svg { width: 18px; height: 18px; flex: none; }
.nav .badge { margin-left: auto; }
.content { padding: 12px 32px 48px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; }
.breadcrumb { font-size: 13px; margin-bottom: 6px; }
.topbar { display: none; }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .brand { margin: 0 12px 0 0; }
  .sidebar .org { display: block; flex: 1 1 100%; margin: 6px 0; overflow-wrap: anywhere; }
  .sidebar .org strong { display: inline; margin-inline-start: 6px; }
  .nav { display: flex; gap: 2px; flex-wrap: wrap; }
  .topbar { padding: 10px 16px 0; } .user-name { display: none; }
  .content { padding: 20px 16px 40px; }
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.brand-text { display: inline-flex; flex-direction: column; line-height: 1.05; }
.brand-by { font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: 0.01em; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: #2f5d50; display: grid; place-items: center; }
.brand-mark svg { width: 16px; height: 16px; }

/* Indicadores */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi dt { color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi dd { margin: 4px 0 0; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi dd small { font-size: 14px; font-weight: 500; color: var(--muted); }
.kpi.alert-kpi dd { color: var(--err); }
a.kpi { text-decoration: none; color: inherit; } a.kpi:hover { border-color: var(--line-strong); }

/* Tablas */
.table-wrap { overflow-x: auto; }
.tabs { display: flex; gap: 8px; margin: 0 0 16px; }
.tabs a { padding: 6px 14px; border-radius: 8px; text-decoration: none; color: var(--text-2); font-weight: 600; }
.tabs a:hover { background: var(--surface-2); }
.tabs a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.list td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list tbody tr:hover { background: var(--surface-2); }
table.list td.num, table.list th.num { text-align: right; }
.row-link { color: var(--text); font-weight: 600; text-decoration: none; }
.row-link:hover { color: var(--brand); text-decoration: underline; }
.sub { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.empty { text-align: center; padding: 36px 12px; color: var(--muted); }

/* Barra de filtros */
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.filters .search { flex: 1 1 260px; min-width: 0; position: relative; }
.filters .search input { margin: 0; padding-left: 36px; }
.filters .search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.filters select { width: auto; max-width: 100%; min-width: 0; margin: 0; }
.filters .search input:not([type=checkbox]) { margin: 0; padding-left: 36px; }
.segmented { display: inline-flex; background: var(--surface-2); border-radius: 8px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.segmented a { padding: 5px 11px; border-radius: 6px; color: var(--text-2); text-decoration: none; font-size: 13.5px; font-weight: 500; }
.segmented a[aria-current="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.segmented a .count { color: var(--muted); margin-left: 4px; font-size: 12px; }

/* Listas de actividad */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.feed li:last-child { border-bottom: 0; }
.feed .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--line-strong); }
.feed .dot.err { background: var(--err); } .feed .dot.warn { background: var(--warn); } .feed .dot.ok { background: var(--ok); }
.feed .grow { flex: 1; min-width: 0; }
.feed .title { font-weight: 600; }
.notifications li.unread .title::after { content: "Nuevo"; margin-left: 8px; font-size: 11px; color: var(--brand); font-weight: 700; }

/* Gráficas */
.chart { margin: 0; position: relative; }
.chart figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.chart-title { font-weight: 600; }
.legend { display: inline-flex; gap: 14px; font-size: 13px; color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .axis { stroke: var(--line-strong); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.chart .band { fill: transparent; cursor: default; }
.chart .band:hover, .chart .band.on { fill: var(--text); fill-opacity: 0.05; }
.chart-tip { position: absolute; pointer-events: none; background: var(--text); color: var(--bg); font-size: 12.5px; padding: 6px 9px; border-radius: 6px; white-space: nowrap; transform: translateX(-50%); z-index: 2; box-shadow: 0 4px 12px rgb(0 0 0 / 0.15); }
.chart-table summary { cursor: pointer; font-size: 13px; color: var(--muted); margin-top: 8px; }
.chart-table table { margin-top: 8px; }
.spark { display: block; }
.spark polyline { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: var(--series-1); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 0 0 14px; }
.stats dt { color: var(--muted); font-size: 12.5px; } .stats dd { margin: 0; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; margin: 0 0 12px; }
.tags li { border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font-size: 13px; }
.packages { list-style: none; padding: 0; margin: 0; }
.packages li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.packages li:last-child { border-bottom: 0; }
.period { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.period:has(.period-date) { align-items: flex-end; }
.period select, .period input:not([type=checkbox]):not([type=radio]) { width: auto; margin: 0; }
.period .period-date { display: grid; gap: 3px; min-width: 0; margin: 0; font-size: 13px; }
.period .period-date input[type=date] { width: 100%; min-width: 0; }
.collection-summary { margin-top: 16px; color: var(--text-2); }
.collection-summary p { margin-bottom: 4px; }

/* Modo demo */
.demo-bar { background: var(--warn); color: var(--warn-ink); text-align: center; font-size: 12.5px; font-weight: 600; padding: 4px; }
.demo { border: 1px dashed var(--warn); border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }
.demo p { margin: 6px 0 0; }

/* ---- Web pública ---- */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.site-nav { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.site-nav a { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 14.5px; }
.site-nav a:hover { color: var(--text); }
.site-nav .button { color: var(--brand-ink); }
@media (max-width: 760px) { .site-nav .hide-sm { display: none; } }
@media (max-width: 400px) {
  .site-header .wrap { gap: 8px; }
  .site-nav { gap: 10px; }
  .site-nav a { font-size: 13px; }
  .site-nav .button { padding-inline: 10px; }
}
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
/* Verde del logo (#2f5d50) con texto blanco en claro y oscuro: --brand cambia con el tema */
.section.band { background: #2f5d50; color: #fff; text-align: center; }
.section.band h2 { color: #fff; margin-inline: auto; }
.section.band p, .section.band strong, .section.band a { color: #fff; }
.section.band .shot { border-color: transparent; box-shadow: 0 18px 48px rgb(0 0 0 / 0.28); }
.eyebrow { color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.section h2 { font-size: clamp(26px, 3.4vw, 36px); max-width: 720px; }
.lead { font-size: 18px; color: var(--text-2); max-width: 640px; }
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 18px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: 19px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }
.hero-note { font-size: 13.5px; color: var(--muted); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .section { padding: 56px 0; } }
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px rgb(0 0 0 / 0.10); overflow: hidden; }
.mock-bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock-body { padding: 16px; display: grid; gap: 12px; }
.mock .kpis { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock .kpi { padding: 10px 12px; box-shadow: none; } .mock .kpi dd { font-size: 20px; }
.mock table.list td, .mock table.list th { padding: 7px 8px; font-size: 13px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 36px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; margin-bottom: 12px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px 32px; margin-top: 36px; }
.features-pair { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); } /* 4 tarjetas: 2×2, no 3+1 */
.feature svg { width: 26px; height: 26px; color: var(--brand); margin-bottom: 10px; }
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { color: var(--text-2); margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 10px; }
.checklist li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%232f5d50' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.timeline div { padding: 18px; border-right: 1px solid var(--line); }
.timeline div:last-child { border-right: 0; }
.timeline strong { display: block; font-size: 22px; } .timeline span { color: var(--muted); font-size: 14px; }
@media (max-width: 700px) { .timeline { grid-template-columns: 1fr; } .timeline div { border-right: 0; border-bottom: 1px solid var(--line); } }
.pricing { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; margin-top: 32px; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }
.price-card { background: var(--surface); border: 2px solid var(--brand); border-radius: 14px; padding: 28px; }
.price-card .button { white-space: normal; text-align: center; }
.price-card .pilot-title { font-size: 22px; margin: 12px 0; }
.price-card .price { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.03em; }
.price-card .price small { font-size: 16px; color: var(--muted); font-weight: 500; }
.faq { max-width: 760px; margin-top: 28px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-2); margin: 10px 0 0; }
.cta-band { background: var(--brand); color: var(--brand-ink); border-radius: 18px; padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: var(--brand-ink); margin: 0; }
.cta-band .button { background: var(--brand-ink); color: var(--brand); }
.cta-band .button:hover { opacity: 0.9; }
.site-footer { padding: 36px 0; color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line); }
.site-footer a { color: inherit; }
.about-redsith p { max-width: 720px; margin-inline: auto; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.public-main { min-height: calc(100vh - 64px - 90px); }

/* Ficha de datos (clave · valor) */
.facts { display: grid; gap: 10px; margin: 0; }
.facts > div { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 12px; }
.facts dt { color: var(--muted); font-size: .9em; }
.facts dd { margin: 0; overflow-wrap: anywhere; }

/* Inicio de la asesoría: estado documental del período */
.kpi.ok-kpi dd { color: var(--ok); }
.chip-ready { background: var(--info-soft); color: var(--info); }
.secondary-block > summary { cursor: pointer; list-style: none; }
.secondary-block > summary::-webkit-details-marker { display: none; }
.secondary-block > summary::before { content: "▸ "; color: var(--muted); }
.secondary-block[open] > summary::before { content: "▾ "; }

/* Menú de usuario (arriba a la derecha) */
.main { min-width: 0; }
/* Las acciones y filtros se ajustan al espacio disponible, sin cortar su texto. */
.app button, .app .button { max-width: 100%; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.app button > svg, .app .button > svg { width: 18px; height: 18px; flex: none; }
.app form, .app .card, .app .page-head > * { min-width: 0; max-width: 100%; }
.app input:not([type=checkbox]):not([type=radio]), .app select, .app textarea { min-width: 0; max-width: 100%; }
.app dd, .app .menu-head { overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .app button, .app .button, .app .nav a { min-height: 44px; }
  .app .segmented a { min-height: 44px; display: inline-flex; align-items: center; }
  .app input:not([type=checkbox]):not([type=radio]), .app select, .app textarea { min-height: 44px; font-size: 16px; }
}

.topbar { display: flex; justify-content: flex-end; padding: 14px 32px 0; }
.user-menu { position: relative; }
.user-menu > summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 8px 4px 4px; border-radius: 999px; }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:hover, .user-menu[open] > summary { background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.user-menu > summary:focus-visible { outline: 2px solid var(--accent, var(--info)); outline-offset: 2px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--info-soft); color: var(--info); font-weight: 600; font-size: 13px; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-name { font-size: 14px; }
.caret { width: 16px; height: 16px; color: var(--muted); }
.user-menu .menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 270px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: 6px; }
.menu-head { display: grid; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user-menu .menu a, .user-menu .menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px; color: var(--text); text-decoration: none; background: none; border: 0; font: inherit; font-size: 14px; cursor: pointer; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.user-menu .menu a:hover, .user-menu .menu-item:hover { background: var(--neutral-soft); }
.user-menu .menu svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.user-menu .menu form { margin: 0; }

/* Códigos de recuperación */
.recovery { border-color: var(--warn); }
.codes { columns: 2; gap: 24px; padding-left: 22px; margin: 12px 0 0; }
.codes li { padding: 4px 0; } .codes code { font-size: 15px; letter-spacing: .04em; }
input.switch { appearance: none; flex: none; width: 36px; height: 22px; border: 1px solid var(--muted); border-radius: 999px; background: var(--surface); cursor: pointer; position: relative; }
input.switch::before { content: ""; position: absolute; width: 16px; height: 16px; top: 2px; left: 2px; background: var(--muted); border-radius: 50%; }
input.switch:checked { background: var(--brand); border-color: var(--brand); }
input.switch:checked::before { left: 16px; background: white; }
input.switch:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* Catálogo de ampliaciones */
.addon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.addon-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.addon-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.addon-card label.check { margin-top: 0; }
.addon-card p { font-size: 14px; }
.addon-card summary { cursor: pointer; font-size: 14px; font-weight: 600; }

/* El período sigue accesible al consultar la tabla de facturas. */
.company-filters { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; background: var(--bg); padding: 12px 0; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.company-filters .period { flex: 1; min-width: 0; }
@media (max-width: 600px) {
  .company-filters { display: block; }
  .company-filters > strong { display: none; }
  .company-filters .period { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .company-filters select { grid-column: 1 / -1; width: 100%; }
  .company-filters input[type=date] { width: 100%; min-width: 0; }
}

.loading-status { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; margin: 12px 0; }
.spinner { display: inline-block; flex: none; width: 14px; height: 14px; border: 2px solid var(--line-strong); border-top-color: var(--brand); border-radius: 50%; animation: verifa-spin .8s linear infinite; }
@keyframes verifa-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* Identidad de la asesoría en la app. */
.advisory-brands { display: flex; align-items: center; gap: 12px; min-width: 0; margin: 0 8px 18px; }
.advisory-brands .brand { flex-shrink: 0; margin: 0; }
.advisory-brand-link { min-width: 0; display: flex; align-items: center; }
.advisory-logo { display: block; width: 56px; height: 40px; object-fit: contain; flex: none; }
.advisory-brands .advisory-logo { width: 86px; height: 44px; }
.client-advisory-brands { display: flex; flex-direction: column; gap: 12px; margin: 0 8px 18px; }
.client-advisory-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 14px; font-weight: 700; color: var(--text); min-width: 0; text-decoration: none; }
.client-advisory-brand span { overflow-wrap: anywhere; }
.advisory-initial { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-weight: 700; flex: none; }
.logo-preview { display: block; padding: 20px; border: 1px solid var(--line); border-radius: 10px; margin: 16px 0; width: fit-content; max-width: 100%; }
.logo-preview .advisory-logo { width: 240px; max-width: 100%; height: 120px; }
.logo-preview img { display: block; max-width: 100%; max-height: 96px; object-fit: contain; }

.client-advisory-brand .advisory-logo { width: 160px; height: 56px; object-position: left center; }
.authorized-advisory { flex-wrap: wrap; }
.advisory-identity { display: flex; align-items: center; gap: 12px; flex: 1 1 200px; min-width: 0; }
.advisory-identity strong { overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .advisory-brands, .client-advisory-brands { margin: 0 12px 0 0; }
  .client-advisory-brand { flex-direction: row; align-items: center; }
  .client-advisory-brand .advisory-logo { width: 112px; height: 40px; }
}

/* Actividad de cartera: control nativo visible y series de marca + neutro. */
.portfolio-activity { --series-1: var(--brand); --series-2: var(--text-2); }
.portfolio-activity > .activity-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 0; border-radius: 6px; }
.portfolio-activity > .activity-summary::before { display: none; content: none; }
.activity-summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 6px; }
.activity-heading { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.activity-title { font-size: 18px; font-weight: 700; }
.activity-control { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--brand); font-size: 13px; font-weight: 600; flex-shrink: 0; }
.activity-control svg { width: 16px; height: 16px; }
.activity-summary:hover .activity-control { background: var(--brand-soft); }
.portfolio-activity:not([open]) .activity-hide, .portfolio-activity[open] .activity-show { display: none; }
.portfolio-activity[open] .activity-control svg { transform: rotate(180deg); }
@media (max-width: 600px) {
  .portfolio-activity > .activity-summary { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
}

/* Incidencias primero y navegación de staff compacta en móvil. */
.staff-attention { margin-bottom: 20px; }
.staff-navigation { width: 100%; }
.staff-navigation > summary { display: none; }
@media (max-width: 860px) {
  .staff-navigation > summary { display: list-item; min-height: 44px; padding: 10px; cursor: pointer; font-weight: 600; }
  .staff-navigation > summary::marker { color: var(--brand); }
}

/* Capturas de la landing */
.showcase-group { margin: 56px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.showcase { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; margin-top: 28px; }
.showcase.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.showcase.flip .showcase-text { order: 2; }
.showcase-text h4 { font-size: 22px; margin: 0 0 10px; letter-spacing: -0.01em; }
.showcase-text p { color: var(--text-2); margin: 0 0 12px; }
.shot { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 12px 32px rgb(0 0 0 / 0.08); }
.shot a { display: block; cursor: zoom-in; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; color: #fff; }
.lightbox::backdrop { background: rgb(10 10 9 / 0.88); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.lightbox img { max-width: 96vw; max-height: calc(100vh - 110px); width: auto; height: auto; border-radius: 10px; background: #fff; box-shadow: 0 20px 60px rgb(0 0 0 / 0.5); }
.lightbox-meta { margin: 0; max-width: 92vw; text-align: center; font-size: 14px; color: #d8d7d0; }
.lightbox-count { opacity: .7; margin-left: 8px; }
.lightbox-btn { position: absolute; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: #fff; background: rgb(255 255 255 / 0.16); }
.lightbox-btn:hover { background: rgb(255 255 255 / 0.3); }
.lightbox-btn svg { display: block; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev, .lightbox-next { top: 50%; margin-top: -23px; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
@media (max-width: 860px) {
  /* En móvil la captura es más ancha que la pantalla y se desplaza; los botones quedan fijos */
  .lightbox[open] { display: block; overflow: auto; -webkit-overflow-scrolling: touch; background: #11110f; }
  .lightbox img { max-width: none; max-height: none; width: 230vw; margin: 72px 0 12px; border-radius: 0; }
  .lightbox-meta { position: sticky; left: 0; width: 100vw; max-width: none; padding: 0 16px 96px; box-sizing: border-box; }
  .lightbox-btn { position: fixed; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 18px; margin-top: 0; }
  .lightbox-prev { left: 16px; }
  .lightbox-next { right: 16px; }
}
.shot img, .shot video { display: block; width: 100%; height: auto; }
.shot-video { margin-top: 32px; max-width: 960px; margin-inline: auto; }
.shot figcaption { padding: 8px 12px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); background: var(--surface-2); }
.shot-wide { margin-top: 28px; }
.shot-narrow { max-width: 440px; justify-self: center; width: 100%; }
.invoice-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.invoice-grid .shot { box-shadow: none; }
.invoice-grid-inline { margin-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.more-shots { margin-top: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.more-shots summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--brand); }
.more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; padding: 4px 20px 24px; }
.more-grid .shot { box-shadow: none; }
@media (max-width: 860px) {
  .showcase, .showcase.flip { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .showcase.flip .showcase-text { order: 0; }
  .invoice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tabla apilada en móvil: cada fila pasa a ser una ficha y cada celda lleva su rótulo (data-label) */
@media (max-width: 700px) {
  table.list.stack, table.list.stack tbody, table.list.stack tr, table.list.stack td { display: block; width: 100%; }
  table.list.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.list.stack tbody tr { padding: 10px 0; border-bottom: 1px solid var(--line-strong, var(--line)); }
  table.list.stack tbody tr:last-child { border-bottom: 0; }
  table.list.stack td { border-bottom: 0; padding: 5px 12px; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 12px; align-items: start; overflow-wrap: anywhere; }
  table.list.stack td::before { content: attr(data-label); color: var(--muted); font-size: 12.5px; font-weight: 600; }
  table.list.stack td[colspan] { display: block; }
  table.list.stack td[colspan]::before { content: none; }
  table.list.stack td form, table.list.stack td select { max-width: 100%; }
  table.list.stack td button { width: 100%; }
}

/* Campo trampa de los formularios públicos: invisible para personas */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Guías «Primeros pasos» */
.guide ol, .guide ul { padding-left: 22px; }
.guide li { margin: 4px 0; }
.guide .tip { border-left: 3px solid var(--brand); background: var(--brand-soft); padding: 10px 14px; border-radius: 0 8px 8px 0; margin: 14px 0; }
.guide kbd, .guide .menu { font-family: inherit; font-weight: 600; white-space: nowrap; }
.guide-toc { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; padding: 0; list-style: none; }

/* Bloques de guía: texto + captura, autocontenidos */
.guide { max-width: 1040px; }
.block-toc { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 14px 0 22px; }
.block-toc a { padding: 4px 12px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.block-toc a:hover { background: var(--brand-soft); color: var(--brand); }
.block { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 8px 28px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 14px; scroll-margin-top: 16px; }
.block h3 { margin: 0 0 4px; font-size: 18px; }
.block-anchor { margin-inline-end: 6px; color: var(--muted); text-decoration: none; font-weight: 400; opacity: 0; }
.block:hover .block-anchor, .block-anchor:focus { opacity: 1; }
.block .goal { margin: 0 0 10px; color: var(--text-2); }
.block ol, .block ul { margin: 0 0 8px; }
.block p.small { margin: 8px 0 0; }
.block figure { margin: 0; }
.block figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
@media (max-width: 860px) { .block { grid-template-columns: 1fr; padding: 16px; } }
@media (max-width: 700px) { table.list.stack td > .sub, table.list.stack td > a.sub { grid-column: 2; } }

/* Conexiones (/staff): dos botones que despliegan su formulario, uno a la vez */
.conn-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.conn-actions details { flex: 1 1 360px; max-width: 640px; }
.conn-actions summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.conn-actions summary::-webkit-details-marker { display: none; }
.conn-actions details[open] > summary { margin-bottom: 8px; }
.conn-actions .card { margin-top: 0; }

/* Pasos de un proceso con su estado debajo (integración de cliente externo) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { padding-left: 2px; }
.steps .sub { display: block; margin-top: 2px; }

/* Enlazado interno de las páginas públicas (public/_enlaces.html) */
.related { list-style: none; padding: 0; margin: 0; }
.related li { margin: 10px 0; }

/* Aviso de cookies: barra fija al pie de la ventana */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; border-radius: 0; border-width: 1px 0 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 24px; box-shadow: 0 -2px 12px rgb(0 0 0 / .08); }
.cookie-bar p { margin: 0; flex: 1 1 360px; max-width: 760px; font-size: 14px; }
.cookie-bar form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
