/* Simulador "Arma tu S7-1200" (lección s7-02). Prefijo s7arm- */
.s7arm { 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; }
.s7arm * { box-sizing: border-box; }
.s7arm-head { display: flex; flex-direction: column; gap: 2px; }
.s7arm-head strong { font-size: 1.1rem; color: #0b1f33; }
.s7arm-head span { color: #4a5d70; font-size: .92rem; line-height: 1.5; }
.s7arm button { font: inherit; font-weight: 600; font-size: .88rem; padding: 8px 12px; border-radius: 4px; border: 1px solid #0b1f33; background: #0b1f33; color: #fff; cursor: pointer; min-height: 42px; line-height: 1.25; }
.s7arm button.ghost { background: transparent; color: #0b1f33; }
.s7arm button:disabled { opacity: .45; cursor: not-allowed; }
.s7arm [hidden] { display: none !important; }
.s7arm button:focus-visible, .s7arm select:focus-visible, .s7arm summary:focus-visible { outline: 3px solid #e0731a; outline-offset: 2px; }
.s7arm-now { border: 1px solid #cfdae6; border-left: 5px solid #e0731a; border-radius: 4px; background: #fff7ef; padding: 10px 14px; color: #0b1f33; }
.s7arm-ct { font-size: .86rem; font-weight: 700; color: #0b1f33; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; }
.s7arm-now p { margin: 0; line-height: 1.55; font-size: .95rem; color: #0b1f33; }
.s7arm-last { margin-top: 6px !important; font-size: .84rem !important; color: #4a5d70 !important; }
.s7arm-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.s7arm-demo-b, .s7arm-next { background: #1a7f4b !important; border-color: #1a7f4b !important; color: #fff !important; }
.s7arm-demostep { margin: 8px 0 0; padding: 10px 14px; border-radius: 4px; background: #eaf3fc; border-left: 5px solid #2a6fb0; color: #0b1f33; font-size: .95rem; line-height: 1.55; }
.s7arm-hl { outline: 4px solid #e0731a; outline-offset: 3px; border-radius: 4px; animation: s7arm-pulse 1.1s ease-in-out infinite; }
@keyframes s7arm-pulse { 50% { outline-color: #f6c28b; } }
.s7arm-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .s7arm-grid { grid-template-columns: minmax(0, 1fr); } }
.s7arm-left, .s7arm-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.s7arm-grp { border: 1px solid #cfdae6; border-radius: 6px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.s7arm-gt { font-size: .88rem; font-weight: 700; color: #0b1f33; }
.s7arm-gt small { font-weight: 500; color: #4a5d70; }
.s7arm-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.s7arm-seg button { background: #eef2f6; color: #0b1f33; border-color: #cfdae6; font-size: .84rem; padding: 8px 4px; }
.s7arm-seg button[aria-pressed="true"] { background: #fff3e4; border: 2px solid #e0731a; }
.s7arm select { font: inherit; font-size: .88rem; padding: 7px 8px; border: 1px solid #cfdae6; border-radius: 4px; background: #fff; color: #0b1f33; width: 100%; max-width: 100%; min-height: 42px; }
.s7arm-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.s7arm-list { list-style: none; margin: 0 !important; padding: 0 !important; display: flex; flex-direction: column; gap: 4px; }
.s7arm-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 8px; border-radius: 4px; background: #eef2f6; font-size: .84rem; color: #0b1f33; min-width: 0; }
.s7arm-list li span { overflow-wrap: anywhere; }
.s7arm-list li.bad { background: #fde8e6; border: 1px dashed #b42318; }
.s7arm-list li button { min-height: 34px; padding: 4px 10px; font-size: .8rem; flex: 0 0 auto; }
.s7arm-list li.empty { background: transparent; color: #4a5d70; font-style: italic; }
.s7arm-esc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.s7arm-esc button { background: #eef2f6; color: #0b1f33; border-color: #cfdae6; font-size: .82rem; text-align: left; }
.s7arm-card { border: 1px solid #e1e8ef; border-radius: 6px; background: #fff; padding: 10px; min-width: 0; color: #0b1f33; }
.s7arm-stage { overflow-x: auto; background: #fff; border-radius: 4px; }
.s7arm-stage svg { display: block; width: 100%; min-width: 440px; height: auto; font-family: inherit; }
.s7arm-hint { margin: 4px 0 0; font-size: .8rem; color: #4a5d70; line-height: 1.5; }
.s7arm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.s7arm-tile { border: 2px solid #cfdae6; border-radius: 6px; padding: 8px 10px; background: #f3f6f9; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.s7arm-tile b { font-size: 1.4rem; line-height: 1.1; color: #0b1f33; }
.s7arm-tile span { font-size: .76rem; color: #4a5d70; line-height: 1.3; }
.s7arm-tile em { font-style: normal; font-size: .74rem; color: #1d4f80; }
.s7arm-warn { list-style: none; margin: 0 !important; padding: 0 !important; display: flex; flex-direction: column; gap: 8px; }
.s7arm-warn li { padding: 9px 12px; border-radius: 4px; font-size: .9rem; line-height: 1.5; color: #0b1f33; }
.s7arm-warn li.err { background: #fde8e6; border-left: 5px solid #b42318; }
.s7arm-warn li.ok { background: #effaf2; border-left: 5px solid #1a7f4b; }
.s7arm-warn li.info { background: #eef2f6; border-left: 5px solid #2a6fb0; }
.s7arm-adv { border: 1px solid #cfdae6; border-radius: 6px; padding: 8px 12px; }
.s7arm-adv summary { cursor: pointer; font-weight: 700; font-size: .88rem; min-height: 32px; display: flex; align-items: center; }
.s7arm-adv table { border-collapse: collapse; width: 100%; font-size: .8rem; margin-top: 8px; }
.s7arm-adv th, .s7arm-adv td { border: 1px solid #cfdae6; padding: 4px 6px; text-align: center; color: #0b1f33; }
.s7arm-adv th { background: #eef2f6; }
.s7arm-adv-w { overflow-x: auto; }
@media (prefers-reduced-motion: reduce) { .s7arm *, .s7arm-hl { animation: none !important; transition: none !important; } }
