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