.legend { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
.legend li { font-size: .8125rem; column-gap: 5px; }
.legend li span:nth-child(2) { overflow-wrap: anywhere; }
.analytics-section { margin-top: 32px; scroll-margin-top: 16px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 14px; }
.section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; letter-spacing: -.04em; }
.section-heading p { color: var(--muted); margin-top: 6px; }
.analytic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.analytic-grid .wide { grid-column: 1 / -1; }
.analytic-card { display: flex; flex-direction: column; }
.analytic-card h3, .credit-catalog h3 { margin: 0; font-size: 1.0625rem; line-height: 1.25; letter-spacing: -.023em; }
.analytic-plot { height: 250px; position: relative; margin-top: 15px; }
.analytic-plot.has-center-label { height: 210px; }
.ranking-card .analytic-plot { height: 268px; }
.analytic-card .series-details { margin-top: auto; padding-top: 9px; }
.analytic-card .series-details table { max-width: none; margin: 0; }
.analytic-card .series-details .table-wrap { margin-top: 7px; }
.analytic-content { margin-top: 16px; }
.analytic-center { position: absolute; inset: 0; pointer-events: none; display: grid; place-content: center; text-align: center; }
.analytic-center strong { font-size: 1.5rem; line-height: 1.2; letter-spacing: -.04em; }
.analytic-center span { color: var(--muted); font-size: .8125rem; }
#risk-gauge + .analytic-center { padding-top: 60px; }
.chart-caption { color: var(--muted); font-size: .875rem; margin-top: 12px; }
.funnel-stages, .spark-list, .risk-quadrant ul { list-style: none; margin: 0; padding: 0; }
.funnel-stages { display: grid; gap: 12px; }
.funnel-stages li > div:first-child, .bullet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 20px; }
.funnel-stages li { font-size: .875rem; }
.funnel-stages strong, .bullet-head strong { font-variant-numeric: tabular-nums; }
.funnel-track, .bullet-track { background: #edf3ee; border-radius: 6px; height: 10px; margin-top: 5px; }
.funnel-track span, .bullet-track span {
  display: block; background: #2e846e; height: 100%; width: var(--amount);
  border-radius: inherit; transform-origin: left;
}
.funnel-stages li:nth-child(2) .funnel-track span { background: #4e9882; }
.funnel-stages li:nth-child(3) .funnel-track span { background: #74aa92; }
.funnel-stages li:nth-child(4) .funnel-track span { background: #8bb79d; }
.bullet-head { flex-wrap: wrap; font-size: .875rem; color: var(--muted); }
.bullet-head strong { font-size: 1.125rem; color: var(--green); }
.bullet-track { position: relative; height: 15px; margin-top: 14px; }
.bullet-track i { position: absolute; top: -4px; bottom: -4px; left: var(--target); width: 2px; background: #193a31; }
.credit-flow { max-width: 560px; margin-inline: auto; }
.credit-flow span { display: grid; gap: 3px; text-align: center; padding: 8px 5px; border: 1px solid var(--line); border-radius: 8px; background: #eef5ef; font-size: .8125rem; }
.credit-flow strong { color: var(--green); font-size: 1rem; }
.flow-parent { margin-inline: auto; max-width: 200px; position: relative; padding-bottom: 10px; }
.flow-parent::after { content: ""; position: absolute; width: 1px; height: 10px; background: #a5b9ac; left: 50%; bottom: 0; }
.flow-branches { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.flow-path { position: relative; padding-top: 10px; }
.flow-path::before { content: ""; position: absolute; height: 10px; width: 50%; border-top: 1px solid #a5b9ac; border-left: 1px solid #a5b9ac; left: 50%; top: 0; }
.flow-path.muted::before { border-left: 0; border-right: 1px solid #a5b9ac; left: -50%; width: 100%; }
.flow-path.muted span { background: #f5f6f3; }
.flow-endings { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 9px; }
.spark-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.spark-list li { min-width: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 4px; padding: 5px 0; border-bottom: 1px solid #edf2ed; font-size: .8125rem; }
.spark-list canvas { grid-row: 2; grid-column: 1 / -1; height: 26px; }
.spark-list strong { white-space: nowrap; }
.heat-wrap { margin: 0; }
.heat-wrap th, .heat-wrap td { padding: 4px; text-align: center; }
.heat-wrap th:first-child { padding-inline: 10px; text-align: left; }
.heat-cell { display: inline-block; min-width: 58px; padding: 4px 6px; border-radius: 5px; white-space: nowrap; font-size: .8125rem; font-weight: 650; }
.heat-low { background: #e2f1e5; color: #215844; }
.heat-mid { background: #f5f1cf; color: #644e18; }
.heat-high { background: #f7e0cb; color: #813c1d; }
.heat-very-high { background: #f4d8d7; color: #8a323a; }
.heat-key { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.risk-matrix-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.risk-quadrant { padding: 12px; border: 1px solid #dce9e0; border-radius: 8px; background: #f1f7f1; }
.risk-quadrant.higher { background: #fcf1eb; border-color: #f0dbd1; }
.risk-quadrant h4 { font-size: .875rem; margin: 0 0 7px; }
.risk-quadrant p, .risk-quadrant li { font-size: .8125rem; color: var(--muted); }
.risk-quadrant li { display: flex; justify-content: space-between; gap: 5px; max-width: 290px; }
.credit-catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.credit-catalog .panel { display: flex; flex-direction: column; align-items: start; }
.credit-catalog p { color: var(--muted); font-size: .875rem; margin: 9px 0 12px; }
.credit-catalog a { margin-top: auto; color: var(--green); text-underline-offset: 3px; font-size: .8125rem; }
.dashboard-footer { margin-top: 28px; color: var(--muted); font-size: .875rem; }
@media (prefers-reduced-motion: no-preference) {
  .is-visible .funnel-track span, .is-visible .bullet-track span { animation: reveal-bar .55s cubic-bezier(.2,.65,.3,1) both; }
  .is-visible .funnel-stages li:nth-child(2) span { animation-delay: .045s; }
  .is-visible .funnel-stages li:nth-child(3) span { animation-delay: .09s; }
  .is-visible .funnel-stages li:nth-child(4) span { animation-delay: .135s; }
  @keyframes reveal-bar { from { transform: scaleX(0); } }
}
@media (min-width: 861px) and (max-width: 1150px) {
  .legend { grid-template-columns: 1fr; }
}
@media (max-width: 970px) {
  .masthead-inner { grid-template-columns: 1fr auto 1fr; row-gap: 0; padding-top: 12px; }
  .brand { grid-column: 2; grid-row: 1; }
  .demo { grid-column: 3; grid-row: 1; }
  nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; flex-wrap: wrap; padding: 11px 0 12px; }
}
@media (max-width: 860px) {
  .credit-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legend { max-width: none; }
}
@media (max-width: 700px) {
  .analytic-grid, .credit-catalog { grid-template-columns: 1fr; }
  .analytic-plot { height: 220px; }
  nav { column-gap: 10px; row-gap: 5px; }
  nav a { font-size: .8125rem; }
}
@media (max-width: 380px) {
  .legend { grid-template-columns: 1fr; }
  .spark-list { grid-template-columns: 1fr; }
}

.masthead { position: sticky; top: 0; z-index: 5; }
#resumen, #productos, .analytics-section { scroll-margin-top: 84px; }
.credit-choice { padding: 0; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; }
.credit-choice:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 970px) {
  #resumen, #productos, .analytics-section { scroll-margin-top: 114px; }
}
