/* Simulador "Contactores y arranque estrella-triángulo" (publicación 136). Prefijo cyd- */
.cyd { background: var(--card, #fff); color: var(--navy, #0b1f33); border: 1px solid var(--line, #cfdae6); border-radius: 8px; padding: 16px; margin: 26px 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cyd * { box-sizing: border-box; }
.cyd-head { display: flex; flex-direction: column; gap: 2px; }
.cyd-head strong { font-size: 1.1rem; color: var(--navy, #0b1f33); }
.cyd-head span { color: var(--muted, #4a5d70); font-size: .92rem; line-height: 1.5; }
.cyd-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .cyd-tabs { grid-template-columns: minmax(0, 1fr); } }
.cyd button { font: inherit; font-weight: 600; font-size: .9rem; padding: 9px 12px; border-radius: 4px; border: 1px solid var(--navy, #0b1f33); background: var(--navy, #0b1f33); color: #fff; cursor: pointer; min-height: 42px; line-height: 1.25; }
.cyd button.ghost { background: transparent; color: var(--navy, #0b1f33); }
.cyd button:disabled { opacity: .45; cursor: not-allowed; }
.cyd button[hidden], .cyd [hidden] { display: none !important; }
.cyd button:focus-visible, .cyd input:focus-visible, .cyd select:focus-visible, .cyd summary:focus-visible { outline: 3px solid var(--accent, #e0731a); outline-offset: 2px; }
.cyd-tabs button { background: #eef2f6; color: #0b1f33; border-color: #cfdae6; font-size: .86rem; }
.cyd-tabs button[aria-pressed="true"] { background: var(--navy, #0b1f33); color: #fff; border-color: var(--navy, #0b1f33); }
.cyd-now { border: 1px solid #cfdae6; border-left: 5px solid #e0731a; border-radius: 4px; background: #fff7ef; color: #0b1f33; padding: 10px 14px; }
.cyd-ct { font-size: .88rem; font-weight: 700; color: var(--navy, #0b1f33); margin-bottom: 6px; }
.cyd-now .cyd-ct { color: #7a3d08; text-transform: uppercase; letter-spacing: .04em; font-size: .78rem; }
.cyd-now-main { margin: 0; font-size: 1rem; line-height: 1.55; font-weight: 600; color: #0b1f33; min-height: 3.1em; }
.cyd-now-last { margin: 6px 0 0; font-size: .84rem; color: #4a5d70; min-height: 1.2em; }
.cyd-demo { display: flex; flex-direction: column; gap: 8px; }
.cyd-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cyd-demo-b, .cyd-next { background: #1a7f4b !important; border-color: #1a7f4b !important; color: #fff !important; }
.cyd-demostep { margin: 0; padding: 10px 14px; border-radius: 4px; background: #eaf3fc; border-left: 5px solid #2a6fb0; color: #0b1f33; font-size: .95rem; line-height: 1.55; }
.cyd-hl { outline: 4px solid #e0731a; outline-offset: 3px; border-radius: 4px; animation: cyd-pulse 1.1s ease-in-out infinite; }
svg .cyd-hl { outline: none; filter: drop-shadow(0 0 5px #e0731a) drop-shadow(0 0 2px #e0731a); }
@keyframes cyd-pulse { 50% { outline-color: #f6c28b; } }
.cyd-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .cyd-grid { grid-template-columns: minmax(0, 1fr); } }
.cyd-left, .cyd-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cyd-ctl { display: flex; flex-direction: column; gap: 12px; }
.cyd-grp { border: 1px solid var(--line, #cfdae6); border-radius: 6px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cyd-gt { font-size: .86rem; font-weight: 700; color: var(--navy, #0b1f33); }
.cyd-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cyd-seg button { background: #eef2f6; color: #0b1f33; border-color: #cfdae6; text-align: left; font-size: .84rem; }
.cyd-seg button small { display: block; font-weight: 500; font-size: .74rem; color: #4a5d70; }
.cyd-seg button[aria-pressed="true"] { background: #fff3e4; border: 2px solid #e0731a; color: #0b1f33; }
.cyd-seg button[aria-pressed="true"] small { color: #7a3d08; }
.cyd-big { flex: 1 1 auto; background: #1a7f4b !important; border-color: #1a7f4b !important; }
.cyd-big[aria-pressed="true"] { background: #b42318 !important; border-color: #b42318 !important; }
.cyd-stop { background: #b42318 !important; border-color: #b42318 !important; }
.cyd-row { display: flex; flex-direction: column; gap: 3px; }
.cyd-row label { font-size: .86rem; font-weight: 600; color: var(--navy, #0b1f33); }
.cyd-in { display: flex; align-items: center; gap: 10px; }
.cyd-in input[type=range] { flex: 1 1 auto; min-width: 0; height: 30px; accent-color: var(--accent, #e0731a); }
.cyd-in output { flex: 0 0 auto; min-width: 5.6em; text-align: right; font-variant-numeric: tabular-nums; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; font-weight: 600; color: var(--navy, #0b1f33); }
.cyd select { font: inherit; font-size: .9rem; padding: 7px 8px; border: 1px solid var(--line, #cfdae6); border-radius: 4px; background: #fff; color: #0b1f33; width: 100%; max-width: 100%; min-height: 40px; }
.cyd-chk { display: flex; align-items: flex-start; gap: 8px; font-size: .86rem; font-weight: 600; color: var(--navy, #0b1f33); padding: 4px 0; line-height: 1.4; }
.cyd-chk input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent, #e0731a); flex: 0 0 auto; }
.cyd-hint { margin: 4px 0 0; font-size: .82rem; line-height: 1.5; color: var(--muted, #4a5d70); }
.cyd-adv { border: 1px solid var(--line, #cfdae6); border-radius: 6px; padding: 8px 12px; }
.cyd-adv summary { cursor: pointer; font-weight: 700; font-size: .88rem; color: var(--navy, #0b1f33); min-height: 32px; display: flex; align-items: center; }
.cyd-adv > div { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.cyd-card { border: 1px solid var(--line-soft, #e1e8ef); border-radius: 6px; background: #fff; padding: 10px; min-width: 0; color: #0b1f33; }
.cyd-card .cyd-ct { color: #0b1f33; }
.cyd svg { display: block; width: 100%; height: auto; max-width: 100%; font-family: inherit; }
.cyd-stage { max-width: 520px; margin: 0 auto; background: #fff; border-radius: 4px; }
.cyd-tl { background: #fff; border-radius: 4px; }
.cyd-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 8px; }
.cyd-tile { position: relative; border: 2px solid #cfdae6; border-radius: 6px; padding: 8px 8px 8px 26px; background: #f3f6f9; color: #0b1f33; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cyd-tile i { position: absolute; left: 8px; top: 12px; width: 11px; height: 11px; border-radius: 50%; background: #9fb0c2; border: 1px solid #0b1f33; }
.cyd-tile b { font-size: .95rem; }
.cyd-tile span { font-size: .74rem; color: #4a5d70; line-height: 1.25; }
.cyd-tile em { font-style: normal; font-size: .76rem; font-weight: 700; color: #4a5d70; margin-top: 2px; }
.cyd-tile.on { border-color: #1a7f4b; background: #effaf2; }
.cyd-tile.on i { background: #3ddc84; }
.cyd-tile.on em { color: #14532d; }
.cyd-read { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 8px; border: 1px solid var(--line, #cfdae6); border-left: 4px solid var(--accent, #e0731a); border-radius: 4px; padding: 10px 12px; background: #fff7ef; color: #0b1f33; }
.cyd-read div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cyd-read span { font-size: .74rem; color: #4a5d70; }
.cyd-read b { font-size: .92rem; color: #0b1f33; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cyd-steps ol { margin: 0; padding-left: 0; list-style: none; counter-reset: cyds; display: flex; flex-direction: column; gap: 8px; }
.cyd-steps li { counter-increment: cyds; position: relative; padding: 9px 12px 9px 40px; border-radius: 4px; border-left: 4px solid #cfdae6; background: #f3f6f9; color: #0b1f33; font-size: .9rem; line-height: 1.55; }
.cyd-steps li::before { content: counter(cyds); position: absolute; left: 10px; top: 9px; width: 22px; height: 22px; border-radius: 50%; background: #0b1f33; color: #fff; font-size: .78rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cyd-steps li.on { border-color: #e0731a; background: #fff3e4; font-weight: 600; }
.cyd-note { margin: 0; font-size: .8rem; color: var(--muted, #4a5d70); line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .cyd *, .cyd-hl { animation: none !important; transition: none !important; } }
.cyd-tw { overflow-x: auto; }
.cyd table { border-collapse: collapse; width: 100%; font-size: .84rem; color: #0b1f33; }
.cyd th, .cyd td { border: 1px solid #cfdae6; padding: 6px 8px; text-align: left; vertical-align: top; }
.cyd th { background: #eef2f6; }
.cyd tr.sel td { background: #fff3e4; font-weight: 700; }
.cyd td.ok { color: #14532d; font-weight: 700; } .cyd td.bad { color: #b42318; font-weight: 700; }
.cyd-verdict { margin: 0; padding: 10px 14px; border-radius: 4px; font-size: .92rem; line-height: 1.5; font-weight: 600; color: #0b1f33; border-left: 5px solid #1a7f4b; background: #effaf2; }
.cyd-verdict.bad { border-left-color: #b42318; background: #fdecea; }
.cyd-verdict.warn { border-left-color: #b7791f; background: #fff7e0; }
.cyd-leg { display: flex; flex-wrap: wrap; gap: 12px; font-size: .8rem; font-weight: 600; color: #0b1f33; margin: 4px 0 0; }
.cyd-leg i { display: inline-block; width: 22px; height: 4px; vertical-align: middle; margin-right: 5px; border-radius: 2px; }
.cyd-time { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cyd-time input[type=range] { flex: 1 1 140px; min-width: 0; height: 30px; accent-color: #e0731a; }
.cyd-time output { min-width: 4.6em; text-align: right; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .84rem; font-weight: 700; color: #0b1f33; }
.cyd-wind { max-width: 360px; margin: 0 auto; }
