/* Base compartida — mundo "mesa de maquetas":
   tapete de corte verde, balsa, escalímetro, rótulo de plano. */
@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Architects Daughter"; src: url("fonts/architects-daughter.woff2") format("woff2"); font-weight: 400; font-display: swap; }
[hidden] { display: none !important; }

:root {
  --mat: #163b30;
  --mat-2: #1d4a3c;
  --mat-3: #245847;
  --line: rgba(226, 240, 230, 0.16);
  --line-strong: rgba(226, 240, 230, 0.34);
  --ink: #eef4ec;
  --ink-2: #bcd2c5;
  --ink-3: #8fb09f;
  --balsa: #ecd9b4;
  --balsa-2: #d9bf8f;
  --paper: #f3f6f1;
  --paper-2: #e6ece4;
  --paper-ink: #12322a;
  --paper-ink-2: #4a6a5e;
  --paper-line: #cbd8cd;
  --ok: #5daf3e;
  --no: #e8463b;
  --wait: #e3b23c;

  --e1: #E8463B; --e2: #5DAF3E; --e3: #F0883E; --e4: #9B4DB0; --e5: #3D86D6; --e6: #C08A3E; --e7: #E5508A;

  --f-ui: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-hand: "Architects Daughter", "Archivo", cursive;

  --r: 6px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-ui); font-variation-settings: "wdth" 100; line-height: 1.45; }
img, svg, canvas { display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--wait); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--wait); color: #1b1300; }
.num-tab { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ico { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Escalímetro: regla con marcas, usada como barra de avance */
.rule {
  position: relative; display: flex; gap: 2px; height: 14px;
  padding: 0; border-radius: 2px;
}
.rule .seg { flex: 1; border-radius: 1px; background: rgba(236, 217, 180, .13); box-shadow: inset 0 0 0 1px rgba(236, 217, 180, .18); transition: background .6s var(--ease), box-shadow .6s var(--ease); }
.rule .seg.on { background: var(--c); box-shadow: none; }
.rule .seg.wait { background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--c) 70%, transparent) 0 3px, transparent 3px 7px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 70%, transparent); }
.rule.cont { display: block; background: rgba(236, 217, 180, .13); box-shadow: inset 0 0 0 1px rgba(236, 217, 180, .18); }
.rule.cont .fill { position: absolute; inset: 0 auto 0 0; background: var(--c); border-radius: 2px; transition: width .8s var(--ease); }
.rule.cont .fill.w { background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--c) 70%, transparent) 0 3px, transparent 3px 7px); }
.rule.cont::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(236, 217, 180, .35) calc(10% - 1px) 10%); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
