/* Simulador "Guardamotor" (publicación 111). Prefijo gms- */
.gms { background: var(--card, #fff); color: var(--navy, #0b1f33); border: 1px solid var(--line, #cfdae6); border-radius: 8px; padding: 18px; margin: 26px 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.gms * { box-sizing: border-box; }
.gms-head { display: flex; flex-direction: column; gap: 2px; }
.gms-head strong { font-size: 1.1rem; color: var(--navy, #0b1f33); }
.gms-head span { color: var(--muted, #4a5d70); font-size: .92rem; line-height: 1.5; }
.gms-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); grid-template-areas: "main side" "extra side" "expl side"; gap: 16px; align-items: start; align-content: start; grid-template-rows: min-content min-content min-content; }
.gms-main { grid-area: main; } .gms-side { grid-area: side; } .gms-extra { grid-area: extra; } .gms-expl-wrap { grid-area: expl; }
@media (max-width: 860px) { .gms-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "side" "extra" "expl"; grid-template-rows: auto; } }
.gms-main, .gms-side, .gms-extra, .gms-expl-wrap { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gms-card { border: 1px solid var(--line-soft, #e1e8ef); border-radius: 6px; background: #fff; padding: 10px; min-width: 0; color: #0b1f33; }
.gms-ct { font-size: .88rem; font-weight: 700; color: var(--navy, #0b1f33); margin-bottom: 6px; }
.gms-card .gms-ct { color: #0b1f33; }
.gms svg { display: block; width: 100%; height: auto; max-width: 100%; font-family: inherit; }
.gms [data-g="schem"] svg { max-width: 430px; margin: 0 auto; }
@keyframes gms-rot { to { transform: rotate(360deg); } }
.gms-spin { animation: gms-rot 1.1s linear infinite; }
.gms-legend { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .78rem; color: #4a5d70; }
.gms-legend li { display: inline-flex; align-items: center; gap: 5px; }
.gms-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; }
.gms-legend i.ln { width: 20px; height: 4px; border-radius: 2px; }
.gms-legend i.dash { height: 0; width: 20px; background: none; border-top: 3px dashed #b42318; border-radius: 0; }
.gms-legend i.sq { background: #e0731a; opacity: .6; } .gms-legend i.dot { background: #e0731a; border: 2px solid #0b1f33; border-radius: 50%; width: 14px; }
.gms-status { padding: 10px 12px; border-radius: 4px; font-size: .92rem; font-weight: 600; line-height: 1.5; border-left: 4px solid #7d8fa2; background: #eef2f6; color: #0b1f33; }
.gms-status.ok { background: #effaf2; border-color: #1a7f4b; color: #14532d; }
.gms-status.warn { background: #fff6e0; border-color: #b7791f; color: #6b4b00; }
.gms-status.bad { background: #fdecec; border-color: #b42318; color: #721c24; }
.gms-btns { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.gms button { font: inherit; font-weight: 600; font-size: .88rem; padding: 9px 12px; border-radius: 4px; border: 1px solid var(--navy, #0b1f33); background: var(--navy, #0b1f33); color: #fff; cursor: pointer; min-height: 40px; }
.gms button.ghost { background: transparent; color: var(--navy, #0b1f33); }
.gms button.warn { background: #b42318; border-color: #b42318; }
.gms button:disabled { opacity: .45; cursor: not-allowed; }
.gms input:focus-visible, .gms button:focus-visible, .gms select:focus-visible { outline: 3px solid var(--accent, #e0731a); outline-offset: 2px; }
.gms fieldset { border: 1px solid var(--line, #cfdae6); border-radius: 6px; margin: 0; padding: 6px 12px 10px; min-width: 0; }
.gms legend { font-size: .85rem; font-weight: 700; color: var(--navy, #0b1f33); padding: 0 6px; }
.gms-row { display: flex; flex-direction: column; gap: 2px; padding: 4px 0; }
.gms-row label { font-size: .86rem; font-weight: 600; color: var(--navy, #0b1f33); }
.gms-in { display: flex; align-items: center; gap: 10px; }
.gms-in input[type=range] { flex: 1 1 auto; min-width: 0; height: 30px; accent-color: var(--accent, #e0731a); }
.gms-in output { flex: 0 0 auto; min-width: 5.4em; text-align: right; font-variant-numeric: tabular-nums; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; font-weight: 600; color: var(--navy, #0b1f33); }
.gms select { font: inherit; font-size: .9rem; padding: 7px 8px; border: 1px solid var(--line, #cfdae6); border-radius: 4px; background: #fff; color: #0b1f33; width: 100%; max-width: 100%; min-height: 40px; }
.gms-chk { display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; padding: 6px 0 2px; color: var(--navy, #0b1f33); }
.gms-chk input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--accent, #e0731a); }
.gms-meters { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.gms-meter span { display: flex; justify-content: space-between; gap: 8px; font-size: .78rem; color: #4a5d70; }
.gms-meter b { color: #0b1f33; font-variant-numeric: tabular-nums; }
.gms-bar { position: relative; height: 10px; border-radius: 5px; background: #e3e9f0; border: 1px solid #cfdae6; overflow: hidden; margin-top: 2px; }
.gms-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: #b42318; display: block; }
.gms-bar b { position: absolute; top: -2px; bottom: -2px; width: 3px; background: #0b1f33; }
.gms-read { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; border: 1px solid var(--line, #cfdae6); border-left: 4px solid var(--accent, #e0731a); border-radius: 4px; padding: 10px 12px; background: #fff7ef; color: #0b1f33; }
.gms-read div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.gms-read span { font-size: .74rem; color: #4a5d70; }
.gms-read b { font-size: .9rem; color: #0b1f33; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.gms-note { font-size: .84rem; line-height: 1.55; color: #4a5d70; margin: 6px 0; }
.gms-note b { color: #0b1f33; }
.gms-expl { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gms-expl-wrap .gms-expl { margin-top: 0; }
.gms-expl li { padding: 9px 12px; border-radius: 4px; border-left: 4px solid #2a6fb0; background: #eef5fc; color: #0b1f33; font-size: .9rem; line-height: 1.55; }
.gms-expl li.ok { border-color: #1a7f4b; background: #effaf2; color: #14532d; }
.gms-expl li.warn { border-color: #b7791f; background: #fff6e0; color: #6b4b00; }
.gms-expl li.bad { border-color: #b42318; background: #fdecec; color: #721c24; }
.gms-score { margin-top: 8px; padding: 10px 12px; border-radius: 4px; font-weight: 700; border-left: 4px solid #7d8fa2; background: #eef2f6; color: #0b1f33; }
.gms-score.ok { background: #effaf2; border-color: #1a7f4b; color: #14532d; }
.gms-score.warn { background: #fff6e0; border-color: #b7791f; color: #6b4b00; }
.gms-score.bad { background: #fdecec; border-color: #b42318; color: #721c24; }
.gms [hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .gms * { animation: none !important; transition: none !important; } }
