/* Simuladores de vernier y micrómetro (publicaciones de metrología) */
.sim { background: var(--card, #fff); border: 1px solid var(--line, #cfdae6); border-radius: 8px; padding: 18px; margin: 26px 0; display: flex; flex-direction: column; gap: 14px; }
.sim-head { display: flex; flex-direction: column; gap: 2px; }
.sim-head strong { font-size: 1.1rem; color: var(--navy, #0b1f33); }
.sim-head span { color: var(--muted, #4a5d70); font-size: .92rem; line-height: 1.5; }
.sim-view { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sim-view svg { width: 100%; height: auto; display: block; background: #fff; border: 1px solid var(--line-soft, #e1e8ef); border-radius: 6px; touch-action: pan-y; }
.sim-view svg .grab { cursor: grab; }
.sim-view svg .grab:active { cursor: grabbing; }
.sim-cap { font-size: .8rem; color: var(--muted, #4a5d70); margin: 0; }
.sim-slide, .sim-ask, .sim-quiz { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sim label { font-size: .9rem; font-weight: 600; color: var(--navy, #0b1f33); }
.sim input[type=range] { flex: 1 1 260px; min-width: 0; accent-color: var(--accent, #e0731a); height: 28px; }
.sim input[type=text] { width: 9.5em; padding: 9px 10px; font: inherit; border: 1px solid var(--line, #cfdae6); border-radius: 4px; background: #fff; color: var(--navy, #0b1f33); }
.sim button { font: inherit; font-weight: 600; font-size: .92rem; padding: 9px 14px; border-radius: 4px; border: 1px solid var(--navy, #0b1f33); background: var(--navy, #0b1f33); color: #fff; cursor: pointer; }
.sim button.ghost { background: transparent; color: var(--navy, #0b1f33); }
.sim button:disabled, .sim input:disabled { opacity: .45; cursor: not-allowed; }
.sim button:focus-visible, .sim input:focus-visible { outline: 3px solid var(--accent, #e0731a); outline-offset: 2px; }
.sim-read { border: 1px solid var(--line, #cfdae6); border-left: 4px solid var(--accent, #e0731a); border-radius: 4px; padding: 12px 14px; background: #fff7ef; font-size: .95rem; line-height: 1.7; }
.sim-read .row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sim-read .row b { font-variant-numeric: tabular-nums; }
.sim-read .total { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line, #cfdae6); font-size: 1.2rem; font-weight: 700; color: var(--accent-ink, #a84f08); }
.sim-msg { font-weight: 600; flex-basis: 100%; }
.sim-msg.ok { color: var(--ok, #155724); }
.sim-msg.bad { color: var(--bad, #721c24); }
.sim-note { font-size: .85rem; color: var(--muted, #4a5d70); margin: 0; }
