/* Simulador «Procedimiento LOTO paso a paso» (prefijo lt / lotosim). */
.lotosim { --lt-navy: var(--navy, #0b1f33); --lt-line: var(--line, #cfdae6); --lt-muted: var(--muted, #4a5d70); --lt-acc: var(--accent, #e0731a);
  background: var(--card, #fff); color: #0b1f33; border: 1px solid var(--lt-line); border-radius: 8px; padding: 18px; margin: 26px 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lotosim *, .lotosim *::before, .lotosim *::after { box-sizing: border-box; }
.lt-head { display: flex; flex-direction: column; gap: 2px; }
.lt-head strong { font-size: 1.15rem; }
.lt-head span, .lt-desc { color: #4a5d70; font-size: .92rem; line-height: 1.5; margin: 0; }
.lt-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.lt-fld { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lt-fld label, .lt-lab { font-size: .82rem; font-weight: 700; color: #0b1f33; }
.lotosim select { font: inherit; font-size: .92rem; min-height: 40px; padding: 6px 8px; border: 1px solid var(--lt-line); border-radius: 4px; background: #fff; color: #0b1f33; max-width: 100%; }
.lt-seg { display: flex; flex-wrap: wrap; }
.lt-seg button { font: inherit; font-size: .86rem; font-weight: 600; min-height: 40px; padding: 6px 12px; border: 1px solid var(--lt-line); background: #f3f6f9; color: #0b1f33; cursor: pointer; }
.lt-seg button:first-child { border-radius: 4px 0 0 4px; }
.lt-seg button:last-child { border-radius: 0 4px 4px 0; border-left: 0; }
.lt-seg button[aria-pressed="true"] { background: #0b1f33; border-color: #0b1f33; color: #fff; }
.lt-chk { display: flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 600; min-height: 40px; cursor: pointer; }
.lt-chk input { width: 18px; height: 18px; }
.lotosim button:focus-visible, .lotosim select:focus-visible, .lotosim input:focus-visible, .lotosim summary:focus-visible, .lt-report h3:focus-visible { outline: 3px solid var(--lt-acc); outline-offset: 2px; }
.lt-steps { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; counter-reset: ltstep; }
.lt-steps li { font-size: .8rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--lt-line); background: #f3f6f9; color: #4a5d70; }
.lt-steps li.done { background: #e7f6ec; border-color: #7bc596; color: #14532d; }
.lt-steps li.cur { background: #0b1f33; border-color: #0b1f33; color: #fff; }
.lt-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 14px; align-items: start; }
@media (max-width: 900px) { .lt-grid { grid-template-columns: minmax(0, 1fr); } }
.lt-left, .lt-right { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lt-svgbox { min-width: 0; }
.lt-svg { display: block; width: 100%; height: auto; max-width: 100%; background: #f8fafc; border: 1px solid #e1e8ef; border-radius: 6px; }
.lt-svg text { font-family: Helvetica, Arial, sans-serif; }
.lt-t { font-size: 15px; font-weight: 700; fill: #0b1f33; }
.lt-s { font-size: 13px; font-weight: 600; fill: #3a4d60; }
.lt-w { fill: #fff !important; }
.lt-ro { font-size: 14px; font-weight: 700; fill: #8a1c1c; }
.lt-floor { fill: #e4eaf1; }
.lt-pipe { stroke: #5b6e82; stroke-width: 7; stroke-linejoin: round; stroke-linecap: butt; fill: none; }
.lt-wire { stroke: #8a5a00; stroke-width: 3; stroke-dasharray: 8 4; fill: none; }
.lt-shaft { stroke: #6b7a8a; stroke-width: 4; }
.lt-leg { stroke: #6b7a8a; stroke-width: 8; }
.lt-fin { stroke: #8da0b4; stroke-width: 2; }
.lt-cab { fill: #cfd8e2; stroke: #0b1f33; stroke-width: 2; }
.lt-swb { fill: #fff; stroke: #0b1f33; stroke-width: 1.5; }
.lt-lev { stroke: #0b1f33; stroke-width: 5; stroke-linecap: round; }
.lt-knob { fill: #d62828; stroke: #0b1f33; stroke-width: 1.5; }
.lt-knoboff { fill: #8d99a6; }
.lt-sw[data-iso="1"] .lt-on, .lt-sw[data-iso="0"] .lt-off { display: none; }
.lt-mot { fill: #4b6a8a; stroke: #0b1f33; stroke-width: 2; }
.lt-pump { fill: #3d6fa8; stroke: #0b1f33; stroke-width: 2; }
.lt-acc { fill: #e8eef6; stroke: #0b1f33; stroke-width: 2.5; }
.lt-gas { fill: #cfe3f7; stroke: #6b8db3; stroke-width: 1.5; }
.lt-tank { fill: #d7dee6; stroke: #0b1f33; stroke-width: 2; }
.lt-cyl { fill: #e8eef6; stroke: #0b1f33; stroke-width: 2.5; }
.lt-bed { fill: #8d99a6; stroke: #0b1f33; stroke-width: 2; }
.lt-rod { fill: #aab6c3; stroke: #0b1f33; stroke-width: 1.5; }
.lt-head { fill: #4b5563; stroke: #0b1f33; stroke-width: 2; }
.lt-chain { stroke: #0b1f33; stroke-width: 2; }
.lt-grip { fill: #d7dee6; stroke: #0b1f33; stroke-width: 2; }
.lt-spring { stroke: #6d28d9; stroke-width: 3; }
.lt-hot { fill: #f6b48a; stroke: #b4390d; stroke-width: 2.5; }
.lt-v .lt-vb { fill: #bfe3c8; stroke: #0b1f33; stroke-width: 2; }
.lt-v .lt-vs { stroke: #0b1f33; stroke-width: 3; }
.lt-v[data-iso="1"] .lt-vb, .lt-v[data-open="0"] .lt-vb { fill: #0b1f33; }
.lt-blk[data-iso="0"] { display: none; }
.lt-spr[data-iso="0"] .lt-blk { display: none; }
[data-drop] { transition: transform .9s cubic-bezier(.5, 0, 1, 1); }
.lt-fw { fill: #dbe4ee; stroke: #0b1f33; stroke-width: 2.5; }
.lt-spoke { stroke: #0b1f33; stroke-width: 3; }
.lt-hub { fill: #0b1f33; }
.lt-mark { fill: #d62828; }
.lt-bd circle { stroke: #fff; stroke-width: 2; fill: #8d99a6; }
.lt-bd text { font-size: 13px; font-weight: 700; fill: #fff; font-family: Helvetica, Arial, sans-serif; }
.lt-bd-live circle { fill: #c62828; }
.lt-bd-iso circle { fill: #f2b705; }
.lt-bd-iso text { fill: #1b1b1b; }
.lt-bd-zero circle { fill: #1b7f3b; }
.lt-lksh { fill: none; stroke: #b3121f; stroke-width: 2.5; }
.lt-lkb { fill: #d62828; stroke: #7a0b14; stroke-width: 1; }
.lt-tagb { fill: #fff; stroke: #d62828; stroke-width: 2; }
.lt-tagt { font-size: 10px; font-weight: 800; fill: #b3121f; }
.lt-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.lt-pill { display: inline-flex; padding: 4px 10px; border: 1px solid var(--lt-line); border-radius: 999px; font-size: .82rem; font-weight: 600; background: #f3f6f9; color: #0b1f33; font-variant-numeric: tabular-nums; }
.lt-status { display: flex; flex-direction: column; gap: 6px; }
.lt-srow { border: 1px solid var(--lt-line); border-left: 5px solid #8d99a6; border-radius: 4px; padding: 6px 10px; background: #fff; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lt-s-live { border-left-color: #c62828; background: #fff6f5; }
.lt-s-iso { border-left-color: #f2b705; background: #fffaf0; }
.lt-s-zero { border-left-color: #1b7f3b; background: #f2faf4; }
.lt-sh { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .86rem; font-weight: 700; }
.lt-sd { font-size: .8rem; color: #3a4d60; line-height: 1.4; }
.lt-sv { font-size: .8rem; font-weight: 700; color: #8a1c1c; font-variant-numeric: tabular-nums; }
.lt-chip { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 700; color: #fff; line-height: 1.5; }
.lt-note { margin: 0 0 6px; font-size: .84rem; color: #4a5d70; line-height: 1.45; }
.lt-card { border: 1px solid var(--lt-line); border-radius: 6px; padding: 10px 12px; background: #fff; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lt-card h4 { margin: 0; font-size: .95rem; color: #0b1f33; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lt-e-live { border-left: 5px solid #c62828; }
.lt-e-iso { border-left: 5px solid #f2b705; }
.lt-e-zero { border-left: 5px solid #1b7f3b; }
.lt-dev { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; border-top: 1px dashed #e1e8ef; }
.lt-devn { font-size: .82rem; font-weight: 600; color: #0b1f33; }
.lt-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lt-rl { font-size: .84rem; font-weight: 600; }
.lt-btn { font: inherit; font-size: .86rem; font-weight: 600; min-height: 40px; padding: 7px 12px; border-radius: 4px; border: 1px solid #0b1f33; background: #fff; color: #0b1f33; cursor: pointer; text-align: left; max-width: 100%; }
.lt-btn:hover:not(:disabled) { background: #eef3f8; }
.lt-btn:disabled { opacity: .55; cursor: not-allowed; }
.lt-btn[aria-pressed="true"] { background: #e7f6ec; border-color: #1b7f3b; color: #14532d; }
.lt-btn.lt-main { background: #0b1f33; color: #fff; }
.lt-btn.lt-main:hover:not(:disabled) { background: #1c3b59; }
.lt-btn.lt-main[aria-pressed="true"] { background: #14532d; border-color: #14532d; }
.lt-btn.lt-sm { font-size: .8rem; padding: 5px 9px; }
.lt-btn.lt-ghost { background: transparent; }
.lt-btn.lt-lock { border-color: #b3121f; color: #7a0b14; }
.lt-btn.lt-lock[aria-pressed="true"] { background: #fdecec; border-color: #b3121f; color: #7a0b14; }
.lt-btn.lt-danger { background: #fdecec; border-color: #b3121f; color: #7a0b14; }
.lt-read { font-size: .82rem; font-weight: 700; padding: 4px 8px; border-radius: 4px; }
.lt-read.ok { background: #e7f6ec; color: #14532d; }
.lt-read.no { background: #fdecec; color: #7a0b14; }
.lt-idl { display: flex; flex-direction: column; gap: 6px; }
.lt-idr { display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; line-height: 1.4; cursor: pointer; padding: 4px 0; }
.lt-idr input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.lt-idr small { color: #4a5d70; font-size: .8rem; }
.lt-end { background: #f8fafc; }
.lt-expl { border-left: 5px solid #8d99a6; background: #f3f6f9; border-radius: 4px; padding: 10px 14px; color: #0b1f33; min-height: 4.2em; }
.lt-expl strong { display: block; font-size: .96rem; }
.lt-expl p { margin: 4px 0 0; font-size: .9rem; line-height: 1.55; }
.lt-k-ok { border-left-color: #1b7f3b; background: #effaf2; }
.lt-k-warn { border-left-color: #d98a0b; background: #fff7e6; }
.lt-k-bad { border-left-color: #c62828; background: #fdeeee; }
.lt-k-info { border-left-color: #2a6fb0; background: #eef5fc; }
.lt-logd { border: 1px solid var(--lt-line); border-radius: 6px; padding: 6px 12px; background: #fff; color: #0b1f33; }
.lt-logd summary { cursor: pointer; font-weight: 700; font-size: .9rem; min-height: 32px; display: flex; align-items: center; }
.lt-log { margin: 6px 0 2px; padding-left: 20px; font-size: .84rem; line-height: 1.5; max-height: 320px; overflow: auto; }
.lt-log li { margin-bottom: 4px; }
.lt-log li.lt-k-ok { color: #14532d; background: none; border: 0; }
.lt-log li.lt-k-warn { color: #6b4b00; background: none; border: 0; }
.lt-log li.lt-k-bad { color: #7a0b14; background: none; border: 0; }
.lt-log li.lt-k-info { color: #1c4a75; background: none; border: 0; }
.lt-report { border: 2px solid #0b1f33; border-radius: 8px; padding: 14px 16px; background: #fff; color: #0b1f33; min-width: 0; }
.lt-report[hidden] { display: none; }
.lt-report h3 { margin: 0 0 8px; font-size: 1.1rem; color: #0b1f33; }
.lt-report h4 { margin: 14px 0 6px; font-size: .98rem; color: #0b1f33; }
.lt-report ul, .lt-report ol { margin: 0; padding-left: 20px; font-size: .88rem; line-height: 1.5; }
.lt-report li { margin-bottom: 4px; }
.lt-report li.crit { color: #7a0b14; }
.lt-big { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 10px 12px; border-radius: 6px; margin-bottom: 10px; }
.lt-big b { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.lt-big span { font-size: .9rem; font-weight: 600; }
.lt-big.ok { background: #e7f6ec; color: #14532d; }
.lt-big.mid { background: #fff3d6; color: #6b4b00; }
.lt-big.no { background: #fdecec; color: #7a0b14; }
.lt-rt { width: 100%; border-collapse: collapse; font-size: .86rem; }
.lt-rt td { border: 1px solid var(--lt-line); padding: 5px 8px; vertical-align: top; color: #0b1f33; }
.lt-rt td:first-child { font-weight: 700; width: 28%; }
.lt-rt td:nth-child(2) { text-align: center; width: 2.4em; font-weight: 800; }
.lt-rt td.ok { color: #14532d; background: #e7f6ec; }
.lt-rt td.no { color: #7a0b14; background: #fdecec; }
@media (max-width: 480px) { .lotosim { padding: 12px; } .lt-rt td:first-child { width: 34%; } }
@media (prefers-reduced-motion: reduce) { .lotosim *, .lotosim *::before, .lotosim *::after { animation: none !important; transition: none !important; } }
