/* ==========================================================================
   SophysMed · Sophy’s 360 — sitio corporativo
   Hoja única. Sin estilos en línea (CSP: style-src 'self' fonts.googleapis.com).

   Movimiento:
   - Todo vive bajo `.js` + prefers-reduced-motion: no-preference. Sin JS o con
     movimiento reducido, cada elemento queda en su estado final.
   - Los bucles infinitos corren sobre capas HTML (transform / opacity), que el
     navegador compone fuera del hilo principal. La única animación sobre SVG
     que se repite es el cometa de la ruta (stroke-dashoffset), y sólo 4 veces.
   - «Pausar animaciones» (html.motion-paused) detiene todos los bucles; fuera de
     pantalla o con la pestaña oculta se congelan (animation-play-state).
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: light dark;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --bg: #ffffff;
  --bg-soft: #f4f8f6;
  --surface: #ffffff;
  --line: #e0e9e4;
  --line-mid: #c9d8d0;
  --line-strong: #7a8690;          /* 3.7:1 sobre blanco: borde de componente */
  --ink: #3a4149;                  /* grafito de marca, 10.3:1 */
  --ink-strong: #2b3137;
  --muted: #5c6670;                /* pizarra de marca, 5.9:1 */
  --green: #1e9a5f;                /* verde de marca: sólo texto grande o gráficos */
  --green-bright: #2bb673;
  --green-deep: #128251;
  --green-text: #117a4c;           /* verde para texto pequeño, 5.4:1 */
  --green-tint: #e8f5ee;
  --accent-a: #1e9a5f;
  --accent-b: #128251;
  --btn-bg: #128251;               /* blanco sobre #128251 = 4.8:1 */
  --btn-bg-hover: #0d6a41;
  --btn-fg: #ffffff;
  --focus: #128251;
  --header-bg: rgba(255, 255, 255, .95);   /* opaco: el texto conserva 4.5:1 sobre el bloque oscuro de Onco Track */
  --nav-current: #0d6a41;          /* 6.7:1 sobre blanco */
  --shadow-sm: 0 1px 2px rgba(20, 44, 33, .05), 0 4px 14px -6px rgba(20, 44, 33, .08);
  --shadow-md: 0 18px 40px -20px rgba(18, 64, 42, .28), 0 2px 6px rgba(20, 44, 33, .05);

  /* tonos derivados (sin color-mix, para navegadores antiguos) */
  --announce-line: #b3dbc5;
  --card-hover-line: #a3d6ba;
  --ring-dash: #7fcca4;
  --underline: #6fcb9c;
  --card-ring: #eaf6ef;

  /* logotipo */
  --mk-ink: #3a4149;
  --mk-slate: #5c6670;
  --mk-dot: #2bb673;
  --mk-ring-a: #24a769;
  --mk-ring-b: #128251;
  --bw-num: #1e9a5f;
  --bw-tag: #5c6670;

  /* órbita */
  --orbit-line: #cfe2d8;
  --orbit-dots: #b5d3c3;
  --orbit-glow: rgba(43, 182, 115, .2);
  --chip-bg: rgba(255, 255, 255, .94);
  --hero-glow: rgba(43, 182, 115, .10);
  --shimmer-edge: rgba(43, 182, 115, .14);
  --shimmer-core: rgba(255, 255, 255, .7);

  /* bloques */
  --log-bg: linear-gradient(135deg, #eef8f2 0%, #f8fbf9 55%, #eef6f1 100%);
  --route-road: #dcebe3;
  --route-dash: #128251;
  --node-bg: #ffffff;

  --oc-bg: radial-gradient(120% 140% at 100% 0%, #16553a 0%, #0f2c20 42%, #0b1d16 100%);
  --oc-border: transparent;
  --oc-ink: #f2f8f5;
  --oc-muted: #bdcfc6;
  --oc-eyebrow: #74e2aa;

  --cycle-bg: #f4f8f6;
  --step-bg: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b110f;
    --bg-soft: #0f1714;
    --surface: #131c18;
    --line: #23322b;
    --line-mid: #33463d;
    --line-strong: #71827a;
    --ink: #e6ede9;
    --ink-strong: #f3f7f5;
    --muted: #a8b5af;
    --green: #3cc985;
    --green-bright: #3fd68d;
    --green-deep: #2bb673;
    --green-text: #5ad69a;
    --green-tint: rgba(43, 182, 115, .14);
    --accent-a: #4fd89a;
    --accent-b: #2bb673;
    --btn-bg: #2bb673;             /* texto oscuro sobre verde claro = 7.5:1 */
    --btn-bg-hover: #45cf8c;
    --btn-fg: #05140c;
    --focus: #6fe3a8;
    --header-bg: rgba(11, 17, 15, .84);
    --nav-current: #5ad69a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-md: 0 18px 44px -20px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .3);

    --announce-line: #2d5c45;
    --card-hover-line: #2f6a4d;
    --ring-dash: #2f8a5f;
    --underline: #34a870;
    --card-ring: rgba(43, 182, 115, .10);

    --mk-ink: #e8eeeb;
    --mk-slate: #8e9aa4;
    --mk-dot: #3fd68d;
    --mk-ring-a: #2bb673;
    --mk-ring-b: #179159;
    --bw-num: #3cc985;
    --bw-tag: #a8b5af;

    --orbit-line: #22392e;
    --orbit-dots: #2a4a3a;
    --orbit-glow: rgba(43, 182, 115, .16);
    --chip-bg: rgba(19, 28, 24, .94);
    --hero-glow: rgba(43, 182, 115, .10);
    --shimmer-edge: rgba(63, 214, 141, .08);
    --shimmer-core: rgba(63, 214, 141, .22);

    --log-bg: linear-gradient(135deg, #12231b 0%, #0f1a16 60%, #11201a 100%);
    --route-road: #1d3128;
    --route-dash: #3fd68d;
    --node-bg: #0f1a16;

    --oc-bg: radial-gradient(120% 140% at 100% 0%, #1a4a35 0%, #13281f 45%, #0f1b16 100%);
    --oc-border: #24382e;
    --oc-ink: #f2f8f5;
    --oc-muted: #b7c9c0;
    --oc-eyebrow: #74e2aa;

    --cycle-bg: #0f1714;
    --step-bg: #131c18;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--ink-strong);
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
svg { flex-shrink: 0; }
a { color: inherit; }
button { font: inherit; }

main:focus { outline: none; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 600px)  { .container { padding-inline: 24px; } }
@media (min-width: 1024px) { .container { padding-inline: 40px; } }

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: .7rem 1.1rem;
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

/* iconos de línea */
.i {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 3. Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 48px;
  padding: .75rem 1.35rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn .i { width: 1.2em; height: 1.2em; }
.btn .i-arrow { transition: transform .25s ease; }
.btn:hover .i-arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: 0 10px 22px -12px rgba(18, 130, 81, .75);
}
.btn-primary:hover { background: var(--btn-bg-hover); transform: translateY(-1px); }

.btn-ghost {
  background: var(--surface);
  color: var(--ink-strong);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--green-deep); color: var(--green-text); transform: translateY(-1px); }

.btn-bright {
  background: #2bb673;
  color: #05140c;
  box-shadow: 0 12px 28px -14px rgba(43, 182, 115, .9);
}
.btn-bright:hover { background: #45cf8c; transform: translateY(-1px); }

.btn-sm { min-height: 44px; padding: .5rem 1rem; font-size: .9375rem; }
.btn-lg { min-height: 54px; padding: .85rem 1.45rem; font-size: 1.0625rem; }

/* ---------- 4. Logotipo (marca + palabra) ---------- */
.mk-green     { fill: none; stroke-width: 34; }
.mk-slate-arc { fill: none; stroke: var(--mk-slate); stroke-width: 34; }
.mk-arrow     { fill: var(--mk-slate); }
.mk-check     { fill: none; stroke: var(--mk-ink); stroke-width: 29; stroke-linecap: round; stroke-linejoin: round; }
.mk-dot       { fill: var(--mk-dot); transform-box: fill-box; transform-origin: center; }
.mk-stop-a    { stop-color: var(--mk-ring-a); }
.mk-stop-b    { stop-color: var(--mk-ring-b); }
.mk-draw      { fill: none; stroke: #fff; stroke-width: 46; }

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-width: 44px;
  min-height: 44px;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
}
.brand .mark { width: 36px; height: 36px; }
.brand-text { display: grid; justify-items: start; line-height: 1; }
.brand-word {
  display: block;
  width: 100%;
  padding-bottom: .1em;
  border-bottom: 2px solid var(--green-bright);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.005em;
  white-space: nowrap;
  color: var(--mk-ink);
}
.bw-num { color: var(--bw-num); }
.brand-tag {
  display: block;
  margin-top: .55em;
  font-size: .625rem;              /* 10 px: nunca menos */
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--bw-tag);
}

/* cabecera: sólo la palabra; el bloque oficial completo en pantallas anchas */
.site-header .brand-tag { display: none; }
@media (min-width: 1024px) {
  .brand .mark { width: 42px; height: 42px; }
  .brand-word { font-size: 1.36rem; }
}
@media (min-width: 1280px) {
  .site-header .brand .mark { width: 46px; height: 46px; }
  .site-header .brand-tag { display: block; margin-top: .5em; letter-spacing: .14em; }
}

/* ---------- 5. Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(12, 40, 26, .45);
}

/* barra de progreso de lectura: eco del subrayado del logotipo */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  display: none;
  background: linear-gradient(90deg, var(--green-bright), var(--green-deep));
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .scroll-progress {
      display: block;
      animation: grow-x linear both;
      animation-timeline: scroll(root);
    }
  }
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-height: 64px;
  padding-block: 10px;
}
.header-inner .brand { margin-right: auto; }
.header-actions { display: flex; align-items: center; gap: 8px; }

.header-cta { padding-inline: .95rem; white-space: nowrap; }
.header-cta .i { width: 1.1em; height: 1.1em; }

/* nombre largo del botón desde 500 px (medido: 455 px de contenido caben en 468);
   por debajo se lee «Onco Track» y el nombre accesible sigue siendo el completo */
@media (max-width: 499.98px) {
  .cta-long {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
}

@media (max-width: 419.98px) {
  .site-header .brand { gap: .5rem; }
  .site-header .brand .mark { width: 32px; height: 32px; }
  .site-header .brand-word { font-size: 1.02rem; }
  .header-cta { padding-inline: .85rem; }
  .header-cta .i { display: none; }
}
@media (max-width: 374.98px) {
  .header-inner { column-gap: 8px; }
  .header-actions { gap: 6px; }
  .site-header .brand { gap: .4rem; }
  .site-header .brand .mark { width: 30px; height: 30px; }
  .site-header .brand-word { font-size: .95rem; }
  .header-cta { padding-inline: .7rem; font-size: .875rem; }
}
/* 320–349 px: todo un punto más compacto; la palabra sigue visible */
@media (max-width: 349.98px) {
  .site-header .brand { gap: .35rem; }
  .site-header .brand .mark { width: 28px; height: 28px; }
  .site-header .brand-word { font-size: .9rem; }
  .header-cta { padding-inline: .6rem; font-size: .8125rem; }
}
/* sólo en pantallas por debajo de 310 px la palabra cede su sitio al botón */
@media (max-width: 309.98px) {
  .site-header .brand-text { display: none; }
}

.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 4px; }
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .8rem;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: .8rem;
  right: .8rem;
  bottom: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--green-bright);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s ease;
}
.site-nav a:hover::after,
.site-nav a[aria-current="true"]::after { transform: scaleX(1); }
.site-nav a[aria-current="true"] { color: var(--nav-current); }

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-strong);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
}
.menu-icon { position: relative; display: block; width: 18px; height: 14px; }
.menu-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s ease, opacity .2s ease;
}
.menu-icon span:nth-child(1) { top: 0; }
.menu-icon span:nth-child(2) { top: 6px; }
.menu-icon span:nth-child(3) { top: 12px; }
.menu-btn[aria-expanded="true"] .menu-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
/* «Menú» visible cuando hay sitio; por debajo, sólo para lectores de pantalla */
@media (max-width: 639.98px) {
  .menu-btn { padding: 0; width: 44px; }
  .menu-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
}

/* Sin JS y en pantallas estrechas: los enlaces quedan visibles en una segunda fila.
   Con el menú ya inicializado (html.has-menu) se pliegan tras el botón. */
@media (max-width: 1023.98px) {
  .site-nav { order: 3; width: 100%; }
  .site-nav a { padding-inline: .6rem; }

  .has-menu .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    order: 0;
    width: auto;
    padding: 6px 16px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -30px rgba(0, 0, 0, .35);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }
  .has-menu .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .22s ease, transform .22s ease, visibility 0s;
  }
  .has-menu .site-nav ul { display: grid; gap: 0; }
  .has-menu .site-nav a {
    display: flex;
    min-height: 54px;
    padding: 0 6px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.0625rem;
  }
  .has-menu .site-nav li:last-child a { border-bottom: 0; }
  .has-menu .site-nav a::after { left: 6px; right: auto; width: 28px; bottom: 12px; }
  .has-menu .menu-btn { display: inline-flex; }
  .has-menu .header-inner { flex-wrap: nowrap; }
}
@media (min-width: 600px) and (max-width: 1023.98px) {
  .has-menu .site-nav { padding-inline: 24px; }
}

@media (min-width: 1024px) {
  .header-inner { min-height: 76px; flex-wrap: nowrap; gap: 20px; }
  .site-nav { margin-left: auto; }
  .header-inner .brand { margin-right: 0; }
}

/* ---------- 6. Utilidades de sección ---------- */
.section { padding-block: clamp(52px, 5.4vw, 76px); }
.section--tight { padding-block: clamp(12px, 1.5vw, 24px) clamp(20px, 2.5vw, 32px); }

.eyebrow {
  display: inline-flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--green-text);
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  margin-top: .44em;               /* centrado en la primera línea (line-height 1.5) */
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 4px var(--green-tint);
}

.section-head { max-width: 640px; }
.section-head h2 {
  margin-top: 12px;
  font-size: clamp(1.9rem, 1.25rem + 2.3vw, 2.875rem);
  line-height: 1.12;
}
.section-lead {
  margin-top: 14px;
  font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  color: var(--muted);
}
.section-head--center { max-width: 820px; margin-inline: auto; text-align: center; }

/* ---------- 7. Hero ---------- */
.hero {
  --hero-pt: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: min(calc(100vh - 64px), 720px);
  min-height: min(calc(100svh - 64px), 720px);
  padding-block: var(--hero-pt) 36px;
  overflow: clip;
  isolation: isolate;
}
/* resplandor: misma geometría que un disco de min(1100px, 120vw) anclado arriba a la
   derecha, pintado sobre la caja del hero y desvanecido antes de su borde inferior
   (el recorte de overflow ya no deja una costura horizontal) */
.hero::before {
  --glow: min(1100px, 120vw);
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle calc(var(--glow) / 2) at calc(122% - var(--glow) / 2) calc(var(--glow) / 2 - 18%), var(--hero-glow), transparent 72%);
  -webkit-mask-image: linear-gradient(#000 58%, transparent 96%);
  mask-image: linear-gradient(#000 58%, transparent 96%);
  pointer-events: none;
}
.hero-top { display: flex; }

.announce {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  max-width: 100%;
  min-height: 44px;
  padding: 5px 16px 5px 6px;
  overflow: clip;
  isolation: isolate;
  border: 1px solid var(--announce-line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink-strong);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.announce:hover { border-color: var(--green-bright); box-shadow: var(--shadow-md); }
.announce::after {           /* destello */
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 55%;
  background: linear-gradient(100deg, transparent 0%, var(--shimmer-edge) 42%, var(--shimmer-core) 50%, var(--shimmer-edge) 58%, transparent 100%);
  transform: translateX(-130%);
  pointer-events: none;
}
.announce-badge {
  flex-shrink: 0;
  padding: .28rem .7rem;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.announce .i-arrow { width: 1.1em; height: 1.1em; color: var(--green-text); transition: transform .25s ease; }
.announce:hover .i-arrow { transform: translateX(3px); }

.hero-grid {
  flex: 1;
  display: grid;
  align-items: center;
  gap: 32px;
  padding-top: 24px;
}

.hero-copy { max-width: 640px; }
.hero h1 {
  margin-top: 16px;
  font-size: clamp(2.35rem, 1.1rem + 4vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -.03em;
}
.accent {
  position: relative;
  display: inline-block;
  color: var(--accent-b);
  background: linear-gradient(120deg, var(--accent-a), var(--accent-b));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.accent::after {
  content: "";
  position: absolute;
  left: .04em;
  right: .08em;
  bottom: -.02em;
  height: .075em;
  border-radius: 1em;
  background: var(--green-bright);
  transform-origin: left center;
}
/* alto contraste e impresión: el «360°» nunca se queda sin tinta */
@media (forced-colors: active) {
  .accent { background: none; -webkit-text-fill-color: currentColor; color: CanvasText; }
  .accent::after { background: CanvasText; }
}
.lead {
  margin-top: 20px;
  max-width: 35em;
  font-size: clamp(1.0625rem, .98rem + .35vw, 1.25rem);
  line-height: 1.7;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-actions .btn { white-space: nowrap; }
/* cuando la pareja no cabe en una fila (copia < 600 px) se apila con el mismo ancho */
.hero-copy { container-type: inline-size; }
@container (max-width: 599.98px) {
  .hero-actions { display: grid; grid-template-columns: minmax(0, max-content); }
}
@media (max-width: 559.98px) {
  .hero-actions { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { width: 100%; }
}
@media (max-width: 359.98px) {
  .btn-lg { gap: .5em; padding-inline: .9rem; font-size: .9375rem; }
}

.hero-visual { display: flex; justify-content: center; padding-top: 16px; }  /* los ecos de la órbita no rozan los botones */

/* control de pausa: discreto, junto al anuncio en escritorio y al pie del hero en móvil */
.hero-foot { display: flex; justify-content: center; margin-top: 16px; }
.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: 0 1rem 0 .85rem;
  border: 1px solid var(--line-strong);   /* 3.7:1: el control se distingue de la decoración */
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.motion-toggle .i { width: 1.2em; height: 1.2em; stroke-width: 2.6; }
.motion-toggle:hover { color: var(--green-text); border-color: var(--green-deep); }
/* en pausa el botón dice lo que hará: «Reanudar animaciones» con icono de reproducir */
.mt-resume,
.motion-paused .mt-pause { display: none; }
.motion-paused .mt-resume { display: inline; }
.motion-paused .motion-toggle {
  background: var(--green-tint);
  border-color: var(--green-deep);
  color: var(--green-text);
}
.motion-toggle[hidden] { display: none; }
/* 560–959 px: los chips van sobre la órbita y su eco exterior baja ~9 % del ancho */
@media (min-width: 560px) and (max-width: 959.98px) {
  .hero-foot { margin-top: 44px; }
}

@media (min-width: 960px) {
  .hero-foot {
    position: absolute;
    top: var(--hero-pt);
    left: 0;
    right: 0;
    justify-content: flex-end;
    margin: 0 auto;
    pointer-events: none;
  }
  .hero-foot .motion-toggle { pointer-events: auto; }
}

/* órbita */
.orbit-wrap { position: relative; width: min(100%, 460px); }
.orbit { position: relative; width: 100%; aspect-ratio: 1; }
.orbit-svg,
.orbit-pulse { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit-mark {
  position: absolute;
  left: 23.4375%;
  top: 23.4375%;
  width: 53.125%;
  height: 53.125%;
  overflow: visible;
}
.orbit-glow {
  position: absolute;
  left: 12.5%;
  top: 12.5%;
  width: 75%;
  height: 75%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--orbit-glow), transparent);
}

.o-echo        { fill: none; stroke: var(--orbit-line); stroke-width: 1; opacity: .55; }
.o-echo--far   { opacity: .3; }
.o-ring        { fill: none; stroke: var(--orbit-line); stroke-width: 1.6; }
.o-ring-dotted { fill: none; stroke: var(--orbit-dots); stroke-width: 2; stroke-dasharray: 1 11; stroke-linecap: round; }
.o-tail        { fill: none; stroke: url(#o-tail-grad); stroke-width: 3; stroke-linecap: round; }
.o-pulse-core  { fill: #ffffff; }
.orbit-pulse   { transform: rotate(36deg); transform-origin: 50% 50%; }  /* reposo: entre «Logística» y «Talento humano» */

/* nodos de la órbita: capas HTML para que su pulso se componga en la GPU */
.o-node {
  position: absolute;
  width: 2.6%;
  aspect-ratio: 1;
  margin: -1.3% 0 0 -1.3%;
  border: 2.5px solid var(--green);
  border-radius: 50%;
  background: var(--surface);
}
.o-node::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px solid var(--green-bright);
  border-radius: 50%;
  opacity: 0;
}
.o-n1 { left: 82.27%; top: 24.8%; }
.o-n2 { left: 75.2%;  top: 82.27%; }
.o-n3 { left: 17.73%; top: 75.2%; }
.o-n4 { left: 24.8%;  top: 17.73%; }

.orbit-chips { list-style: none; }
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .42rem .9rem .42rem .62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--chip-bg);
  box-shadow: var(--shadow-md);
  color: var(--ink-strong);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.chip-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 4px var(--green-tint);
}
.chip::after {                 /* destello cuando pasa el pulso */
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px solid var(--green-bright);
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
}

/* chips sobre la órbita en pantallas medianas y grandes */
@media (min-width: 560px) {
  .orbit-chips { position: absolute; inset: 0; }
  .chip { --chip-t: translate(-50%, -50%); position: absolute; transform: var(--chip-t); }
  .c1 { left: 82.26%; top: 24.8%; }
  .c2 { left: 75.2%;  top: 82.26%; }
  .c3 { left: 17.74%; top: 75.2%; }
  .c4 { left: 24.8%;  top: 17.74%; }
}
/* en móvil: fila debajo de la órbita, los nodos quedan visibles */
@media (max-width: 559.98px) {
  .orbit-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
  }
  .chip { --chip-t: translate(0, 0); font-size: .8125rem; box-shadow: var(--shadow-sm); }
}

@media (min-width: 960px) {
  .hero { --hero-pt: 24px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    gap: 32px;
    padding-top: 8px;
  }
  .hero-visual { justify-content: flex-end; padding-top: 0; }
  .orbit-wrap { width: min(100%, 540px); }
}
@media (min-width: 1024px) {
  .hero {
    min-height: min(calc(100vh - 76px), 690px);
    min-height: min(calc(100svh - 76px), 690px);
    padding-bottom: 40px;
  }
}

/* ---------- 8. Anuncio: servicios logísticos ---------- */
.logistics-card {
  position: relative;
  display: grid;
  gap: 24px;
  padding: clamp(24px, 4.5vw, 56px);
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--log-bg);
}
.badge-new {
  display: inline-block;
  padding: .3rem .8rem;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.logistics-copy h2 {
  margin-top: 14px;
  font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.625rem);
  line-height: 1.12;
}
.logistics-text {
  margin-top: 14px;
  max-width: 34em;
  font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  color: var(--muted);
}
.logistics-copy .btn { margin-top: 24px; }
@media (max-width: 559.98px) { .logistics-copy .btn { width: 100%; } }

.logistics-art { position: relative; }
.logistics-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.lg-road   { fill: none; stroke: var(--route-road); stroke-width: 14; stroke-linecap: round; }
.lg-march  { fill: none; stroke: var(--route-dash); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 12; opacity: .8; }
.lg-comet  { fill: none; stroke: var(--green-bright); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 9 200; opacity: 0; }
.lg-node   { fill: var(--node-bg); stroke: var(--green-bright); stroke-width: 3; }
.lg-node--end { fill: var(--btn-bg); stroke: var(--btn-bg); }
.lg-ico    { fill: none; stroke: var(--green-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lg-ico--end { stroke: var(--btn-fg); }
/* halos: capas HTML sobre cada parada (posiciones = coordenadas del viewBox) */
.lg-halo {
  position: absolute;
  width: 9.6%;
  aspect-ratio: 1;
  margin: -4.8% 0 0 -4.8%;
  border: 2px solid var(--green-bright);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.lg-h1 { left: 7.2%;  top: 80.39%; }
.lg-h2 { left: 48.4%; top: 33.33%; }
.lg-h3 { left: 92.8%; top: 20.59%; }

@media (min-width: 900px) {
  .logistics-card { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 48px; }
}

/* ---------- 9. Servicios ---------- */
.service-grid {
  list-style: none;
  display: grid;
  gap: 18px;
  margin-top: 40px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 600px)  { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.service-grid > li { display: flex; }
.service-card {
  position: relative;
  isolation: isolate;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 24px 18px;
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .35s ease;
}
/* arco abierto en la esquina: eco del anillo de 360° del logotipo */
.service-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -84px;
  right: -84px;
  width: 168px;
  height: 168px;
  border: 12px solid var(--card-ring);
  border-top-color: transparent;
  border-radius: 50%;
  transition: transform .9s cubic-bezier(.65, 0, .35, 1);
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--card-hover-line);
}
.service-card:hover::after { transform: rotate(-90deg); }
.service-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--green-tint);
  color: var(--green-deep);
}
.service-icon .i { width: 28px; height: 28px; stroke-width: 1.8; }
.service-icon::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1.5px dashed var(--ring-dash);
  border-radius: 50%;
  opacity: 0;
  transform: rotate(-60deg) scale(.85);
  transition: opacity .35s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
}
.service-card:hover .service-icon::after { opacity: 1; transform: rotate(60deg) scale(1); }
.service-card h3 { margin-top: 20px; font-size: 1.1875rem; line-height: 1.3; }
.service-card p { margin-top: 8px; margin-bottom: 10px; color: var(--muted); }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 44px;
  margin-top: auto;
  color: var(--green-text);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
}
.card-link .i { width: 1.1em; height: 1.1em; transition: transform .25s ease; }
.card-link:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--underline); }
.card-link:hover .i { transform: translateX(3px); }

/* ---------- 10. Cómo trabajamos ---------- */
.cycle-section { background: var(--cycle-bg); overflow: clip; }  /* el corredor rotado no genera desplazamiento lateral */
.cycle-stage { --ring: clamp(300px, 24vw, 344px); --row: 6rem; position: relative; margin-top: 32px; }

.cycle-ring {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 1;
  margin: 0 auto 24px;
}
.cycle-ring > svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.cy-ring-soft  { fill: none; stroke: var(--orbit-line); stroke-width: 3; }
.cy-ring-inner { fill: none; stroke: var(--orbit-dots); stroke-width: 1.5; stroke-dasharray: 1 9; stroke-linecap: round; }
.cy-chev       { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.cy-runner     { transform-origin: 50% 50%; }
.cy-tail       { fill: none; stroke: url(#cy-tail-grad); stroke-width: 5; stroke-linecap: round; }
.cy-dot        { fill: var(--green-bright); }
.cy-dot-glow   { fill: var(--green-bright); opacity: .22; }
.cy-center     { fill: var(--green); font: 700 54px/1 var(--font); letter-spacing: -.02em; text-anchor: middle; }
.cy-center-sub { fill: var(--muted); font: 600 12px/1 var(--font); letter-spacing: .18em; text-anchor: middle; }

/* nodos numerados: capas HTML (encendido = opacidad de ::before, halo = ::after) */
.cy-node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 12%;
  aspect-ratio: 1;
  margin: -6% 0 0 -6%;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: var(--surface);
  color: var(--green-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}
.cy-node::before,
.cy-node::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  opacity: 0;
}
.cy-node::before {
  content: attr(data-n);
  display: grid;
  place-items: center;
  background: var(--btn-bg);
  color: var(--btn-fg);
}
.cy-node::after { border: 2px solid var(--green-bright); }
.cy-k0 { left: 50%;   top: 12.5%; }
.cy-k1 { left: 87.5%; top: 50%; }
.cy-k2 { left: 50%;   top: 87.5%; }
.cy-k3 { left: 12.5%; top: 50%; }

.cycle-steps {
  list-style: none;
  display: grid;
  gap: 12px;
}
.step {
  position: relative;
  isolation: isolate;
  padding: 16px 20px 16px 66px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--step-bg);
}
.step-num {
  position: absolute;
  left: 18px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green-text);
  font-size: .9375rem;
  font-weight: 700;
}
.step h3 { position: relative; display: inline-block; font-size: 1.1875rem; line-height: 1.35; }
.step h3::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  border-radius: 2px;
  background: var(--green-bright);
  transform: scaleX(0);
  transform-origin: left center;
}
.step p { margin-top: 4px; color: var(--muted); }
.step::before {                 /* resalte del paso activo (sólo opacidad) */
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1px;
  border: 1.5px solid var(--green-bright);
  border-radius: inherit;
  background: var(--green-tint);
  opacity: 0;
  pointer-events: none;
}
.step-num::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid var(--green-bright);
  border-radius: 50%;
  opacity: 0;
}

/* 2×2 en orden natural de lectura (1 2 / 3 4); el anillo numerado ya muestra el giro */
@media (min-width: 600px) and (max-width: 1023.98px) {
  .cycle-steps { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .cycle-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--ring);
    margin: 0;
    transform: translate(-50%, -50%);
  }
  .cy-node { font-size: 1.0625rem; }
  .cycle-steps {
    grid-template-columns: 1fr var(--ring) 1fr;
    grid-template-rows: var(--row) var(--ring) var(--row);
    gap: 0;
  }
  .step {
    max-width: 290px;
    padding: 0;
    border: 0;
    background: none;
  }
  .step::before { display: none; }
  .step-num { display: none; }
  .cycle-stage { --row: 5rem; margin-top: 28px; }
  .step--n, .step--s { max-width: 460px; }  /* a lo ancho: su texto cabe en una línea */
  .step--n { grid-column: 1 / -1; grid-row: 1; justify-self: center; align-self: end; text-align: center; padding-bottom: 10px; }
  .step--e { grid-column: 3; grid-row: 2; justify-self: start; align-self: center; padding-left: 24px; }
  .step--s { grid-column: 1 / -1; grid-row: 3; justify-self: center; align-self: start; text-align: center; padding-top: 10px; }
  .step--w { grid-column: 1; grid-row: 2; justify-self: end; align-self: center; text-align: right; padding-right: 24px; }
  .step--n h3::after, .step--s h3::after { transform-origin: center; }
  .step--w h3::after { transform-origin: right center; }
  .step h3 { font-size: 1.3125rem; }
}

/* ---------- 11. Onco Track ---------- */
.onco-card {
  --focus: #9ff0c6;              /* anillo de foco visible sobre la superficie oscura */
  position: relative;
  display: grid;
  gap: 32px;
  padding: clamp(28px, 4.4vw, 52px);
  overflow: clip;
  isolation: isolate;
  border: 1px solid var(--oc-border);
  border-radius: 32px;
  background: var(--oc-bg);
  color: var(--oc-ink);
}
.onco-card::before,
.onco-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.onco-card::before {
  width: 760px;
  aspect-ratio: 1;
  right: -300px;
  top: -380px;
  border: 1px solid rgba(255, 255, 255, .1);
  outline: 1px solid rgba(255, 255, 255, .06);
  outline-offset: 80px;
}
.onco-card::after {
  width: 420px;
  aspect-ratio: 1;
  left: -200px;
  bottom: -260px;
  border: 1px dashed rgba(116, 226, 170, .22);
}
.eyebrow--dark { color: var(--oc-eyebrow); }
.eyebrow--dark .eyebrow-dot { background: #3fd68d; box-shadow: 0 0 0 4px rgba(63, 214, 141, .16); }
.onco-copy h2 {
  margin-top: 12px;
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.5rem);
  line-height: 1.05;
  color: #ffffff;
}
.onco-text {
  margin-top: 14px;
  max-width: 30em;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  color: var(--oc-muted);
}
.onco-copy .btn { margin-top: 26px; }
@media (max-width: 559.98px) { .onco-copy .btn { width: 100%; } }
.onco-note {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-top: 18px;
  max-width: 30em;
  font-size: 1rem;
  color: var(--oc-muted);
}
.onco-note .i { width: 1.15em; height: 1.15em; margin-top: .22em; color: var(--oc-eyebrow); }

.onco-art { position: relative; }
.onco-art > svg { display: block; width: 100%; height: auto; }
.oc-win   { fill: rgba(255, 255, 255, .045); stroke: rgba(255, 255, 255, .16); stroke-width: 1.5; }
.oc-sep   { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 1.5; }
.oc-light { fill: rgba(255, 255, 255, .22); }
.oc-url   { fill: rgba(0, 0, 0, .28); stroke: rgba(255, 255, 255, .1); stroke-width: 1; }
.oc-lock  { fill: none; stroke: #7fdcac; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.oc-url-text { fill: #d3e3da; font: 500 12px/1 var(--font); letter-spacing: .01em; dominant-baseline: middle; }
.oc-side  { fill: rgba(255, 255, 255, .13); }
.oc-side--on { fill: #3fd68d; }
.oc-head  { fill: rgba(255, 255, 255, .34); }
.oc-pill  { fill: rgba(63, 214, 141, .22); stroke: rgba(63, 214, 141, .55); stroke-width: 1; }
.oc-row   { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .08); stroke-width: 1; }
.oc-ring  { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 2; }
.oc-bar   { fill: rgba(255, 255, 255, .3); }
.oc-bar--soft { fill: rgba(255, 255, 255, .14); }
.oc-tag   { fill: rgba(255, 255, 255, .1); }
/* marcas de verificación: capas HTML sobre los círculos de cada fila */
.oc-tick {
  position: absolute;
  left: 35.4545%;
  width: 4.5455%;
  aspect-ratio: 1;
  margin: -2.2727% 0 0 -2.2727%;
  border-radius: 50%;
  background: #2bb673;
}
.oc-tick svg { display: block; width: 100%; height: 100%; fill: none; stroke: #05140c; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.oc-t1 { top: 40.9375%; }
.oc-t2 { top: 56.5625%; }
.oc-t3 { top: 72.1875%; }
.oc-t4 { top: 87.8125%; }

@media (min-width: 900px) {
  .onco-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px; }
}

/* ---------- 12. Contacto ---------- */
.contact-grid { display: grid; gap: 32px; }
.contact-card { font-style: normal; }
.contact-list { list-style: none; display: grid; gap: 14px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.contact-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--green-tint);
  color: var(--green-deep);
}
.contact-body { min-width: 0; }
.contact-label {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-value {
  margin-top: 2px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink-strong);
  overflow-wrap: normal;
}
.contact-link {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: var(--underline);
  transition: color .2s ease;
}
.contact-link:hover { color: var(--green-text); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* en móvil el icono comparte fila con la etiqueta y el valor usa todo el ancho:
   el correo cabe en una línea desde 320 px (si no, sólo puede partirse tras «@») */
@media (max-width: 479.98px) {
  .contact-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    row-gap: 4px;
    padding: 16px 18px 18px;
  }
  .contact-body { display: contents; }
  .contact-icon { width: 40px; height: 40px; border-radius: 12px; }
  .contact-icon .i { width: 22px; height: 22px; }
  .contact-label { grid-column: 2; }
  .contact-value,
  .contact-actions { grid-column: 1 / -1; }
  .contact-value { margin-top: 6px; font-size: 1rem; }
  .contact-link { margin-top: 0; }
  .contact-actions { margin-top: 8px; }
  .contact-actions .btn { padding-inline: .8rem; }
}

@media (min-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: 64px; }
}

/* ---------- 13. Pie ---------- */
.site-footer {
  padding-block: 40px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.footer-grid { display: grid; gap: 28px; }
.brand--lg { gap: .9rem; justify-content: flex-start; }
.brand--lg .mark { width: 60px; height: 60px; }
.brand--lg .brand-word { font-size: 2.2rem; border-bottom-width: 2.5px; }
/* el bloque oficial sigue horizontal en pantallas estrechas: sólo se escala */
@media (max-width: 399.98px) {
  .brand--lg { gap: .75rem; }
  .brand--lg .mark { width: 50px; height: 50px; }
  .brand--lg .brand-word { font-size: 1.9rem; }
  .brand--lg .brand-tag { letter-spacing: .07em; }
}
@media (max-width: 359.98px) {
  .brand--lg { gap: .6rem; }
  .brand--lg .mark { width: 42px; height: 42px; }
  .brand--lg .brand-word { font-size: 1.62rem; }
  .brand--lg .brand-tag { letter-spacing: .05em; }   /* 10 px: nunca menos (cabe: 270 de 288 px a 320) */
}
.footer-legal { margin-top: 18px; max-width: 34em; color: var(--muted); }
.footer-nav ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: start;
  gap: 0 32px;
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--green-text); text-decoration: underline; text-underline-offset: 4px; }
.footer-nav-app { grid-column: 1 / -1; }
.footer-nav-app a { font-weight: 600; color: var(--green-text); }
.footer-nav .i { width: 1.1em; height: 1.1em; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 26px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.to-top {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 44px;
  font-weight: 500;
  text-decoration: none;
}
.to-top:hover { color: var(--green-text); }

@media (min-width: 900px) {
  .footer-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; gap: 56px; }
  .footer-nav { justify-self: end; }
}

/* ---------- 14. Página 404 ---------- */
.nf-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.site-header--min .header-actions { margin-left: auto; }
.nf {
  flex: 1;
  display: grid;
  align-items: center;
  padding-block: clamp(40px, 7vw, 88px);
}
.nf-grid { display: grid; gap: 28px; align-items: center; }
.nf-visual { width: min(58vw, 240px); margin-inline: auto; }
.nf-visual .mark { display: block; width: 100%; height: auto; overflow: visible; }
.nf-copy { max-width: 600px; }
.nf h1 { margin-top: 12px; font-size: clamp(2.2rem, 1.3rem + 3.2vw, 3.5rem); line-height: 1.08; letter-spacing: -.03em; }
.nf .lead { margin-top: 16px; }
.nf-links { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 22px; }
.nf-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--green-text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: var(--underline);
}
.site-footer--min { padding-block: 24px; }
.site-footer--min .footer-bottom { margin-top: 0; padding-top: 0; border-top: 0; }
@media (min-width: 800px) {
  .nf-grid { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 56px; }
  .nf-visual { width: min(100%, 300px); }
}

/* ==========================================================================
   15. Movimiento — sólo con JS y sin preferencia de movimiento reducido
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* --- entrada del texto del hero --- */
  .js .hero-top > *,
  .js .hero-copy > *,
  .js .nf-copy > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .js .hero-top > *              { animation-delay: .05s; }
  .js .hero-copy > :nth-child(1),
  .js .nf-copy > :nth-child(1)   { animation-delay: .12s; }
  .js .hero-copy > :nth-child(2),
  .js .nf-copy > :nth-child(2)   { animation-delay: .2s; }
  .js .hero-copy > :nth-child(3),
  .js .nf-copy > :nth-child(3)   { animation-delay: .3s; }
  .js .hero-copy > :nth-child(4),
  .js .nf-copy > :nth-child(4)   { animation-delay: .4s; }
  .js .nf-copy > :nth-child(5)   { animation-delay: .5s; }
  .js .accent::after { animation: grow-x .9s cubic-bezier(.65, 0, .35, 1) 1s both; }

  /* --- la marca se dibuja: el aro, con la flecha como pluma --- */
  .js .mark--draw .mk-draw  { stroke-dasharray: 100; animation: dash-in 1.8s cubic-bezier(.65, .05, .36, 1) .3s both; }
  .js .mark--draw .mk-arrow {
    transform-origin: 170px 170px;
    animation: pen-spin 1.8s cubic-bezier(.65, .05, .36, 1) .3s both, fade-in .35s ease .3s both;
  }
  .js .mark--draw .mk-check { stroke-dasharray: 100; animation: dash-in .6s cubic-bezier(.3, .6, .3, 1) 2.0s both; }
  .js .mark--draw .mk-dot-1 { animation: pop .55s cubic-bezier(.34, 1.56, .64, 1) 2.18s both; }
  .js .mark--draw .mk-dot-2 { animation: pop .55s cubic-bezier(.34, 1.56, .64, 1) 2.42s both; }

  /* --- después: la órbita aparece (entradas únicas) --- */
  .js .o-ring        { stroke-dasharray: 100; animation: dash-in 1.6s cubic-bezier(.65, 0, .35, 1) 2.2s both; }
  .js .o-echo        { animation: fade-in 1.6s ease 2.2s both; }
  .js .o-ring-dotted { animation: fade-in 1.2s ease 2.6s both; }
  .js .o-node        { animation: pop .5s cubic-bezier(.34, 1.56, .64, 1) both; }
  .js .o-n1 { animation-delay: 2.7s; }
  .js .o-n2 { animation-delay: 2.82s; }
  .js .o-n3 { animation-delay: 2.94s; }
  .js .o-n4 { animation-delay: 3.06s; }
  .js .chip { animation: chip-in .6s cubic-bezier(.2, .8, .2, 1) both; }
  .js .c1 { animation-delay: 2.75s; }
  .js .c2 { animation-delay: 2.87s; }
  .js .c3 { animation-delay: 2.99s; }
  .js .c4 { animation-delay: 3.11s; }
  .js .o-pulse-inner { animation: fade-in .8s ease 3s both; }

  /* --- bucles (todos transform / opacity sobre capas HTML, salvo el cometa) --- */
  .js .announce::after { animation: shimmer 6.5s ease-in-out 1.6s infinite; }
  .js .orbit-glow      { animation: breathe 7s ease-in-out infinite; }
  .js .orbit-pulse     { animation: orbit 16s linear 3s infinite both; }
  .js .o-node::after,
  .js .chip::after     { animation: ping 16s ease-out infinite; }
  .js .o-n1::after, .js .c1::after { animation-delay: 3.63s; }
  .js .o-n2::after, .js .c2::after { animation-delay: 7.63s; }
  .js .o-n3::after, .js .c3::after { animation-delay: 11.63s; }
  .js .o-n4::after, .js .c4::after { animation-delay: 15.63s; }

  /* anuncio de logística: un envío recorre la ruta y cada parada responde.
     El cometa es el único bucle sobre SVG (stroke-dashoffset, hilo principal):
     arranca cuando la ruta está de verdad en pantalla (main.js añade .is-live con
     ≥ 40 % visible y la quita al salir del todo, así cada visita la ve moverse),
     hace cuatro entregas y descansa; los halos (capas HTML) siguen latiendo. */
  .js .logistics-art.is-live .lg-comet { animation: travel 4.8s cubic-bezier(.55, 0, .35, 1) .6s 4 both; }
  .js .lg-halo  { animation: halo 4.8s ease-out infinite; }
  .js .lg-h1 { animation-delay: .5s; }
  .js .lg-h2 { animation-delay: 2.1s; }
  .js .lg-h3 { animation-delay: 3.7s; }

  /* Onco Track: seguimiento que se completa */
  .js .oc-tick { animation: tick 8s cubic-bezier(.34, 1.4, .64, 1) infinite both; }
  .js .oc-t1 { animation-delay: .6s; }
  .js .oc-t2 { animation-delay: 1.4s; }
  .js .oc-t3 { animation-delay: 2.2s; }
  .js .oc-t4 { animation-delay: 3s; }

  /* ciclo: el punto recorre los 4 pasos; todo sincronizado por retrasos negativos */
  .js .cy-runner { animation: cy-run 12s linear infinite; }
  .js .cy-node::before,
  .js .step::before,
  .js .step-num::after { animation: step-on 12s linear infinite; }
  .js .cy-node::before { animation-timing-function: steps(1, end); }  /* sin fundido: nunca dos numerales a medias */
  .js .step h3::after  { animation: step-line 12s linear infinite; }
  .js .cy-node::after  { animation: step-halo 12s ease-out infinite; }
  .js .cy-k1::before, .js .cy-k1::after,
  .js .step--e::before, .js .step--e h3::after, .js .step--e .step-num::after { animation-delay: -9s; }
  .js .cy-k2::before, .js .cy-k2::after,
  .js .step--s::before, .js .step--s h3::after, .js .step--s .step-num::after { animation-delay: -6s; }
  .js .cy-k3::before, .js .cy-k3::after,
  .js .step--w::before, .js .step--w h3::after, .js .step--w .step-num::after { animation-delay: -3s; }

  /* --- aparición al desplazarse: el estado oculto existe sólo cuando main.js
         ya tiene el observador en marcha (html.reveal-ready); lo que ya está en
         pantalla se muestra antes de activarlo --- */
  .reveal-ready .reveal {
    transition: opacity .8s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
  }
  .reveal-ready .reveal:not(.is-in) { opacity: 0; transform: translateY(22px); }

  /* --- el logotipo de la cabecera da una vuelta al pasar el cursor --- */
  .brand .mk-arrow { transform-origin: 170px 170px; }
  .brand:hover .mk-arrow { animation: spin-once .9s cubic-bezier(.65, .05, .36, 1); }

  /* --- fuera de pantalla o con la pestaña oculta: todo queda congelado --- */
  .is-paused::before, .is-paused::after,
  .is-paused *, .is-paused *::before, .is-paused *::after,
  .doc-hidden [data-motion], .doc-hidden [data-motion]::before, .doc-hidden [data-motion]::after,
  .doc-hidden [data-motion] *, .doc-hidden [data-motion] *::before, .doc-hidden [data-motion] *::after {
    animation-play-state: paused !important;
  }
}

/* «Pausar animaciones» (WCAG 2.2.2): los bucles se detienen en su estado final
   estático, el mismo que con movimiento reducido. Las entradas (< 5 s) no son bucles. */
.motion-paused .announce::after,
.motion-paused .orbit-glow,
.motion-paused .orbit-pulse,
.motion-paused .o-node::after,
.motion-paused .chip::after,
.motion-paused .lg-comet,
.motion-paused .lg-halo,
.motion-paused .oc-tick,
.motion-paused .cy-runner,
.motion-paused .cy-node::before,
.motion-paused .cy-node::after,
.motion-paused .step::before,
.motion-paused .step-num::after,
.motion-paused .step h3::after {
  animation: none !important;
}

/* Movimiento reducido: además de no declarar animaciones, se anulan las
   transiciones de hover y del menú (red de seguridad). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .motion-toggle,
  .scroll-progress { display: none !important; }
}

@keyframes rise      { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade-in   { from { opacity: 0; } to { opacity: 1; } }
@keyframes grow-x    { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dash-in   { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes pen-spin  { from { transform: rotate(-323deg); } to { transform: rotate(0deg); } }
@keyframes spin-once { from { transform: rotate(-360deg); } to { transform: rotate(0deg); } }
@keyframes pop       { 0% { transform: scale(0); } 65% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes breathe   { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes orbit     { from { transform: rotate(-60deg); } to { transform: rotate(300deg); } }
@keyframes chip-in   { from { opacity: 0; transform: var(--chip-t, none) scale(.8); } to { opacity: 1; transform: var(--chip-t, none) scale(1); } }
@keyframes ping      { 0% { opacity: 0; transform: scale(.9); } 3% { opacity: .9; transform: scale(1); } 11% { opacity: 0; transform: scale(1.18); } 100% { opacity: 0; transform: scale(1.18); } }
@keyframes shimmer   { 0% { transform: translateX(-130%); } 26%, 100% { transform: translateX(260%); } }
@keyframes travel    { 0% { stroke-dashoffset: 9; opacity: 1; } 72%, 100% { stroke-dashoffset: -100; opacity: 1; } }
@keyframes halo      { 0% { opacity: .6; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.9); } }
@keyframes cy-run {
  0%, 14.17%  { transform: rotate(0deg);   animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  25%, 39.17% { transform: rotate(90deg);  animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  50%, 64.17% { transform: rotate(180deg); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  75%, 89.17% { transform: rotate(270deg); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  100%        { transform: rotate(360deg); }
}
@keyframes step-on   { 0%, 17% { opacity: 1; } 20%, 97.5% { opacity: 0; } 100% { opacity: 1; } }
@keyframes step-line { 0%, 17% { transform: scaleX(1); } 20%, 97.5% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
@keyframes step-halo { 0% { opacity: .65; transform: scale(1); } 12%, 100% { opacity: 0; transform: scale(1.9); } }
@keyframes tick      { 0% { opacity: 0; transform: scale(.4); } 7% { opacity: 1; transform: scale(1); } 80% { opacity: 1; transform: scale(1); } 88%, 100% { opacity: 0; transform: scale(.8); } }

/* ---------- 16. Impresión ---------- */
@media print {
  .site-header { position: static; backdrop-filter: none; }
  .menu-btn, .skip-link, .hero-visual, .logistics-art, .onco-art, .motion-toggle, .scroll-progress { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .accent { background: none; -webkit-text-fill-color: currentColor; color: #117a4c; }
}
