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


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

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

@media (max-width: 520px) { .hv-t { font-size: 20px; } .hv-t.s { font-size: 18px; } .hv-svg.chart .hv-t { font-size: 15px; } .hv-svg.chart .hv-t.s { font-size: 13.5px; } }
.hv [hidden] { display: none !important; }
.hv-chk { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: .86rem; font-weight: 600; color: #0b1f33; min-height: 40px; }
.hv-chk input { width: 20px; height: 20px; accent-color: var(--hv-oil); }
.hv-badge.bad { border-left-color: #b42318; background: #fdecec; }
.hv-controls { display: flex; flex-direction: column; gap: 10px; }
.hv-svg text { font-family: Helvetica, Arial, sans-serif; }
@media (max-width: 879px) { .hv-body > .hv-col:nth-child(2) { order: -1; } }
