/* Simulador "Arranque retardado ON-delay" (Ejemplo 13, publicación 149). Prefijo ej13- */
.ej13 { 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; }
.ej13 * { box-sizing: border-box; }
.ej13-head { display: flex; flex-direction: column; gap: 2px; }
.ej13-head strong { font-size: 1.1rem; color: #0b1f33; }
.ej13-head span { color: #4a5d70; font-size: .92rem; line-height: 1.5; }
.ej13 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; }
.ej13 button.ghost { background: #ffffff; color: #0b1f33; }
.ej13 button:disabled { opacity: .45; cursor: not-allowed; }
.ej13 [hidden] { display: none !important; }
.ej13 button:focus-visible, .ej13 input:focus-visible, .ej13 select:focus-visible, .ej13 summary:focus-visible { outline: 3px solid #e0731a; outline-offset: 2px; }
.ej13-now { border: 1px solid #cfdae6; border-left: 5px solid #e0731a; border-radius: 4px; background: #fff7ef; color: #0b1f33; padding: 10px 14px; }
.ej13-ct { font-size: .78rem; font-weight: 700; color: #7a3d08; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.ej13-now-main { margin: 0; font-size: 1rem; line-height: 1.55; font-weight: 600; color: #0b1f33; min-height: 4.7em; }
.ej13-now-last { margin: 6px 0 0; font-size: .84rem; color: #4a5d70; min-height: 1.2em; }
.ej13-demo { display: flex; flex-direction: column; gap: 8px; }
.ej13-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ej13 .ej13-demo-b, .ej13 .ej13-next { background: #1a7f4b; border-color: #1a7f4b; color: #ffffff; }
.ej13 .ej13-go { background: #1a7f4b; border-color: #1a7f4b; }
.ej13 .ej13-stop { background: #c0392b; border-color: #c0392b; }
.ej13-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; }
.ej13-hl { outline: 4px solid #e0731a; outline-offset: 3px; border-radius: 4px; animation: ej13-pulse 1.1s ease-in-out infinite; }
@keyframes ej13-pulse { 50% { outline-color: #f6c28b; } }
@media (prefers-reduced-motion: reduce) { .ej13-hl { animation: none; } }
.ej13-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ej13-tabs button { background: #eef2f6; color: #0b1f33; border-color: #cfdae6; font-size: .86rem; }
.ej13-tabs button[aria-pressed="true"] { background: #0b1f33; color: #ffffff; border-color: #0b1f33; }
.ej13-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .ej13-grid { grid-template-columns: minmax(0, 1fr); } }
.ej13-left, .ej13-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ej13-grp { border: 1px solid #cfdae6; border-radius: 6px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; background: #ffffff; }
.ej13-gt { font-size: .86rem; font-weight: 700; color: #0b1f33; }
.ej13-hint { margin: 0; font-size: .84rem; color: #4a5d70; line-height: 1.45; }
.ej13 select { font: inherit; font-size: .92rem; padding: 8px; border: 1px solid #9fb4c8; border-radius: 4px; background: #ffffff; color: #0b1f33; width: 100%; min-height: 42px; }
.ej13-adv { border: 1px solid #cfdae6; border-radius: 6px; padding: 8px 12px; background: #ffffff; }
.ej13-adv summary { cursor: pointer; font-weight: 700; font-size: .9rem; color: #0b1f33; padding: 4px 0; }
.ej13-advb { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.ej13-chk, .ej13-rng { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; color: #0b1f33; }
.ej13-chk { flex-direction: row; align-items: center; gap: 6px; }
.ej13-rng input { width: 100%; }
.ej13-svg { display: block; width: 100%; height: auto; max-width: 100%; border: 1px solid #cfdae6; border-radius: 6px; background: #ffffff; }
.ej13-pile { font-size: .84rem; color: #4a5d70; }
