/* Laboratorio de filtración hidráulica (prefijo hf). Paleta de la serie: aceite ámbar + azul + azul marino. */
.hf { --hf-oil: #d98a0b; --hf-oil-soft: #fff4de; --hf-blue: #1f5fa8; --hf-ink: var(--navy, #0b1f33); --hf-muted: var(--muted, #4a5d70); --hf-line: var(--line, #cfdae6);
  background: var(--card, #ffffff); color: #0b1f33; border: 1px solid var(--hf-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; }
.hf *, .hf *::before, .hf *::after { box-sizing: border-box; }
.hf-head { display: flex; flex-direction: column; gap: 2px; }
.hf-head strong { font-size: 1.15rem; }
.hf-head span { color: var(--hf-muted); font-size: .92rem; line-height: 1.5; }
.hf button { font: inherit; cursor: pointer; }
.hf-tabs, .hf-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.hf-tab, .hf-pre { font-size: .88rem; font-weight: 600; padding: 7px 12px; min-height: 40px; border-radius: 4px; border: 1px solid var(--hf-line); background: #f3f6f9; color: #0b1f33; }
.hf-tab[aria-pressed="true"] { background: #0b1f33; border-color: #0b1f33; color: #fff; }
.hf-pre[aria-pressed="true"] { background: var(--hf-oil-soft); border-color: var(--hf-oil); }
.hf button:focus-visible, .hf select:focus-visible, .hf input:focus-visible { outline: 3px solid var(--hf-oil); outline-offset: 2px; }
.hf-panel[hidden] { display: none; }
.hf-panel { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hf-svg { display: block; width: 100%; height: auto; max-width: 100%; background: #f8fafc; border: 1px solid #e1e8ef; border-radius: 4px; }
.hf-svg text { font-family: Helvetica, Arial, sans-serif; fill: #0b1f33; font-size: 17px; }
.hf-svg text.s { font-size: 15px; fill: #4a5d70; }
.hf-svg text.b { font-weight: 700; }
.hf-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hf fieldset { border: 1px solid var(--hf-line); border-radius: 6px; margin: 0; padding: 6px 10px 8px; min-width: 0; }
.hf legend { font-size: .85rem; font-weight: 700; padding: 0 6px; }
.hf-row { display: flex; flex-direction: column; gap: 2px; padding: 5px 0; min-width: 0; }
.hf-row label { font-size: .86rem; font-weight: 600; }
.hf-in { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hf-in input[type=range] { flex: 1 1 auto; min-width: 0; height: 30px; accent-color: var(--hf-oil); }
.hf-in output { flex: 0 0 auto; min-width: 5.5em; text-align: right; font-variant-numeric: tabular-nums; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; font-weight: 600; }
.hf select, .hf input[type=number] { font: inherit; font-size: .9rem; padding: 7px 8px; border: 1px solid var(--hf-line); border-radius: 4px; background: #fff; color: #0b1f33; max-width: 100%; min-width: 0; width: 100%; }
.hf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hf-card { border: 1px solid var(--hf-line); border-left: 4px solid var(--hf-blue); border-radius: 4px; padding: 8px 10px; background: #fff; min-width: 0; }
.hf-card small { display: block; font-size: .74rem; color: var(--hf-muted); line-height: 1.3; }
.hf-card b { display: block; font-size: 1.1rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.hf-card.ok { border-left-color: #1a7f4b; }
.hf-card.warn { border-left-color: var(--hf-oil); }
.hf-card.bad { border-left-color: #b42318; }
.hf-msg { margin: 0; padding: 10px 12px; border-left: 4px solid var(--hf-oil); background: var(--hf-oil-soft); border-radius: 4px; font-size: .92rem; line-height: 1.55; min-height: 4.6em; }
.hf-msg.bad { border-left-color: #b42318; background: #fdecec; }
.hf-msg.ok { border-left-color: #1a7f4b; background: #e8f6ee; }
.hf-note { font-size: .8rem; color: var(--hf-muted); margin: 0; line-height: 1.5; }
.hf-btn { font-size: .86rem; font-weight: 600; padding: 7px 12px; min-height: 40px; border-radius: 4px; border: 1px solid #0b1f33; background: #0b1f33; color: #fff; align-self: flex-start; }
.hf-btn[aria-pressed="true"] { background: var(--hf-oil); border-color: var(--hf-oil); color: #0b1f33; }
.hf-tblw { overflow-x: auto; max-width: 100%; }
.hf-tblw table { border-collapse: collapse; font-size: .85rem; width: 100%; min-width: 280px; }
.hf-tblw th, .hf-tblw td { border: 1px solid var(--hf-line); padding: 4px 8px; text-align: left; }
@media (min-width: 760px) { .hf-body { flex-direction: row; align-items: flex-start; } .hf-col { flex: 1 1 0; } .hf-col.res { flex: 1.1 1 0; }  }
.hf-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
@media (prefers-color-scheme: dark) { .hf { color-scheme: light; } }
@media (prefers-reduced-motion: reduce) { .hf * { transition: none !important; animation: none !important; } }
.hf input[type=checkbox]{width:20px;height:20px;vertical-align:middle;margin-right:6px;accent-color:var(--hf-oil)} .hf-row label{font-size:.86rem}
