/* Simulador "Calculador de escalado analógico" (lección s7-05). Prefijo s7esc- */
.s7esc { 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; }
.s7esc * { box-sizing: border-box; }
.s7esc-head { display: flex; flex-direction: column; gap: 2px; }
.s7esc-head strong { font-size: 1.1rem; color: #0b1f33; }
.s7esc-head span { color: #4a5d70; font-size: .92rem; line-height: 1.5; }
.s7esc 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; }
.s7esc button.ghost { background: transparent; color: #0b1f33; }
.s7esc [hidden] { display: none !important; }
.s7esc button:focus-visible, .s7esc input:focus-visible, .s7esc select:focus-visible, .s7esc summary:focus-visible { outline: 3px solid #e0731a; outline-offset: 2px; }
.s7esc-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .s7esc-cases { grid-template-columns: minmax(0, 1fr); } }
.s7esc-cases button { background: #eef2f6; color: #0b1f33; border-color: #cfdae6; }
.s7esc-cases button[aria-pressed="true"] { background: #0b1f33; color: #fff; border-color: #0b1f33; }
.s7esc-now { border: 1px solid #cfdae6; border-left: 5px solid #e0731a; border-radius: 4px; background: #fff7ef; color: #0b1f33; padding: 10px 14px; }
.s7esc-ct { font-size: .88rem; font-weight: 700; color: #0b1f33; margin-bottom: 6px; }
.s7esc-now .s7esc-ct { color: #7a3d08; text-transform: uppercase; letter-spacing: .04em; font-size: .78rem; }
.s7esc-now-main { margin: 0; font-size: 1rem; line-height: 1.55; font-weight: 600; color: #0b1f33; min-height: 3.1em; }
.s7esc-now-last { margin: 6px 0 0; font-size: .84rem; color: #4a5d70; min-height: 1.2em; }
.s7esc-demo { display: flex; flex-direction: column; gap: 8px; }
.s7esc-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.s7esc-demo-b, .s7esc-next { background: #1a7f4b !important; border-color: #1a7f4b !important; color: #fff !important; }
.s7esc-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; }
.s7esc-hl { outline: 4px solid #e0731a; outline-offset: 3px; border-radius: 4px; animation: s7esc-pulse 1.1s ease-in-out infinite; }
@keyframes s7esc-pulse { 50% { outline-color: #f6c28b; } }
.s7esc-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .s7esc-grid { grid-template-columns: minmax(0, 1fr); } }
.s7esc-left, .s7esc-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.s7esc-grp { border: 1px solid #cfdae6; border-radius: 6px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.s7esc-gt { font-size: .88rem; font-weight: 700; color: #0b1f33; }
.s7esc select, .s7esc-num { font: inherit; font-size: .9rem; padding: 7px 8px; border: 1px solid #9fb0c2; border-radius: 4px; background: #fff; color: #0b1f33; width: 100%; max-width: 100%; min-height: 40px; }
.s7esc-in { display: flex; gap: 10px; align-items: center; }
.s7esc-in input[type=range] { flex: 1 1 auto; min-width: 0; height: 30px; accent-color: #e0731a; }
.s7esc-in .s7esc-num { flex: 0 0 7.5em; width: 7.5em; font-variant-numeric: tabular-nums; }
.s7esc-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; }
.s7esc-quick button { background: #eef2f6; color: #0b1f33; border-color: #cfdae6; font-size: .84rem; padding: 6px 8px; }
.s7esc-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.s7esc-two label, .s7esc-grp > label { display: flex; flex-direction: column; gap: 3px; font-size: .84rem; font-weight: 600; color: #0b1f33; }
.s7esc-unit { max-width: 8em; }
.s7esc-hint { margin: 0; font-size: .82rem; line-height: 1.5; color: #4a5d70; }
.s7esc-adv { border: 1px solid #cfdae6; border-radius: 6px; padding: 8px 12px; }
.s7esc-adv summary { cursor: pointer; font-weight: 700; font-size: .88rem; min-height: 32px; display: flex; align-items: center; }
.s7esc-adv-in { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.s7esc-chk { display: flex; align-items: flex-start; gap: 8px; font-size: .86rem; font-weight: 600; line-height: 1.4; }
.s7esc-chk input { width: 18px; height: 18px; margin-top: 2px; accent-color: #e0731a; flex: 0 0 auto; }
.s7esc-card { border: 1px solid #e1e8ef; border-radius: 6px; background: #fff; padding: 10px; min-width: 0; color: #0b1f33; }
.s7esc-eq p { margin: 4px 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; line-height: 1.5; overflow-wrap: anywhere; color: #0b1f33; }
.s7esc-eq2 { background: #fff7ef; border-left: 4px solid #e0731a; padding: 6px 8px; }
.s7esc-eq3 { margin: 6px 0 0; padding-left: 1.3em; font-size: .86rem; line-height: 1.55; color: #0b1f33; }
.s7esc-read { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 8px; }
.s7esc-tile { border: 2px solid #cfdae6; border-radius: 6px; padding: 8px 10px; background: #f3f6f9; color: #0b1f33; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.s7esc-tile small { font-size: .74rem; color: #4a5d70; }
.s7esc-tile b { font-size: .98rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.s7esc-res { border-color: #e0731a; background: #fff3e4; }
.s7esc-st-ok { border-color: #1a7f4b; background: #effaf2; }
.s7esc-st-amb { border-color: #b7791f; background: #fff6e0; }
.s7esc-st-red { border-color: #b42318; background: #fdecea; }
.s7esc svg { display: block; width: 100%; height: auto; max-width: 100%; background: #fff; border-radius: 4px; font-family: inherit; }
@media (prefers-reduced-motion: reduce) { .s7esc *, .s7esc-hl { animation: none !important; transition: none !important; } }
