/* =====================================================================
   MOLCORP Technologies · sistema visual
   Concepto: laboratorio de día. Fondo blanco como los cuadros del video,
   líneas finas de plano técnico y luces azules donde algo está vivo
   (botones, enlaces activos, el video, la telemetría, el kit).
   El pie de página es la noche: azul profundo.
   ===================================================================== */

/* ---------------------------------------------------------------------
   Tokens
   --------------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Color */
  --fondo: #ffffff;           /* fondo principal: blanco */
  --sup: #f5f8ff;             /* superficies: blanco azulado (como el video) */
  --sup-2: #ebf1ff;
  --sup-3: #dfe8ff;
  --texto: #0a1226;           /* texto principal: negro azulado */
  --gris-1: #3f4a66;          /* texto secundario */
  --gris-2: #66718c;          /* etiquetas */
  --gris-3: #a2abc2;          /* detalles apagados */
  --linea: rgba(16, 56, 140, 0.10);
  --linea-2: rgba(16, 56, 140, 0.18);
  --linea-3: rgba(16, 56, 140, 0.32);
  --logo: #0d3a8c;            /* azul profundo del logo en el video */
  --azul: #1d6aff;            /* azul eléctrico MOLCORP */
  --azul-2: #0f58ee;          /* azul al pasar el cursor */
  --azul-claro: #5b8dff;      /* luces */
  --azul-hielo: #dbe6ff;      /* rellenos suaves */
  --azul-profundo: #093a8c;
  --luz: rgba(29, 106, 255, 0.22);       /* color de las luces sobre blanco */
  --luz-fuerte: rgba(29, 106, 255, 0.45);
  --noche: #061642;           /* pie de página */
  --noche-2: #040d2c;
  --cian: #3defff;            /* solo para piezas del kit */
  --ok: #0f9d63;
  --error: #d33a3a;
  --aviso: #8a5a00;           /* marcadores pendientes */

  /* Tipografía */
  --sans: 'Onest', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-md: 1.125rem;
  --t-lg: clamp(1.25rem, 1.12rem + 0.55vw, 1.5rem);
  --t-xl: clamp(1.55rem, 1.25rem + 1.3vw, 2.2rem);
  --t-2xl: clamp(2rem, 1.35rem + 2.8vw, 3.4rem);
  --t-3xl: clamp(2.5rem, 1.35rem + 4.9vw, 5.2rem);
  --t-4xl: clamp(3rem, 1.1rem + 8vw, 8rem);

  /* Espacio y forma */
  --gutter: clamp(16px, 4.2vw, 56px);
  --maxw: 1360px;
  --nav-h: 64px;
  --sec: clamp(88px, 11vw, 152px);   /* separación entre secciones */
  --r-lg: 22px;
  --r: 14px;
  --r-sm: 9px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------------------------------------------------------------------
   Base
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  background: var(--fondo);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
::selection { background: var(--azul); color: #fff; }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.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;
}
.skip {
  position: fixed; left: 16px; top: -80px; z-index: 200;
  background: var(--texto); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none; transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.mono { font-family: var(--mono); font-feature-settings: 'zero' 0; }
.tnum { font-variant-numeric: tabular-nums; }

/* Títulos: tinta que se vuelve azul profundo hacia abajo */
.display, .h1, .h2 {
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
  background: linear-gradient(180deg, var(--texto) 30%, #2a4f9e 115%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.display { font-size: var(--t-4xl); line-height: .94; letter-spacing: -0.045em; }
.h1 { font-size: var(--t-3xl); }
.h2 { font-size: var(--t-2xl); line-height: 1.05; }
.h3 { font-size: var(--t-xl); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
.lead { font-size: var(--t-lg); line-height: 1.5; color: var(--gris-1); max-width: 60ch; text-wrap: pretty; }
.muted { color: var(--gris-2); }
.small { font-size: var(--t-sm); }

/* Etiqueta técnica: nombre corto + línea fina debajo (como en el video) */
.tag {
  display: inline-flex; flex-direction: column; gap: 6px;
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .06em;
  color: var(--gris-2);
}
.tag::after { content: ''; display: block; height: 1px; width: 100%; min-width: 120px; background: linear-gradient(90deg, var(--linea-3), transparent); }

/* Marcador pendiente: algo que falta llenar */
.ph {
  font-family: var(--mono);
  font-size: .86em;
  color: var(--aviso);
  background: #fff6df;
  border: 1px dashed #e0a62e;
  border-radius: 6px;
  padding: .05em .4em;
  white-space: nowrap;
}

/* ---------------------------------------------------------------------
   Botones
   --------------------------------------------------------------------- */
.btn {
  --h: 48px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h);
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .95rem; font-weight: 500; letter-spacing: .005em;
  text-decoration: none; white-space: nowrap;
  isolation: isolate; overflow: hidden;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), box-shadow .35s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-lg { --h: 56px; padding: 0 28px; font-size: 1rem; }

.btn-primary {
  background: var(--azul); color: #fff;
  box-shadow: 0 10px 30px -12px var(--luz-fuerte), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-primary::before {           /* destello que cruza al pasar el cursor */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .32) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn-primary:hover {
  background: var(--azul-2);
  box-shadow: 0 14px 40px -10px rgba(29, 106, 255, .6), 0 0 0 5px rgba(29, 106, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .22);
}
@media (prefers-reduced-motion: no-preference) {
  .btn-primary:hover::before { transform: translateX(120%); transition: transform .8s var(--ease); }
}

.btn-ghost { background: rgba(255, 255, 255, .7); border-color: var(--linea-2); color: var(--texto); }
.btn-ghost:hover { border-color: rgba(29, 106, 255, .55); background: #fff; color: var(--azul-profundo); box-shadow: 0 10px 30px -14px var(--luz-fuerte); }

.btn-quiet {
  min-height: auto; padding: 4px 0; border-radius: 0;
  color: var(--azul); font-family: var(--mono); font-size: var(--t-sm);
}
.btn-quiet:hover { color: var(--azul-profundo); }

/* ---------------------------------------------------------------------
   Barra de navegación
   --------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  view-transition-name: navegacion;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease), box-shadow .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-solid, .nav.is-open {
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--linea);
  box-shadow: 0 10px 30px -24px rgba(16, 56, 140, .35);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: inline-flex; align-items: center; flex: none; border-radius: 6px; }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 34px); }
.nav-links a {
  position: relative;
  font-size: .9rem; color: var(--gris-1); text-decoration: none;
  padding: 8px 0;
  transition: color .25s var(--ease);
}
.nav-links a::after {             /* línea azul que se dibuja */
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; border-radius: 2px;
  background: var(--azul); box-shadow: 0 0 8px var(--luz-fuerte);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav-links a:hover { color: var(--texto); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links a[aria-current="true"], .nav-links a[aria-current="page"] { color: var(--texto); font-weight: 500; }
.nav-links a[aria-current="true"]::before, .nav-links a[aria-current="page"]::before {   /* indicador activo */
  content: ''; position: absolute; left: 50%; top: -3px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--azul); box-shadow: 0 0 10px var(--azul-claro);
}
.nav-links .nav-studio {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(29, 106, 255, .35);
  color: var(--azul-profundo); background: rgba(29, 106, 255, .07);
  font-weight: 500;
}
.nav-links .nav-studio::after { display: none; }
.nav-links .nav-studio::before { display: none; }
.nav-links .nav-studio:hover { border-color: var(--azul); background: rgba(29, 106, 255, .12); color: var(--azul-profundo); box-shadow: 0 8px 24px -10px var(--luz-fuerte); }
.nav-links .nav-studio[aria-current="page"] { background: var(--azul); border-color: var(--azul); color: #fff; box-shadow: 0 8px 24px -10px var(--luz-fuerte); }
.nav-links .nav-studio[aria-current="page"] .pulse { background: #fff; }
.nav-studio .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--azul); box-shadow: 0 0 0 0 rgba(29, 106, 255, .5); }
@media (prefers-reduced-motion: no-preference) {
  .nav-studio .pulse { animation: pulso 2.4s var(--ease) infinite; }
}
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(29, 106, 255, .45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(29, 106, 255, 0); } }

.nav-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.nav-progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--azul) 0%, var(--azul-claro) 100%);
  box-shadow: 0 0 10px var(--azul-claro);
  transform-origin: left; transform: scaleX(var(--progress, 0));
}

.nav-toggle {
  display: none;
  position: relative; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; border-radius: 10px;
}
.nav-toggle span:not(.sr-only) {
  position: absolute; left: 11px; right: 11px; height: 1.5px; border-radius: 2px; background: var(--texto);
  transition: transform .4s var(--ease), top .4s var(--ease), width .4s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; right: 18px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; right: 11px; transform: rotate(-45deg); }

/* Menú móvil */
.menu {
  position: fixed; inset: 0; z-index: 90;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(90% 50% at 100% 0%, rgba(29, 106, 255, .16), transparent 60%),
    radial-gradient(70% 40% at 0% 100%, rgba(29, 106, 255, .10), transparent 60%),
    rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  overflow-y: auto;
}
.menu-links { display: flex; flex-direction: column; }
.menu-links a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--linea);
  font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1;
  text-decoration: none; color: var(--texto);
}
.menu-links a small { flex: none; max-width: 46%; text-align: right; font-family: var(--mono); font-size: var(--t-xs); color: var(--gris-2); letter-spacing: .04em; font-weight: 400; }
.menu-links a[aria-current] { color: var(--azul); }
.menu-studio span { display: inline-flex; align-items: center; gap: 12px; }
.menu-studio .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--azul); box-shadow: 0 0 10px var(--azul-claro); }
@media (prefers-reduced-motion: no-preference) {
  .menu-studio .pulse { animation: pulso 2.4s var(--ease) infinite; }
}
.menu-foot { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: var(--t-sm); color: var(--gris-1); }
.menu-foot a { color: var(--gris-1); text-decoration: none; }
@media (prefers-reduced-motion: no-preference) {
  .menu:not([hidden]) .menu-links a { animation: entraMenu .55s var(--ease) both; }
  .menu:not([hidden]) .menu-links a:nth-child(2) { animation-delay: .04s; }
  .menu:not([hidden]) .menu-links a:nth-child(3) { animation-delay: .08s; }
  .menu:not([hidden]) .menu-links a:nth-child(4) { animation-delay: .12s; }
  .menu:not([hidden]) .menu-links a:nth-child(5) { animation-delay: .16s; }
  .menu:not([hidden]) .menu-links a:nth-child(6) { animation-delay: .2s; }
}
@keyframes entraMenu { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-logo img { height: 30px; }
}

/* ---------------------------------------------------------------------
   Secciones y elementos compartidos
   --------------------------------------------------------------------- */
.sec { position: relative; padding-block: var(--sec); }
.sec-head { display: grid; gap: 20px; max-width: 880px; }
.sec-head .lead { margin-top: 4px; }
.rule { height: 1px; background: var(--linea); border: 0; margin: 0; }

/* Malla de puntos del video y de la bienvenida */
.dots {
  background-image: radial-gradient(circle at 1.6px 1.6px, rgba(29, 106, 255, .16) 1.4px, transparent 1.6px);
  background-size: 28px 28px;
}

/* Marcas de esquina tipo visor */
.corners { position: absolute; inset: 0; pointer-events: none; }
.corners i { position: absolute; width: 18px; height: 18px; border-color: var(--linea-3); border-style: solid; border-width: 0; }
.corners i:nth-child(1) { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.corners i:nth-child(2) { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.corners i:nth-child(3) { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.corners i:nth-child(4) { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }

/* Luz que sigue al cursor (se usa en pocos lugares) */
.lit { --mx: 50%; --my: 50%; }
.lit::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(29, 106, 255, .12), transparent 50%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.lit:hover::before { opacity: 1; }

/* Chip de estado */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--linea-2); background: rgba(255, 255, 255, .8);
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .03em; color: var(--gris-1);
  white-space: nowrap;
}
.chip .led { width: 6px; height: 6px; border-radius: 50%; background: var(--gris-3); }
.chip.is-live { border-color: rgba(29, 106, 255, .4); color: var(--azul-profundo); background: rgba(29, 106, 255, .06); }
.chip.is-live .led { background: var(--azul); box-shadow: 0 0 8px var(--azul-claro); }

/* ---------------------------------------------------------------------
   Aparición al hacer scroll (solo si hay JS y no se pidió menos movimiento).
   Parte de un estado tenue, nunca invisible del todo.
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: .12;
    transform: translate3d(0, 14px, 0) scale(.985);
    filter: blur(6px);
    transition: opacity .9s var(--ease), transform 1s var(--ease), filter .9s var(--ease);
    transition-delay: calc(var(--d, 0) * 1ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
  .js [data-draw] { transform: scaleX(0); transform-origin: left; transition: transform 1.3s var(--ease-io); transition-delay: calc(var(--d, 0) * 1ms); }
  .js [data-draw].is-in { transform: none; }
}

/* ---------------------------------------------------------------------
   Pie de página: la noche de la marca (azul profundo)
   --------------------------------------------------------------------- */
.foot {
  /* dentro del pie, los tokens cambian a la versión oscura */
  --texto: #eef3ff;
  --gris-1: #b8c5e6;
  --gris-2: #8494bb;
  --gris-3: #4b5a82;
  --linea: rgba(150, 180, 255, .14);
  --linea-2: rgba(150, 180, 255, .24);
  --linea-3: rgba(150, 180, 255, .4);
  position: relative; overflow: hidden;
  padding-top: clamp(80px, 10vw, 150px);
  color: var(--texto);
  background:
    radial-gradient(70% 55% at 50% 0%, rgba(29, 106, 255, .32), transparent 70%),
    linear-gradient(180deg, var(--noche), var(--noche-2));
}
.foot::before {                    /* arco de luz en el borde superior */
  content: ''; position: absolute; left: 50%; top: 0; width: min(980px, 90%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #8fb2ff, transparent);
  box-shadow: 0 0 24px 2px rgba(29, 106, 255, .7);
}
.foot .h1, .foot .h2 { background-image: linear-gradient(180deg, #ffffff 30%, #9cb4ec 115%); }
.foot-top { display: grid; gap: 28px; padding-bottom: clamp(56px, 7vw, 96px); }
.foot-claim { font-size: var(--t-3xl); max-width: 14ch; }
.foot-sub { font-family: var(--mono); font-size: var(--t-sm); color: var(--gris-2); }
.foot-grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px 32px;
  padding-block: 40px; border-top: 1px solid var(--linea);
}
.foot-brand img { height: 34px; width: auto; }
.foot-brand p { margin-top: 18px; color: var(--gris-2); font-size: var(--t-sm); max-width: 34ch; }
.foot h3 { font-size: var(--t-sm); font-weight: 500; color: var(--gris-2); margin-bottom: 14px; }
.foot ul { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.foot li a, .foot li > span { font-size: .95rem; color: var(--texto); text-decoration: none; }
.foot li a { transition: color .2s var(--ease); }
.foot li a:hover { color: #9cbcff; }
.foot li .handle { margin-left: 6px; color: var(--gris-2); font-family: var(--mono); font-size: var(--t-xs); }
.foot .ph { color: #ffd98a; background: rgba(255, 196, 80, .1); border-color: rgba(255, 196, 80, .5); }
.foot :focus-visible { outline-color: #9cbcff; }
.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px;
  padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--linea);
  font-size: var(--t-xs); color: var(--gris-2); font-family: var(--mono);
}
.foot-bottom a { color: var(--gris-1); text-decoration: none; }
.foot-bottom a:hover { color: #fff; }
.foot-mark {
  position: absolute; left: 50%; bottom: -1.2vw; width: min(1100px, 90vw); transform: translateX(-50%);
  opacity: .045; pointer-events: none;
}
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   Transiciones entre páginas
   --------------------------------------------------------------------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .28s var(--ease) both salePagina; }
::view-transition-new(root) { animation: .45s var(--ease) both entraPagina; }
@keyframes salePagina { to { opacity: 0; filter: blur(4px); } }
@keyframes entraPagina { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------------------------------------------------------------------
   Kit 3D: lienzo, respaldo y partículas de luz
   --------------------------------------------------------------------- */
.kit3d { position: relative; }
.kit3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s var(--ease); cursor: grab; }
.kit3d-canvas:active { cursor: grabbing; }
.kit3d.is-3d-ready .kit3d-canvas { opacity: 1; }
.kit3d-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .6s var(--ease); }
.kit3d.is-3d-ready .kit3d-fallback { opacity: 0; }
.particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; container-type: size; }
.particles i {
  position: absolute; bottom: -10px; left: var(--x); width: var(--s, 3px); height: var(--s, 3px); border-radius: 50%;
  background: var(--azul-claro); box-shadow: 0 0 10px 2px rgba(29, 106, 255, .45);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .particles i { animation: sube var(--t, 9s) linear var(--delay, 0s) infinite; }
}
@keyframes sube {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  12% { opacity: var(--o, .7); }
  85% { opacity: var(--o, .7); }
  100% { transform: translate3d(var(--dx, 10px), -105cqh, 0); opacity: 0; }
}
/* Etiquetas que siguen a una pieza del modelo: punto en la pieza, línea en L y tarjeta */
.kit3d-label {
  position: absolute; left: 0; top: 0; z-index: 2; width: 0; height: 0;
  transform: translate(var(--ax, -999px), var(--ay, -999px));
  pointer-events: none; opacity: 0; transition: opacity .5s var(--ease);
  --ox: 70px; --oy: -56px;   /* hacia dónde sale la tarjeta (se ajusta por etiqueta) */
}
.kit3d.is-3d-ready .kit3d-label { opacity: 1; }
.kit3d-label .dot {
  position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--azul); box-shadow: 0 0 10px var(--azul-claro), 0 0 0 4px rgba(29, 106, 255, .16);
}
.kit3d-label .leader {
  position: absolute; left: 0; bottom: 0; width: var(--ox); height: calc(var(--oy) * -1);
  border-left: 1px solid var(--linea-3); border-top: 1px solid var(--linea-3);
}
.kit3d-label.is-left .leader { left: auto; right: 0; border-left: 0; border-right: 1px solid var(--linea-3); }
.kit3d-label .card {
  position: absolute; left: var(--ox); top: var(--oy); transform: translate(6px, -50%);
  display: grid; gap: 2px; padding: 8px 12px;
  border-radius: 10px; border: 1px solid var(--linea-2);
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px -16px rgba(16, 56, 140, .4);
  font-size: var(--t-xs); line-height: 1.3; white-space: nowrap;
}
.kit3d-label.is-left .card { left: auto; right: var(--ox); transform: translate(-6px, -50%); }
.kit3d-label b { font-weight: 500; font-size: .8rem; color: var(--texto); }
.kit3d-label span { font-family: var(--mono); color: var(--azul); }
@media (max-width: 560px) { .kit3d-label { display: none; } }

/* Escenario del modelo 3D: reflejo de luz en el piso e indicación */
.kit3d-floor::before {
  content: ''; position: absolute; left: 12%; right: 12%; bottom: 6%; height: 16%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(29, 106, 255, .32), rgba(29, 106, 255, 0));
  filter: blur(14px); pointer-events: none;
}
.kitsec-hint {
  position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .06em; color: var(--gris-2); white-space: nowrap;
  opacity: 0; transition: opacity .6s var(--ease);
}
.kit3d.is-3d-ready .kitsec-hint { opacity: 1; }

/* ---------------------------------------------------------------------
   Franja de datos clave (inicio y kit)
   --------------------------------------------------------------------- */
.strip {
  position: relative;
  border-block: 1px solid var(--linea);
  background: var(--sup);
}
.strip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.strip-cell {
  display: grid; align-content: start; gap: 6px;
  padding: 24px 24px 26px;
  border-left: 1px solid var(--linea);
}
.strip-cell:first-child { border-left: 0; padding-left: 0; }
.strip-k { font-size: var(--t-xs); color: var(--gris-2); }
.strip-v { font-size: .98rem; color: var(--texto); line-height: 1.4; }
.strip-sub { display: block; margin-top: 2px; font-size: 11px; color: var(--azul); }
@media (max-width: 900px) {
  .strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip-cell { padding: 20px 18px; }
  .strip-cell:nth-child(odd) { border-left: 0; padding-left: 0; }
  .strip-cell:nth-child(n+3) { border-top: 1px solid var(--linea); }
}

/* Impresión: todo visible, sin efectos */
@media print {
  .nav, .menu, .skip, .particles, .hero-console, .kit3d-canvas { display: none !important; }
  [data-reveal], [data-draw] { opacity: 1 !important; transform: none !important; filter: none !important; }
}
