/* Simulador "Arranque con falta de fase y señalización" (Ejemplo 19, publicación 155). Prefijo ej19- */
.ej19 { background: #ffffff; color: #0b1f33; border: 1px solid #cfdae6; border-radius: 8px; padding: 16px; margin: 26px 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ej19 * { box-sizing: border-box; }
.ej19-head { display: flex; flex-direction: column; gap: 2px; }
.ej19-head strong { font-size: 1.1rem; color: #0b1f33; }
.ej19-head span { color: #4a5d70; font-size: .92rem; line-height: 1.5; }
.ej19 button { font: inherit; font-weight: 600; font-size: .9rem; padding: 9px 12px; border-radius: 4px; border: 1px solid #0b1f33; background: #0b1f33; color: #ffffff; cursor: pointer; min-height: 42px; line-height: 1.25; touch-action: manipulation; }
.ej19 button.ghost { background: #ffffff; color: #0b1f33; }
.ej19 button:disabled { opacity: .45; cursor: not-allowed; }
.ej19 [hidden] { display: none !important; }
.ej19 button:focus-visible, .ej19 input:focus-visible, .ej19 select:focus-visible, .ej19 summary:focus-visible { outline: 3px solid #e0731a; outline-offset: 2px; }
.ej19-now { border: 1px solid #cfdae6; border-left: 5px solid #e0731a; border-radius: 4px; background: #fff7ef; color: #0b1f33; padding: 10px 14px; }
.ej19-ct { font-size: .78rem; font-weight: 700; color: #7a3d08; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.ej19-now-main { margin: 0; font-size: 1rem; line-height: 1.55; font-weight: 600; color: #0b1f33; min-height: 4.7em; }
.ej19-now-last { margin: 6px 0 0; font-size: .84rem; color: #4a5d70; min-height: 1.2em; }
.ej19-demo { display: flex; flex-direction: column; gap: 8px; }
.ej19-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ej19 .ej19-demo-b, .ej19 .ej19-next { background: #1a7f4b; border-color: #1a7f4b; color: #ffffff; }
.ej19 .ej19-go { background: #1a7f4b; border-color: #1a7f4b; }
.ej19 .ej19-stop { background: #c0392b; border-color: #c0392b; }
.ej19-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; }
.ej19-hl { outline: 4px solid #e0731a; outline-offset: 3px; border-radius: 4px; animation: ej19-pulse 1.1s ease-in-out infinite; }
@keyframes ej19-pulse { 50% { outline-color: #f6c28b; } }
@media (prefers-reduced-motion: reduce) { .ej19-hl { animation: none; } }
.ej19-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ej19-tabs button { background: #eef2f6; color: #0b1f33; border-color: #cfdae6; font-size: .86rem; }
.ej19-tabs button[aria-pressed="true"] { background: #0b1f33; color: #ffffff; border-color: #0b1f33; }
.ej19-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .ej19-grid { grid-template-columns: minmax(0, 1fr); } }
.ej19-left, .ej19-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ej19-grp { border: 1px solid #cfdae6; border-radius: 6px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; background: #ffffff; }
.ej19-gt { font-size: .86rem; font-weight: 700; color: #0b1f33; }
.ej19-hint { margin: 0; font-size: .84rem; color: #4a5d70; line-height: 1.45; }
.ej19 select { font: inherit; font-size: .92rem; padding: 8px; border: 1px solid #9fb4c8; border-radius: 4px; background: #ffffff; color: #0b1f33; width: 100%; min-height: 42px; }
.ej19-adv { border: 1px solid #cfdae6; border-radius: 6px; padding: 8px 12px; background: #ffffff; }
.ej19-adv summary { cursor: pointer; font-weight: 700; font-size: .9rem; color: #0b1f33; padding: 4px 0; }
.ej19-advb { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.ej19-chk, .ej19-rng { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; color: #0b1f33; }
.ej19-chk { flex-direction: row; align-items: center; gap: 6px; }
.ej19-rng input { width: 100%; }
.ej19-svg { display: block; width: 100%; height: auto; max-width: 100%; border: 1px solid #cfdae6; border-radius: 6px; background: #ffffff; }
.ej19-sub { font-weight: 700; font-size: .84rem; color: #1d4f80; margin: 2px 0 0; }
.ej19-panel { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-start; justify-content: flex-start; background: #d9dee4; border: 3px solid #0b1f33; border-radius: 12px; padding: 12px 14px; }
.ej19-lamp { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 78px; text-align: center; font-size: .78rem; color: #0b1f33; line-height: 1.25; }
.ej19-lamp i { display: block; width: 44px; height: 44px; border-radius: 50%; border: 3px solid #0b1f33; background: #5b6673; transition: background .12s, box-shadow .12s; }
.ej19-lamp b { font-size: .86rem; }
.ej19-lamp.on i { box-shadow: 0 0 0 3px rgba(224, 115, 26, .55), 0 0 14px 4px rgba(255, 255, 255, .8); }
.ej19-lamp.c-w.on i { background: #ffffff; }
.ej19-lamp.c-g.on i { background: #35b36b; }
.ej19-lamp.c-y.on i { background: #f2c230; }
.ej19-lamp.c-r i { border-radius: 8px; width: 56px; background: #f6d9d5; border-color: #b42318; }
.ej19-lamp.c-r.on i { background: #e5493a; box-shadow: 0 0 0 3px rgba(181, 35, 24, .5), 0 0 14px 4px rgba(229, 73, 58, .7); }
.ej19-lamp.c-r.mute i { background: #f2c230; }
@media (prefers-reduced-motion: no-preference) { .ej19-lamp.c-r.on i { animation: ej19-blink .5s steps(2) infinite; } }
@keyframes ej19-blink { 50% { opacity: .55; } }
.ej19-rd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; }
.ej19-rd { border: 1px solid #cfdae6; border-radius: 6px; padding: 6px 8px; background: #ffffff; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ej19-rd span { font-size: .74rem; color: #4a5d70; }
.ej19-rd b { font-size: .92rem; color: #0b1f33; overflow-wrap: anywhere; }
.ej19-rd.bad b { color: #b42318; }
.ej19-rd.ok b { color: #1a7f4b; }
.ej19-bar { height: 12px; background: #eef2f6; border: 1px solid #9fb4c8; border-radius: 3px; overflow: hidden; }
.ej19-bar div { height: 100%; width: 0; background: #e0731a; }
.ej19-barl { font-size: .8rem; color: #0b1f33; display: flex; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.ej19-svgs { display: flex; flex-direction: column; gap: 10px; }
.ej19-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 480px) { .ej19-lamp { width: 64px; } .ej19-lamp i { width: 38px; height: 38px; } .ej19-tabs button { font-size: .8rem; } }
