
/* ---------- Astro technology page hero ---------- */

.tech-shell.tech-shell--astro {
  grid-template-areas:
    "crumb crumb crumb crumb crumb crumb crumb crumb crumb crumb crumb crumb"
    "hero  hero  hero  hero  hero  hero  visual visual visual visual visual visual"
    "strip strip strip strip strip strip strip strip strip strip strip strip"
    "toc   toc   toc   body  body  body  body  body  body  ficha ficha ficha"
    ".     .     .     rel   rel   rel   rel   rel   rel   .     .     .";
}

.tech-astro-visual {
  grid-area: visual;
  align-self: center;
  min-width: 0;
  margin-top: var(--hero-top);
  --as-paper:#f7f6f2;--as-table:#fbfaf4;--as-card:#f0eee6;--as-ink:#17191e;--as-muted:rgba(23,25,30,.6);
  --as-rule:rgba(23,25,30,.14);--as-purple:#8d46e7;--as-blue:#3245ff;--as-violet:#bc52ee;--as-gray:#8e8c94;
  --as-sheet:#fffdf7;--as-page-ink:#17191e;--as-instrument:#fbf9f2;--as-instrument-ink:#17191e;
  --as-face:#fbfaf4;--as-top:#fff;--as-side:#e7e5dd;--as-deep:#d8d6ce;--as-edge:#86847c;--as-shadow:#6b6b64;--as-space:#0d0f14;
  --as-tabletone:#d6d3c8;--as-tabletop:#dfdcd1;--as-tableside:#c7c4b9;
  --as-island-base:#c9c2ae;--as-island-body:#e4dfcf;--as-island-top:#f0ecdf;--as-island-dark:#8a8373;
  --as-train-body:#2e323b;--as-train-top:#444a55;--as-train-side:#1c1f26;
  --as-hard:#2f333b;--as-hard-top:#3d424c;--as-hard-side:#1d2027;--as-hard-edge:#7b808a;
  --as-brass:#e6b800;--as-brass-top:#ffd40f;--as-brass-side:#a98700;
  --anatomy-page:#f2f2ef;--anatomy-card:#fbfbfa;--anatomy-text:#57575a;--anatomy-strong:#18181a;--anatomy-muted:#8c8c90;
  --anatomy-paper:#fbfbfa;--anatomy-face:#ffffff;--anatomy-top:#ffffff;
  --anatomy-shade-0:#dcdcd9;--anatomy-shade-1:#e5e5e2;--anatomy-shade-2:#ededea;--anatomy-shade-3:#f4f4f1;
  --anatomy-lit-top:#ffffff;--anatomy-lit-shade:#eeeeeb;
  --anatomy-hi:#26262a;--anatomy-mid:#8a8a8f;--anatomy-lo:#b4b4b8;--anatomy-faint:#d4d4d6;--anatomy-lit:#000000;
  --anatomy-halo:#8a8a80;--anatomy-halo-opacity:.32;--anatomy-dot:#3a3a3e;
  --anatomy-red:#e5484d;--anatomy-green:#30a46c;--anatomy-blue:#3e63dd;
  --anatomy-weight:.6px;
}

[data-theme="dark"] .tech-astro-visual {
  --as-paper:#0d0f14;--as-table:#141820;--as-card:#181c24;--as-ink:#f7f6f2;--as-muted:rgba(247,246,242,.6);
  --as-rule:rgba(247,246,242,.14);--as-purple:#8d46e7;--as-blue:#3245ff;--as-violet:#bc52ee;--as-gray:#bfc1c9;
  --as-sheet:#fbf8ef;--as-page-ink:#17191e;--as-instrument:#fbf9f2;--as-instrument-ink:#17191e;
  --as-face:#171a21;--as-top:#1f232b;--as-side:#101218;--as-deep:#0a0c10;--as-edge:#6e737e;--as-shadow:#000;--as-space:#0d0f14;
  --as-tabletone:#181c23;--as-tabletop:#20252e;--as-tableside:#0e1116;
  --as-island-base:#2b303a;--as-island-body:#3a404b;--as-island-top:#4a515d;--as-island-dark:#171a20;
  --as-train-body:#272c35;--as-train-top:#39404b;--as-train-side:#171a20;
  --as-hard:#23272f;--as-hard-top:#2e333c;--as-hard-side:#14171c;--as-hard-edge:#6e737e;
  --as-brass:#d9ae00;--as-brass-top:#ffd40f;--as-brass-side:#8f7300;
  --anatomy-page:#0b0b0b;--anatomy-card:#131313;--anatomy-text:#a3a3a3;--anatomy-strong:#e6e6e6;--anatomy-muted:#6e6e6e;
  --anatomy-paper:#131313;--anatomy-face:#1b1b1b;--anatomy-top:#1c1c1c;
  --anatomy-shade-0:#0f0f0f;--anatomy-shade-1:#121212;--anatomy-shade-2:#151515;--anatomy-shade-3:#181818;
  --anatomy-lit-top:#262626;--anatomy-lit-shade:#1d1d1d;
  --anatomy-hi:#d4d4d4;--anatomy-mid:#6a6a6a;--anatomy-lo:#3e3e3e;--anatomy-faint:#2a2a2a;--anatomy-lit:#ffffff;
  --anatomy-halo:#050505;--anatomy-halo-opacity:.9;--anatomy-dot:#e6e6e6;
  --anatomy-red:#ff6b6b;--anatomy-green:#6be0a0;--anatomy-blue:#6b9bff;
}

.tech-astro-live {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  cursor: grab;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

.tech-astro-live[data-drag="on"] { cursor: grabbing; }

.tech-astro-live:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
  box-shadow: none;
}

.tech-astro-live.is-pointer:focus-visible { outline: none; }

.tech-astro-live svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.tech-astro-visual .iso-halo { display: none; }

/* El generador puede inyectar su leyenda de placa en el sheet; la ficha solo usa el objeto. */
.tech-shell--astro > .iso-legend,
.tech-shell--astro figcaption.iso-legend { display: none !important; }

@media (max-width: 980px) {
  .tech-shell.tech-shell--astro {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "crumb"
      "hero"
      "visual"
      "strip"
      "ficha"
      "toc"
      "body"
      "rel";
  }

  .tech-astro-visual {
    margin-top: clamp(28px, 5vw, 44px);
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .tech-shell--astro .prose section + section { border-top-color: transparent; }
    .tech-shell--astro .prose section + section::before {
      content: "";
      position: absolute;
      inset-inline: 0;
      top: 0;
      height: 1px;
      background: var(--rule);
      transform: scaleX(0);
      transform-origin: left center;
      animation: astro-section-rule 1ms linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}

.tech-shell--astro .prose section { position: relative; }

@keyframes astro-section-rule { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .tech-shell--astro .prose section::before {
    animation: none !important;
    transform: none !important;
  }
}

.tech-astro-visual .as-face{fill:var(--as-face);stroke:none}
.tech-astro-visual .as-top{fill:var(--as-top);stroke:none}
.tech-astro-visual .as-side{fill:var(--as-side);stroke:none}
.tech-astro-visual .as-deep{fill:var(--as-deep);stroke:none}
.tech-astro-visual .as-edge{fill:none;stroke:var(--as-edge);stroke-width:.55;stroke-linejoin:round;stroke-linecap:round}
.tech-astro-visual .as-soft{fill:none;stroke:var(--as-muted);stroke-width:.55;stroke-linecap:round}
.tech-astro-visual .as-hair{fill:none;stroke:var(--as-rule);stroke-width:.5;stroke-linecap:round}
.tech-astro-visual .as-paper{fill:var(--as-paper)}
.tech-astro-visual .as-table{fill:var(--as-table)}
.tech-astro-visual .as-sheet{fill:var(--as-sheet)}
.tech-astro-visual .as-sheet-ink{fill:var(--as-page-ink)}
.tech-astro-visual .as-instrument{fill:var(--as-instrument)}
.tech-astro-visual .as-instrument-ink{fill:var(--as-instrument-ink)}
.tech-astro-visual .as-ink{fill:var(--as-ink)}
.tech-astro-visual .as-muted{fill:var(--as-muted)}
.tech-astro-visual .as-purple{fill:var(--as-purple)}
.tech-astro-visual .as-blue{fill:var(--as-blue)}
.tech-astro-visual .as-violet{fill:var(--as-violet)}
.tech-astro-visual .as-gray{fill:var(--as-gray)}
.tech-astro-visual .as-space{fill:var(--as-space)}
.tech-astro-visual .as-shadow{fill:var(--as-shadow);opacity:.12}
.tech-astro-visual .as-plate{fill:var(--as-card);stroke:var(--as-edge);stroke-width:.4}
.tech-astro-visual .as-t{font-family:"Inter Tight","Inter","Segoe UI",system-ui,sans-serif;fill:var(--as-ink)}
.tech-astro-visual .as-m{font-family:"Inter Tight","Inter","Segoe UI",system-ui,sans-serif;fill:var(--as-muted)}
.tech-astro-visual .as-n{font-family:"IBM Plex Mono","Cascadia Mono",ui-monospace,monospace;fill:var(--as-muted);letter-spacing:.04em}
.tech-astro-visual .as-label{font-family:"IBM Plex Mono","Cascadia Mono",ui-monospace,monospace;fill:var(--as-page-ink)}
.tech-astro-visual .as-page-n{font-family:"IBM Plex Mono","Cascadia Mono",ui-monospace,monospace;fill:var(--as-page-ink)}
.tech-astro-visual .as-logo-a{fill:#f7f6f2}
.tech-astro-visual .as-wordmark{fill:#f7f6f2}
.tech-astro-visual .as-gradient-stroke{fill:none;stroke:url(#as-gradient);stroke-width:2}
.tech-astro-visual .as-cable{fill:none;stroke:var(--as-muted);stroke-width:.9;stroke-linecap:round;opacity:.32}
.tech-astro-visual .as-cable-live{fill:none;stroke:var(--as-purple);stroke-width:2.1;stroke-linecap:round}
.tech-astro-visual .as-lamp{fill:var(--as-purple)}
.tech-astro-visual .as-halo{fill:var(--as-purple)}
.tech-astro-visual .as-led{fill:var(--as-purple)}
.tech-astro-visual .as-needle{fill:none;stroke:var(--as-instrument-ink);stroke-width:1.7;stroke-linecap:round}
.tech-astro-visual .as-needle-accent{fill:none;stroke:var(--as-purple);stroke-width:1.9;stroke-linecap:round}
.tech-astro-visual .as-tick{fill:none;stroke:var(--as-instrument-ink);stroke-width:.5;stroke-linecap:round}
.tech-astro-visual .as-glass{fill:var(--as-instrument);opacity:.38;stroke:var(--as-edge);stroke-width:.55}
.tech-astro-visual .as-paperblock .as-top{fill:var(--as-sheet)}
.tech-astro-visual .as-paperblock .as-face{fill:#f0ecdf}
.tech-astro-visual .as-paperblock .as-side{fill:#e2ddcf}
.tech-astro-visual .as-paperblock .as-edge{stroke:rgba(23,25,30,.28)}
.tech-astro-visual .as-tabletone .as-face{fill:var(--as-tabletone)}
.tech-astro-visual .as-tabletone .as-top{fill:var(--as-tabletop)}
.tech-astro-visual .as-tabletone .as-side{fill:var(--as-tableside)}
.tech-astro-visual .as-tabletone .as-edge{stroke:var(--as-edge)}
.tech-astro-visual .as-metal .as-face{fill:var(--as-island-body)}
.tech-astro-visual .as-metal .as-top{fill:var(--as-island-top)}
.tech-astro-visual .as-metal .as-side{fill:var(--as-island-base)}
.tech-astro-visual .as-metal .as-edge{stroke:var(--as-edge)}
.tech-astro-visual .as-train .as-face{fill:var(--as-train-body)}
.tech-astro-visual .as-train .as-top{fill:var(--as-train-top)}
.tech-astro-visual .as-train .as-side{fill:var(--as-train-side)}
.tech-astro-visual .as-train .as-edge{stroke:#8a8f99}
.tech-astro-visual .as-hard .as-face{fill:var(--as-hard)}
.tech-astro-visual .as-hard .as-top{fill:var(--as-hard-top)}
.tech-astro-visual .as-hard .as-side{fill:var(--as-hard-side)}
.tech-astro-visual .as-hard .as-edge{stroke:var(--as-hard-edge)}
.tech-astro-visual .as-brass .as-face{fill:var(--as-brass)}
.tech-astro-visual .as-brass .as-top{fill:var(--as-brass-top)}
.tech-astro-visual .as-brass .as-side{fill:var(--as-brass-side)}
.tech-astro-visual .as-brass .as-edge{stroke:var(--as-brass-side)}
.tech-astro-visual .as-grid{fill:url(#as-dot-grid)}
.tech-astro-visual .iso-svg{display:block;width:100%;height:auto;overflow:visible}
.tech-astro-visual .iso-svg path,.iso-svg circle{vector-effect:non-scaling-stroke}
.tech-astro-visual .iso-fill{fill:var(--anatomy-paper);stroke:none}
.tech-astro-visual .iso-solid[data-lit]>.iso-fill{fill:var(--anatomy-face)}
.tech-astro-visual .iso-shade,.iso-top{stroke:none}
.tech-astro-visual .iso-shade[data-shade="0"]{fill:var(--anatomy-shade-0)}
.tech-astro-visual .iso-shade[data-shade="1"]{fill:var(--anatomy-shade-1)}
.tech-astro-visual .iso-shade[data-shade="2"]{fill:var(--anatomy-shade-2)}
.tech-astro-visual .iso-shade[data-shade="3"]{fill:var(--anatomy-shade-3)}
.tech-astro-visual .iso-top{fill:var(--anatomy-top)}
.tech-astro-visual .iso-solid[data-lit]>.iso-top{fill:var(--anatomy-lit-top)}
.tech-astro-visual .iso-solid[data-lit]>.iso-shade{fill:var(--anatomy-lit-shade)}
.tech-astro-visual .iso-solid[data-seamless]>.iso-shade,.iso-solid[data-seamless]>.iso-top{stroke-width:.4;stroke-linejoin:round}
.tech-astro-visual .iso-solid[data-seamless]>.iso-shade[data-shade="0"]{stroke:var(--anatomy-shade-0)}
.tech-astro-visual .iso-solid[data-seamless]>.iso-shade[data-shade="1"]{stroke:var(--anatomy-shade-1)}
.tech-astro-visual .iso-solid[data-seamless]>.iso-shade[data-shade="2"]{stroke:var(--anatomy-shade-2)}
.tech-astro-visual .iso-solid[data-seamless]>.iso-shade[data-shade="3"]{stroke:var(--anatomy-shade-3)}
.tech-astro-visual .iso-solid[data-seamless]>.iso-top{stroke:var(--anatomy-top)}
.tech-astro-visual .iso-solid[data-seamless][data-lit]>.iso-top{stroke:var(--anatomy-lit-top)}
.tech-astro-visual .iso-solid[data-seamless][data-lit]>.iso-shade{stroke:var(--anatomy-lit-shade)}
.tech-astro-visual .iso-solid[data-lit]>.iso-edge{stroke:var(--anatomy-lit)}
.tech-astro-visual .iso-halo{fill:var(--anatomy-halo);stroke:none;filter:blur(9px);opacity:var(--anatomy-halo-opacity);transform:translateY(3px)}
.tech-astro-visual .iso-line{fill:none;stroke:var(--anatomy-lo);stroke-width:var(--anatomy-weight);stroke-linecap:round;stroke-linejoin:round}
.tech-astro-visual .iso-line[data-tone="hi"]{stroke:var(--anatomy-hi)}
.tech-astro-visual .iso-line[data-tone="mid"]{stroke:var(--anatomy-mid)}
.tech-astro-visual .iso-line[data-tone="lo"]{stroke:var(--anatomy-lo)}
.tech-astro-visual .iso-line[data-tone="faint"]{stroke:var(--anatomy-faint)}
.tech-astro-visual .iso-line[data-tone="lit"]{stroke:var(--anatomy-lit)}
.tech-astro-visual .iso-line[data-tone="red"]{stroke:var(--anatomy-red)}
.tech-astro-visual .iso-line[data-tone="green"]{stroke:var(--anatomy-green)}
.tech-astro-visual .iso-line[data-tone="blue"]{stroke:var(--anatomy-blue)}
.tech-astro-visual .iso-line[data-dotted]{stroke-dasharray:.01 3.5;stroke-width:1}
.tech-astro-visual .iso-line[data-dashed]{stroke-dasharray:3 3}
.tech-astro-visual .iso-line[data-flow]{stroke-dasharray:2 6}
.tech-astro-visual .iso-wire-end{fill:var(--anatomy-paper);stroke:var(--anatomy-lo);stroke-width:var(--anatomy-weight)}
.tech-astro-visual .iso-wire[data-tone="hi"] .iso-wire-end{stroke:var(--anatomy-hi)}
.tech-astro-visual .iso-wire[data-tone="mid"] .iso-wire-end{stroke:var(--anatomy-mid)}
.tech-astro-visual .iso-wire[data-tone="faint"] .iso-wire-end{stroke:var(--anatomy-faint)}
.tech-astro-visual .iso-wire[data-tone="lit"] .iso-wire-end{stroke:var(--anatomy-lit)}
.tech-astro-visual .iso-dots circle{fill:var(--anatomy-dot);stroke:none;opacity:.32}
.tech-astro-visual .iso-dots[data-tone="hi"] circle{opacity:.85}
.tech-astro-visual .iso-dots[data-tone="mid"] circle{opacity:.45}
.tech-astro-visual .iso-dots[data-tone="lo"] circle{opacity:.22}
.tech-astro-visual .iso-dots[data-tone="faint"] circle{opacity:.12}
.tech-astro-visual .iso-face-text{fill:var(--anatomy-mid);font-family:var(--anatomy-mono);letter-spacing:.04em}
.tech-astro-visual .iso-face-text[data-tone="hi"]{fill:var(--anatomy-hi)}
.tech-astro-visual .iso-face-text[data-tone="lo"]{fill:var(--anatomy-lo)}
.tech-astro-visual .iso-face-text[data-tone="faint"]{fill:var(--anatomy-faint)}
.tech-astro-visual .tb-body{fill:var(--anatomy-shade-2);stroke:none}
.tech-astro-visual .tb-shine{fill:var(--anatomy-top);stroke:none}
.tech-astro-visual .tb-shade{fill:var(--anatomy-shade-0);stroke:none}
.tech-astro-visual .tb-ring{fill:none;stroke:var(--anatomy-lo);stroke-width:.45;stroke-linecap:butt;stroke-linejoin:round}
.tech-astro-visual .tb-ring[data-tone="mid"]{stroke:var(--anatomy-mid)}
.tech-astro-visual .tb-ring[data-tone="faint"]{stroke:var(--anatomy-faint)}
.tech-astro-visual .tb-ring[data-tone="hi"]{stroke:var(--anatomy-hi)}
.tech-astro-visual @keyframes iso-flow{to{stroke-dashoffset:-32}}
.tech-astro-visual @keyframes iso-pulse{0%,100%{opacity:.18}12%{opacity:1}40%{opacity:.18}}
.tech-astro-visual .iso-line[data-flow]{animation:iso-flow 1600ms linear infinite}
.tech-astro-visual .iso-dots circle[data-pulse]{animation:iso-pulse 1600ms steps(1,end) infinite;animation-delay:var(--pulse-at,0ms)}
