/* Ajustes del hero compartido (home-hero.css) para Diagnostics, 22-10-2026. */
.hx--dx .hx-nav a span{margin-right:4px}
/* Las páginas interiores fijan una cabecera antigua; aquí no existe */
body.brand-interior .hx--dx + main{margin-top:0}
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto!important}
@media (max-width:600px){
  .dxh-header .hx-nav a:nth-child(1),.dxh-header .hx-nav a:nth-child(4){display:none}
  .dxh-header .hx-nav a:nth-child(3){display:inline-flex}
}

/* §00 Cabecera compacta: transparente sobre el hero; al bajar queda fija, sólida y más baja (pedido de Francisco) */
.hx-header--fixed{position:fixed;z-index:60;top:0;left:0;right:0;transition:padding .45s var(--hx-ease,ease),background-color .45s ease,box-shadow .45s ease,opacity 1.2s ease;
  background:rgba(255,255,255,.86);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 1px 0 rgba(0,0,130,.08)}
/* Con JS, transparente sobre el hero hasta que se baja (sin JS queda sólida y legible: QA-52) */
.dxh-js .hx-header--fixed:not(.is-scrolled){background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none}
.hx-header--fixed.is-scrolled{padding-top:10px;padding-bottom:10px;background:rgba(255,255,255,.86);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 1px 0 rgba(0,0,130,.08)}
.hx-header--fixed .hx-logo img{transition:width .45s ease}
.hx-header--fixed.is-scrolled .hx-logo img{width:clamp(120px,9vw,150px)}
.hx-header--fixed.is-scrolled .hx-nav{background:transparent;box-shadow:none}
@media (max-width:980px){.hx--dx .hx-header--fixed{position:fixed}}

/* 390 px: «Respuestas para» en una línea y video algo más bajo, para que ambas entradas entren sin scroll */
@media (max-width:600px){
  .hx--dx h1{font-size:10.2vw}
  .hx--dx .hx-media{height:min(54svh,520px)}
}
/* El hero llena exactamente la pantalla también en móvil (sin franja de la sección siguiente) */
@media (max-width:980px){
  .hx--dx{min-height:100vh;min-height:100svh;grid-template-rows:auto auto 1fr}
  .hx--dx .hx-copy{align-self:end}
}

/* ================= Portada de Diagnostics: escena de la doble hélice (CH-02) ================= */
.dxh-header,.dxh{--hx-ink:var(--brand-deep-blue,#000082);--hx-muted:var(--muted,#525475);--hx-blue:var(--brand-electric-blue,#2954FF);--hx-violet:var(--brand-purple,#7212C9);
  --hx-sky:var(--brand-sky-blue,#889BFF);--hx-pad:clamp(20px,4.4vw,72px);--hx-mono:var(--sans,Delight,sans-serif);--hx-ease:cubic-bezier(.2,.75,.15,1);
  --dx-ink:var(--brand-deep-blue,#000082);--dx-blue:var(--brand-electric-blue,#2954FF);--dx-ease:cubic-bezier(.2,.75,.15,1)}
.dxh-header{font-family:var(--display,Delight,sans-serif)}
.dxh{position:relative;background:#e9ecfb;color:var(--hx-ink);font-family:var(--display,Delight,sans-serif)}
/* Recorrido: ~80vh de scroll por texto, con pausa de lectura en cada uno */
.dxh-js .dxh{height:340vh}
.dxh-stage{position:relative;min-height:100vh;min-height:100svh;overflow:hidden;isolation:isolate}
.dxh-js .dxh-stage{position:sticky;top:0;height:100vh;height:100svh}
/* iOS: el video llena también la pantalla con la barra de Safari oculta; el texto sigue dentro del alto pequeño (.dxh-copy) */
@supports (height:100lvh){.dxh-js .dxh-stage{height:100lvh}}
/* Entrada escalonada: al cargar, y cada vez que un texto toma el relevo, sus piezas llegan una tras otra */
@keyframes dxh-in{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
/* 30-10-2026: el relevo entre textos lo mueve solo el scroll (diagnostics-scene.js, pieza por pieza);
   la animación por tiempo queda únicamente para la entrada al cargar. «backwards» suelta el control al terminar. */
.dxh-js .dxh-step:first-child>*{animation:dxh-in .9s var(--hx-ease) backwards}
.dxh-js .dxh-step:first-child>:nth-child(1){animation-delay:.1s}
.dxh-js .dxh-step:first-child>:nth-child(2){animation-delay:.22s}
.dxh-js .dxh-step:first-child>:nth-child(3){animation-delay:.36s}
.dxh-js .dxh-step:first-child>:nth-child(4){animation-delay:.5s}
/* Los tres textos arrancan a la misma altura, para que el relevo no salte
   (diagnostics-scene.js compensa el eyebrow del primero con --dxh-offset) */
.dxh-js .dxh-step{align-content:start}
.dxh-js .dxh-step:not(:first-child){padding-top:var(--dxh-offset,0px)}
/* Móvil: más recorrido para los tres textos (cerca de una pantalla de scroll por texto) */
@media (max-width:980px){.dxh-js .dxh{height:360vh}}
/* Sin animación (reduced-motion o sin JS) solo se muestra el primer texto: los otros dos se apilaban sobre la hélice */
html:not(.dxh-js) .dxh-step:not(:first-child){display:none}
.dxh-poster,.dxh-video{position:absolute;inset:0;z-index:-1;width:100%;height:100%;object-fit:cover;object-position:70% 50%}
.dxh-video{opacity:0;transition:opacity .6s ease}
.dxh-video.is-playing{opacity:1}
.dxh-copy{position:relative;display:grid;align-content:center;gap:56px;min-height:100vh;min-height:100svh;box-sizing:border-box;padding:clamp(120px,16vh,150px) var(--hx-pad) clamp(48px,8vh,80px);max-width:min(900px,62vw)}
.dxh-step{display:grid;gap:clamp(18px,2.6vh,28px);justify-items:start;align-content:center}
.dxh-js .dxh-copy{gap:0}
.dxh-js .dxh-step{grid-area:1/1;opacity:0;transform:translateY(12px);pointer-events:none;will-change:opacity,transform}
.dxh-js .dxh-step.is-on{pointer-events:auto}
/* La portada se ve completa desde el primer pintado, antes de que cargue el script */
.dxh-js .dxh-step.is-on:first-child{opacity:1;transform:none}
.dxh-h{margin:0;font-weight:300;font-size:clamp(44px,min(6vw,11.5vh),100px);line-height:.95;letter-spacing:-.06em;color:var(--hx-ink);text-wrap:balance}
.dxh-h span{display:block}
.dxh-h em{font-style:normal;font-weight:500;color:var(--hx-blue)}
.dxh .hx-doors{width:min(560px,100%)}
.dxh-hint{position:absolute;left:var(--hx-pad);bottom:22px;display:none;align-items:center;gap:10px;font:500 10.5px/1 var(--sans,Delight,sans-serif);letter-spacing:.16em;text-transform:uppercase;color:var(--hx-muted)}
.dxh-js .dxh-hint{display:flex}
.dxh-hint i{width:1px;height:26px;background:linear-gradient(180deg,var(--hx-muted),transparent)}
@media (max-width:980px){
  .dxh-poster,.dxh-video{object-position:80% 30%}
  .dxh-stage::after{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(0deg,rgba(233,236,251,.97) 0%,rgba(233,236,251,.85) 42%,rgba(233,236,251,0) 72%)}
  .dxh-copy{max-width:none;align-content:end;padding-top:110px;padding-bottom:28px}
  .dxh-hint{display:none!important}
}
@media (max-width:600px){
  .dxh-h{font-size:10.2vw}
  .dxh .hx-doors{grid-template-columns:1fr;gap:8px}
  .dxh .hx-door{padding:12px 14px 12px 16px}
  .dxh .hx-lead{font-size:14.5px}
}

/* Entradas de la portada más compactas: a la medida de su texto (pedido de Chumbi) */
.dxh .hx-doors{display:flex;flex-wrap:wrap;gap:10px;width:auto}
.dxh .hx-door{grid-template-columns:auto auto;align-items:center;gap:2px 14px;padding:10px 10px 10px 18px;border-radius:999px}
.dxh .hx-door small{font-size:9.5px;letter-spacing:.12em}
.dxh .hx-door b{font-size:15px;font-weight:600;letter-spacing:-.01em;white-space:nowrap}
.dxh .hx-arrow{width:34px;height:34px}
.dxh .hx-arrow svg{width:13px;height:13px}
@media (max-width:600px){
  .dxh .hx-doors{flex-direction:column;align-items:stretch}
  .dxh .hx-door{justify-content:space-between;padding:10px 10px 10px 18px}
}

/* Cabecera sin franja: siempre transparente; el contraste lo dan dos cápsulas translúcidas (logo y menú) — pedido de Chumbi */
.hx-header--fixed,.hx-header--fixed.is-scrolled,.dxh-js .hx-header--fixed:not(.is-scrolled){background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none}
.hx-header--fixed .hx-logo{display:block;padding:10px 16px;border-radius:999px;background:rgba(255,255,255,.66);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 0 0 1px rgba(0,0,130,.06),0 10px 30px -18px rgba(0,0,130,.35);transition:padding .45s ease}
.hx-header--fixed .hx-nav,.hx-header--fixed.is-scrolled .hx-nav{background:rgba(255,255,255,.66);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 0 0 1px rgba(0,0,130,.06),0 10px 30px -18px rgba(0,0,130,.35)}
.hx-header--fixed.is-scrolled .hx-logo{padding:8px 14px}

/* Más aire en las cápsulas de la cabecera (pedido de Chumbi) */
.hx-header--fixed .hx-logo{padding:14px 24px}
.hx-header--fixed.is-scrolled .hx-logo{padding:12px 22px}
.hx-header--fixed .hx-nav{padding:8px;gap:4px}
.hx-header--fixed .hx-nav a{padding:12px 20px}
@media (max-width:600px){
  .hx-header--fixed .hx-logo{padding:10px 16px}
  .hx-header--fixed .hx-nav a{padding:10px 14px}
}

/* Pulido 22-10 (tarde): botones con texto centrado, logo más chico y con aire */
.dxh .hx-door{display:inline-flex;align-items:center;justify-content:space-between;gap:16px;padding:7px 7px 7px 22px;min-height:48px}
.dxh .hx-door b{line-height:1}
.dxh .hx-arrow{grid-row:auto;flex:none}
.dxh .hx-door:active{transform:scale(.98)}
.hx-header--fixed .hx-logo img{width:clamp(112px,8.4vw,140px)}
.hx-header--fixed.is-scrolled .hx-logo img{width:clamp(100px,7.4vw,124px)}
.hx-header--fixed .hx-logo{padding:16px 30px}
.hx-header--fixed.is-scrolled .hx-logo{padding:12px 24px}
@media (max-width:760px){
  .hx-header--fixed .hx-logo img{width:108px}
  .hx-header--fixed .hx-logo{padding:12px 20px}
}
