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


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

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

@media (max-width: 520px) { .hc-t { font-size: 20px; } .hc-t.s { font-size: 18px; } .hc-svg.chart .hc-t { font-size: 15px; } .hc-svg.chart .hc-t.s { font-size: 13.5px; } }
