:root {
  color-scheme: light;
  --accent: #c43d32;
  --accent-dark: #9f2f27;
  --ink: #18222c;
  --muted: #68737d;
  --line: #dfe3e6;
  --soft: #f3f5f6;
  --paper: #ffffff;
  --green: #237a57;
  --amber: #9c6414;
  --blue: #2d6597;
  --danger: #c43d32;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--ink); background: var(--paper); letter-spacing: 0; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.login-view { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(380px, .75fr); }
.login-visual { position: relative; overflow: hidden; min-height: 620px; background: #111a20; color: white; }
.login-visual img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center; }
.visual-shade { position: absolute; inset: 0; background: rgba(11, 18, 23, .4); }
.visual-brand { position: absolute; left: clamp(32px, 6vw, 88px); right: 40px; bottom: 64px; max-width: 640px; }
.platform-kicker { font-size: 14px; font-weight: 800; text-transform: uppercase; }
.visual-brand h1 { margin: 12px 0 18px; font-size: 52px; line-height: 1.03; max-width: 620px; }
.visual-brand p { margin: 0; font-size: 17px; font-weight: 650; }
.login-panel { display: grid; place-items: center; padding: 48px; }
.login-form { width: min(100%, 390px); display: grid; gap: 24px; }
.login-wordmark { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; }
.login-wordmark span { display: grid; place-items: center; width: 34px; height: 34px; background: var(--ink); color: white; border-radius: 5px; }
/* Lockup Zidder en el login (fondo claro → tinta; el SVG hereda negro). */
.login-logo { height: 42px; width: auto; display: block; }
.login-form h2 { margin: 6px 0 0; font-size: 28px; line-height: 1.15; }
.eyebrow { margin: 0; font-size: 12px; font-weight: 750; color: var(--muted); text-transform: uppercase; }
label { display: grid; gap: 7px; font-size: 13px; font-weight: 650; }
input, select, textarea { width: 100%; min-height: 42px; border: 1px solid #cbd1d5; border-radius: 5px; background: white; color: var(--ink); padding: 9px 11px; outline: none; }
textarea { min-height: 82px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(45, 101, 151, .12); }
button:focus-visible, a:focus-visible, summary:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.form-error { margin: -8px 0 0; padding: 10px 12px; border-left: 3px solid var(--accent); background: #fff2f0; color: #842b25; font-size: 13px; }
/* «¿Has olvidado tu contraseña?»: se despliega debajo de «Entrar». */
.login-help { margin-top: -8px; font-size: 13px; line-height: 1.5; }
.login-help summary { width: max-content; max-width: 100%; cursor: pointer; color: var(--blue); font-weight: 700; }
.login-help summary:hover { text-decoration: underline; }
.login-help p { margin: 10px 0 0; color: var(--ink); }
.login-help a, .field-note a { color: var(--blue); font-weight: 700; overflow-wrap: anywhere; }

.button { min-height: 40px; border: 1px solid transparent; border-radius: 5px; padding: 9px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 750; }
.button.primary { background: var(--accent); color: white; }
.button.primary:hover { background: var(--accent-dark); }
.button.secondary { border-color: #cbd1d5; background: white; color: var(--ink); }
.button.secondary:hover, .button.ghost:hover { background: var(--soft); }
.button.ghost { border-color: transparent; background: transparent; color: var(--ink); }
.button.wide { width: 100%; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid #d5dade; border-radius: 5px; background: white; color: var(--ink); }
.icon-button:hover { background: var(--soft); }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); background: #f8f9f9; }
.sidebar { height: 100vh; position: sticky; top: 0; display: flex; flex-direction: column; background: var(--ink); color: white; padding: 22px 14px 16px; }
.tenant-lockup { min-height: 54px; padding: 0 8px 18px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid rgba(255,255,255,.12); }
.tenant-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 5px; background: var(--accent); color: white; font-size: 12px; font-weight: 850; overflow: hidden; }
.tenant-lockup div { min-width: 0; display: grid; gap: 2px; }
.tenant-lockup strong { font-size: 14px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: break-word; }
.tenant-lockup span:not(.tenant-mark) { color: #9da7af; font-size: 11px; }
.main-nav { display: grid; gap: 4px; padding: 20px 0; }
.main-nav button, .nav-command { min-height: 42px; width: 100%; border: 0; border-radius: 5px; background: transparent; color: #c9d0d5; padding: 0 11px; display: flex; align-items: center; gap: 11px; font-size: 13px; font-weight: 650; text-align: left; }
.main-nav button:hover, .nav-command:hover { background: rgba(255,255,255,.07); color: white; }
.main-nav button[aria-current="page"] { background: white; color: var(--ink); }
.sidebar-foot { margin-top: auto; display: grid; gap: 8px; }
.privacy-state { padding: 12px 10px; border-top: 1px solid rgba(255,255,255,.12); color: #aeb6bd; font-size: 11px; display: flex; align-items: center; gap: 8px; }
.privacy-state span { width: 7px; height: 7px; border-radius: 50%; background: #49a979; }
.privacy-state b { font-weight: inherit; }
.app-main { min-width: 0; }
.topbar { height: 68px; position: sticky; top: 0; z-index: 10; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.topbar > div { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 10px; }
.topbar > div span { color: var(--muted); font-size: 12px; }
.topbar > div strong { font-size: 14px; }
.account-controls { display: flex !important; align-items: center !important; gap: 10px !important; }
.development-profile { width: min(230px, 44vw); min-height: 34px; padding: 5px 30px 5px 9px; font-size: 11px; font-weight: 700; }
.user-chip { border: 0; border-radius: 6px; background: transparent; display: flex; align-items: center; gap: 9px; padding: 4px 8px 4px 4px; color: var(--ink); cursor: pointer; }
.user-chip:hover { background: var(--soft); }
.user-chip > span:first-child { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #e8edef; color: var(--ink); font-size: 12px; font-weight: 800; }
.user-chip > span:last-child { display: grid; text-align: left; gap: 1px; }
.user-chip strong { font-size: 12px; }
.user-chip small { color: var(--muted); font-size: 10px; }
.workspace { width: min(100%, 1440px); margin: 0 auto; padding: 30px; }
.view { display: none; }
.view.is-active { display: block; }
.view-header { min-height: 70px; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 26px; }
.view-header h2 { margin: 5px 0 0; font-size: 28px; line-height: 1.15; }
.header-actions { display: flex; gap: 8px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 10px 0 16px; }
.section-heading h3 { margin: 0 0 4px; font-size: 16px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 12px; }

.recommended-band { min-height: 126px; margin-bottom: 30px; padding: 22px 24px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; color: white; background: #2f5f53; border-left: 5px solid #69b08d; }
.recommended-band[data-state="retry"] { background: #304f66; border-left-color: #76a5c8; }
.recommended-band[data-state="transfer"] { background: #3d5547; border-left-color: #84b492; }
.recommended-band[data-state="complete"] { background: #353f48; border-left-color: #8d9aa4; }
.recommended-band .eyebrow { color: #b9dbcb; }
.recommended-band[data-state="retry"] .eyebrow { color: #bfd8ea; }
.recommended-band h3 { margin: 6px 0 7px; font-size: 22px; }
.recommended-band p { margin: 0; color: #d7e8e0; font-size: 13px; }
.recommended-band .button { background: white; color: #244b42; }
.recommended-band-meta { display: flex; flex-wrap: wrap; gap: 7px 16px; margin-top: 12px; color: rgba(255,255,255,.78); font-size: 11px; }
.segmented { height: 34px; display: flex; border: 1px solid #cbd1d5; border-radius: 5px; overflow: hidden; }
.segmented button { min-width: 54px; border: 0; border-right: 1px solid #cbd1d5; background: white; color: var(--muted); padding: 0 10px; font-size: 11px; font-weight: 700; }
.segmented button:last-child { border-right: 0; }
.segmented button[aria-pressed="true"] { background: var(--ink); color: white; }
.scenario-grid { display: grid; grid-template-columns: repeat(3, minmax(240px, 1fr)); gap: 14px; }
.scenario-card { min-height: 272px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; background: white; padding: 18px; }
.scenario-card header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.scenario-card .duration { min-width: 44px; height: 28px; display: grid; place-items: center; border-radius: 4px; background: var(--soft); color: var(--muted); font-size: 11px; font-weight: 800; }
.scenario-card .case-type { color: var(--blue); font-size: 11px; font-weight: 750; }
.scenario-card h3 { margin: 16px 0 8px; font-size: 17px; line-height: 1.25; }
.scenario-card > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.scenario-meta { display: grid; gap: 4px; margin-top: 16px; font-size: 11px; color: var(--muted); }
.scenario-meta strong { color: var(--ink); }
.scenario-card footer { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; }
.scenario-card footer span { font-size: 10px; color: var(--muted); }

.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); background: white; margin-bottom: 30px; }
.metric { min-height: 112px; padding: 20px; border-right: 1px solid var(--line); display: grid; align-content: center; gap: 7px; }
.metric:last-child { border-right: 0; }
.metric strong { font-size: 28px; }
.metric span { color: var(--muted); font-size: 11px; }
.dashboard-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; margin-bottom: 32px; }
.plain-panel { padding: 0; margin: 0 0 30px; }
.focus-skill { min-height: 152px; border-left: 4px solid var(--amber); background: white; padding: 24px; }
.focus-skill strong { display: block; font-size: 24px; margin-bottom: 8px; }
.focus-skill p { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.skill-passport { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; margin-bottom: 32px; }
.skill-row { min-width: 0; }
.skill-row > div { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; font-size: 13px; }
.skill-row span { color: var(--muted); }
.skill-row progress { width: 100%; }
progress { appearance: none; width: 100%; height: 7px; border: 0; background: #e7eaec; overflow: hidden; }
progress::-webkit-progress-bar { background: #e7eaec; }
progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }
.usage-card { min-height: 152px; background: white; padding: 24px; display: grid; align-content: center; gap: 12px; }
.usage-row { display: flex; justify-content: space-between; align-items: baseline; }
.usage-row strong { font-size: 24px; }
.usage-row span { color: var(--muted); font-size: 11px; }
.activation-flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 18px; border-block: 1px solid var(--line); background: white; }
.activation-flow.learner-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 32px; }
.activation-step { min-height: 96px; padding: 18px; display: grid; align-content: center; gap: 6px; border-right: 1px solid var(--line); }
.activation-step:last-child { border-right: 0; }
.activation-step strong { font-size: 23px; }
.activation-step span { color: var(--muted); font-size: 11px; }
.activation-step small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.activation-step.is-current { box-shadow: inset 0 -3px var(--accent); }
.activation-step.path-step { grid-template-columns: 28px 1fr; align-items: center; align-content: center; gap: 11px; }
.activation-step.path-step > div { min-width: 0; display: grid; gap: 4px; }
.activation-step.path-step strong { font-size: 13px; }
.activation-marker { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #cbd1d5; border-radius: 50%; color: var(--muted); font-size: 11px; font-weight: 800; }
.activation-marker svg { width: 15px; height: 15px; }
.activation-step.path-step.is-complete .activation-marker { border-color: var(--green); background: #e9f4ef; color: var(--green); }
.activation-step.path-step.is-current .activation-marker { border-color: var(--accent); background: var(--accent); color: white; }
.funnel-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-bottom: 32px; }
.funnel-meta div { display: flex; align-items: baseline; gap: 7px; }
.funnel-meta strong { font-size: 14px; }
.funnel-meta span { color: var(--muted); font-size: 11px; }

.attention-list { border-top: 1px solid var(--line); margin-bottom: 32px; }
.attention-row { min-height: 66px; display: grid; grid-template-columns: minmax(190px, 1fr) minmax(180px, .8fr) auto; gap: 18px; align-items: center; padding: 10px 8px 10px 14px; border-bottom: 1px solid var(--line); border-left: 3px solid var(--amber); background: white; }
.attention-row.overdue { border-left-color: var(--danger); }
.attention-row.needs-transfer { border-left-color: var(--blue); }
.attention-row > div { display: grid; gap: 4px; }
.attention-row strong { font-size: 13px; }
.attention-row span { color: var(--muted); font-size: 11px; }
.attention-row > .button { justify-self: end; }

.activity-list { border-top: 1px solid var(--line); }
.activity-row { min-height: 76px; display: grid; grid-template-columns: minmax(180px, 1.5fr) minmax(130px, .7fr) 100px 110px; gap: 18px; align-items: center; padding: 13px 8px; border-bottom: 1px solid var(--line); }
.activity-row h4 { margin: 0 0 4px; font-size: 13px; }
.activity-row p, .activity-row span { margin: 0; color: var(--muted); font-size: 11px; }
.activity-row .score { font-size: 18px; font-weight: 800; color: var(--ink); }
.status-pill { width: fit-content; padding: 4px 7px; border-radius: 4px; font-size: 10px !important; font-weight: 750; background: #e9f4ef; color: var(--green) !important; }
.status-pill.failed { background: #fff0ee; color: var(--accent) !important; }
.status-pill.in_progress { background: #eef3f8; color: var(--blue) !important; }
.empty-state { min-height: 140px; display: grid; place-items: center; color: var(--muted); border-block: 1px solid var(--line); font-size: 13px; }
.skill-passport .empty-state { grid-column: 1 / -1; }

.data-table { border-top: 1px solid var(--line); margin-bottom: 34px; }
.table-row { min-height: 66px; display: grid; grid-template-columns: 1.5fr 1fr 1fr .8fr .6fr; gap: 16px; align-items: center; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: 12px; }
.team-row { grid-template-columns: 1.5fr 1fr 1fr .5fr .5fr .8fr .6fr; }
.table-row.header { min-height: 38px; color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.person-cell { min-width: 0; display: grid; gap: 3px; }
.person-cell strong, .person-cell span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-cell span { color: var(--muted); font-size: 10px; }
.person-actions { display: flex; gap: 6px; margin-top: 6px; }
.button.small { min-height: 28px; padding: 3px 8px; font-size: 10px; }
.button.danger { color: var(--danger); }
.team-cycle { width: fit-content; padding: 4px 7px; border-radius: 4px; background: #eef1f3; color: var(--muted); font-size: 10px; font-weight: 750; }
.team-cycle.needs-retry { background: #fff3dc; color: #7a4d0d; }
.team-cycle.needs-transfer { background: #e9f1f7; color: var(--blue); }
.team-cycle.complete { background: #e9f4ef; color: var(--green); }
.assignment-list { display: grid; gap: 8px; }
.assignment-row { min-height: 58px; display: grid; grid-template-columns: 1.4fr .8fr .6fr auto; gap: 16px; align-items: center; background: white; border-left: 3px solid #cbd1d5; padding: 10px 14px; font-size: 12px; }
.assignment-row strong { font-size: 12px; }
.assignment-row span { color: var(--muted); font-size: 11px; }
.assignment-main { min-width: 0; display: grid; gap: 4px; }
.assignment-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.playbook-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 0 24px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.playbook-flow span { padding: 6px 8px; background: white; border: 1px solid var(--line); border-radius: 4px; }
.playbook-list { display: grid; }
.playbook-rule { border-bottom: 1px solid var(--line); padding: 22px 4px; }
.rule-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.rule-head h3 { margin: 0 0 6px; font-size: 16px; }
.rule-head p { margin: 0; color: var(--muted); font-size: 11px; }
.rule-status { display: flex; align-items: center; gap: 8px; }
.rule-status select { min-height: 32px; width: 112px; padding: 4px 8px; font-size: 11px; }
.rule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.rule-grid div { display: grid; align-content: start; gap: 5px; }
.rule-grid span { color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.rule-grid p { margin: 0; font-size: 12px; line-height: 1.45; }

.brand-layout { display: grid; grid-template-columns: minmax(340px, 560px) minmax(300px, 1fr); gap: 60px; align-items: start; }
.settings-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.brand-preview { min-height: 360px; padding: 36px; background: var(--ink); color: white; display: grid; align-content: center; justify-items: start; }
.brand-preview > div:first-child { min-width: 56px; height: 56px; padding: 0 10px; display: grid; place-items: center; background: var(--accent); border-radius: 5px; font-weight: 850; }
.brand-preview > span { margin-top: 20px; font-size: 23px; font-weight: 800; }
.brand-preview > p { margin: 4px 0 22px; color: #9da7af; font-size: 11px; }
.preview-line { width: 100%; height: 1px; background: rgba(255,255,255,.16); margin-bottom: 22px; }
.brand-preview small { margin-top: 5px; color: #aeb6bd; }

.practice-flow { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: 68px 1fr; background: #f7f8f8; }
.flow-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 24px; background: white; border-bottom: 1px solid var(--line); }
.flow-header > span { justify-self: end; font-size: 12px; font-weight: 750; }
.flow-steps { display: flex; align-items: center; gap: 9px; }
.flow-steps span { color: #9aa3aa; font-size: 11px; font-weight: 750; }
.flow-steps span.is-active { color: var(--ink); }
.flow-steps b { width: 42px; height: 1px; background: #d9dddf; }
.flow-body { min-height: 0; overflow: auto; }
.flow-screen { min-height: calc(100vh - 68px); }
.prepare-screen { width: min(1120px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(310px, .6fr); gap: 64px; align-items: center; padding: 48px 0; }
.prepare-main h2 { margin: 8px 0 16px; font-size: 40px; line-height: 1.06; max-width: 700px; }
.lead { max-width: 700px; color: var(--muted); line-height: 1.6; font-size: 15px; }
.prepare-details { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 28px 0 0; border-block: 1px solid var(--line); }
.prepare-details div { padding: 15px 0; display: grid; gap: 5px; border-bottom: 1px solid var(--line); }
.prepare-details div:nth-last-child(-n+2) { border-bottom: 0; }
.prepare-details dt { color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.prepare-details dd { margin: 0; font-size: 13px; font-weight: 650; }
.prepare-side { border-left: 1px solid var(--line); padding-left: 32px; }
.prospect-box { margin-top: 26px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 10px; }
.prospect-box h3 { margin: 0; font-size: 15px; }
.prospect-box > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.prospect-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.prospect-pick { display: grid; gap: 5px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.prospect-card { padding: 12px 14px; background: #f4f6f8; border-radius: 6px; font-size: 12px; line-height: 1.5; }
.prospect-card strong { display: block; font-size: 13px; }
.prospect-card ul { margin: 6px 0 0; padding-left: 18px; }
.prospect-card .prospect-role { margin: 6px 0 0; font-weight: 650; }
.prospect-card .prospect-suggestions { display: block; width: 100%; height: 56px; margin-top: 8px; border: 0; }
.prospect-card .prospect-remove { margin-top: 8px; background: none; border: 0; padding: 0; color: var(--muted); font-size: 11px; text-decoration: underline; cursor: pointer; }
@media (max-width: 700px) { .prospect-form { grid-template-columns: 1fr; } }
.prepare-coaching { margin-bottom: 26px; padding: 16px 18px; border-left: 4px solid var(--blue); background: #edf3f7; display: grid; gap: 6px; }
.prepare-coaching > span { color: var(--blue); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.prepare-coaching > strong { font-size: 16px; line-height: 1.3; }
.prepare-coaching > p { margin: 0; color: #4d5b65; font-size: 12px; line-height: 1.5; }
.prepare-side h3 { margin: 0 0 10px; font-size: 14px; }
.prepare-side > p { margin: 0 0 26px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.consent-check { grid-template-columns: 18px 1fr; align-items: start; gap: 10px; font-size: 11px; line-height: 1.45; color: var(--muted); margin-bottom: 18px; }
.consent-check input { width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: var(--accent); }
/* Aviso de las condiciones de ElevenAgents (§3.5) bajo «Empezar llamada»: siempre a la vista antes de pulsar. */
.prepare-side > .call-notice { margin: 10px 0 16px; color: var(--muted); font-size: 11px; line-height: 1.45; }

.call-screen { display: grid; grid-template-rows: auto 1fr auto auto; justify-items: center; align-items: center; padding: 46px 20px 34px; background: #121a20; color: white; overflow: hidden; }
.call-identity { text-align: center; }
.call-identity span { color: #9ba5ad; font-size: 11px; text-transform: uppercase; }
.call-identity h2 { margin: 7px 0 4px; font-size: 29px; }
.call-identity p { margin: 0; color: #b3bbc0; font-size: 12px; }
.voice-orbit { --audio-level: .32; position: relative; width: 220px; height: 220px; display: grid; place-items: center; }
.voice-orbit span, .voice-orbit i, .voice-orbit b { position: absolute; border-radius: 50%; }
.voice-orbit span { width: 126px; height: 126px; background: #557481; opacity: calc(.55 + var(--audio-level) * .35); transform: scale(calc(.9 + var(--audio-level) * .16)); transition: transform .12s linear; }
.voice-orbit i { width: 172px; height: 172px; border: 1px solid rgba(255,255,255,.18); }
.voice-orbit b { width: 202px; height: 202px; border: 1px solid rgba(255,255,255,.08); }
.voice-orbit::after { content: ""; position: relative; width: 12px; height: 12px; border-radius: 50%; background: white; box-shadow: 0 0 0 8px rgba(255,255,255,.12); }
.voice-orbit.is-speaking span { background: #2f7a67; }
.call-state { display: grid; justify-items: center; gap: 7px; }
.call-state strong { font-size: 13px; }
.call-state time { color: #aab2b8; font-variant-numeric: tabular-nums; font-size: 12px; }
.call-controls { display: flex; gap: 22px; padding-top: 24px; }
.call-controls button { width: 76px; height: 76px; border: 0; border-radius: 50%; display: grid; place-items: center; align-content: center; gap: 5px; background: #29333a; color: white; }
.call-controls button svg { width: 21px; height: 21px; }
.call-controls button span { font-size: 9px; }
.call-controls .end-control { background: var(--danger); }

.result-screen { width: min(900px, calc(100% - 48px)); margin: 0 auto; padding: 52px 0 80px; }
.result-summary { text-align: center; max-width: 720px; margin: 0 auto; }
.score-lockup { display: flex; justify-content: center; align-items: baseline; margin: 12px 0 5px; }
.score-lockup strong { font-size: 44px; line-height: 1; }
.score-lockup span { color: var(--muted); }
.result-summary h2 { margin: 10px 0; font-size: 24px; }
.result-summary > p:last-child { margin: 0 auto; color: var(--muted); line-height: 1.55; font-size: 13px; }
.learning-feedback { margin: 0 0 30px; padding: 26px 24px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; border-block: 1px solid var(--line); background: white; }
.learning-feedback > div:first-child { min-width: 0; }
.learning-feedback span { color: var(--blue); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.learning-feedback h3 { margin: 7px 0 6px; font-size: 19px; }
.learning-feedback p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.learning-measure { min-width: 110px; display: grid; justify-items: end; }
.learning-measure strong { font-size: 40px; }
.learning-measure span { color: var(--green); }
.priority-panel { margin: 36px 0 20px; border-left: 5px solid var(--accent); background: white; padding: 22px 24px; }
.priority-panel span { color: var(--accent); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.priority-panel h3 { margin: 8px 0 7px; font-size: 18px; }
.priority-panel p { margin: 0; color: var(--muted); font-size: 12px; }
.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px 0 34px; }
.report-details { border-top: 1px solid var(--line); padding: 16px 2px; }
.report-details:last-child { border-bottom: 1px solid var(--line); }
.report-details summary { cursor: pointer; font-size: 13px; font-weight: 750; }
.report-details h4 { margin: 22px 0 8px; font-size: 12px; }
.report-details p, .report-details li { color: #4f5c65; font-size: 12px; line-height: 1.5; }
.score-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 20px; }
.score-row { display: grid; grid-template-columns: 1fr auto; gap: 5px; align-items: center; }
.score-row span, .score-row strong { font-size: 10px; }
.score-row progress { grid-column: 1 / -1; }
.score-row:not(.is-target) { opacity: .6; }
.score-row.is-target { grid-column: 1 / -1; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--soft); border-radius: 0 5px 5px 0; }
.score-row.is-target span, .score-row.is-target strong { font-size: 12px; }
.score-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.score-target-tag { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .3px; font-size: 9px !important; }
.transcript { padding: 0; list-style: none; }
.transcript li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.transcript strong { display: block; color: var(--ink); margin-bottom: 4px; }

dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 40px); border: 0; border-radius: 6px; padding: 0; box-shadow: 0 24px 80px rgba(14,23,30,.24); overflow: auto; }
dialog.wide { width: min(860px, calc(100% - 32px)); }
dialog::backdrop { background: rgba(20,29,35,.52); }
#tour-dialog { width: min(460px, calc(100% - 32px)); }
.tour-card { padding: 28px 28px 22px; }
.tour-progress { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tour-dots { display: inline-flex; gap: 6px; }
.tour-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.tour-dot.is-active { background: var(--accent); }
.tour-count { color: var(--muted); font-size: 11px; font-weight: 700; }
.tour-card h2 { margin: 0 0 10px; font-size: 20px; letter-spacing: -.3px; }
.tour-card #tour-body { margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.tour-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tour-nav { display: flex; gap: 8px; }
.wide-dialog { width: min(820px, calc(100% - 32px)); }
.dialog-form { display: grid; gap: 16px; padding: 24px; }
.dialog-form header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 2px; }
.dialog-form h2 { margin: 5px 0 0; font-size: 22px; }
.dialog-form footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.temporary-password { margin: 0; padding: 12px; background: #eaf4ef; color: #205d44; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
/* «Tu cuenta»: quién eres, cambiar la contraseña y salir. */
.account-identity { margin: -4px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
#account-dialog .field-note { margin: -8px 0 0; font-size: 12px; line-height: 1.45; }
#account-dialog .form-error { margin: 0; }
.dialog-form footer.account-footer { justify-content: space-between; flex-wrap: wrap; }
.account-footer-actions { display: flex; gap: 8px; margin-left: auto; }
.account-footer .button svg { width: 16px; height: 16px; }
.invite-link { display: flex; flex-direction: column; gap: 8px; }
.invite-link input { width: 100%; font-family: ui-monospace, monospace; font-size: 12px; overflow-wrap: anywhere; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 200; max-width: 360px; padding: 12px 15px; border-radius: 5px; background: var(--ink); color: white; box-shadow: 0 12px 30px rgba(0,0,0,.2); font-size: 12px; }

@media (max-width: 1050px) {
  .scenario-grid { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
  .rule-grid { grid-template-columns: 1fr 1fr; }
  .brand-layout { gap: 30px; }
}

@media (max-width: 780px) {
  .login-view { grid-template-columns: 1fr; }
  .login-visual { min-height: 260px; max-height: 34vh; }
  .visual-brand { left: 24px; bottom: 24px; }
  .visual-brand h1 { font-size: 32px; max-width: 480px; }
  .login-panel { padding: 34px 24px; }
  .app-shell { display: block; }
  .sidebar { height: auto; position: fixed; inset: auto 0 0 0; z-index: 50; padding: 5px 8px env(safe-area-inset-bottom); display: block; border-top: 1px solid rgba(255,255,255,.15); }
  .tenant-lockup, .sidebar-foot { display: none; }
  .main-nav { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; gap: 2px; }
  .main-nav button { min-height: 52px; padding: 4px; justify-content: center; flex-direction: column; gap: 3px; font-size: 11px; }
  .main-nav button svg { width: 16px; height: 16px; }
  .topbar { height: 60px; padding: 0 16px; }
  .workspace { padding: 22px 16px 140px; }
  .view-header { min-height: 56px; margin-bottom: 20px; }
  .view-header h2 { font-size: 24px; }
  .recommended-band { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .scenario-grid { grid-template-columns: 1fr; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .dashboard-grid, .brand-layout, .skill-passport { grid-template-columns: 1fr; }
  .activation-flow, .activation-flow.learner-flow { grid-template-columns: 1fr 1fr; }
  .activation-step:nth-child(2) { border-right: 0; }
  .activation-step { border-bottom: 1px solid var(--line); }
  .activation-step:nth-child(even), .activation-step:last-child { border-right: 0; }
  .activation-step:nth-last-child(-n+2) { border-bottom: 0; }
  .attention-row { grid-template-columns: 1fr auto; gap: 8px 12px; padding-block: 13px; }
  .attention-row .attention-reason { grid-column: 1; }
  .attention-row > .button { grid-column: 2; grid-row: 1 / span 2; }
  .activity-row { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; padding-block: 14px; }
  .activity-person { grid-column: 1; display: flex; flex-wrap: wrap; gap: 5px 10px; }
  .activity-row .score { grid-column: 2; grid-row: 1; align-self: start; }
  .activity-row .status-pill { grid-column: 2; grid-row: 2; }
  .activity-row p, .activity-row span { font-size: 12px; }
  .table-row.header { display: none; }
  .team-row { grid-template-columns: 1fr 1fr; gap: 10px 16px; padding: 15px 8px; }
  .team-row .person-cell { grid-column: 1 / -1; }
  .team-row > span { display: grid; gap: 3px; font-size: 12px; }
  .team-row > span::before { content: attr(data-label); color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
  .team-row .team-cycle { width: 100%; background: transparent; padding: 0; color: var(--ink); }
  .assignment-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; padding-block: 13px; }
  .assignment-main { grid-column: 1; }
  .assignment-row > .status-pill { grid-column: 2; grid-row: 1; }
  .assignment-row > span:not(.status-pill) { display: grid; gap: 2px; font-size: 12px; }
  .assignment-row > span:not(.status-pill)::before { content: attr(data-label); color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
  .rule-grid { grid-template-columns: 1fr; }
  .flow-header { grid-template-columns: 40px 1fr; padding: 0 12px; }
  .flow-header > span { display: none; }
  .flow-steps { justify-self: center; }
  .flow-steps b { width: 20px; }
  .prepare-screen { width: calc(100% - 32px); grid-template-columns: 1fr; gap: 34px; padding: 34px 0; align-items: start; }
  .prepare-main h2 { font-size: 31px; }
  .prepare-side { border-left: 0; border-top: 1px solid var(--line); padding: 26px 0 0; }
  .result-screen { width: calc(100% - 32px); }
  .learning-feedback { grid-template-columns: 1fr; }
  .learning-measure { justify-items: start; }
  .score-breakdown, .form-row { grid-template-columns: 1fr; }
}

/* Activación de empresa: recorrido guiado del responsable */
.activation-progress-panel progress { height: 9px; margin-bottom: 20px; }
.activation-progress-panel progress::-webkit-progress-value { background: var(--green); }
.activation-progress-panel progress::-moz-progress-bar { background: var(--green); }
.onboarding-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.onboarding-step { min-height: 62px; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 14px; padding: 12px 8px; border-bottom: 1px solid var(--line); background: white; }
.onboarding-step > div { display: grid; gap: 3px; }
.onboarding-step strong { font-size: 13px; }
.onboarding-step span:not(.onboarding-marker) { color: var(--muted); font-size: 11px; }
.onboarding-step.is-current { border-left: 3px solid var(--accent); padding-left: 11px; }
.onboarding-step.is-done strong { color: var(--muted); }
.onboarding-marker { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #cbd1d5; border-radius: 50%; color: var(--muted); font-size: 11px; font-weight: 800; }
.onboarding-step.is-done .onboarding-marker { border-color: var(--green); background: #e9f4ef; color: var(--green); }
.onboarding-step.is-current .onboarding-marker { border-color: var(--accent); background: var(--accent); color: white; }
.company-activation { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); background: white; }
.company-activation .metric { min-height: 104px; }
.account-status { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 14px 20px; border-top: 1px solid var(--line); }
.account-status strong { font-size: 13px; }
.account-status span { color: var(--muted); font-size: 11px; }

/* Autoría: fuentes, prácticas y programa */
.authoring-panel { margin-top: 24px; }
.source-list, .practice-list { display: grid; grid-template-columns: repeat(3, minmax(240px, 1fr)); gap: 14px; margin-bottom: 26px; }
.source-card, .practice-card, .program-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; background: white; padding: 18px; }
.source-card.is-selected { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.source-card header, .practice-card header, .program-card header { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.source-card h3, .practice-card h3, .program-card h3 { margin: 14px 0 10px; font-size: 16px; line-height: 1.3; }
.source-counts { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 11px; }
.source-counts .approved { color: var(--green); font-weight: 700; }
.source-counts .draft { color: var(--amber); font-weight: 700; }
.source-counts .blocked { color: var(--danger); font-weight: 700; }
.source-card footer, .practice-card footer { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.source-card footer span, .practice-card footer span { font-size: 10px; color: var(--muted); }
.claim-panel { border-top: 1px solid var(--line); padding-top: 8px; }
.claim-list { display: grid; border-top: 1px solid var(--line); }
.claim-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 8px; border-bottom: 1px solid var(--line); background: white; border-left: 3px solid #cbd1d5; }
.claim-row.approved { border-left-color: var(--green); }
.claim-row.blocked { border-left-color: var(--danger); }
.claim-copy p { margin: 0 0 5px; font-size: 13px; line-height: 1.45; }
.claim-copy small { color: var(--muted); font-size: 10px; line-height: 1.4; display: block; }
.claim-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.status-pill.draft { background: #fff3dc; color: #7a4d0d !important; }
.status-pill.blocked, .status-pill.archived { background: #fff0ee; color: var(--accent) !important; }
.status-pill.published, .status-pill.approved { background: #e9f4ef; color: var(--green) !important; }
.practice-meta { display: grid; gap: 4px; font-size: 11px; color: var(--muted); }
.field-note { margin: -10px 0 0; color: var(--muted); font-size: 11px; }
#reflection-dialog .field-note { margin: 0; }
.reserved-field textarea, .reserved-block { border-left: 3px solid var(--blue); }
.reserved-block { background: #f6f9fb; padding: 12px 14px; display: grid; gap: 8px; }
.reserved-block > span { color: var(--blue); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.reserved-block ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.reserved-block li { font-size: 12px; line-height: 1.45; color: #3f4c56; }
.fact-item { list-style: none; margin-left: -18px; display: grid; gap: 2px; padding: 6px 0; }
.fact-item small { color: var(--muted); font-size: 10px; }
.fact-item.blocked span { text-decoration: line-through; color: var(--danger); }
.rubric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rubric-cell { border: 1px solid var(--line); border-radius: 5px; background: white; padding: 10px 12px; display: grid; gap: 4px; }
.rubric-cell.primary { border-color: var(--accent); }
.rubric-cell strong { font-size: 11px; }
.rubric-cell p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.rubric-cell small { color: var(--blue); font-size: 10px; font-weight: 700; }
.practice-footer { flex-wrap: wrap; }
.program-list { display: grid; gap: 14px; }
.program-card h3 { margin-bottom: 4px; }
.program-date { margin: 0 0 6px; color: var(--muted); font-size: 12px; }
.program-block { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 7px; }
.block-label { color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.check-row { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 550; }
.check-row input { width: 15px; height: 15px; min-height: 0; margin: 0; accent-color: var(--accent); }
.empty-inline { margin: 0; color: var(--muted); font-size: 12px; }
.program-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.intervention-context { display: grid; gap: 4px; padding: 12px 14px; border-left: 3px solid var(--blue); background: #f6f9fb; }
.intervention-context strong { font-size: 13px; }
.intervention-context span { color: var(--muted); font-size: 11px; }
.case-type.company { color: var(--green); }

.weekly-metrics { display: grid; grid-template-columns: repeat(5, 1fr); border-block: 1px solid var(--line); background: white; margin-bottom: 14px; }
.weekly-metrics .metric { min-height: 92px; }
@media (max-width: 780px) {
  .weekly-metrics { grid-template-columns: repeat(2, 1fr); }
  .weekly-metrics .metric:nth-child(odd) { border-right: 1px solid var(--line); }
  .weekly-metrics .metric { border-bottom: 1px solid var(--line); border-right: 0; }
  .weekly-metrics .metric:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
}

.snapshot-body { background: white; border: 1px solid var(--line); padding: 28px 32px; max-width: 900px; }
.snapshot-head h3 { margin: 0 0 6px; font-size: 20px; }
.snapshot-head p { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.snapshot-metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); margin-bottom: 20px; }
.snapshot-metrics .metric { min-height: 92px; }
.snapshot-table .table-row { grid-template-columns: 1.2fr 1fr .7fr .8fr .6fr .9fr; min-height: 48px; }
.decision-path { margin: 8px 0 24px; }
.decision-path h4 { margin: 0 0 12px; font-size: 15px; }
.decision-steps { list-style: none; display: grid; gap: 8px; }
.decision-steps li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.decision-steps li.is-done { color: var(--ink); }
.decision-mark { width: 18px; text-align: center; color: var(--muted); font-weight: 800; }
.decision-steps li.is-done .decision-mark { color: var(--green); }
@media (max-width: 780px) {
  .snapshot-metrics { grid-template-columns: 1fr 1fr; }
  .snapshot-table .table-row { grid-template-columns: 1fr 1fr; }
  .snapshot-table .table-row.header { display: none; }
}
@media print {
  .sidebar, .topbar, .no-print, .toast { display: none !important; }
  .app-shell { display: block; background: white; }
  .workspace { padding: 0; width: 100%; }
  .view { display: none; }
  #view-snapshot { display: block !important; }
  .snapshot-body { border: 0; padding: 0; }
}

.calibration-list { display: grid; border-top: 1px solid var(--line); margin-bottom: 18px; }
.calibration-row { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 12px 18px; align-items: center; padding: 12px 8px; border-bottom: 1px solid var(--line); background: white; border-left: 3px solid var(--blue); }
.calibration-row > div:first-child { display: grid; gap: 4px; }
.calibration-row strong { font-size: 13px; }
.calibration-row span { color: var(--muted); font-size: 11px; }
.calibration-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; justify-content: flex-end; }
.calibration-controls input { width: 76px; min-height: 34px; }
.calibration-controls select { width: auto; min-height: 34px; font-size: 11px; }
@media (max-width: 780px) {
  .calibration-row { grid-template-columns: 1fr; }
  .calibration-controls { justify-content: flex-start; }
}

.practice-quality { display: grid; gap: 8px; margin-bottom: 6px; }
.quality-check { display: flex; align-items: baseline; gap: 10px; padding: 9px 12px; border-radius: 6px; font-size: 12px; }
.quality-check.is-warn { background: #fff7e8; border-left: 3px solid var(--amber); }
.quality-check.is-block { background: #fff2f0; border-left: 3px solid var(--danger); }
.quality-badge { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; flex: none; }
.quality-check.is-warn .quality-badge { color: var(--amber); }
.quality-check.is-block .quality-badge { color: var(--danger); }
.effect-tag { font-size: 11px; font-weight: 700; color: var(--muted); }
.effect-tag.is-good { color: var(--green); }
.skill-row.is-tentative { opacity: .62; }
.skill-row.is-tentative progress { filter: grayscale(1); }
.skill-tentative-tag { display: block; color: var(--amber); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; margin-top: 2px; }
.real-outcome-form { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 12px; align-items: end; }
.real-outcome-form .form-actions { display: flex; }
@media (max-width: 780px) { .real-outcome-form { grid-template-columns: 1fr; } }
.company-profile-form { display: grid; gap: 14px; }
.company-profile-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.company-profile-form .form-actions { display: flex; justify-content: flex-end; }
.company-profile-state { font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px 10px; border: 1px solid var(--line); border-radius: 9999px; }
.company-profile-state.is-done { color: var(--green); border-color: var(--green); }
@media (max-width: 780px) { .company-profile-form .form-row { grid-template-columns: 1fr; } }

#call-timer.is-closing { color: #f4b13e; font-weight: 800; }
.pilot-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; border-block: 1px solid var(--line); background: white; padding: 18px 20px; }
.pilot-copy { display: grid; gap: 4px; }
.pilot-copy strong { font-size: 15px; }
.pilot-copy span, .pilot-note { color: var(--muted); font-size: 11px; }
.pilot-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#intervention-transcript { border-bottom: 1px solid var(--line); }
#intervention-transcript .transcript { max-height: 220px; overflow: auto; margin: 8px 0 0; }

/* Resultado: el resultado comercial manda; la puntuación es secundaria */
.result-summary h2 { margin: 12px 0 10px; font-size: 30px; }
.result-evidence { margin: 0 0 8px !important; padding: 8px 10px; background: #f6f9fb; border-left: 3px solid var(--blue); color: #3f4c56 !important; font-size: 12px; }
.result-secondary { display: flex; justify-content: center; align-items: baseline; gap: 7px; margin: 0 0 18px; color: var(--muted); font-size: 11px; }
.result-secondary strong { font-size: 17px; color: var(--ink); }

@media (max-width: 1050px) {
  .source-list, .practice-list { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .company-activation { grid-template-columns: 1fr 1fr; }
  .company-activation .metric:nth-child(2) { border-right: 0; }
  .company-activation .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 780px) {
  .source-list, .practice-list { grid-template-columns: 1fr; }
  .company-activation { grid-template-columns: 1fr 1fr; }
  .rubric-grid { grid-template-columns: 1fr; }
  .claim-row { grid-template-columns: 1fr; }
  .claim-controls { justify-content: flex-start; }
  .onboarding-step { grid-template-columns: 30px 1fr; }
  .onboarding-step > .button { grid-column: 2; justify-self: start; }
}

@media (max-width: 430px) {
  .company-activation { grid-template-columns: 1fr; }
  .company-activation .metric { border-right: 0; border-bottom: 1px solid var(--line); min-height: 84px; }
  .company-activation .metric:last-of-type { border-bottom: 0; }
  .header-actions { gap: 4px; }
  .header-actions .button { padding-inline: 9px; font-size: 11px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; }
  .prepare-details { grid-template-columns: 1fr; }
  .prepare-details div:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .prepare-details div:last-child { border-bottom: 0; }
  .call-screen { min-height: calc(100dvh - 68px); padding-top: 28px; }
  .voice-orbit { width: 180px; height: 180px; }
  .voice-orbit span { width: 104px; height: 104px; }
  .voice-orbit i { width: 142px; height: 142px; }
  .voice-orbit b { width: 170px; height: 170px; }
}

/* Bolsa de prácticas del equipo (cuotas por cliente) */
.allowance-notice { margin: 0 0 18px; padding: 12px 14px; border-left: 3px solid var(--accent); background: #fff8ec; color: #5b3a12; font-size: 14px; }
.allowance-notice[data-state="exhausted"] { background: #fff2f0; color: #842b25; }
.usage-alarm { color: #842b25; font-weight: 600; }
.usage-expand { font-weight: 600; }

/* Solo: «qué vendes» antes de la primera práctica y su resumen en «Practicar» */
.offering-step { margin: 0 0 30px; padding: 24px 26px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px; align-items: start; border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 0 6px 6px 0; background: var(--soft); }
.offering-intro h3 { margin: 6px 0 8px; font-size: 22px; line-height: 1.2; }
.offering-intro p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.offering-form { display: grid; gap: 14px; }
.offering-form .form-error { margin: 0; }
.offering-form .form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.offering-summary { margin: 0 0 24px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.offering-summary-copy { display: grid; gap: 4px; min-width: 0; }
.offering-summary-copy strong { font-size: 15px; overflow-wrap: anywhere; }
#offering-summary-audience { display: flex; flex-wrap: wrap; gap: 2px 16px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
@media (max-width: 780px) {
  .offering-step { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
  .offering-form .form-actions .button { flex: 1; }
  .offering-summary { flex-direction: column; align-items: stretch; }
  /* Los avisos salen por encima de la barra de abajo (dos filas de botones). */
  .toast { left: 16px; right: 16px; bottom: calc(120px + env(safe-area-inset-bottom)); max-width: none; }
}
