/* Herramientas de finanzas de advise.ec (29-nov-2026): punto de equilibrio e indicadores financieros.
   Reusa las clases hzn- de las herramientas de negocio (campos con USD, bloques, filas de resultado) y agrega las hzf-.
   Complementa css/herramientas.css (usa sus variables --hz-*). Móvil primero. */
@import url("herramientas-negocio.css?v=1");

/* Escenarios del punto de equilibrio: tabla de 4 columnas que se desliza dentro de su caja si no cabe (nunca la página) */
.hzf-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; background: #fff; border-radius: 12px; }
.hzf-scroll:focus-visible { outline: 2px solid var(--hz-acc); outline-offset: 2px; }
.hzf-esc { width: 100%; min-width: 320px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.hzf-esc th, .hzf-esc td { padding: 9px 10px; border-bottom: 1px solid var(--hz-hair); text-align: right; vertical-align: top; }
.hzf-esc thead th { font-size: 12.5px; font-weight: 700; color: var(--hz-ink2); line-height: 1.3; }
.hzf-esc th[scope="row"], .hzf-esc thead th:first-child { text-align: left; font-weight: 600; color: var(--hz-ink); }
.hzf-esc tbody tr:last-child th, .hzf-esc tbody tr:last-child td { border-bottom: 0; }
.hzf-esc tr.hzf-base th, .hzf-esc tr.hzf-base td { color: var(--hz-navy); font-weight: 700; background: rgba(14,128,196,.06); }
.hzf-det { display: block; font-size: 12px; font-weight: 500; color: var(--hz-ink2); white-space: nowrap; }

/* Indicadores: una tarjeta por indicador (1 columna en el teléfono, 3 en escritorio) */
.hzf-ind { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 720px) { .hzf-ind { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hzf-item { background: #fff; border-radius: 12px; padding: 12px 14px; min-width: 0; }
.hzf-item p { margin: 0; }
.hzf-nom { font-weight: 700; font-size: 15px; color: var(--hz-ink); }
.hzf-val { font-weight: 800; font-size: 24px; color: var(--hz-navy); font-variant-numeric: tabular-nums; letter-spacing: -.01em; margin: 2px 0 4px !important; overflow-wrap: anywhere; }
.hzf-for { font-size: 13px; color: var(--hz-acc-ink); font-weight: 600; }
.hzf-lec { font-size: 14.5px; color: var(--hz-ink); margin-top: 6px !important; }
.hzf-item-sin .hzf-val { color: var(--hz-ink2); font-size: 18px; }
.hzf-item-sin .hzf-lec { color: var(--hz-ink2); }
.hzf .hzn-sub:first-of-type { margin-top: 6px; }

/* Teléfono: cada escenario es una tarjeta (nombre arriba, tres valores con su etiqueta); sin deslizar la tabla */
@media (max-width: 559px) {
  .hzf-scroll { overflow: visible; background: transparent; }
  .hzf-esc { min-width: 0; }
  .hzf-esc, .hzf-esc tbody, .hzf-esc tr, .hzf-esc th, .hzf-esc td { display: block; }
  .hzf-esc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hzf-esc tbody { display: grid; gap: 8px; }
  .hzf-esc tr { background: #fff; border-radius: 12px; padding: 10px 14px; }
  .hzf-esc tbody tr th, .hzf-esc tbody tr td, .hzf-esc tbody tr:last-child th, .hzf-esc tbody tr:last-child td { border: 0; padding: 0; background: transparent; }
  .hzf-esc th[scope="row"] { margin-bottom: 4px; }
  .hzf-esc td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
  .hzf-esc td { white-space: nowrap; }
  .hzf-esc td::before { content: attr(data-l); flex: 1 1 auto; white-space: normal; font-weight: 500; color: var(--hz-ink2); text-align: left; }
  .hzf-esc tr.hzf-base { box-shadow: inset 0 0 0 2px var(--hz-acc); }
  .hzf-esc tr.hzf-base th, .hzf-esc tr.hzf-base td { background: transparent; }
}
