/* ImpulsAI · Espacio de trabajo. Sin fuentes ni recursos externos. */
:root {
  --ink: #101010;
  --lime: #72e000;
  --canvas: #f5f6f2;
  --paper: #fff;
  --text: #20241f;
  --muted: #62695e;
  --line: #e2e6dc;
  --green-ink: #326700;
  --green-pale: #edf8e1;
  --red: #a33532;
  --radius: 18px;
  --shadow: 0 5px 18px rgb(29 42 18 / 3%);
  --sidebar-width: 244px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--canvas); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; }
h1 { margin-bottom: 10px; font-size: clamp(27px, 2.5vw, 38px); font-weight: 720; letter-spacing: -1.15px; }
h2 { font-size: 18px; letter-spacing: -.35px; }
h3 { font-size: 16px; letter-spacing: -.2px; }
p:last-child { margin-bottom: 0; }
small { font-size: 12px; }
::selection { background: #c7f59a; color: var(--ink); }
:focus-visible { outline: 3px solid #408700; outline-offset: 4px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 13px 18px; background: var(--lime); border-radius: 10px; color: var(--ink); font-weight: 700; }
.skip-link:focus { top: 12px; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--sidebar-width); display: flex; flex-direction: column; padding: 32px 18px 18px; background: var(--ink); color: #fff; overflow-y: auto; overscroll-behavior: contain; }
.brand { display: block; padding: 0 13px; }
.brand img { width: 173px; height: 44px; object-fit: contain; object-position: left center; }
.brand-caption { display: block; margin: 10px 0 0; color: #a9b2a1; font-size: 10px; font-weight: 650; letter-spacing: 2.2px; text-transform: uppercase; }
.nav-group { display: grid; gap: 4px; margin-top: 31px; }
.nav-label { margin: 0 13px 7px; color: #929b8c; font-size: 10px; font-weight: 650; letter-spacing: 1.7px; text-transform: uppercase; }
.nav-link { position: relative; display: flex; align-items: center; gap: 11px; min-height: 45px; padding: 10px 13px; border-radius: 10px; color: #d1d6cc; font-size: 13px; line-height: 1.4; font-weight: 510; transition: background .16s, color .16s; }
.nav-link:hover { background: #252a21; color: #fff; }
.nav-link.active { background: var(--lime); color: var(--ink); font-weight: 700; }
.nav-link:focus-visible, .sidebar a:focus-visible { outline-color: var(--lime); }
.nav-link.active:focus-visible { outline-color: #fff; }
button.nav-link { width: 100%; border: 0; background: transparent; text-align: left; font-family: inherit; }
button.nav-link:hover { background: #252a21; }
.nav-icon { display: flex; align-items: center; flex: 0 0 19px; }
.nav-icon svg { width: 19px; height: 19px; }
.sidebar-footer { margin-top: auto; padding: 27px 12px 3px; }
.sidebar-footer > p { margin-top: 0; color: #9da694; font-size: 12px; }
.sidebar-footer > a, .sidebar-footer .user-profile { display: flex; align-items: center; gap: 11px; min-height: 44px; }
.sidebar-footer strong { display: block; font-size: 13px; }
.sidebar-footer small { color: #a7afa0; font-size: 11px; }
.sidebar-footer .nav-link small { display: block; margin-top: 2px; }
.user-avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: 0 0 36px; border: 1px solid #434a3b; background: #282f21; border-radius: 50%; color: #d8f5b7; font-size: 12px; font-weight: 700; }
.sidebar-footer .logout { display: inline-flex; margin-top: 8px; padding: 8px 0; color: #c0c9b7; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.workspace { min-width: 0; margin-left: var(--sidebar-width); }
.topbar { position: sticky; top: 0; z-index: 25; min-height: 80px; padding: 17px 38px; display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); background: rgb(245 246 242 / 96%); backdrop-filter: blur(12px); }
.global-search { display: flex; align-items: center; gap: 10px; width: min(480px, 100%); min-width: 0; color: #727a69; }
.global-search input { width: 100%; min-width: 0; padding: 9px 0; border: 0; background: transparent; color: var(--ink); font-size: 13px; }
.global-search input::placeholder { color: #6e7567; }
.global-search input:focus { box-shadow: none; }
.global-search button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--muted); }
.topbar-date { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.topbar > .user-avatar { background: var(--paper); border-color: var(--line); color: var(--green-ink); }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.menu-backdrop { position: fixed; inset: 0; z-index: 35; border: 0; background: rgb(10 16 6 / 48%); cursor: default; }
.main-content { width: 100%; max-width: 1640px; margin: auto; padding: 34px 38px 28px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; margin-bottom: 27px; }
.page-heading > div:first-child { min-width: 0; }
.eyebrow { display: block; margin-bottom: 9px; color: var(--green-ink); font-size: 10px; font-weight: 750; letter-spacing: 1.9px; text-transform: uppercase; }
.lede { max-width: 680px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; flex-shrink: 0; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; max-width: 100%; padding: 11px 17px; border: 1px solid transparent; border-radius: 10px; background: var(--lime); color: var(--ink); font-size: 12px; line-height: 1.4; font-weight: 720; text-align: center; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.btn svg { width: 17px; height: 17px; }
.btn:hover { background: #82ed16; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--lime); border-color: var(--lime); }
.btn-secondary { border-color: #d9dfd2; background: var(--paper); color: var(--text); }
.btn-secondary:hover { border-color: #acba9c; background: #f6f9f2; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--green-ink); }
.btn-ghost:hover { background: #edf3e6; }
.btn-danger { border-color: #e9c5c2; background: #fff; color: var(--red); }
.btn-danger:hover { background: #fff0ef; border-color: #cd9792; }
.btn-small { min-height: 44px; padding: 9px 12px; font-size: 11px; }
.hero-summary { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 184px; margin-bottom: 24px; padding: 28px 31px; overflow: hidden; background: #14210f; border: 1px solid #283f1e; border-radius: var(--radius); }
.hero-copy { position: relative; z-index: 1; max-width: 660px; }
.hero-copy h2 { max-width: 570px; margin: 6px 0 9px; color: #fff; font-size: clamp(21px, 2.1vw, 29px); font-weight: 700; letter-spacing: -.8px; }
.hero-copy p { max-width: 560px; color: #c7d5bc; font-size: 13px; }
.hero-copy .hero-kicker { color: var(--lime); font-size: 10px; font-weight: 750; letter-spacing: 1.8px; text-transform: uppercase; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 19px; }
.hero-actions .btn-primary { border-color: var(--lime); background: var(--lime); color: var(--ink); }
.hero-actions .btn-primary:hover { background: #82ed16; }
.hero-actions .btn-secondary { border-color: #bdcea9; background: transparent; }
.hero-actions .btn-ghost { color: #d1efb7; }
.hero-actions .btn-ghost:hover { background: #26371c; }
.hero-summary :focus-visible { outline-color: #d4f9b1; }
.hero-orbit { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; flex: 0 0 150px; width: 150px; height: 150px; margin-right: 19px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 21px rgb(114 224 0 / 11%), 0 0 0 43px rgb(114 224 0 / 6%); color: #203c10; font-size: 38px; font-weight: 750; letter-spacing: -1.7px; line-height: 1.2; }
.hero-orbit small { display: block; max-width: 105px; color: #2d4e19; font-size: 8px; line-height: 1.6; letter-spacing: 1px; font-weight: 650; text-align: center; }
.hero-orbit svg { width: 43px; height: 43px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 27px; }
.metric-card { position: relative; display: block; min-width: 0; padding: 22px 22px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
a.metric-card:hover { border-color: #a4c482; }
.metric-label { display: block; padding-right: 32px; color: var(--muted); font-size: 12px; font-weight: 550; }
.metric-value { display: block; margin: 13px 0 7px; color: var(--ink); font-size: 36px; line-height: 1; font-weight: 720; letter-spacing: -1.7px; font-variant-numeric: tabular-nums; }
.metric-foot { display: flex; align-items: center; gap: 5px; color: #69725f; font-size: 11px; }
.metric-foot svg { width: 14px; height: 14px; }
.metric-icon { position: absolute; top: 20px; right: 19px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #f1f5eb; color: #5d724b; }
.metric-icon svg { width: 16px; height: 16px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: 22px; margin-bottom: 27px; align-items: start; }
.panel { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.main-content > .panel { margin-bottom: 24px; }
.panel > .pipeline { padding: 0 23px 23px; }
.panel > .activity-list { padding: 0 23px 22px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 23px 23px 18px; }
.panel-heading h2 { margin: 0; }
.panel-heading > a { flex-shrink: 0; color: var(--green-ink); font-size: 11px; font-weight: 650; }
.panel-heading > a:hover { text-decoration: underline; }
.panel-body { padding: 0 23px 22px; }
.panel-footer { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 14px 23px; border-top: 1px solid #edf0e8; background: #fbfcf9; color: var(--muted); font-size: 11px; }
.panel-footer a { color: var(--green-ink); font-weight: 650; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 29px 0 15px; }
.section-heading h2 { margin: 0; }
.section-heading p, .section-heading > a { margin: 0; color: var(--muted); font-size: 12px; }
.pipeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.main-content > .pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 22px; }
.pipeline-stage { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; padding: 14px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fafbf7; }
.pipeline-stage:hover { border-color: #a9bf96; background: #f2f7ea; }
.pipeline-stage strong { font-size: 24px; letter-spacing: -.8px; line-height: 1.15; }
.pipeline-stage span:not(.stage-dot):not(.status) { font-size: 10px; color: var(--muted); }
.stage-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #a3ad95; }
.pipeline-stage .status { font-size: 9px; padding: 4px 6px; }
.status { display: inline-flex; align-items: center; gap: 6px; width: fit-content; max-width: 100%; padding: 4px 9px; border-radius: 6px; background: #f0f2ec; color: #5d6557; font-size: 10px; line-height: 1.5; font-weight: 650; }
.status > .stage-dot { width: 5px; height: 5px; flex: 0 0 5px; background: currentColor; }
.status-pending { background: #eff1eb; color: #59624f; }
.status-contacted { background: #fff3d7; color: #86600c; }
.status-demo { background: #e8edff; color: #455dab; }
.status-client, .status-done { background: #e7f5dc; color: #3c6e23; }
.status-discarded { background: #f8e9e7; color: #9a514a; }
.status-progress { background: #e7f1fa; color: #376a92; }
.badge { display: inline-flex; align-items: center; gap: 5px; width: fit-content; max-width: 100%; padding: 3px 7px; border-radius: 5px; background: #f1f3ed; color: #5c6653; font-size: 10px; line-height: 1.55; font-weight: 550; }
.badge-warning { background: #fff5dc; color: #85600c; }
.badge-danger { background: #fbeceb; color: #a03f39; }
.activity-list { margin: 0; padding: 0; list-style: none; }
.activity-item { display: flex; align-items: flex-start; gap: 12px; padding: 15px 0; border-bottom: 1px solid #edf0e8; }
.activity-item:last-child { padding-bottom: 0; border-bottom: 0; }
.activity-item:first-child { padding-top: 3px; }
.activity-main { flex: 1; min-width: 0; }
.activity-main > a, .activity-main > strong { display: block; color: #283020; font-size: 12px; line-height: 1.55; font-weight: 620; }
.activity-main > a:hover { color: var(--green-ink); text-decoration: underline; }
.activity-main p { margin: 4px 0 0; font-size: 11px; color: var(--muted); }
.activity-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; color: var(--muted); font-size: 10px; }
.activity-meta svg { width: 12px; height: 12px; }
.activity-item > .status, .activity-item > .badge { margin-top: 2px; flex-shrink: 0; }
.task-check { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; margin-top: 2px; border: 1px solid #d9e3cc; border-radius: 8px; background: #f7faf3; color: #638342; }
.task-check svg { width: 15px; height: 15px; }
button.task-check { width: 44px; height: 44px; }
.shortcut-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.shortcut-card { display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-width: 0; min-height: 162px; padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.shortcut-card:hover { background: #fbfdf8; border-color: #aec497; }
.shortcut-card > .shortcut-icon { margin-bottom: 14px; }
.shortcut-card h3 { margin: 0 0 7px; font-size: 13px; line-height: 1.4; }
.shortcut-card p { margin: 0 0 9px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.shortcut-card > .muted { margin-top: auto; }
.shortcut-card .muted svg { width: 13px; height: 13px; }
.shortcut-card strong { display: block; font-size: 12px; }
.shortcut-card span:not(.shortcut-icon) { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.shortcut-card > svg:last-child { margin-left: auto; width: 16px; height: 16px; color: #7e8b72; }
.shortcut-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; background: #f0f5e9; color: #527534; }
.shortcut-icon svg { width: 18px; height: 18px; }
.filter-panel { margin-bottom: 22px; padding: 19px 21px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.filters { display: grid; grid-template-columns: minmax(180px, 1.3fr) repeat(4, minmax(120px, 1fr)); align-items: end; gap: 13px; }
form.filter-panel.filters { grid-template-columns: minmax(0, 1fr) auto; }
form.filter-panel.filters > .filter-actions { grid-column: auto; padding-top: 0; }
.filters > input, .filters > select { min-width: 0; }
.field { min-width: 0; }
.field label, .form-section > label, .login-form label { display: block; margin-bottom: 7px; color: #4f5947; font-size: 11px; font-weight: 680; }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea { width: 100%; min-width: 0; min-height: 44px; padding: 11px 12px; border: 1px solid #dce3d4; border-radius: 9px; background: #fff; color: var(--text); font-size: 13px; line-height: 1.5; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #7a8371; }
input:hover, select:hover, textarea:hover { border-color: #b4c3a5; }
input:focus, select:focus, textarea:focus { border-color: #78aa48; outline: none; box-shadow: 0 0 0 3px rgb(114 224 0 / 14%); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #478519; outline-offset: 2px; }
textarea { min-height: 132px; resize: vertical; }
select { cursor: pointer; padding-right: 26px; }
.global-search input:not([type=hidden]) { min-height: 44px; padding: 9px 0; border: 0; background: transparent; }
.field-help { display: block; margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.filter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; grid-column: 1 / -1; padding-top: 2px; }
.filter-actions > span { color: var(--muted); font-size: 11px; }
.filter-actions .btn-small { padding: 7px 12px; }
.result-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 17px; color: var(--muted); font-size: 12px; }
.result-toolbar strong { color: var(--text); }
.view-switch { display: flex; gap: 3px; padding: 3px; background: #e9ede2; border-radius: 10px; }
.view-switch a, .view-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 9px 13px; border: 0; border-radius: 7px; background: transparent; color: #5d6953; font-size: 11px; font-weight: 600; }
.view-switch svg { width: 15px; height: 15px; }
.view-switch .is-active { background: #fff; color: #233318; box-shadow: 0 1px 4px rgb(33 47 18 / 7%); }
.prospect-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); align-items: start; gap: 17px; }
.prospect-card { min-width: 0; padding: 21px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); box-shadow: var(--shadow); }
.prospect-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.prospect-header h2, .prospect-header h3 { margin: 0 0 6px; font-size: 15px; line-height: 1.4; }
.prospect-header a:hover, .board-card h3 a:hover { color: var(--green-ink); text-decoration: underline; }
.prospect-header > div { min-width: 0; }
.prospect-header .avatar { margin-top: 2px; }
.prospect-card > h3 { margin: 11px 0 8px; font-size: 15px; line-height: 1.4; }
.prospect-card > h3 a:hover { color: var(--green-ink); text-decoration: underline; }
.prospect-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 7px 0; color: var(--muted); font-size: 11px; }
.prospect-meta svg { width: 13px; height: 13px; }
.contact-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.contact-list a, .contact-list > span { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; max-width: 100%; padding: 7px 9px; border: 1px solid #e7ecdf; border-radius: 7px; background: #fcfdfb; color: #475a38; font-size: 11px; overflow-wrap: anywhere; }
.contact-list a:hover { border-color: #b4c79c; background: #f1f7e8; }
.contact-list svg { width: 13px; height: 13px; }
.next-step { margin: 15px 0; padding: 12px 13px; border-left: 2px solid #a4cd7c; border-radius: 0 8px 8px 0; background: #f5f8ef; color: #4c5a40; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.next-step strong, .next-step > span:first-child { display: block; margin-bottom: 3px; color: #67795a; font-size: 9px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.next-step p { margin: 0; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: 15px; padding-top: 13px; border-top: 1px solid #edf0e8; color: var(--muted); font-size: 11px; }
.card-footer > a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; color: var(--green-ink); font-size: 11px; font-weight: 650; }
.card-footer > a:hover { text-decoration: underline; }
.card-footer > span { display: flex; align-items: center; gap: 7px; }
.avatar { display: inline-flex; justify-content: center; align-items: center; width: 27px; height: 27px; flex: 0 0 27px; border-radius: 50%; background: #edf3e5; color: #526c3a; font-size: 10px; font-weight: 700; }
.quick-edit { margin-top: 8px; }
.quick-edit summary { min-height: 44px; padding: 12px 0 7px; color: var(--muted); font-size: 11px; list-style-position: inside; }
.quick-edit summary:hover { color: var(--green-ink); }
.quick-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 9px; }
.quick-form .btn { grid-column: 1 / -1; }
.quick-form label { font-size: 10px; }
.quick-form select { padding-left: 8px; font-size: 11px; }
.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { padding: 15px 17px; border-bottom: 1px solid var(--line); background: #f9fbf5; color: #69745d; font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 16px 17px; border-bottom: 1px solid #edf0e8; font-size: 11px; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fcfdf9; }
.data-table td > a:first-child { font-size: 12px; font-weight: 650; }
.data-table td > a:hover { color: var(--green-ink); text-decoration: underline; }
.data-table td small, .data-table td .muted { display: block; margin-top: 4px; font-size: 10px; }
.data-table td:first-child { min-width: 170px; }
.data-table td .contact-list { margin-top: 0; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(235px, 1fr); gap: 13px; max-width: 100%; padding-bottom: 16px; overflow-x: auto; align-items: start; overscroll-behavior-x: contain; scrollbar-color: #b4c5a2 #edf1e7; scrollbar-width: thin; }
.board-column { min-width: 0; padding: 13px; background: #eaf0e2; border: 1px solid #e0e7d8; border-radius: 13px; }
.board-heading { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin: 0 0 14px; }
.board-heading h2 { margin: 0; font-size: 11px; }
.board-heading > span:last-child { display: inline-grid; place-items: center; min-width: 25px; height: 25px; padding: 0 5px; border-radius: 7px; background: #fff; color: #61734e; font-size: 10px; font-weight: 700; }
.board-card { margin-bottom: 11px; padding: 15px; border: 1px solid #dce5d0; border-radius: 10px; background: #fff; }
.board-card:last-child { margin-bottom: 0; }
.board-card h3 { margin: 0 0 7px; font-size: 12px; line-height: 1.5; }
.board-card .next-step { padding: 8px 9px; margin: 11px 0; font-size: 10px; }
.board-card .card-footer { margin-top: 8px; padding-top: 5px; }
.board-card > a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green-ink); font-size: 11px; font-weight: 650; }
.empty-state { padding: 50px 24px; border: 1px dashed #cfdcc2; border-radius: 15px; background: #fbfcf8; text-align: center; }
.empty-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 14px; background: #edf4e3; color: #6a8751; }
.empty-icon svg { width: 23px; height: 23px; }
.empty-state h2, .empty-state h3 { margin-bottom: 8px; font-size: 17px; }
.empty-state p { max-width: 440px; margin: 0 auto 18px; color: var(--muted); font-size: 12px; }
.empty-state .btn { margin-top: 3px; }
.panel .empty-state { padding: 27px 15px; }
.board-column .empty-state { padding: 22px 10px; font-size: 11px; }
.task-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; gap: 17px; }
.task-card { min-width: 0; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
.task-card h2, .task-card h3 { margin: 14px 0 10px; font-size: 15px; line-height: 1.5; }
.task-card h2 a:hover, .task-card h3 a:hover { color: var(--green-ink); text-decoration: underline; }
.task-card.is-done { background: #fbfcf8; border-color: #dfe8d6; }
.task-card.is-done h2, .task-card.is-done h3 { color: #59674d; }
.task-notes { margin: 13px 0 17px; color: var(--muted); font-size: 11px; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.task-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; padding-top: 15px; border-top: 1px solid #edf0e8; }
.task-actions > form { display: flex; flex-wrap: wrap; flex: 1; gap: 6px; }
.task-actions .btn { flex: 1; padding: 8px 8px; font-size: 10px; }
.task-actions .is-active { border-color: #b4cf9b; background: #e8f5dd; color: #386621; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 275px; align-items: start; gap: 24px; max-width: 1120px; }
.form-main { min-width: 0; }
.form-main.panel > .panel-body { padding: 25px; }
.form-main.panel .form-section { padding: 0 0 25px; margin: 0 0 25px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.form-main.panel .form-section h2 { margin-bottom: 20px; }
.form-main.panel .form-actions { margin-top: 22px; }
.form-section { padding: 25px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.form-section h2 { margin-bottom: 7px; font-size: 16px; }
.form-section > p { margin-bottom: 21px; color: var(--muted); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 17px; }
.field.full { grid-column: 1 / -1; }
.form-section > .field + .field { margin-top: 20px; }
.form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 3px 0 14px; }
.form-actions .btn-primary { min-width: 160px; }
.form-aside { display: grid; gap: 17px; }
.info-note { padding: 20px; border: 1px solid #d9e6ca; border-radius: 14px; background: #edf5e3; color: #506441; font-size: 12px; line-height: 1.7; }
.info-note h2, .info-note h3 { margin: 10px 0; color: #3d582c; font-size: 14px; }
.info-note > svg { color: #628745; }
.info-note ul { padding-left: 18px; margin: 12px 0 0; }
.info-note li + li { margin-top: 8px; }
.danger-zone { padding: 18px 20px; border: 1px solid #e7d8d2; border-radius: 13px; background: #fffdfb; color: #775d54; font-size: 11px; }
.danger-zone h2, .danger-zone h3 { color: #8a5145; font-size: 13px; }
.danger-zone .btn { margin-top: 11px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; color: var(--muted); font-size: 11px; }
.breadcrumb a { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; }
.breadcrumb a:hover { color: var(--green-ink); text-decoration: underline; }
.breadcrumb svg { width: 13px; height: 13px; }
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 230px; align-items: start; gap: 23px; }
.doc-content { min-width: 0; padding: 34px 37px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: #3a4233; font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.doc-content > :first-child { margin-top: 0; }
.doc-content h1 { margin-top: 24px; font-size: 28px; line-height: 1.3; letter-spacing: -.7px; }
.doc-content h2 { margin: 33px 0 17px; padding-bottom: 11px; border-bottom: 1px solid #e5ebdc; font-size: 21px; line-height: 1.4; }
.doc-content h3 { margin: 26px 0 12px; font-size: 17px; line-height: 1.5; }
.doc-content h4 { margin: 22px 0 10px; }
.doc-content a { color: #326d11; text-decoration: underline; text-decoration-color: #b5cea2; text-underline-offset: 3px; }
.doc-content a:hover { text-decoration-color: #326d11; }
.doc-content ul, .doc-content ol { padding-left: 23px; }
.doc-content li + li { margin-top: 6px; }
.doc-content blockquote { margin: 22px 0; padding: 15px 20px; border-left: 3px solid var(--lime); background: #f2f8e9; color: #466035; border-radius: 0 9px 9px 0; }
.doc-content blockquote p { margin-bottom: 8px; }
.doc-content blockquote p:last-child { margin-bottom: 0; }
.doc-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 12px; line-height: 1.6; }
.doc-content th, .doc-content td { padding: 10px 13px; border: 1px solid #dfe6d5; text-align: left; vertical-align: top; }
.doc-content th { background: #f2f6ec; color: #455839; font-weight: 650; }
.doc-content code { padding: 2px 5px; border-radius: 4px; background: #f0f4e9; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: #406029; font-size: .88em; }
.doc-content pre { max-width: 100%; padding: 19px; overflow-x: auto; background: #1c2416; color: #e4f2d5; border-radius: 9px; }
.doc-content pre code { padding: 0; background: none; color: inherit; }
.doc-content hr { margin: 30px 0; border: 0; border-top: 1px solid var(--line); }
.doc-content img { border-radius: 10px; }
.doc-index { position: sticky; top: 105px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcf8; }
.doc-index h2, .doc-index h3 { margin-bottom: 15px; font-size: 12px; }
.doc-index a { display: block; min-height: 44px; padding: 11px 0; border-bottom: 1px solid #e6ebdf; color: #586a4a; font-size: 11px; line-height: 1.5; }
.doc-index a:last-child { border-bottom: 0; }
.doc-index a:hover { color: #285b0d; text-decoration: underline; }
.doc-index p { color: var(--muted); font-size: 11px; }
.doc-index ul { margin: 0 0 22px; padding: 0; list-style: none; }
.doc-index ul ul { margin: 0; padding-left: 12px; }
.doc-index li { margin: 0; }
.doc-index .btn { display: inline-flex; width: 100%; border: 1px solid #d9dfd2; }
.document-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; margin-bottom: 24px; }
.document-card { display: block; min-width: 0; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.document-card:hover { border-color: #b0c897; background: #fcfef9; }
.document-card > svg { width: 22px; height: 22px; margin-bottom: 18px; color: #5c7b43; }
.document-card > .shortcut-icon { margin-bottom: 18px; }
.document-card > div > .eyebrow { margin-top: 0; margin-bottom: 7px; }
.document-card h2, .document-card h3 { margin: 12px 0 9px; font-size: 15px; line-height: 1.4; }
.document-card p { color: var(--muted); font-size: 12px; }
.document-card .muted, .document-card > span { font-size: 11px; }
.document-card .card-footer { margin-top: 20px; }
.search-results { display: grid; gap: 12px; }
.search-result { display: block; padding: 23px 25px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.search-result:hover { border-color: #adc995; }
.result-type { display: inline-block; margin-bottom: 7px; color: var(--green-ink); font-size: 10px; font-weight: 650; }
.search-result h2, .search-result h3 { margin-bottom: 9px; font-size: 16px; }
.search-result p { color: var(--muted); font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
mark { padding: 1px 2px; border-radius: 3px; background: #ddf4c3; color: #284a13; }
.flash { display: flex; align-items: center; gap: 10px; margin: 0 0 21px; padding: 14px 17px; border: 1px solid #c8e2b2; border-radius: 11px; background: #edf8e2; color: #386424; font-size: 12px; }
.flash.error { border-color: #edc8c3; background: #fff0ee; color: #a13b30; }
.flash.error:has(ul) { display: block; }
.flash.error ul { margin: 8px 0 0; padding-left: 20px; }
.footer-note { margin: 28px 0 0; padding-top: 16px; border-top: 1px solid #e3e8da; color: #6f7966; font-size: 10px; }
.login-page { display: grid; place-items: center; min-height: 100vh; padding: 40px; background: #f0f3e9; }
.login-layout { display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 1000px); min-height: 620px; overflow: hidden; border: 1px solid #dce4d1; border-radius: 25px; background: #fff; box-shadow: 0 20px 80px rgb(27 44 12 / 6%); }
.login-brand { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 45px; padding: 48px 43px; overflow: hidden; background: #101810; color: #e5ecde; }
.login-brand::after { content: ""; position: absolute; right: -125px; bottom: -130px; width: 340px; height: 340px; border: 1px solid #335d1c; border-radius: 50%; box-shadow: 0 0 0 39px rgb(114 224 0 / 3%), 0 0 0 78px rgb(114 224 0 / 3%); pointer-events: none; }
.login-brand > * { position: relative; z-index: 1; }
.login-brand img { width: 230px; max-height: 64px; object-fit: contain; object-position: left; }
.login-brand h1, .login-brand h2 { color: #fff; font-size: clamp(30px, 3vw, 42px); line-height: 1.18; letter-spacing: -1.5px; }
.login-brand p { max-width: 290px; color: #b4c4a6; font-size: 14px; line-height: 1.8; }
.login-brand .eyebrow { color: var(--lime); }
.login-brand .login-note { color: #9bac8f; font-size: 11px; }
.login-panel { display: flex; flex-direction: column; justify-content: center; padding: 48px 46px; }
.login-panel h1, .login-panel h2 { margin: 0 0 10px; font-size: 28px; letter-spacing: -.8px; }
.login-panel > p { color: var(--muted); font-size: 13px; }
.login-form { display: grid; gap: 20px; margin-top: 25px; }
.login-form .btn { width: 100%; margin-top: 3px; }
.login-note { margin-top: 25px; color: var(--muted); font-size: 11px; line-height: 1.7; }

@media (min-width: 1700px) {
  .main-content { padding-top: 42px; }
  .metric-grid { gap: 20px; }
}
@media (max-width: 1280px) {
  .topbar { padding-left: 27px; padding-right: 27px; }
  .main-content { padding-left: 27px; padding-right: 27px; }
  .page-heading { align-items: flex-start; }
  .metric-card { padding: 20px 17px 17px; }
  .metric-icon { right: 13px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 17px; }
  .shortcut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline { gap: 6px; }
  .pipeline-stage { padding: 12px 8px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-index { position: static; }
  .form-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 17px; }
}
@media (max-width: 1020px) {
  .sidebar { width: 270px; transform: translateX(-100%); visibility: hidden; transition: transform .22s ease, visibility .22s; }
  .sidebar.is-open { transform: translateX(0); visibility: visible; }
  .workspace { margin-left: 0; }
  .menu-toggle { display: inline-flex; }
  .menu-open { overflow: hidden; }
  .topbar { min-height: 75px; padding-top: 14px; padding-bottom: 14px; gap: 16px; }
  .main-content { padding-top: 30px; }
  .global-search { width: min(520px, 100%); }
  .hero-orbit { flex-basis: 130px; width: 130px; height: 130px; margin-right: 13px; font-size: 34px; }
  .hero-copy { max-width: 580px; }
}
@media (max-width: 760px) {
  h1 { font-size: 29px; letter-spacing: -.9px; }
  .topbar { padding: 11px 19px; gap: 12px; }
  .topbar-date { display: none; }
  .topbar > .user-avatar { display: none; }
  .main-content { padding: 25px 20px; }
  .page-heading { flex-direction: column; gap: 17px; margin-bottom: 22px; }
  .page-actions { width: 100%; }
  .hero-summary { min-height: 0; padding: 24px; }
  .hero-orbit { display: none; }
  .hero-copy h2 { font-size: 25px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-bottom: 22px; }
  .metric-label { min-height: 36px; padding-right: 18px; font-size: 11px; }
  .metric-value { margin-top: 6px; font-size: 33px; }
  .metric-icon { top: 18px; width: 25px; height: 25px; }
  .metric-icon svg { width: 14px; height: 14px; }
  .metric-foot { font-size: 10px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 22px; }
  .panel-heading { padding: 20px 20px 16px; }
  .panel-body { padding: 0 20px 20px; }
  .panel-footer { padding-left: 20px; padding-right: 20px; }
  .pipeline { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pipeline-stage { padding: 12px 8px; }
  .pipeline-stage strong { font-size: 23px; }
  .pipeline-stage span:not(.stage-dot):not(.status) { font-size: 9px; }
  .filter-panel { padding: 17px; }
  .filters { gap: 13px; }
  .filters > .field:first-of-type { grid-column: 1 / -1; }
  form.filter-panel.filters { grid-template-columns: minmax(0, 1fr); }
  .result-toolbar { align-items: flex-start; }
  .data-table th, .data-table td { padding: 14px; }
  .data-table { min-width: 640px; }
  .form-layout { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .form-section { padding: 22px; }
  .form-main.panel > .panel-body { padding: 22px; }
  .form-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { gap: 18px 14px; }
  .doc-content { padding: 26px; font-size: 13px; }
  .doc-content h1 { font-size: 25px; }
  .doc-content h2 { font-size: 20px; }
  .login-page { padding: 24px; }
  .login-layout { grid-template-columns: 1fr; min-height: auto; max-width: 480px; }
  .login-brand { padding: 30px; gap: 30px; }
  .login-brand h1, .login-brand h2 { font-size: 29px; }
  .login-brand img { width: 190px; max-height: 49px; }
  .login-brand p:not(.eyebrow):not(.login-note) { display: none; }
  .login-brand .login-note { display: none; }
  .login-panel { padding: 32px 30px; }
}
@media (max-width: 480px) {
  .topbar { padding: 10px 15px; gap: 10px; min-height: 66px; }
  .global-search { gap: 7px; }
  .global-search > svg { display: none; }
  .global-search input:not([type=hidden]) { font-size: 12px; }
  .global-search button { min-width: 44px; padding: 8px; }
  .main-content { padding: 23px 16px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.7px; }
  .lede { font-size: 12px; }
  .page-actions .btn { flex: 1; padding: 10px 13px; font-size: 11px; }
  .hero-summary { margin-bottom: 18px; padding: 23px 21px; }
  .hero-copy h2 { font-size: 23px; }
  .hero-copy p { font-size: 12px; }
  .hero-actions { gap: 7px; }
  .hero-actions .btn { padding: 10px 12px; font-size: 11px; }
  .metric-card { padding: 17px 15px 15px; }
  .metric-icon { right: 12px; top: 15px; width: 22px; height: 22px; }
  .metric-label { padding-right: 19px; }
  .metric-foot { font-size: 9px; }
  .metric-value { font-size: 31px; }
  .panel-heading { gap: 8px; }
  .panel-heading h2 { font-size: 16px; }
  .panel-heading > a { font-size: 10px; }
  .panel-heading, .panel-body { padding-left: 17px; padding-right: 17px; }
  .panel > .pipeline, .panel > .activity-list { padding-left: 17px; padding-right: 17px; }
  .pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pipeline-stage { padding: 12px 10px; }
  .pipeline-stage span:not(.stage-dot):not(.status) { font-size: 10px; }
  .activity-item { gap: 9px; }
  .activity-main > a, .activity-main > strong { font-size: 11px; }
  .activity-item > .badge { font-size: 9px; }
  .shortcut-grid { gap: 9px; }
  .shortcut-card { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 135px; padding: 16px; }
  .shortcut-card > svg:last-child { display: none; }
  .shortcut-card strong { font-size: 11px; }
  .shortcut-card span:not(.shortcut-icon) { font-size: 10px; }
  .filter-panel { padding: 15px; }
  .filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .filters > .field:first-of-type { grid-column: 1 / -1; }
  .filter-actions { gap: 7px; }
  .filter-actions .btn { font-size: 10px; padding-left: 10px; padding-right: 10px; }
  .result-toolbar { gap: 13px; }
  .view-switch { width: 100%; }
  .view-switch a, .view-switch button { flex: 1; padding-left: 9px; padding-right: 9px; }
  .prospect-grid, .task-grid, .document-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .prospect-card, .task-card { padding: 20px; }
  .board { grid-auto-columns: 85%; }
  .form-section { padding: 20px 17px; }
  .form-main.panel > .panel-body { padding: 20px 17px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-aside { grid-template-columns: minmax(0, 1fr); }
  .form-actions .btn { flex: 1; }
  .form-actions .btn-primary { min-width: 0; }
  .doc-content { padding: 24px 19px; font-size: 13px; line-height: 1.8; }
  .doc-content h1 { font-size: 23px; }
  .doc-content h2 { font-size: 18px; }
  .doc-content blockquote { padding: 13px 15px; }
  .doc-content th, .doc-content td { padding: 8px; }
  .search-result { padding: 20px; }
  .empty-state { padding: 36px 20px; }
  .login-page { padding: 16px; }
  .login-layout { border-radius: 19px; }
  .login-brand { padding: 27px; gap: 24px; }
  .login-brand h1, .login-brand h2 { font-size: 28px; }
  .login-panel { padding: 29px 26px; }
}
/* Escala de lectura para el trabajo diario, también en pantallas pequeñas. */
.nav-link { font-size: 14px; }
.sidebar-footer strong, .sidebar-footer small, .sidebar-footer .logout { font-size: 12px; }
.topbar-date { font-size: 12px; }
.lede { font-size: 14px; }
.btn, .page-actions .btn, .hero-actions .btn { font-size: 14px; }
.btn-small, .filter-actions .btn, .task-actions .btn { font-size: 13px; }
.hero-copy p { font-size: 14px; }
.hero-copy .hero-kicker, .eyebrow { font-size: 10px; }
.metric-label { min-height: 38px; font-size: 12px; }
.metric-foot { font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.metric-card { min-width: 0; }
.metric-value { margin-top: 9px; }
.panel-heading > a, .panel-footer, .section-heading p, .section-heading > a { font-size: 12px; }
.pipeline-stage .status, .status, .badge, .activity-item > .badge { font-size: 12px; }
.pipeline-stage .status { gap: 5px; padding: 4px 6px; }
.status { min-width: 0; }
.pipeline-stage span:not(.stage-dot):not(.status) { font-size: 12px; }
.activity-main > a, .activity-main > strong, .activity-main p { font-size: 14px; line-height: 1.55; }
.activity-meta { font-size: 12px; line-height: 1.65; }
.activity-meta svg { width: 14px; height: 14px; }
.shortcut-card h3, .shortcut-card strong { font-size: 14px; }
.shortcut-card p, .shortcut-card span:not(.shortcut-icon) { font-size: 12px; }
.field label, .form-section > label, .login-form label, .quick-form label { font-size: 13px; }
.field-help, .filter-actions > span { font-size: 12px; }
.result-toolbar, .view-switch a, .view-switch button { font-size: 13px; }
.prospect-meta { font-size: 12px; line-height: 1.6; }
.contact-list a, .contact-list > span { font-size: 14px; }
.contact-list svg { width: 15px; height: 15px; }
.next-step, .board-card .next-step { font-size: 14px; line-height: 1.6; }
.next-step strong, .next-step > span:first-child { font-size: 10px; }
.card-footer, .card-footer > span { font-size: 12px; }
.card-footer > a, .quick-edit summary, .quick-form select { font-size: 13px; }
.data-table th { font-size: 12px; }
.data-table td, .data-table td > a:first-child { font-size: 14px; }
.data-table td small, .data-table td .muted { font-size: 12px; }
.board-heading h2, .board-heading > span:last-child { font-size: 12px; }
.board-card h3 { font-size: 14px; }
.board-card > a { font-size: 13px; }
.empty-state p, .board-column .empty-state { font-size: 14px; }
.task-notes { font-size: 14px; }
.task-actions { align-items: center; }
.task-actions > form { flex-basis: 100%; }
.task-actions > a { flex: 0 0 auto; }
.form-section > p, .info-note, .danger-zone { font-size: 13px; }
.breadcrumb { font-size: 12px; line-height: 1.6; }
.doc-content { font-size: 14px; }
.doc-index a, .doc-index p { font-size: 12px; }
.document-card .muted, .document-card > span { font-size: 12px; }
.document-card .eyebrow { font-size: 10px; }
.result-type, .search-result > .muted { font-size: 12px; }
.search-result p { font-size: 14px; }
.flash { font-size: 14px; }
.footer-note, .login-note, .login-brand .login-note { font-size: 12px; }

@media (max-width: 760px) {
  input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea,
  .global-search input:not([type=hidden]), .quick-form select { font-size: 16px; }
  .metric-label { min-height: 38px; }
  .metric-foot { min-height: 35px; }
  .panel-heading { align-items: flex-start; }
  .panel-heading > a { max-width: 42%; white-space: normal; }
  .activity-item > .status, .activity-item > .badge { flex-shrink: 1; }
}
@media (max-width: 480px) {
  .panel > .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline-stage { padding-left: 9px; padding-right: 9px; }
  .metric-card { padding: 17px 14px 15px; }
  .metric-icon { right: 10px; }
  .metric-foot svg { flex-shrink: 0; }
  .global-search input:not([type=hidden]) { text-overflow: ellipsis; }
  .task-actions > form { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .sidebar, .topbar, .skip-link, .menu-backdrop, .page-actions, .doc-index, .footer-note, .flash, .form-actions, .filter-panel, .view-switch, .quick-edit, .task-actions { display: none !important; }
  .workspace { margin: 0; }
  .main-content { max-width: none; padding: 0; }
  .page-heading { margin-bottom: 20px; }
  .doc-layout, .dashboard-grid { display: block; }
  .doc-content { padding: 0; border: 0; font-size: 11pt; }
  .doc-content table { display: table; font-size: 9pt; }
  .doc-content pre { white-space: pre-wrap; background: #f6f6f6; color: #000; }
  .doc-content a { color: #000; }
  h1, h2, h3 { break-after: avoid; }
  .panel, .prospect-card, .task-card, blockquote, tr { break-inside: avoid; box-shadow: none; }
  .panel { margin-bottom: 15px; }
  .table-wrap { overflow: visible; border: 0; }
  .data-table { min-width: 0; }
}

/* Índice disponible antes de los documentos largos en pantallas estrechas. */
.mobile-doc-index { display: none; }
@media (max-width: 1280px) {
  .mobile-doc-index { display: block; margin-bottom: 18px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
  .mobile-doc-index summary { min-height: 44px; padding: 10px 0; font-weight: 650; font-size: 14px; color: var(--green-ink); }
  .mobile-doc-index ul { padding-left: 20px; }
  .mobile-doc-index a { display: inline-block; padding: 8px 0; color: var(--green-ink); }
  .doc-index .desktop-toc { display: none; }
}
@media print { .mobile-doc-index { display: none; } }
