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