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