/* Simulador "Laboratorio del paro de tabrgencia" (publicación 133). Prefijo tab- */
.tab { background: #fff; color: #0b1f33; border: 1px solid #cfdae6; border-radius: 8px; padding: 16px; margin: 26px 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tab * { box-sizing: border-box; }
.tab-head { display: flex; flex-direction: column; gap: 2px; }
.tab-head strong { font-size: 1.1rem; }
.tab-head span { color: #4a5d70; font-size: .92rem; line-height: 1.5; }
.tab button { font: inherit; font-weight: 600; font-size: .9rem; padding: 9px 12px; border-radius: 4px; border: 1px solid #0b1f33; background: #0b1f33; color: #fff; cursor: pointer; min-height: 42px; line-height: 1.25; }
.tab button.ghost { background: transparent; color: #0b1f33; }
.tab button:disabled { opacity: .45; cursor: not-allowed; }
.tab [hidden] { display: none !important; }
.tab button:focus-visible, .tab input:focus-visible, .tab select:focus-visible, .tab summary:focus-visible { outline: 3px solid #e0731a; outline-offset: 2px; }
.tab-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tab-tabs button { background: #eef2f6; color: #0b1f33; border-color: #cfdae6; }
.tab-tabs button[aria-pressed="true"] { background: #0b1f33; color: #fff; border-color: #0b1f33; }
.tab-now { border: 1px solid #cfdae6; border-left: 5px solid #e0731a; border-radius: 4px; background: #fff7ef; color: #0b1f33; padding: 10px 14px; }
.tab-now .tab-ct { color: #7a3d08; text-transform: uppercase; letter-spacing: .04em; font-size: .78rem; font-weight: 700; margin-bottom: 6px; }
.tab-now-main { margin: 0; font-size: 1rem; line-height: 1.55; font-weight: 600; min-height: 3.1em; }
.tab-now-last { margin: 6px 0 0; font-size: .84rem; color: #4a5d70; min-height: 1.2em; }
.tab-demo { display: flex; flex-direction: column; gap: 8px; }
.tab-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.tab-demo-b, .tab-next { background: #1a7f4b !important; border-color: #1a7f4b !important; color: #fff !important; }
.tab-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; }
.tab-hl { outline: 4px solid #e0731a; outline-offset: 3px; border-radius: 4px; animation: tab-pulse 1.1s ease-in-out infinite; }
@keyframes tab-pulse { 50% { outline-color: #f6c28b; } }
@media (prefers-reduced-motion: reduce) { .tab-hl { animation: none; } }
.tab-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .tab-grid { grid-template-columns: minmax(0, 1fr); } }
.tab-left, .tab-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tab-grp { border: 1px solid #cfdae6; border-radius: 6px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tab-gt { font-size: .86rem; font-weight: 700; }
.tab-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tab-seg button { background: #eef2f6; color: #0b1f33; border-color: #cfdae6; text-align: left; font-size: .84rem; }
.tab-seg button small { display: block; font-weight: 500; font-size: .74rem; color: #4a5d70; }
.tab-seg button[aria-pressed="true"] { background: #fff3e4; border: 2px solid #e0731a; }
.tab-go { background: #1a7f4b !important; border-color: #1a7f4b !important; }
.tab-stop { background: #b42318 !important; border-color: #b42318 !important; }
.tab-row { display: flex; flex-direction: column; gap: 3px; }
.tab-row label { font-size: .86rem; font-weight: 600; }
.tab-in { display: flex; align-items: center; gap: 10px; }
.tab-in input[type=range] { flex: 1 1 auto; min-width: 0; height: 30px; accent-color: #e0731a; }
.tab-in output { flex: 0 0 auto; min-width: 4.6em; text-align: right; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .82rem; font-weight: 600; }
.tab select { font: inherit; font-size: .9rem; padding: 7px 8px; border: 1px solid #cfdae6; border-radius: 4px; background: #fff; color: #0b1f33; width: 100%; min-height: 40px; }
.tab-chk { display: flex; align-items: flex-start; gap: 8px; font-size: .88rem; line-height: 1.4; }
.tab-chk input { margin-top: 3px; width: 18px; height: 18px; accent-color: #e0731a; flex: 0 0 auto; }
.tab details { border: 1px solid #cfdae6; border-radius: 6px; padding: 8px 12px; }
.tab summary { cursor: pointer; font-weight: 700; font-size: .9rem; }
.tab details > div { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.tab-card { border: 1px solid #cfdae6; border-radius: 6px; background: #f6f9fc; padding: 8px; min-width: 0; }
.tab-card svg { display: block; width: 100%; height: auto; }
.tab-lamps { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.tab-lamp { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; border: 1px solid #cfdae6; border-radius: 4px; padding: 6px 8px; background: #fff; }
.tab-lamp i { flex: 0 0 18px; height: 18px; border-radius: 50%; background: #a9b8c8; border: 2px solid #0b1f33; }
.tab-lamp i.on-g { background: #1a7f4b; } .tab-lamp i.on-r { background: #b42318; } .tab-lamp i.on-o { background: #e0731a; }
.tab-note { font-size: .84rem; color: #4a5d70; line-height: 1.5; margin: 0; }

/* ---- placa de montaje ---- */
.tab-plate { background: #c9d1d9; border: 3px solid #8796a5; border-radius: 6px; padding: 8px; display: flex; flex-direction: column; gap: 0; }
.tab-rowlab { font-size: .74rem; font-weight: 700; color: #33475b; margin: 2px 0; }
.tab-prow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 6px 4px; background: linear-gradient(#c9d1d9 0 38%, #aab5c0 38% 46%, #c9d1d9 46%); }
.tab-slot { min-height: 62px; border: 2px dashed #6f8296; border-radius: 4px; background: rgba(255,255,255,.35); color: #0b1f33; padding: 2px; font-size: .74rem; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.15; cursor: pointer; }
.tab .tab-slot { background: rgba(255,255,255,.35); color: #0b1f33; border-color: #6f8296; }
.tab .tab-slot.has { border-style: solid; border-color: #0b1f33; color: #fff; }
.tab .tab-slot.has small { color: #fff; }
.tab-slot small { display: block; font-weight: 500; font-size: .66rem; }
.tab-slot.bad { box-shadow: 0 0 0 3px #b42318; }
.tab-slot.hint:not(.has) { border-color: #e0731a; background: #fff7ef; }
.tab-chan { height: 18px; background: #8fa3b8; border: 1px solid #5d7389; border-radius: 3px; display: flex; align-items: center; justify-content: center; font-size: .66rem; font-weight: 700; color: #0b1f33; margin: 0 2px; background-image: repeating-linear-gradient(90deg, transparent 0 14px, rgba(11,31,51,.25) 14px 15px); }
.tab-pal { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.tab .tab-pal button { text-align: left; color: #fff; border-color: #0b1f33; font-size: .82rem; }
.tab .tab-pal button[aria-pressed="true"] { outline: 4px solid #e0731a; outline-offset: 2px; }
.tab .tab-pal button.placed { opacity: .55; }
.tab-pal button small { display: block; font-weight: 500; font-size: .72rem; }
.tab-rules { border: 1px solid #cfdae6; border-radius: 6px; padding: 10px 12px; background: #fff; }
.tab-rules ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; }
@media (max-width: 700px) { .tab-rules ul { grid-template-columns: minmax(0, 1fr); } }
.tab-rules li { font-size: .84rem; line-height: 1.35; display: flex; gap: 6px; color: #0b1f33; }
.tab-rules li b { flex: 0 0 1.4em; }
.tab-rules li.ok b { color: #1a7f4b; } .tab-rules li.no b { color: #b42318; } .tab-rules li.na b { color: #4a5d70; }
.tab-score { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tab-score strong { font-size: 1.5rem; }
.tab-bar { flex: 1 1 140px; height: 14px; background: #eef2f6; border: 1px solid #cfdae6; border-radius: 7px; overflow: hidden; }
.tab-bar i { display: block; height: 100%; background: #1a7f4b; width: 0; }
.tab-verdict { font-weight: 700; font-size: .9rem; }
.tab-swatch { display: inline-block; width: 14px; height: 14px; border: 1px solid #0b1f33; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }
.tab-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.tab-kv div { border: 1px solid #cfdae6; border-radius: 4px; padding: 6px 8px; background: #fff; font-size: .8rem; color: #4a5d70; }
.tab-kv b { display: block; font-size: 1.05rem; color: #0b1f33; }
.tab-kv .hot b { color: #b42318; }
