/* Banco de bombas hidráulicas (prefijo hb). Paleta de la serie de hidráulica: aceite ámbar + azul retorno + azul marino. Reutilizable. */
.hb { --hb-oil: #d98a0b; --hb-oil-soft: #fff4de; --hb-blue: #1f5fa8; --hb-ink: var(--navy, #0b1f33); --hb-muted: var(--muted, #4a5d70); --hb-line: var(--line, #cfdae6);
  background: var(--card, #ffffff); color: var(--hb-ink); border: 1px solid var(--hb-line); border-radius: 8px; padding: 18px; margin: 26px 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; font-size: 16px; line-height: 1.45; }
.hb *, .hb *::before, .hb *::after { box-sizing: border-box; }
.hb-head { display: flex; flex-direction: column; gap: 2px; }
.hb-head strong { font-size: 1.15rem; }
.hb-head span { color: var(--hb-muted); font-size: .92rem; line-height: 1.5; }
.hb button { font: inherit; cursor: pointer; }
.hb-tabs, .hb-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.hb-tab, .hb-pre { font-size: .86rem; font-weight: 600; padding: 7px 12px; min-height: 40px; border-radius: 4px; border: 1px solid var(--hb-line); background: #f3f6f9; color: #0b1f33; }
.hb-tab { border-color: #0b1f33; background: #fff; }
.hb-tab[aria-pressed="true"] { background: #0b1f33; color: #fff; }
.hb-pre[aria-pressed="true"] { background: var(--hb-oil-soft); border-color: var(--hb-oil); }
.hb-desc { margin: 0; padding: 10px 12px; border-left: 4px solid var(--hb-oil); background: var(--hb-oil-soft); border-radius: 4px; font-size: .92rem; line-height: 1.55; color: #0b1f33; min-height: 3.4em; }
.hb-body { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.hb-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hb-card { border: 1px solid var(--hb-line); border-radius: 6px; padding: 10px 12px 12px; background: #fff; color: #0b1f33; min-width: 0; }
.hb-card h4 { margin: 0 0 6px; font-size: .95rem; color: #0b1f33; }
.hb-svg { display: block; width: 100%; height: auto; max-width: 100%; background: #f8fafc; border: 1px solid #e1e8ef; border-radius: 4px; }
.hb-svg.chart { background: #fff; }


.hb-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.hb-b { font-weight: 600; font-size: .9rem; padding: 9px 14px; min-height: 40px; border-radius: 4px; border: 1px solid #0b1f33; background: #0b1f33; color: #fff; }
.hb-b.ghost { background: #fff; color: #0b1f33; }
.hb-badge { margin: 0; padding: 8px 12px; border-left: 4px solid var(--hb-blue); background: #eef4fb; border-radius: 4px; font-size: .88rem; line-height: 1.5; color: #0b1f33; }
.hb button:focus-visible, .hb select:focus-visible, .hb input:focus-visible { outline: 3px solid var(--hb-oil); outline-offset: 2px; }
.hb fieldset { border: 1px solid var(--hb-line); border-radius: 6px; margin: 0; padding: 6px 10px 8px; min-width: 0; }
.hb fieldset[hidden], .hb-presets[hidden] { display: none; }
.hb legend { font-size: .85rem; font-weight: 700; color: #0b1f33; padding: 0 6px; }
.hb-row { display: flex; flex-direction: column; gap: 2px; padding: 5px 0; min-width: 0; }
.hb-row label { font-size: .86rem; font-weight: 600; color: #0b1f33; }
.hb-in { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hb-in input[type=range] { flex: 1 1 auto; min-width: 0; height: 30px; accent-color: var(--hb-oil); }
.hb-in output { flex: 0 0 auto; min-width: 6.5em; text-align: right; font-variant-numeric: tabular-nums; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; font-weight: 600; color: #0b1f33; }
.hb select { font: inherit; font-size: .9rem; padding: 7px 8px; border: 1px solid var(--hb-line); border-radius: 4px; background: #fff; color: #0b1f33; max-width: 100%; min-width: 0; }
.hb-read { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.hb-cell { border: 1px solid var(--hb-line); border-radius: 6px; padding: 7px 9px; background: #f1f5f9; color: #0b1f33; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hb-cell span { font-size: .74rem; color: #4a5d70; }
.hb-cell b { font-size: 1.05rem; font-family: ui-monospace, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.hb-cell i { font-style: normal; font-size: .72rem; color: #4a5d70; overflow-wrap: anywhere; }
.hb-cell.warn { background: #fff6e0; border-color: #e3c36a; }
.hb-cell.bad { background: #fdecec; border-color: #e1a1a1; }
.hb-note { margin: 0; font-size: .78rem; color: #4a5d70; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .hb * { transition: none !important; animation: none !important; } }
.hb-body { gap: 16px; }
@media (min-width: 880px) { .hb-body { flex-direction: row; } .hb-body > .hb-col { flex: 1 1 0; } }
.hb-svg { max-width: 100%; }
.hb-t { font: 600 13px Helvetica, Arial, sans-serif; fill: #0b1f33; }
.hb-t.s { font-size: 13px; font-weight: 500; fill: #4a5d70; }

.hb-sel { display: flex; flex-direction: column; gap: 2px; padding: 5px 0; }
.hb-sel label { font-size: .86rem; font-weight: 600; }
.hb-t.b { font-weight: 700; }
