/* Fuentes alojadas localmente (Google Fonts, licencia OFL). Subconjuntos latin y latin-ext. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Saira';
  font-style: normal;
  font-weight: 500 800;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url(../fonts/saira-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Saira';
  font-style: normal;
  font-weight: 500 800;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url(../fonts/saira-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================================
   ORION NDT SERVICES — sistema de diseño
   Concepto: instrumento calibrado. La trayectoria orbital del
   logotipo se usa como trazo de medición, nunca como adorno.
   ========================================================= */

:root {
  /* Color */
  --carbon: #0d1115;          /* fondo principal oscuro */
  --carbon-2: #141a20;        /* superficies sobre carbón */
  --carbon-3: #1c242c;        /* bordes y elevaciones */
  --steel: #8794a1;           /* texto secundario sobre oscuro */
  --steel-300: #b9c3cc;
  --steel-100: #dde3e8;
  --paper: #eef1f4;           /* secciones claras */
  --white: #ffffff;
  --ink: #10161c;             /* texto sobre claro */
  --ink-2: #4a5866;
  --cyan: #1f91e3;            /* azul del logotipo */
  --cyan-hi: #52c4ff;         /* acento eléctrico, texto sobre oscuro */
  --cyan-ink: #156fbd;         /* azul para texto y botones: contraste AA sobre blanco y papel */
  --deep: #0a2a5c;            /* azul profundo */
  --signal-red: #d2353a;      /* solo para indicaciones PT */
  --signal-green: #9cff57;    /* solo para indicaciones MT fluorescentes */
  --error: #ff7a7a;
  --error-ink: #b3261e;
  --ok: #5fd4a0;

  /* Tipografía */
  --f-display: "Saira", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Escala modular 1.25 (cuarta mayor), base 17px */
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-base: 1.0625rem;
  --t-md: 1.3125rem;
  --t-lg: 1.625rem;
  --t-xl: clamp(1.9rem, 1.2rem + 2.4vw, 2.75rem);
  --t-2xl: clamp(2.3rem, 1.2rem + 3.8vw, 4rem);
  --t-hero: clamp(2.5rem, 0.9rem + 5.6vw, 5.6rem);

  /* Espaciado (múltiplos de 8) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;
  --s-8: 8rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --max: 1280px;

  /* Bordes: el radio comunica jerarquía — piezas mecanizadas, no burbujas */
  --r-sm: 2px;
  --r-md: 6px;
  --r-pill: 999px;
  --line: 1px solid rgba(185, 195, 204, 0.16);
  --line-ink: 1px solid rgba(16, 22, 28, 0.14);

  /* Movimiento */
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --dur: 240ms;

  --header-h: 76px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--carbon);
  color: var(--steel-100);
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; max-width: 64ch; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--s-2); top: -100px;
  z-index: 100;
  padding: var(--s-1) var(--s-2);
  background: var(--cyan-hi);
  color: var(--carbon);
  font-weight: 600;
  border-radius: var(--r-sm);
}
.skip-link:focus { top: var(--s-2); }

:focus-visible {
  outline: 2px solid var(--cyan-hi);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--paper { background: var(--paper); color: var(--ink); }
.section--paper :focus-visible { outline-color: var(--cyan); }

/* ---------- Tipografía ---------- */
/* El titular usa la misma anchura extendida del logotipo ORION */
.display {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 125;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.98;
}

.h2 {
  font-size: var(--t-2xl);
  max-width: 18ch;
  text-wrap: balance;
}

.h3 {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 112;
  font-weight: 600;
  font-size: var(--t-lg);
  line-height: 1.15;
  letter-spacing: 0.005em;
}

.lede {
  font-size: var(--t-md);
  line-height: 1.55;
  color: var(--steel-300);
  max-width: 54ch;
}
.section--paper .lede { color: var(--ink-2); }

.muted { color: var(--steel); }
.section--paper .muted { color: var(--ink-2); }

/* Encabezado de sección: la regla se "mide" al entrar en pantalla */
.section-head {
  display: grid;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}
.section-head__ref {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--f-display);
  font-variation-settings: "wdth" 100;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--cyan-hi);
  font-feature-settings: "tnum";
}
.section--paper .section-head__ref { color: var(--cyan-ink); }
.section-head__ref::after {
  content: "";
  height: 1px;
  flex: 0 1 220px;
  background: currentColor;
  opacity: 0.6;
  transform-origin: left;
  transform: scaleX(var(--rule, 1));
  transition: transform 900ms var(--ease);
}
.js .section-head__ref::after { --rule: 0; }
.js .is-in .section-head__ref::after { --rule: 1; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--cyan-ink);
  --fg: var(--white);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  min-height: 52px;
  padding: 0 1.6em;
  border: 1px solid var(--bg);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-display);
  font-variation-settings: "wdth" 110;
  font-weight: 600;
  font-size: var(--t-sm);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
/* Microinteracción: retícula de esquinas que se cierra sobre el botón al apuntarlo */
.btn::before,
.btn::after {
  content: "";
  position: absolute;
  width: 8px; height: 8px;
  border: 1.5px solid var(--fg);
  opacity: 0;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn::before { top: 5px; left: 5px; border-right: 0; border-bottom: 0; transform: translate(-4px, -4px); }
.btn::after { bottom: 5px; right: 5px; border-left: 0; border-top: 0; transform: translate(4px, 4px); }
.btn:hover::before,
.btn:hover::after,
.btn:focus-visible::before,
.btn:focus-visible::after { opacity: 0.9; transform: none; }
.btn:hover { --bg: #125fa3; }
.btn:active { transform: translateY(1px); }

.btn--ghost {
  --bg: transparent;
  --fg: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover { --bg: rgba(255, 255, 255, 0.06); border-color: var(--white); }
.section--paper .btn--ghost { --fg: var(--ink); border-color: rgba(16, 22, 28, 0.3); }

.btn--lg { min-height: 60px; padding: 0 2em; font-size: var(--t-base); }

.btn[disabled] { opacity: 0.6; cursor: progress; }

.link {
  color: var(--cyan-hi);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}
.section--paper .link { color: #0d6fb8; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-solid {
  background: rgba(13, 17, 21, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(185, 195, 204, 0.12);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.header__logo img { height: 54px; width: auto; }

.nav { display: flex; align-items: center; gap: var(--s-4); }
.nav__list {
  display: flex;
  gap: clamp(1rem, 0.2rem + 1.6vw, 2rem);
  list-style: none;
  margin: 0; padding: 0;
}
.nav__link {
  position: relative;
  display: block;
  padding: 0.5rem 0;
  color: var(--steel-300);
  text-decoration: none;
  font-size: var(--t-sm);
  font-weight: 500;
  transition: color var(--dur) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--cyan-hi);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease);
}
.nav__link:hover { color: var(--white); }
.nav__link[aria-current="true"] { color: var(--white); }
.nav__link[aria-current="true"]::after { transform: scaleX(1); }
.nav .btn { min-height: 44px; }

.menu-toggle {
  display: none;
  width: 48px; height: 48px;
  border: var(--line);
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 13px; right: 13px;
  height: 1.5px;
  background: var(--white);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 23px; right: 20px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-4);
    padding: var(--s-4) var(--gutter) var(--s-5);
    background: var(--carbon);
    border-top: var(--line);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link {
    padding: 1rem 0;
    font-family: var(--f-display);
    font-variation-settings: "wdth" 115;
    font-size: var(--t-lg);
    color: var(--white);
    border-bottom: var(--line);
  }
  .nav__link::after { display: none; }
  .nav__link[aria-current="true"] { color: var(--cyan-hi); }
  .header__logo img { height: 46px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(640px, 100svh);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  isolation: isolate;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
  filter: saturate(0.85) contrast(1.08);
}
/* Iluminación controlada: el negro carbón cae desde la izquierda para dar lectura al titular */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--carbon) 0%, rgba(13, 17, 21, 0.92) 30%, rgba(13, 17, 21, 0.35) 62%, rgba(13, 17, 21, 0.15) 100%),
    linear-gradient(0deg, var(--carbon) 0%, rgba(13, 17, 21, 0) 34%);
}
/* Retícula de plano técnico, sólo en el hero */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(82, 196, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82, 196, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 75%);
  pointer-events: none;
}
.hero__orbit {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
}
.orbit-path {
  fill: none;
  stroke: var(--cyan-hi);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}
.orbit-ticks { stroke: var(--cyan-hi); stroke-width: 1; opacity: 0.55; vector-effect: non-scaling-stroke; }
.orbit-star { fill: var(--cyan-hi); transform-box: fill-box; transform-origin: center; }
.orbit-reticle { fill: none; stroke: var(--cyan-hi); stroke-width: 1; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; }

.hero__content {
  align-self: center;
  padding-top: calc(var(--header-h) + var(--s-5));
  padding-bottom: var(--s-6);
}
.hero__title {
  font-size: var(--t-hero);
  color: var(--white);
  max-width: 13ch;
  margin-bottom: var(--s-4);
  text-wrap: balance;
}
.hero__text {
  font-size: var(--t-md);
  line-height: 1.55;
  color: var(--steel-300);
  max-width: 46ch;
  margin-bottom: var(--s-5);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* Índice de métodos: acceso directo al explorador */
.hero__index {
  border-top: var(--line);
  background: linear-gradient(0deg, rgba(13, 17, 21, 0.9), rgba(13, 17, 21, 0.6));
}
.hero__index ul {
  list-style: none;
  margin: 0 auto;
  padding-block: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero__index li + li { border-left: var(--line); }
.hero__index a {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-3) var(--s-3) 0;
  text-decoration: none;
  color: var(--steel-300);
  transition: color var(--dur) var(--ease);
}
.hero__index li + li a { padding-left: var(--s-3); }
.hero__index a:hover { color: var(--white); }
.hero__index b {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 125;
  font-weight: 700;
  font-size: var(--t-md);
  color: var(--cyan-hi);
  min-width: 2.6em;
}
.hero__index span { font-size: var(--t-sm); }

@media (max-width: 760px) {
  .hero__index ul { grid-template-columns: 1fr 1fr; }
  .hero__index li:nth-child(3) { border-left: 0; }
  .hero__index li:nth-child(n+3) { border-top: var(--line); }
  .hero__index li:nth-child(3) a { padding-left: 0; }
  .hero__index a { flex-direction: column; gap: 0.15rem; padding-block: var(--s-2); }
  .hero__media img { object-position: 70% 40%; }
  .hero__media::after {
    background:
      linear-gradient(0deg, var(--carbon) 8%, rgba(13, 17, 21, 0.82) 55%, rgba(13, 17, 21, 0.55) 100%);
  }
}

/* ---------- Quiénes somos ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s-6) var(--s-7);
  align-items: start;
}
.about__body p { font-size: var(--t-base); color: var(--ink-2); }
.about__body p:first-of-type { font-size: var(--t-md); color: var(--ink); line-height: 1.5; }
.about__aside { display: grid; gap: var(--s-4); }

.figure-plate {
  position: relative;
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--carbon);
}
.figure-plate img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.figure-plate figcaption {
  padding: var(--s-1) var(--s-2);
  font-size: var(--t-xs);
  color: var(--steel-300);
  background: var(--carbon);
}

/* Ficha corporativa con datos por confirmar */
.datasheet {
  border: var(--line-ink);
  border-radius: var(--r-md);
  background: var(--white);
}
.datasheet h3 {
  padding: var(--s-2) var(--s-3);
  border-bottom: var(--line-ink);
  font-family: var(--f-display);
  font-variation-settings: "wdth" 110;
  font-size: var(--t-base);
  font-weight: 600;
}
.datasheet dl { margin: 0; }
.datasheet div {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: var(--s-2);
  padding: 0.75rem var(--s-3);
  border-bottom: var(--line-ink);
  font-size: var(--t-sm);
}
.datasheet div:last-child { border-bottom: 0; }
.datasheet dt { color: var(--ink-2); }
.datasheet dd { margin: 0; color: var(--ink); }
.placeholder {
  display: inline-block;
  padding: 0 0.4em;
  border: 1px dashed rgba(16, 22, 28, 0.35);
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-style: italic;
}
.placeholder--dark { border-color: rgba(185, 195, 204, 0.4); color: var(--steel); }

.principles {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: var(--line-ink);
}
.principles > div { padding: var(--s-4) var(--s-4) 0 0; }
.principles > div + div { padding-left: var(--s-4); border-left: var(--line-ink); }
.principles h3 { font-size: var(--t-md); margin-bottom: var(--s-1); }
.principles p { font-size: var(--t-sm); color: var(--ink-2); margin: 0; }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .principles > div,
  .principles > div + div { padding: var(--s-3) 0; border-left: 0; border-bottom: var(--line-ink); }
}
@media (max-width: 520px) {
  .datasheet div { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ---------- Servicios: tablero de especímenes ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-3);
}
.svc {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--carbon-2);
  border: var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}
.svc:hover { border-color: rgba(82, 196, 255, 0.45); }
.svc--vt { grid-column: span 7; }
.svc--dim { grid-column: span 5; }
.svc--mt { grid-column: span 5; }
.svc--pt { grid-column: span 7; }

.svc__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}
.svc--dim .svc__media,
.svc--mt .svc__media { aspect-ratio: 4 / 3; }
.svc__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease);
}
.svc:hover .svc__media img { transform: scale(1.03); }
.svc__overlay {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.svc__body {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto 1fr auto;
  column-gap: var(--s-3);
  padding: var(--s-4);
}
.svc__code {
  grid-row: 1 / 3;
  font-family: var(--f-display);
  font-variation-settings: "wdth" 125;
  font-weight: 700;
  font-size: clamp(2.6rem, 1.6rem + 2.6vw, 3.8rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.25px var(--cyan-hi);
}
.svc__num {
  font-size: var(--t-xs);
  color: var(--steel);
  font-feature-settings: "tnum";
}
.svc__title { font-size: var(--t-lg); color: var(--white); }
.svc__text {
  grid-column: 1 / -1;
  margin-top: var(--s-3);
  color: var(--steel-300);
  font-size: var(--t-sm);
}
.svc__apps {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 var(--s-3);
  padding: 0;
  list-style: none;
}
.svc__apps li {
  padding: 0.2rem 0.6rem;
  border: var(--line);
  border-radius: var(--r-pill);
  font-size: var(--t-xs);
  color: var(--steel-300);
}
.svc__more {
  grid-column: 1 / -1;
  justify-self: start;
}

/* Lenguaje propio de cada método */
.svc--vt .svc__media::after { /* viñeta de linterna: el ojo del inspector */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 58% 46%, transparent 0 22%, rgba(0, 0, 0, 0.55) 46%);
  pointer-events: none;
}
.svc--mt .svc__media img { filter: saturate(1.1) contrast(1.05); }
.svc--pt .svc__steps {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0; padding: 0;
  list-style: none;
  font-size: var(--t-xs);
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0));
}
.svc--pt .svc__steps li {
  padding: var(--s-4) var(--s-2) var(--s-2);
  border-top: 3px solid var(--c);
}
.svc--pt .svc__steps li:nth-child(1) { --c: var(--steel-300); }
.svc--pt .svc__steps li:nth-child(2) { --c: var(--signal-red); }
.svc--pt .svc__steps li:nth-child(3) { --c: #8d9aa6; }
.svc--pt .svc__steps li:nth-child(4) { --c: var(--white); }

/* Izaje: módulo horizontal con esquema técnico en lugar de fotografía */
.svc--izaje {
  grid-column: span 12;
  grid-template-rows: none;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
}
.svc__figure {
  margin: 0;
  aspect-ratio: auto;
  display: grid;
  place-items: center;
  border-right: var(--line);
  background:
    linear-gradient(rgba(82, 196, 255, 0.05) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(82, 196, 255, 0.05) 1px, transparent 1px) 0 0 / 24px 24px,
    #0f151b;
}
.svc__figure svg { width: 100%; height: auto; }

@media (max-width: 960px) {
  .svc--izaje { grid-template-columns: 1fr; }
  .svc__figure { border-right: 0; border-bottom: var(--line); }
  .svc--vt, .svc--dim, .svc--mt, .svc--pt { grid-column: span 12; }
  .svc--dim .svc__media, .svc--mt .svc__media { aspect-ratio: 16 / 9; }
}
@media (max-width: 520px) {
  .svc__body { padding: var(--s-3); }
  .svc--pt .svc__steps li { padding: var(--s-3) 0.4rem 0.5rem; }
}

/* ---------- Panel lateral de servicio ---------- */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(620px, 100vw);
  height: 100%;
  max-height: none;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: var(--line);
  background: var(--carbon-2);
  color: var(--steel-100);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer::backdrop { background: rgba(5, 8, 11, 0.7); }
.drawer[open] { animation: drawer-in 360ms var(--ease); }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }
.drawer__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4);
  background: var(--carbon-2);
  border-bottom: var(--line);
}
.drawer__head p { margin: 0; font-size: var(--t-sm); color: var(--steel); }
.drawer__body { padding: var(--s-4); }
.drawer__body img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-md); margin-bottom: var(--s-4); }
.drawer__body h2 { font-size: var(--t-xl); color: var(--white); margin-bottom: var(--s-3); max-width: none; }
.drawer__body h3 { font-size: var(--t-md); color: var(--white); margin: var(--s-4) 0 var(--s-2); }
.drawer__body ul { margin: 0; padding-left: 1.1em; }
.drawer__body li { margin-bottom: 0.35em; color: var(--steel-300); }
.drawer__body li::marker { color: var(--cyan-hi); }
.drawer__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: var(--line);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: var(--line);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.icon-btn:hover { border-color: var(--cyan-hi); background: rgba(82, 196, 255, 0.08); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Explorador de métodos ---------- */
.explorer { border-top: var(--line); }
.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: var(--line);
}
.tab {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: var(--s-3) var(--s-2) var(--s-3) 0;
  border: 0;
  background: transparent;
  color: var(--steel);
  text-align: left;
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}
.tab + .tab { padding-left: var(--s-3); border-left: var(--line); }
.tab b {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 125;
  font-weight: 700;
  font-size: var(--t-lg);
}
.tab span { font-size: var(--t-sm); }
.tab::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--cyan-hi);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms var(--ease);
}
.tab + .tab::after { left: 0; }
.tab:hover { color: var(--steel-100); }
.tab[aria-selected="true"] { color: var(--white); }
.tab[aria-selected="true"] b { color: var(--cyan-hi); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }

.panel { padding-top: var(--s-5); }
.panel[hidden] { display: none; }
.panel.is-entering .panel__figure,
.panel.is-entering .qa { animation: panel-in 420ms var(--ease) both; }
.panel.is-entering .qa { animation-delay: 60ms; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } }

.panel__top {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s-5);
  align-items: start;
  margin-bottom: var(--s-5);
}
.panel__figure {
  margin: 0;
  border: var(--line);
  border-radius: var(--r-md);
  background:
    linear-gradient(rgba(82, 196, 255, 0.05) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(82, 196, 255, 0.05) 1px, transparent 1px) 0 0 / 24px 24px,
    #0f151b;
  overflow: hidden;
}
.panel__figure svg { width: 100%; height: auto; }
.panel__video { vertical-align: top; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0f151b; cursor: pointer; }
.panel__figure figcaption {
  padding: var(--s-1) var(--s-3);
  border-top: var(--line);
  font-size: var(--t-xs);
  color: var(--steel);
}
.panel__intro h3 { font-size: var(--t-xl); color: var(--white); margin-bottom: var(--s-3); }
.panel__intro p { color: var(--steel-300); }
.panel__photo {
  margin: var(--s-4) 0 0;
  border-radius: var(--r-md);
  overflow: hidden;
}
.panel__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.qa {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  border-top: var(--line);
}
.qa > div {
  padding: var(--s-4) var(--s-4) var(--s-4) 0;
  border-bottom: var(--line);
}
.qa > div:not(:nth-child(3n + 1)) { padding-left: var(--s-4); border-left: var(--line); }
.qa dt {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 110;
  font-weight: 600;
  font-size: var(--t-base);
  color: var(--white);
  margin-bottom: var(--s-1);
}
.qa dd { margin: 0; font-size: var(--t-sm); color: var(--steel-300); }
.qa dd ul { margin: 0; padding-left: 1.05em; }
.qa dd li { margin-bottom: 0.25em; }
.qa dd li::marker { color: var(--cyan-hi); }

/* Diagramas técnicos */
.dg-line { stroke: var(--steel-300); stroke-width: 1.5; fill: none; }
.dg-thin { stroke: var(--steel); stroke-width: 1; fill: none; }
.dg-dim { stroke: var(--cyan-hi); stroke-width: 1; fill: none; }
.dg-flux { stroke: var(--cyan); stroke-width: 1.4; fill: none; }
.dg-metal { fill: #2a333d; stroke: var(--steel-300); stroke-width: 1.5; }
.dg-metal-2 { fill: #36414c; stroke: var(--steel-300); stroke-width: 1.5; }
.dg-text { fill: var(--steel-300); font-family: var(--f-body); font-size: 12px; }
.dg-text--hi { fill: var(--cyan-hi); }
.dg-text--b { fill: var(--white); font-family: var(--f-display); font-weight: 600; font-size: 13px; }
.dg-red { fill: var(--signal-red); }
.dg-dev { fill: #f3f4f2; }
.dg-particle { fill: var(--signal-green); }
/* Versión vertical de cada esquema para celulares: misma información, rótulos legibles sin desplazar */
.dg-mobile { display: none; }
.dg-m .dg-text { font-size: 13px; }
.dg-m .dg-text--b { font-size: 14px; }
.dg-mark circle { fill: #0f151b; stroke: var(--cyan-hi); stroke-width: 1.5; }
.dg-mark text { fill: var(--cyan-hi); font-family: var(--f-display); font-weight: 700; font-size: 12px; }
@media (max-width: 640px) {
  .dg-desktop { display: none; }
  .dg-mobile { display: block; }
}

@media (max-width: 960px) {
  .panel__top { grid-template-columns: 1fr; }
  .qa { grid-template-columns: 1fr 1fr; }
  .qa > div:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .qa > div:nth-child(even) { padding-left: var(--s-3); border-left: var(--line); }
}
@media (max-width: 640px) {
  .tabs { grid-template-columns: 1fr 1fr; }
  .tab:nth-child(3) { padding-left: 0; border-left: 0; }
  .tab:nth-child(n + 3) { border-top: var(--line); }
  .tab span { font-size: var(--t-xs); }
  .qa { grid-template-columns: 1fr; }
  .qa > div:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ---------- Proceso: constelación de Orión ---------- */
.section--sky {
  --night: #061223;
  background:
    radial-gradient(ellipse 70% 60% at 72% 38%, rgba(31, 145, 227, 0.16), transparent 70%),
    linear-gradient(180deg, #050c18 0%, var(--night) 40%, #071a33 100%);
  border-block: 1px solid rgba(82, 196, 255, 0.1);
  overflow: hidden;
  isolation: isolate;
}
/* campo de estrellas: puntos dibujados con gradientes, sin imágenes */
.section--sky::before,
.section--sky::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 22px 38px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 118px 160px, rgba(190, 225, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 204px 72px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 286px 240px, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 64px 284px, rgba(190, 225, 255, 0.5), transparent),
    radial-gradient(1px 1px at 172px 302px, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 312px 118px, rgba(190, 225, 255, 0.5), transparent),
    radial-gradient(1px 1px at 248px 18px, rgba(255, 255, 255, 0.4), transparent);
  background-size: 340px 330px;
}
.section--sky::after {
  background-size: 470px 410px;
  background-position: 130px 90px;
  opacity: 0.7;
  animation: sky-twinkle 7s ease-in-out infinite alternate paused;
}
.section--sky:has(.orion.is-visible)::after { animation-play-state: running; }
@keyframes sky-twinkle { to { opacity: 0.25; } }

.orion {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas:
    "head sky"
    "motto sky"
    "panel panel";
  column-gap: var(--s-5);
}
.orion__head { grid-area: head; align-self: end; margin-bottom: var(--s-4); }
.orion__head .h2 { font-size: clamp(2.1rem, 1rem + 2.4vw, 3.3rem); }
.orion__head .lede { max-width: 40ch; }

/* Mensaje de marca */
.orion-motto {
  grid-area: motto;
  align-self: start;
  max-width: 30rem;
  padding: var(--s-3);
  border: 1px solid rgba(82, 196, 255, 0.16);
  border-radius: var(--r-md);
  background: rgba(15, 29, 51, 0.72);
}
.orion-motto__lines {
  margin: 0 0 var(--s-2);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid rgba(185, 195, 204, 0.2);
  font-family: var(--f-display);
  font-variation-settings: "wdth" 112;
  font-weight: 700;
  font-size: var(--t-md);
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--white);
}
.orion-motto__lines span { display: block; }
.orion-motto__lines span + span { color: var(--cyan-hi); }
.orion-motto__text { margin: 0 0 var(--s-1); color: var(--steel-100); font-weight: 600; font-size: var(--t-sm); }
.orion-motto__sign { margin: 0; color: var(--steel); font-size: var(--t-xs); letter-spacing: 0.06em; }

/* Cielo: SVG de la constelación con botones HTML encima de cada estrella */
.orion__sky {
  grid-area: sky;
  position: relative;
  width: 100%;
  aspect-ratio: 660 / 520;
  align-self: center;
}
.orion__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orion__reticle { fill: none; stroke: rgba(82, 196, 255, 0.12); stroke-width: 1; }
.orion__reticle .ret-ticks { stroke-width: 7; stroke-dasharray: 0.4 4.6; stroke: rgba(82, 196, 255, 0.16); }
.orion__reticle .ret-dash { stroke-dasharray: 2 6; }
.orion__belt { fill: rgba(82, 196, 255, 0.04); stroke: rgba(82, 196, 255, 0.3); stroke-dasharray: 3 5; }
.orion__cap,
.orion__coord {
  font-family: var(--f-display);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  fill: rgba(159, 225, 255, 0.62);
}
.orion__coord { fill: rgba(185, 195, 204, 0.42); letter-spacing: 0.12em; text-transform: none; }
.orion__lines .ln {
  fill: none;
  stroke: rgba(140, 200, 255, 0.28);
  stroke-width: 1.2;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.orion__trail { fill: none; stroke: var(--cyan-hi); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.orion__trail--glow { stroke-width: 7; stroke-opacity: 0.18; }
.orion__comet { opacity: 0; transition: opacity 400ms var(--ease); pointer-events: none; }
.orion__comet.is-on { opacity: 1; }
.orion__comet circle { fill: #e9f8ff; }
.orion__comet .c-halo { fill: url(#og-halo); }

/* Estrellas */
.st__body {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 450ms var(--ease), opacity 450ms var(--ease);
}
.st__halo { fill: url(#og-halo); opacity: 0.7; transition: opacity 450ms var(--ease); }
.st__spark { fill: rgba(190, 232, 255, 0.7); transform: scale(0.85); transform-box: fill-box; transform-origin: center; transition: transform 450ms var(--ease); }
.st__core { fill: #f2fbff; }
.st__ring { fill: none; stroke: var(--cyan-hi); stroke-width: 1; opacity: 0; }
.st--belt .st__core { fill: #ffffff; }
.st--belt .st__halo { transform: scale(1.25); transform-box: fill-box; transform-origin: center; }
.st--belt .st__ring { opacity: 0.35; stroke-dasharray: 2 3; }
.st--minor .st__body { opacity: 0.6; transform: scale(0.75); }
.st--minor .st__ring { display: none; }
.orion.is-ready .st[data-i] .st__body { opacity: 0.62; }
.orion.is-ready .st[data-i].is-done .st__body { opacity: 0.85; }
.orion .st[data-i].is-active .st__body { opacity: 1; transform: scale(1.4); }
.st.is-active .st__halo { opacity: 1; }
.st.is-active .st__spark { transform: scale(1.15); }
.st.is-active .st__ring { opacity: 0.8; stroke-dasharray: none; animation: st-ring 1.6s var(--ease) both; }
@keyframes st-ring { from { r: 6; opacity: 1; } to { r: 15; opacity: 0.5; } }

/* Entrada: con JS las piezas esperan a que la sección entre en pantalla */
.js .orion:not(.is-on) .st__body { opacity: 0; transform: scale(0.2); }
.js .orion:not(.is-on) .ln { stroke-dashoffset: 1; }
.js .orion:not(.is-on) .orion__trail,
.js .orion:not(.is-on) .orion__belt,
.js .orion:not(.is-on) .orion__cap,
.js .orion:not(.is-on) .orion__reticle,
.js .orion:not(.is-on) .orion__tag { opacity: 0; }
.orion__belt, .orion__cap, .orion__reticle, .orion__trail, .orion__tag { transition: opacity 900ms var(--ease) 1200ms; }
.orion:not(.is-ready) .st__body { transition-delay: calc(var(--d) * 1ms); }
.orion__lines .ln { transition: stroke-dashoffset 900ms var(--ease) calc(var(--d) * 1ms); }
.orion.is-ready .orion__tag { transition: opacity 300ms var(--ease); }

/* Botones de etapa sobre cada estrella */
.orion__stars { position: absolute; inset: 0; }
.orion__star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--steel-300);
  font: inherit;
  cursor: pointer;
}
.orion__star:focus-visible { outline: 2px solid var(--cyan-hi); outline-offset: 2px; }
.orion__tag {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  white-space: nowrap;
  pointer-events: none;
}
.orion__star[data-side="r"] .orion__tag { left: calc(100% + 2px); transform: translateY(-50%); }
.orion__star[data-side="l"] .orion__tag { right: calc(100% + 2px); transform: translateY(-50%); flex-direction: row-reverse; }
.orion__star[data-side="b"] .orion__tag { top: calc(100% + 2px); left: 50%; transform: translateX(-50%); flex-direction: column; align-items: center; gap: 0.1rem; }
.orion__num {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 125;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--steel);
  font-feature-settings: "tnum";
  transition: color var(--dur) var(--ease), text-shadow var(--dur) var(--ease);
}
.orion__name {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-300);
  transition: color var(--dur) var(--ease);
}
.orion__star.is-done .orion__num { color: var(--cyan-hi); }
.orion__star:hover .orion__name { color: var(--white); }
.orion__star.is-active .orion__num { color: #7fd8ff; text-shadow: 0 0 14px rgba(82, 196, 255, 0.85); }
.orion__star.is-active .orion__name { color: var(--white); }

/* Panel técnico de la etapa */
.orion-panel {
  grid-area: panel;
  position: relative;
  margin-top: var(--s-4);
  border: 1px solid rgba(82, 196, 255, 0.18);
  border-radius: var(--r-md);
  background:
    linear-gradient(rgba(82, 196, 255, 0.045) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(82, 196, 255, 0.045) 1px, transparent 1px) 0 0 / 24px 24px,
    rgba(8, 20, 38, 0.86);
}
.orion-panel::before,
.orion-panel::after { /* esquinas de encuadre */
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--cyan-hi);
  pointer-events: none;
}
.orion-panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--r-md); }
.orion-panel::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--r-md); }
.orion-panel__body {
  display: grid;
  grid-template-columns: auto minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--s-4);
  align-items: start;
  min-height: 13.5rem;
  padding: var(--s-4);
}
.orion-panel__id { display: grid; justify-items: center; gap: var(--s-1); }
.orion-panel__icon {
  width: 72px;
  height: 72px;
  padding: 14px;
  border: 1px solid rgba(82, 196, 255, 0.3);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82, 196, 255, 0.16), transparent 70%);
  fill: none;
  stroke: var(--cyan-hi);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.orion-panel__num {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 125;
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--white);
  font-feature-settings: "tnum";
}
.orion-panel__kicker {
  margin: 0 0 var(--s-1);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-hi);
}
.orion-panel__main h3 { margin: 0 0 var(--s-2); color: var(--white); font-size: var(--t-lg); }
.orion-panel__main p { margin: 0; color: var(--steel-300); }
.orion-panel__list { display: grid; gap: 0.7rem; margin: 0; padding: 0; list-style: none; }
.orion-panel__list li {
  position: relative;
  padding: 0 0 0.7rem 1.6rem;
  border-bottom: 1px solid rgba(185, 195, 204, 0.1);
  color: var(--steel-100);
}
.orion-panel__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.orion-panel__list li::before { /* pequeña estrella como viñeta */
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.45em;
  width: 7px;
  height: 7px;
  background: var(--cyan-hi);
  transform: rotate(45deg) scale(0.85);
  box-shadow: 0 0 8px rgba(82, 196, 255, 0.8);
}
.orion-panel__body.is-swapping > * { animation: step-in 480ms var(--ease) both; }
.orion-panel__body.is-swapping > :nth-child(2) { animation-delay: 50ms; }
.orion-panel__body.is-swapping > :nth-child(3) { animation-delay: 100ms; }
@keyframes step-in { from { opacity: 0; transform: translateY(8px); } }

.orion-panel__foot {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-2) var(--s-4);
  border-top: 1px solid rgba(82, 196, 255, 0.14);
}
.orion-panel__count { margin: 0; flex: none; font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); }
.orion-panel__count b { font-family: var(--f-display); font-size: var(--t-sm); color: var(--white); }
/* indicador de recorrido: etapas completadas, actual y pendientes */
.orion-track {
  --p: 0;
  position: relative;
  display: flex;
  justify-content: space-between;
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}
.orion-track::before,
.orion-track::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 5px;
  height: 1px;
  background: rgba(185, 195, 204, 0.22);
}
.orion-track::after { background: var(--cyan-hi); transform: scaleX(var(--p)); transform-origin: left; transition: transform 650ms var(--ease); }
.orion-track li {
  position: relative;
  z-index: 1;
  padding-top: 18px;
  font-family: var(--f-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--steel);
  font-feature-settings: "tnum";
}
.orion-track li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 11px;
  height: 11px;
  border: 1px solid rgba(185, 195, 204, 0.5);
  border-radius: 50%;
  background: var(--night);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.orion-track button { /* el área táctil incluye el punto */
  display: block;
  margin: -18px -10px -6px;
  padding: 18px 10px 6px;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.orion-track button:hover { color: var(--white); }
.orion-track button:focus-visible { outline: 2px solid var(--cyan-hi); outline-offset: 0; }
.orion-track li:last-child { text-align: right; }
.orion-track li:last-child::before { left: auto; right: 0; }
.orion-track li.is-done { color: var(--cyan-hi); }
.orion-track li.is-done::before { background: var(--cyan-hi); border-color: var(--cyan-hi); }
.orion-track li.is-active { color: var(--white); }
.orion-track li.is-active::before { background: var(--white); border-color: var(--cyan-hi); box-shadow: 0 0 0 4px rgba(82, 196, 255, 0.25), 0 0 12px rgba(82, 196, 255, 0.9); }

.process__note { margin-top: var(--s-4); font-size: var(--t-xs); color: var(--steel); }

@media (prefers-reduced-motion: reduce) {
  .section--sky::after { animation: none; }
  .st__body, .orion__lines .ln, .orion__tag, .orion__trail, .orion__belt, .orion__cap, .orion__reticle { transition: none !important; }
  .st.is-active .st__ring { animation: none; }
}

/* Tableta: la constelación pasa debajo del encabezado y el mensaje al final */
@media (max-width: 1024px) {
  .orion {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "sky" "panel" "motto";
  }
  .orion__sky { max-width: 640px; justify-self: center; }
  .orion-motto { margin-top: var(--s-4); max-width: none; }
  .orion-panel__body { grid-template-columns: auto minmax(0, 1fr); }
  .orion-panel__list { grid-column: 1 / -1; }
}
/* Celular: solo los números junto a las estrellas; el nombre se lee en el panel */
@media (max-width: 640px) {
  .orion__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .orion__star { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .orion__num { font-size: 1rem; }
  .orion__cap, .orion__coord { display: none; }
  .orion-panel__body { grid-template-columns: 1fr; gap: var(--s-3); padding: var(--s-3); min-height: 0; }
  .orion-panel__id { grid-auto-flow: column; justify-content: start; align-items: center; gap: var(--s-2); }
  .orion-panel__icon { width: 56px; height: 56px; padding: 11px; }
  .orion-panel__foot { flex-direction: column; align-items: stretch; gap: var(--s-2); padding: var(--s-2) var(--s-3) var(--s-3); }
}

/* ---------- Por qué ORION ---------- */
.why {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s-6);
  align-items: start;
}
.why__head { position: sticky; top: calc(var(--header-h) + var(--s-4)); }
.why__symbol { width: 180px; margin-top: var(--s-5); opacity: 0.9; }
.spec { margin: 0; border-top: var(--line); }
.spec > div {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: var(--line);
}
.spec dt {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 112;
  font-weight: 600;
  font-size: var(--t-md);
  line-height: 1.2;
  color: var(--white);
}
.spec dd { margin: 0; color: var(--steel-300); font-size: var(--t-sm); }

@media (max-width: 900px) {
  .why { grid-template-columns: 1fr; gap: var(--s-4); }
  .why__head { position: static; }
  .why__symbol { display: none; }
  .spec > div { grid-template-columns: 1fr; gap: var(--s-1); }
}

/* ---------- Normas de referencia ---------- */
.standards { margin-top: var(--s-7); }
.standards__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: var(--s-3) 0 0;
  padding: 0;
  list-style: none;
  border-top: var(--line);
  border-bottom: var(--line);
}
.standards__list li {
  display: grid;
  gap: var(--s-1);
  align-content: start;
  padding: var(--s-4) var(--s-3) var(--s-4) 0;
}
.standards__list li + li { padding-left: var(--s-3); border-left: var(--line); }
.standards__list b {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 125;
  font-weight: 700;
  font-size: clamp(1.9rem, 1.2rem + 1.8vw, 2.75rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--white);
}
.standards__list span { font-size: var(--t-sm); color: var(--steel-300); max-width: 22ch; }
/* una sola rejilla por lista: la columna de códigos toma el ancho del código más largo */
.standards__codes { margin: var(--s-1) 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 0.75rem; align-items: baseline; }
.standards__codes div { display: contents; }
.standards__codes dt {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 110;
  font-weight: 600;
  font-size: var(--t-sm);
  color: var(--cyan-hi);
  font-feature-settings: "tnum";
}
.standards__codes dd { margin: 0; font-size: var(--t-xs); color: var(--steel); line-height: 1.4; }
.standards__note { margin-top: var(--s-2); font-size: var(--t-xs); color: var(--steel); max-width: 80ch; }

@media (max-width: 900px) {
  .standards__list { grid-template-columns: 1fr 1fr; }
  .standards__list li,
  .standards__list li + li { padding: var(--s-3) var(--s-2) var(--s-3) 0; border-left: 0; border-bottom: var(--line); }
  .standards__list li:nth-child(even) { padding-left: var(--s-3); border-left: var(--line); }
  .standards__list li:last-child { border-bottom: 0; }
}

/* ---------- Galería ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
  gap: var(--s-2);
  margin: 0; padding: 0;
  list-style: none;
}
.gallery li { position: relative; }
.gallery li.is-wide { grid-column: span 2; }
.gallery li.is-tall { grid-row: span 2; }
.gallery button {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--carbon-2);
  cursor: zoom-in;
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease), filter 700ms var(--ease);
  filter: saturate(0.85);
}
.gallery button:hover img,
.gallery button:focus-visible img { transform: scale(1.04); filter: saturate(1); }
.gallery .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--s-4) var(--s-2) var(--s-2);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
  color: var(--white);
  font-size: var(--t-xs);
  text-align: left;
}
.gallery .cap b {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 125;
  color: var(--cyan-hi);
  margin-right: 0.5em;
}

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}
@media (max-width: 480px) {
  .gallery { grid-auto-rows: 150px; gap: var(--s-1); }
  .gallery li.is-tall { grid-row: span 1; }
}

.lightbox {
  width: 100vw;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(5, 8, 11, 0.96);
  color: var(--steel-100);
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-2) var(--gutter);
  font-size: var(--t-sm);
  color: var(--steel);
  font-feature-settings: "tnum";
}
.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 calc(var(--gutter) + 56px);
}
.lightbox__stage img {
  max-width: 100%;
  max-height: calc(100svh - 170px); /* barra superior + pie de foto */
  object-fit: contain;
  border-radius: var(--r-sm);
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__nav--prev { left: var(--gutter); }
.lightbox__nav--next { right: var(--gutter); }
.lightbox__cap {
  max-width: none;
  padding: var(--s-2) var(--gutter) var(--s-3);
  text-align: center;
  font-size: var(--t-sm);
  color: var(--steel-300);
}
.lightbox__cap small { display: block; color: var(--steel); font-size: var(--t-xs); margin-top: 0.25rem; }
@media (max-width: 640px) {
  .lightbox__stage { padding: 0 var(--s-1); }
  .lightbox__nav { top: auto; bottom: -56px; transform: none; }
}

/* ---------- Contacto ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s-6);
  align-items: start;
}
.contact__info { display: grid; gap: var(--s-4); }
.contact__info .h2 { font-size: clamp(2rem, 1.2rem + 2.4vw, 3rem); }
.contact__list { margin: 0; display: grid; gap: var(--s-2); }
.contact__list div { display: grid; gap: 0.1rem; }
.contact__list dt { font-size: var(--t-xs); color: var(--ink-2); }
.contact__list dd { margin: 0; color: var(--ink); }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3) var(--s-3);
  padding: var(--s-5);
  background: var(--white);
  border: var(--line-ink);
  border-radius: var(--r-md);
}
.field { display: grid; gap: 0.4rem; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label,
.field legend {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink);
}
.field .opt { font-weight: 400; color: var(--ink-2); }
.input {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(16, 22, 28, 0.22);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.input:hover { border-color: rgba(16, 22, 28, 0.4); }
.input:focus {
  outline: none;
  border-color: var(--cyan);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(31, 145, 227, 0.2);
}
textarea.input { min-height: 140px; resize: vertical; line-height: 1.5; }
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2310161c' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.field.has-error .input { border-color: var(--error-ink); background: #fff6f5; }
.field__error {
  min-height: 1.2em;
  margin: 0;
  font-size: var(--t-xs);
  color: var(--error-ink);
}
.field__hint { margin: 0; font-size: var(--t-xs); color: var(--ink-2); }

.file-drop {
  position: relative;
  display: grid;
  gap: 0.25rem;
  padding: var(--s-3);
  border: 1.5px dashed rgba(16, 22, 28, 0.3);
  border-radius: var(--r-sm);
  background: var(--paper);
  text-align: center;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.file-drop.is-over,
.file-drop:focus-within { border-color: var(--cyan); background: #e6f2fc; }
.file-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-drop strong { color: var(--ink); font-weight: 600; }
.file-drop span { font-size: var(--t-xs); color: var(--ink-2); }
.file-list { margin: 0.25rem 0 0; padding: 0; list-style: none; font-size: var(--t-xs); color: var(--ink); }
.file-list li { display: flex; justify-content: space-between; gap: var(--s-2); padding: 0.35rem 0; border-bottom: var(--line-ink); }

.check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: var(--t-sm);
  color: var(--ink-2);
}
.check input {
  flex: none;
  width: 20px; height: 20px;
  margin: 0.15rem 0 0;
  accent-color: var(--cyan);
}
.check label { cursor: pointer; }
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

.form__foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
}
.form__status {
  grid-column: 1 / -1;
  display: none;
  gap: 0.25rem;
  padding: var(--s-3);
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
}
.form__status.is-visible { display: grid; }
.form__status strong { font-size: var(--t-base); }
.form__status--ok { background: #e7f7ef; color: #0f5132; border: 1px solid #9fd8bd; }
.form__status--warn { background: #fff7e6; color: #5c3d00; border: 1px solid #f0cf85; }
.form__status--error { background: #fdecec; color: #8a1c17; border: 1px solid #f2b0ac; }
.form__status a { color: inherit; }

@media (max-width: 960px) {
  .contact { grid-template-columns: 1fr; gap: var(--s-5); }
}
@media (max-width: 600px) {
  .form { grid-template-columns: 1fr; padding: var(--s-3); }
}

/* ---------- Footer ---------- */
.footer {
  padding: var(--s-7) 0 var(--s-4);
  border-top: var(--line);
  background: var(--carbon);
  font-size: var(--t-sm);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr));
  gap: var(--s-5);
  padding-bottom: var(--s-6);
}
.footer__brand img { width: 150px; margin-bottom: var(--s-3); }
.footer__brand p { color: var(--steel); max-width: 38ch; }
.footer h2 {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 110;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--s-2);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer a { color: var(--steel-300); text-decoration: none; }
.footer a:hover { color: var(--cyan-hi); }
.footer address { font-style: normal; display: grid; gap: 0.55rem; color: var(--steel-300); }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2);
  padding-top: var(--s-3);
  border-top: var(--line);
  color: var(--steel);
  font-size: var(--t-xs);
}
.footer__legal ul { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.footer__legal button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--steel-300);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.credits { margin-top: var(--s-3); color: var(--steel); font-size: var(--t-xs); }
.credits ol { margin: var(--s-2) 0 0; padding-left: 1.2em; display: grid; gap: 0.3rem; }
.credits a { text-decoration: underline; }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* Diálogo de texto legal */
.modal {
  width: min(680px, calc(100vw - 2rem));
  max-height: calc(100svh - 4rem);
  padding: 0;
  border: var(--line);
  border-radius: var(--r-md);
  background: var(--carbon-2);
  color: var(--steel-100);
}
.modal::backdrop { background: rgba(5, 8, 11, 0.75); }
.modal .drawer__body h2 { font-size: var(--t-lg); }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* ---------- WhatsApp flotante: a la izquierda, la insignia de Netlify ocupa la esquina derecha ---------- */
.wa-float {
  position: fixed;
  left: var(--s-3);
  bottom: var(--s-3);
  z-index: 40;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: var(--r-pill);
  background: #25d366;
  color: var(--white);
  box-shadow: 0 6px 20px rgba(5, 8, 11, 0.35);
  transition: transform var(--dur) var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }
@media (max-width: 520px) {
  .wa-float { left: var(--s-2); bottom: var(--s-2); width: 52px; height: 52px; }
}

/* =========================================================
   Color propio por método: cada ensayo se reconoce por su señal
   VT luz de inspección · DIM azul de plano · MT partícula fluorescente · PT penetrante rojo
   ========================================================= */
:root { --m-vt: #ffb547; --m-dim: var(--cyan-hi); --m-mt: var(--signal-green); --m-pt: #ff5a5f; }
[data-method="vt"], #panel-vt, .svc--vt { --m: var(--m-vt); }
[data-method="dim"], #panel-dim, .svc--dim { --m: var(--m-dim); }
[data-method="mt"], #panel-mt, .svc--mt { --m: var(--m-mt); }
[data-method="pt"], #panel-pt, .svc--pt { --m: var(--m-pt); }

.hero__index a[data-method] b { color: var(--m); }
.svc--vt .svc__code, .svc--dim .svc__code, .svc--mt .svc__code, .svc--pt .svc__code { -webkit-text-stroke-color: var(--m); }

/* Pestañas numeradas en círculo, con el color del método */
.tabs { counter-reset: metodo; }
.tab { counter-increment: metodo; align-items: center; }
.tab::before {
  content: counter(metodo);
  flex: none;
  display: grid;
  place-items: center;
  width: 1.7rem; height: 1.7rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--t-xs);
}
.tab[aria-selected="true"] b,
.tab[aria-selected="true"]::before { color: var(--m); }
.tab[aria-selected="true"]::after { background: var(--m); height: 3px; }

/* Esquema enmarcado con el color del método y su principio */
.panel__figure { border-top: 3px solid var(--m); }
.panel__tag {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  margin: var(--s-2) var(--s-2) 0;
  padding: 0.25rem 0.75rem 0.25rem 0.25rem;
  border: 1px solid color-mix(in srgb, var(--m) 45%, transparent);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--m) 12%, #0f151b);
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--white);
}
.panel__num {
  display: grid;
  place-items: center;
  width: 1.4rem; height: 1.4rem;
  border-radius: 50%;
  background: var(--m);
  color: var(--carbon);
  font-family: var(--f-display);
  font-weight: 700;
}
.panel__intro h3 { color: var(--m); }
.panel .dg-mark circle { stroke: var(--m); }
.panel .dg-mark text { fill: var(--m); }
.qa dd li::marker { color: var(--m, var(--cyan-hi)); }
.qa dt::before {
  content: "";
  display: inline-block;
  width: 0.5rem; height: 0.5rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--m, var(--cyan-hi));
  vertical-align: 0.15em;
}

/* Detalles de los esquemas inspirados en láminas técnicas */
.dg-step { stroke: var(--m-pt); stroke-width: 1.6; fill: none; }
.dg-step-head { fill: var(--m-pt); }
.dg-pole text { fill: var(--white); font-family: var(--f-display); font-weight: 700; font-size: 13px; }
.dg-pole--n { fill: #c8343a; }
.dg-pole--s { fill: #1f6fd1; }
#panel-mt .dg-flux { stroke: var(--m-mt); stroke-opacity: 0.75; stroke-dasharray: 6 5; }

/* Resumen comparativo de alcance */
.reach { margin-top: var(--s-6); }
.reach__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-2);
  margin: var(--s-3) 0 0;
  padding: 0;
  list-style: none;
}
.reach__list li {
  display: grid;
  gap: var(--s-1);
  align-content: start;
  padding: var(--s-3);
  border: var(--line);
  border-top: 3px solid var(--m);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--m) 6%, var(--carbon-2));
}
.reach__list b {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 125;
  font-size: var(--t-lg);
  color: var(--m);
}
.reach__list span { font-size: var(--t-sm); color: var(--steel-300); }
.reach__note { margin: var(--s-3) 0 0; font-size: var(--t-xs); color: var(--steel); max-width: 70ch; }
@media (max-width: 960px) { .reach__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .reach__list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) { .tab::before { display: none; } }

/* ---------- Esquemas animados de los métodos ---------- */
/* VT: haz de luz y realce de discontinuidades */
.dg-cone { fill: rgba(255, 181, 71, 0.08); }
.dg-spot { fill: var(--m-vt); opacity: 0.28; }
.dg-hl { fill: none; stroke: var(--m-vt); stroke-width: 1.6; }
.dg-thin[data-x], .dg-text[data-x] { transition: stroke var(--dur) var(--ease), fill var(--dur) var(--ease); }
.dg-thin.is-lit { stroke: var(--m-vt); }
.dg-text.is-lit { fill: var(--m-vt); }
/* DIM: calibrador y banda de tolerancia */
.dg-caliper rect { fill: rgba(82, 196, 255, 0.14); stroke: var(--cyan-hi); stroke-width: 1.2; }
.dg-tol { fill: rgba(95, 212, 160, 0.35); }
.dg-marker { fill: var(--ok); }
.dg-text--ok { fill: var(--ok); }
.dg-text--s { font-size: 10px; }
.dg-m .dg-text--s { font-size: 11px; }
/* MT: el campo de fuga crece desde la grieta */
.dg-leak { transform-box: fill-box; transform-origin: 50% 100%; }
/* PT: etapas */
.dg-ring { fill: none; stroke: var(--steel-100); stroke-width: 1.4; stroke-dasharray: 3 3; }
.dg-glint { fill: rgba(255, 255, 255, 0.75); }
.dg-dwell { fill: var(--m-pt); }
.dg-cloth { fill: #e9ecef; }
.dg-fill, .dg-bleed { transform-box: fill-box; }
.dg-fill { transform-origin: 50% 0; }
.dg-bleed { transform-origin: 50% 50%; }
.panel .dg-mark.is-active circle { fill: var(--m); }
.panel .dg-mark.is-active text { fill: var(--carbon); }

/* Controles de reproducción */
.anim-ctrl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-1);
  padding: var(--s-1) var(--s-2);
  border-top: var(--line);
}
.anim-ctrl[hidden] { display: none; }
.anim-btn,
.anim-stage {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0 0.85rem;
  border: var(--line);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--steel-100);
  font: 600 var(--t-xs) / 1 var(--f-body);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.anim-btn { text-transform: uppercase; letter-spacing: 0.05em; }
.anim-btn svg { width: 11px; height: 11px; flex: none; }
.anim-btn:hover,
.anim-stage:hover { border-color: var(--m); color: var(--white); }
.anim-btn[aria-pressed="true"] { border-color: var(--m); color: var(--m); }
.anim-progress {
  flex: 1 1 120px;
  height: 4px;
  margin-left: var(--s-1);
  border-radius: 2px;
  background: rgba(185, 195, 204, 0.16);
  overflow: hidden;
}
.anim-progress span { display: block; width: 0; height: 100%; background: var(--m); }
.anim-stages { display: flex; flex-wrap: wrap; gap: 0.4rem; width: 100%; }
.anim-stage[aria-current="step"] { background: var(--m); border-color: var(--m); color: var(--carbon); }
@media (max-width: 520px) {
  .anim-ctrl { gap: 0.35rem; padding: var(--s-1) 0.75rem; }
  .anim-btn { padding: 0 0.5rem; gap: 0.3rem; letter-spacing: 0; }
  .anim-progress { flex-basis: 100%; margin: var(--s-1) 0 0; }
}
