/* Selector de reductor de velocidad */
.redsel { background: var(--card, #fff); border: 1px solid var(--line, #cfdae6); border-radius: 8px; padding: 18px; margin: 26px 0; display: flex; flex-direction: column; gap: 16px; color: var(--navy, #0b1f33); }
.redsel * { box-sizing: border-box; }
.rs-head { display: flex; flex-direction: column; gap: 2px; }
.rs-head strong { font-size: 1.1rem; color: var(--navy, #0b1f33); }
.rs-head span { color: var(--muted, #4a5d70); font-size: .92rem; line-height: 1.5; }
.rs-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.rs-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rs-f label { font-size: .84rem; font-weight: 600; color: var(--navy, #0b1f33); }
.rs-f input, .rs-f select { font: inherit; font-size: .95rem; padding: 9px 10px; border: 1px solid var(--line, #cfdae6); border-radius: 4px; background: #fff; color: var(--navy, #0b1f33); width: 100%; min-width: 0; }
.rs-f small { font-size: .76rem; color: var(--muted, #4a5d70); }
.redsel input:focus-visible, .redsel select:focus-visible, .redsel button:focus-visible { outline: 3px solid var(--accent, #e0731a); outline-offset: 2px; }
.rs-out { display: flex; flex-direction: column; gap: 12px; }
.rs-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.rs-kpi { border: 1px solid var(--line, #cfdae6); border-radius: 6px; padding: 10px 12px; background: #f7fafc; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rs-kl { font-size: .76rem; color: var(--muted, #4a5d70); line-height: 1.3; }
.rs-kv { font-size: 1.35rem; font-variant-numeric: tabular-nums; color: var(--navy, #0b1f33); overflow-wrap: anywhere; }
.rs-kv small { font-size: .78rem; font-weight: 500; color: var(--muted, #4a5d70); }
.rs-kpi em { font-style: normal; font-size: .76rem; color: var(--muted, #4a5d70); line-height: 1.35; }
.rs-rec { border-left: 4px solid var(--accent, #e0731a); background: #fff7ef; padding: 10px 14px; border-radius: 4px; }
.rs-rec h4 { margin: 0 0 4px; font-size: 1rem; color: var(--navy, #0b1f33); }
.rs-rec p { margin: 0; font-size: .92rem; line-height: 1.55; }
.rs-msg { margin: 0; padding: 8px 10px; border-radius: 4px; font-size: .88rem; line-height: 1.45; }
.rs-msg.warn { background: #fff6e0; color: #6b4b00; }
.rs-msg.err { background: #fdecec; color: #721c24; font-weight: 600; }
.rs-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.rs-card { position: relative; border: 1px solid var(--line, #cfdae6); border-radius: 6px; padding: 10px 12px; background: #fff; min-width: 0; }
.rs-card.best { border-color: var(--accent, #e0731a); box-shadow: 0 0 0 2px rgba(224, 115, 26, .25); }
.rs-badge { position: absolute; top: -9px; right: 8px; background: var(--accent, #e0731a); color: #fff; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.rs-card h5 { margin: 0; font-size: 1rem; }
.rs-ax { margin: 0 0 6px; font-size: .78rem; color: var(--muted, #4a5d70); }
.rs-card dl { margin: 0; display: flex; flex-direction: column; gap: 3px; }
.rs-card dl div { display: flex; justify-content: space-between; gap: 8px; font-size: .82rem; border-top: 1px dashed var(--line-soft, #e1e8ef); padding-top: 3px; }
.rs-card dt { color: var(--muted, #4a5d70); flex: none; }
.rs-card dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.rs-card .no dd { color: #b91c1c; }
.rs-card .ok dd { color: #15803d; }
.rs-dg { border: 1px solid var(--line, #cfdae6); border-radius: 6px; padding: 10px; background: #fbfdff; display: flex; flex-direction: column; gap: 8px; }
.rs-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rs-bl { font-size: .84rem; font-weight: 600; margin-right: 4px; }
.rs-tab { font: inherit; font-size: .84rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line, #cfdae6); background: #fff; color: var(--navy, #0b1f33); cursor: pointer; min-height: 36px; }
.rs-tab.on { background: var(--navy, #0b1f33); color: #fff; border-color: var(--navy, #0b1f33); }
.rs-play { margin-left: auto; border-color: var(--accent, #e0731a); }
.rs-stage { width: 100%; overflow: hidden; }
.rs-stage svg { display: block; width: 100%; height: auto; max-height: 340px; }
.rs-cap { margin: 0; font-size: .86rem; line-height: 1.5; color: var(--navy, #0b1f33); }
.rs-note { margin: 0; font-size: .8rem; color: var(--muted, #4a5d70); line-height: 1.5; }
/* esquemas */
.rs-gear path { stroke: #0b1f33; stroke-width: 1.5; stroke-linejoin: round; }
.rs-gp path { fill: #fde3cc; stroke: #e0731a; }
.rs-gw path { fill: #cfe3f5; fill-opacity: .88; stroke: #2a6fb0; }
.rs-thread2 { fill: none; stroke: #a84f08; stroke-width: 1.8; }
.rs-thread2.w { stroke: #1d4f80; }
.rs-hub { fill: #fff; stroke: #0b1f33; stroke-width: 1.5; }
.rs-mark { stroke: #0b1f33; stroke-width: 2.5; stroke-linecap: round; }
.rs-shaft { stroke: #6b7f93; stroke-width: 9; stroke-linecap: round; }
.rs-t { font: 700 12px system-ui, sans-serif; fill: #0b1f33; }
.rs-worm { fill: #fde3cc; stroke: #e0731a; stroke-width: 2; }
.rs-thread { fill: none; stroke: #a84f08; stroke-width: 3; }
.rs-ring { fill: #eef2f6; stroke: #6b7f93; stroke-width: 3; }
.rs-ring2 { fill: #fff; stroke: #cfdae6; stroke-width: 2; stroke-dasharray: 4 3; }
.rs-arm { stroke: #6b7f93; stroke-width: 6; fill: none; stroke-linecap: round; }
.rs-cone.p { fill: #fde3cc; stroke: #e0731a; stroke-width: 2; }
.rs-cone.w { fill: #cfe3f5; stroke: #2a6fb0; stroke-width: 2; }
@media (max-width: 520px) { .redsel { padding: 12px; } .rs-form { grid-template-columns: minmax(0, 1fr); } .rs-play { margin-left: 0; } }
@media (prefers-color-scheme: dark) { }
