/* WildCore v2: una sola página. Escena 3D a pantalla completa con HUD en las
   esquinas (igloo) y secciones largas que se revelan con el scroll (Lusion). */
:root {
  /* Paleta A+ plata perla: fondo plata perla, tinta índigo y el índigo
     eléctrico como acento de estructura e interacción. El carmín solo para
     detalles mínimos (números de sección, punto de estado); el oro solo sobre
     pantallas oscuras. Los nombres heredados (--cian, --noche) ya no describen
     el color: --noche es el fondo y --cian el acento. */
  --noche: #E9EBED;
  --superficie: #FFFFFF;
  --superficie-2: #E0E2E4;
  --text: #0D0E1D;
  --text-2: #52535E;
  --text-3: #90919E;
  --line: rgba(13, 14, 29, .12);
  --cian: #4126C2;
  --cian-claro: #F8BC7A;   /* oro: solo sobre oscuro */
  --carmin: #AF2644;
  --carmin-texto: #A0223E;
  --cian-hondo: #3C23B7;
  --azul: #4126C2;
  --azul-hondo: #3C23B7;
  --panel: var(--superficie);
  /* Derivados que cambian con la paleta (js/paletas.js) */
  --noche-rgb: 233 235 237;
  --text-rgb: 13 14 29;
  --superficie-rgb: 255 255 255;
  --sobre-cian: #FFFFFF;
  --tinta: #311B99;
  --cian-suave: #7B6BE0;

  --sans: "Inter Tight", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --logo: "Syne", "Arial Black", sans-serif;

  --gx: clamp(16px, 3.4vw, 52px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
/* Que nada ensanche la página de lado: en móvil, lo que se salía (HUD, tarjetas fuera de cuadro) agrandaba el
   viewport y la galería 3D se dibujaba a otra escala que sus textos. */
html { overflow-x: clip; } /* con body también en clip (más abajo) para que body no se vuelva contenedor de scroll y los sticky sigan funcionando */
html.is-intro, html.is-locked { overflow: hidden; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--noche); color: var(--text); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -.035em; line-height: .98; text-wrap: balance; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--cian); outline-offset: 3px; border-radius: 6px; }
.mono { font: 500 12px/1.45 var(--mono); letter-spacing: .02em; }

/* ── Intro ──────────────────────────────────────────────────────────────── */
.intro { position: fixed; inset: 0; z-index: 200; background: var(--noche); }
.intro.is-gone, html:not(.is-intro) .intro { display: none; }
html.is-intro .logo { opacity: 0; }
.intro__rain { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro__word {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font: 800 clamp(56px, 12vw, 180px)/1 var(--logo); letter-spacing: -.04em; color: var(--text); white-space: pre;
}

/* ── Escena y anotaciones ───────────────────────────────────────────────── */
.stage, .marks { position: fixed; inset: 0; width: 100%; height: 100%; }
.stage { z-index: 0; transition: opacity .2s linear; }
.marks { z-index: 2; pointer-events: none; }
main { position: relative; z-index: 3; }

/* ── HUD fijo en las esquinas ───────────────────────────────────────────── */
.hud { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.hud > div { position: absolute; display: flex; flex-direction: column; gap: 14px; pointer-events: auto; }
.hud__tl { left: var(--gx); top: calc(30px + env(safe-area-inset-top, 0px)); }
.hud__tr { right: var(--gx); top: calc(26px + env(safe-area-inset-top, 0px)); flex-direction: row !important; align-items: center; gap: 12px !important; }
.hud__bl { left: var(--gx); bottom: calc(30px + env(safe-area-inset-bottom, 0px)); }
.hud__br { right: var(--gx); bottom: calc(30px + env(safe-area-inset-bottom, 0px)); align-items: flex-end; text-align: right; max-width: 230px; }
.logo { font: 800 30px/1 var(--logo); letter-spacing: -.04em; padding-top: 6px; }
.hud .mono { color: var(--text-2); }
.hud__kicker { color: var(--text) !important; }
.hud__text { min-height: 4.5em; }
/* La pista para bajar, centrada abajo (con margen automático y no con
   transform, que lo usa el fundido de entrada de GSAP). */
.hud__desliza { position: absolute; left: 0; right: 0; width: max-content; margin: 0 auto; bottom: calc(30px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .04em; color: var(--text) !important; }
.hud__desliza i { font-style: normal; display: inline-block; animation: deslizaFlecha 1.8s var(--ease) infinite; }
@keyframes deslizaFlecha { 0%, 100% { transform: translateY(-2px); opacity: .5; } 50% { transform: translateY(3px); opacity: 1; } }
.pill {
  display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--text); color: var(--noche); font: 500 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.pill:hover { background: var(--cian); }
.pill--big { height: 58px; padding: 0 30px; font-size: 13px; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.plus-i, .x { position: relative; width: 10px; height: 10px; }
.plus-i::before, .plus-i::after, .x::before, .x::after { content: ""; position: absolute; left: 4px; top: 0; width: 2px; height: 10px; background: currentColor; }
.plus-i::after { transform: rotate(90deg); }
.x::before { transform: rotate(45deg); } .x::after { transform: rotate(-45deg); }
@media (max-width: 760px) {
  .hud .hud__tr { top: calc(24px + env(safe-area-inset-top, 0px)); }
  .hud .hud__contacto.pill { height: 38px; padding: 0 16px; font-size: 11px; gap: 10px; }
  /* En móvil no caben en fila junto al logo: Contáctenos arriba y el sonido debajo. */
  .hud .hud__tr { flex-direction: column-reverse !important; align-items: flex-end; gap: 4px !important; }
  .hud .musica, .hud .musica svg { width: 40px; height: 40px; }
  /* En móvil el sonido queda solo como ícono: el centro es de la pista para bajar. */
  .hud .sound > span { display: none; }
  .hud .sound { padding: 8px 8px 8px 0; }
  .hud .hud__br, .hud .hud__text { display: none; }
  .logo { font-size: 24px; }
  /* En móvil no hay margen libre: la pista y el sonido solo viven en el inicio. */
  html[data-sec]:not([data-sec="inicio"]) .hud__bl { filter: opacity(0); pointer-events: none; }
}

/* ── Cursor ─────────────────────────────────────────────────────────────── */
.cursor { display: none; }
@media (pointer: fine) {
  .cursor {
    display: grid; place-items: center; position: fixed; left: 0; top: 0; z-index: 150;
    width: 0; height: 0; margin: 0; border-radius: 50%; background: var(--text);
    pointer-events: none; opacity: 0;
    transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .25s;
  }
  .cursor.has-label { width: 72px; height: 72px; margin: -36px 0 0 -36px; opacity: 1; }
  .cursor__label { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--noche); opacity: 0; transition: opacity .2s; }
  .cursor.has-label .cursor__label { opacity: 1; }
}

/* ── 01 Núcleo ──────────────────────────────────────────────────────────── */
.s-hero { height: 380vh; }
.s-hero__stick { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; padding: 0 var(--gx); pointer-events: none; }
.s-hero__title { display: flex; flex-direction: column; align-items: center; text-align: center; font-size: clamp(44px, 7.4vw, 124px); font-weight: 500; letter-spacing: -.05em; line-height: .95; text-shadow: 0 0 60px rgb(var(--noche-rgb) / .55); }
.s-hero__title span { display: block; opacity: 0; }

/* ── Principios ─────────────────────────────────────────────────────────── */
.s-statement { padding: 26vh var(--gx) 30vh; }
.s-statement__text { max-width: 26ch; margin: 0 auto; text-align: center; text-wrap: balance; font-size: clamp(27px, 4.25vw, 76px); font-weight: 400; letter-spacing: -.03em; line-height: 1.1; }
.s-statement__text .w { opacity: .14; transition: opacity .15s linear; }
/* Cómo trabajamos: cuatro pasos bajo el manifiesto. */
.s-metodo { max-width: 1180px; margin: 18vh auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: paso; }
.s-metodo li { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.s-metodo .mono { color: var(--cian); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.s-metodo h3 { font: 500 22px/1.15 var(--sans); letter-spacing: -.02em; }
.s-metodo p { color: var(--text-2); font-size: 15px; line-height: 1.55; }
@media (max-width: 860px) { .s-metodo { grid-template-columns: 1fr 1fr; gap: 24px 18px; } }
@media (max-width: 520px) { .s-metodo { grid-template-columns: 1fr; } }
/* Quiénes somos (#manifiesto): titular que se revela con el scroll, texto y dos datos */
.s-statement__kicker { margin: 0 0 28px; text-align: center; color: var(--cian); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.s-nos { max-width: 1180px; margin: 14vh auto 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 6vw; align-items: start; }
.s-nos__texto p { margin: 0 0 1.1em; max-width: 58ch; color: var(--text-2); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; }
.s-nos__texto p:first-child { color: var(--text); }
.s-nos__datos { margin: 0; display: grid; gap: 28px; }
.s-nos__datos > div { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.s-nos__datos dt { color: var(--cian); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.s-nos__datos dd { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.s-nos__datos dd.s-nos__n { color: var(--text); font: 500 clamp(40px, 4vw, 64px)/1 var(--sans); letter-spacing: -.04em; }
@media (max-width: 860px) { .s-nos { grid-template-columns: 1fr; gap: 40px; margin-top: 10vh; } }

/* ── 02 Proyectos: galería curva de a dos (las tarjetas son 3D) ─────────── */
.s-work { height: 330vh; }
.s-work__stick { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.s-work__count { position: absolute; left: calc(var(--gx) + 230px); top: 38px; color: var(--text-2); z-index: 2; }
.s-work__count b { color: var(--text); font-weight: 500; }
.s-work__grid { position: absolute; inset: 0; background: linear-gradient(rgba(248, 188, 122,.06) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgba(248, 188, 122,.06) 1px, transparent 1px) 0 0 / 32px 32px, radial-gradient(80% 90% at 70% 30%, #1E1164, #090819 70%); }
.corner { position: absolute; width: 18px; height: 18px; border-color: var(--cian); border-style: solid; border-width: 0; z-index: 3; pointer-events: none; }
.corner.tl { left: -9px; top: -9px; border-left-width: 1.5px; border-top-width: 1.5px; }
.corner.tr { right: -9px; top: -9px; border-right-width: 1.5px; border-top-width: 1.5px; }
.corner.bl { left: -9px; bottom: -9px; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.corner.br { right: -9px; bottom: -9px; border-right-width: 1.5px; border-bottom-width: 1.5px; }
.tag { font: 500 11px/1 var(--mono); padding: 5px 9px; border-radius: 999px; background: color-mix(in srgb, var(--cian) 14%, transparent); color: var(--cian); }
.s-work__bar { position: absolute; font: 12px var(--mono); left: calc(var(--gx) + 230px + 10.6ch + 12px); right: calc(var(--gx) + 280px); top: 46px; height: 1px; background: var(--line); }
.s-work__bar i { position: absolute; inset: 0; background: var(--cian); transform-origin: left; transform: scaleX(0); }
/* Zona de clic sobre cada tarjeta y su ficha debajo; la galería las mueve cada cuadro. */
.g-tarjetas { position: absolute; inset: 0; }
.g-hit { position: absolute; left: 0; top: 0; border-radius: 22px; cursor: pointer; }
.g-hit:focus-visible { outline-offset: 6px; }
.g-info { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; gap: 10px; transition: opacity .25s linear; }
.g-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--text-2); font-size: 11px; }
.g-num { color: var(--cian); }
.g-nombre { font: 500 clamp(30px, 2.8vw, 46px)/1 var(--sans); letter-spacing: -.045em; }
.g-frase { color: var(--text-2); font-size: clamp(14px, 1.05vw, 16px); line-height: 1.45; max-width: 44ch; }
.g-abrir { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text); padding: 4px 0; border-bottom: 1px solid var(--line); }
.g-abrir:hover { border-color: var(--cian); }
@media (max-width: 860px) {
  .s-work__count { left: var(--gx); top: 118px; }
  .s-work__bar { left: calc(var(--gx) + 70px); right: calc(var(--gx) + 120px); top: 126px; }
  .g-nombre { font-size: 34px; }
}

/* ── 03 Servicios ───────────────────────────────────────────────────────── */
.s-services { padding: 22vh var(--gx) 18vh calc(var(--gx) + 230px); }
.s-services__title { font: 500 clamp(44px, 7vw, 120px)/.95 var(--sans); letter-spacing: -.05em; margin-bottom: 8vh; }
.s-services__list { border-top: 1px solid var(--line); max-width: 1200px; }
.svc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 210px; gap: 32px; align-items: baseline; padding: 34px 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease); }
.svc h3 { font: 500 clamp(26px, 2.8vw, 44px)/1.05 var(--sans); letter-spacing: -.035em; transition: color .3s; }
.svc p { color: var(--text-2); font-size: 16px; max-width: 46ch; }
.svc .mono { color: var(--text-2); text-align: right; }
.svc:hover { padding-left: 18px; }
.svc:hover h3 { color: var(--cian); }
@media (max-width: 900px) {
  .s-services { padding-left: var(--gx); }
  .svc { grid-template-columns: 1fr; gap: 10px; }
}

/* ── 04 Contacto ────────────────────────────────────────────────────────── */
.s-contact { height: 240vh; }
.s-contact__stick { isolation: isolate; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; text-align: center; padding: 0 var(--gx); }
.s-contact__stick::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(1100px, 100vw); height: 420px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgb(var(--noche-rgb) / .75), transparent); pointer-events: none; z-index: -1; }
.s-contact__red { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.s-contact__kicker { color: var(--text); }
/* El botón de contacto vive aquí, en el índigo de la paleta (como el de arriba). */
.s-contact .pill { background: var(--cian); color: var(--sobre-cian); --ht-color: var(--sobre-cian); box-shadow: 0 12px 32px color-mix(in srgb, var(--cian) 30%, transparent), inset 0 1px 0 rgba(255, 255, 255, .18); }
.s-contact .pill:hover { background: var(--cian-hondo); }
/* En Contacto el botón de arriba sobra: el de la sección es el protagonista. */
.hud__contacto { transition: opacity .5s var(--ease), transform .5s var(--ease), background .3s var(--ease); }
/* Sale del flujo: la música se corre a la esquina en vez de dejar un hueco. */
html[data-sec="contacto"] .hud__contacto { position: absolute; top: 0; right: 0; opacity: 0; transform: translateY(-8px); pointer-events: none; }
.s-contact__title { font: 500 clamp(52px, 10vw, 170px)/.92 var(--sans); letter-spacing: -.055em; text-shadow: 0 0 80px rgb(var(--noche-rgb) / .8); }

/* ── Detalle de proyecto ────────────────────────────────────────────────── */
.detail { transition: background-color .7s var(--ease), color .7s var(--ease); color: var(--text); position: fixed; inset: 0; z-index: 120; background: var(--noche); overflow: hidden; overscroll-behavior: contain; touch-action: none; }
.detail[hidden] { display: none; }
.detail__close { position: fixed; right: var(--gx); top: calc(28px + env(safe-area-inset-top, 0px)); z-index: 3; transition: background .35s var(--ease), color .35s var(--ease);
  background: var(--superficie-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); --ht-color: var(--text); }
.detail__close:hover { background: var(--superficie); }
/* La marca WildCore no se va nunca: en el detalle toma el color de texto del cliente. */
.detail__logo { position: fixed; left: var(--gx); top: calc(30px + env(safe-area-inset-top, 0px)); z-index: 3; color: var(--text); transition: color .7s var(--ease), opacity .3s; }
.detail__logo:hover { opacity: .7; }
.detail__logo.is-sig { color: var(--sig-texto); transition-duration: .35s; }
.detail__close.is-sig { background: var(--sig-fondo); color: var(--sig-texto); --ht-color: var(--sig-texto); box-shadow: inset 0 0 0 1px var(--sig-linea); }
.detail .d-link { background: var(--m-cta); color: var(--m-sobre-cta); --ht-color: var(--m-sobre-cta); }
.detail .d-link:hover { background: var(--m-cta); filter: brightness(1.1); }
.detail .d-mock, .detail .d-mock .mock { --cian: var(--m-pantalla-acento); --azul: var(--m-pantalla-acento); --panel: var(--m-pantalla-a);
  --azul-hondo: color-mix(in srgb, var(--m-pantalla-acento) 38%, var(--m-pantalla-b)); }
.detail .d-mock { background: radial-gradient(80% 90% at 30% 20%, var(--m-pantalla-a), var(--m-pantalla-b) 70%); box-shadow: inset 0 0 0 1px var(--line); }
.detail ::selection { background: var(--m-acento); color: var(--m-sobre-cta); }
/* Detalle horizontal (Lusion): paneles en fila que se deslizan con el scroll. */
.detail__inner { position: absolute; inset: 0; }
.d-pista { position: absolute; left: 0; top: 0; height: 100%; display: flex; align-items: center; gap: clamp(28px, 3.5vw, 64px); padding: 0 0 0 var(--gx); will-change: transform; }
.d-panel { flex: none; position: relative; }
.d-ficha { width: min(760px, 78vw); display: flex; flex-direction: column; gap: 20px; padding-right: 2vw; }
.d-tags { color: var(--cian); }
.d-ficha h2 { font: 500 clamp(56px, 8vw, 140px)/.9 var(--sans); letter-spacing: -.055em; }
.d-lead { font-size: clamp(20px, 2vw, 30px); line-height: 1.2; letter-spacing: -.02em; max-width: 26ch; }
.d-ficha__cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; margin-top: 10px; }
.d-intro { color: var(--text-2); font-size: 15px; line-height: 1.6; }
.d-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; align-content: start; }
.d-meta dt { color: var(--cian); margin-bottom: 4px; font-size: 11px; }
.d-meta dd { font-size: 15px; }
.d-link { align-self: flex-start; margin-top: 8px; }
.d-stack { display: flex; flex-wrap: wrap; gap: 8px; }
.d-stack li { font-size: 11px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); }
.d-foto { height: 76vh; width: min(68vw, 1180px); border-radius: 22px; overflow: hidden; background: var(--superficie-2); }
.d-foto--grande { width: min(82vw, 1400px); }
.d-foto--alta { width: min(54vh, 600px); }
.d-foto > img, .d-foto > video, .d-foto > .s-work__grid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.d-texto { width: min(820px, 80vw); display: flex; flex-direction: column; gap: 28px; }
.d-texto h3, .d-maqueta h3, .d-resultados h3 { color: var(--text-2); font-weight: 500; }
.d-built { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
.d-built strong { display: block; font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; letter-spacing: -.02em; margin-bottom: 8px; }
.d-built p { color: var(--text-2); font-size: 15px; line-height: 1.55; }
.d-maqueta { width: min(900px, 84vw); display: flex; flex-direction: column; gap: 20px; }
.d-maqueta--grande { width: min(82vw, 1400px); }
.d-maqueta--grande .d-mock { height: 76vh; }
.d-mock { position: relative; height: min(62vh, 520px); border-radius: 22px; overflow: hidden; background: radial-gradient(80% 90% at 30% 20%, #1E1164, #090819 70%); }
.d-resultados { width: min(760px, 80vw); display: flex; flex-direction: column; gap: 28px; }
.d-facts { display: flex; gap: 48px; flex-wrap: wrap; }
.d-facts dt { font: 500 clamp(56px, 6vw, 104px)/1 var(--sans); letter-spacing: -.05em; color: var(--m-acento-2, var(--cian)); }
.d-facts dd { color: var(--text-2); max-width: 200px; margin-top: 8px; }
/* Al final, el próximo proyecto ocupa toda la pantalla (como Lusion): su nombre
   en grande, cortado por el borde, y "Próximo proyecto" con una línea que se
   llena mientras se sigue bajando. */
.d-next { height: 100vh; width: 100vw; margin-left: 6vw; text-align: left; cursor: pointer; overflow: hidden;
  background: linear-gradient(180deg, var(--superficie), var(--superficie-2)); border-left: 1px solid var(--line); }
.d-next__nombre { position: absolute; left: 7vw; top: 50%; transform: translateY(-50%); white-space: nowrap;
  font: 500 clamp(110px, 16vw, 300px)/.9 var(--sans); letter-spacing: -.06em; color: var(--text); opacity: .16;
  transition: opacity .6s var(--ease), transform .8s var(--ease); }
.d-next:hover .d-next__nombre { opacity: .3; transform: translate(-1.5vw, -50%); }
.d-next__pie { position: absolute; left: 7vw; bottom: calc(40px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 18px; color: var(--text); }
.d-next__pie .mono { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.d-next__linea { position: relative; width: 120px; height: 2px; background: var(--line); }
.d-next__linea i { position: absolute; inset: 0; background: var(--text); transform-origin: left; transform: scaleX(0); }
.d-next__flecha { font-size: 22px; line-height: 1; }
.d-pie { transition: opacity .3s linear; position: absolute; left: var(--gx); right: var(--gx); bottom: calc(26px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 20px; z-index: 2; pointer-events: none; }
.d-pista__hint { color: var(--cian); white-space: nowrap; }
.d-pista__hint i { font-style: normal; }
.d-progreso { position: relative; flex: 1; height: 1px; background: var(--line); }
.d-progreso i { position: absolute; inset: 0; background: var(--m-acento, var(--cian)); transform-origin: left; transform: scaleX(0); }
@media (max-width: 860px) {
  .d-pista { gap: 18px; }
  .d-ficha { width: 86vw; }
  .d-ficha__cols { grid-template-columns: 1fr; gap: 18px; }
  .d-foto, .d-foto--grande { height: 62vh; width: 84vw; }
  .d-foto--alta { width: 70vw; }
  .d-texto, .d-maqueta, .d-resultados { width: 86vw; }
  .d-built { grid-template-columns: 1fr; gap: 20px; }
}

/* ── Maquetas animadas ──────────────────────────────────────────────────── */
.mock { inset: 0; padding: clamp(16px, 3vw, 32px); display: flex; flex-direction: column; font-size: 14px; position: absolute; }
.mock--chat { align-items: flex-end; justify-content: center; }
.chat__top, .chat__body { width: min(380px, 100%); }
.chat__top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px 16px 0 0; background: rgba(27, 28, 39, .9); backdrop-filter: blur(10px); }
.chat__top small { display: block; color: var(--text-2); font-size: 12px; }
.chat__avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--cian); color: var(--sobre-cian); font: 800 12px/1 var(--logo); }
.chat__body { display: flex; flex-direction: column; gap: 8px; padding: 16px; min-height: 230px; border-radius: 0 0 16px 16px; background: rgba(18, 18, 32, .82); backdrop-filter: blur(10px); }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 14px; line-height: 1.4; opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.msg.is-on { opacity: 1; transform: none; }
.msg--in { align-self: flex-start; background: rgba(232, 234, 236, .1); border-bottom-left-radius: 4px; }
.msg--out { align-self: flex-end; background: var(--azul-hondo); border-bottom-right-radius: 4px; }
.msg--sys { align-self: center; font: 400 12px/1.4 var(--mono); color: var(--cian); background: color-mix(in srgb, var(--cian) 10%, transparent); }
.mock--fleet { gap: 18px; justify-content: center; font-family: var(--mono); font-size: 12.5px; }
.fleet__top { display: flex; justify-content: space-between; color: var(--text-2); }
.fleet__top strong { color: var(--text); font-weight: 500; }
.fleet__phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fleet__phases li { padding: 10px 6px; border-radius: 8px; border: 1px solid var(--line); color: var(--text-2); text-align: center; transition: all .35s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fleet__phases li.is-done { color: var(--text); border-color: color-mix(in srgb, var(--azul) 55%, transparent); background: color-mix(in srgb, var(--azul) 12%, transparent); }
.fleet__phases li.is-now { color: var(--sobre-cian); background: var(--cian); border-color: var(--cian); }
.fleet__reviewers { display: flex; flex-wrap: wrap; gap: 8px; }
.fleet__reviewers span { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); transition: all .3s; }
.fleet__reviewers span.is-ok { border-color: var(--cian); color: var(--cian); }
.fleet__log { margin: 0; min-height: 5.4em; color: var(--text-2); line-height: 1.8; white-space: pre-wrap; }
.fleet__log b { color: var(--cian); font-weight: 500; }
.mock--coach { justify-content: flex-end; gap: 12px; }
.coach__q { align-self: flex-end; max-width: 80%; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: rgba(27, 28, 39, .9); backdrop-filter: blur(8px); }
.coach__a { max-width: 88%; min-height: 6em; padding: 14px 16px; border-radius: 14px 14px 14px 4px; background: rgba(23, 24, 36, .88); border: 1px solid color-mix(in srgb, var(--azul) 40%, transparent); line-height: 1.55; backdrop-filter: blur(8px); }
.coach__a sup { color: var(--cian); font: 500 11px var(--mono); }
.coach__sources { display: flex; gap: 8px; flex-wrap: wrap; opacity: 0; transition: opacity .5s; }
.coach__sources.is-on { opacity: 1; }
.coach__sources span { display: inline-flex; gap: 8px; align-items: center; padding: 7px 12px; border-radius: 999px; background: rgba(27, 28, 39, .9); font-size: 13px; }
.coach__sources b { font: 500 12px var(--mono); color: var(--cian); }
.mock--batch { gap: 14px; left: auto; width: min(52%, 420px); justify-content: center; }
.batch__top { display: flex; justify-content: space-between; font: 400 12px/1 var(--mono); color: var(--text-2); }
.batch__top strong, .batch__top b { color: var(--text); font-weight: 500; }
.batch__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.tile { aspect-ratio: 1; border-radius: 5px; background: rgba(232, 234, 236, .06); position: relative; overflow: hidden; }
.tile::after { content: ""; position: absolute; inset: 0; background: var(--g); opacity: 0; transform: scale(1.15); transition: opacity .6s var(--ease), transform .9s var(--ease); }
.tile.is-on::after { opacity: 1; transform: none; }
@media (max-width: 860px) {
  .mock { font-size: 12px; padding: 12px; }
  .chat__body { min-height: 0; }
  .mock--batch { width: 100%; }
  .fleet__phases li { padding: 7px 3px; }
}

/* ── Contáctenos ────────────────────────────────────────────────────────── */
/* Arriba a la derecha y siempre visible, como el logo: lleva a la sección de contacto. */
.hud__cta { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1.6 var(--mono); letter-spacing: .04em; color: var(--text); transition: color .3s; }
.hud__cta .dot { background: var(--carmin); }
.hud__cta:hover { color: var(--cian); }
.hud__contacto.pill { height: 48px; padding: 0 24px; font-size: 13px; gap: 14px; background: var(--cian); color: var(--sobre-cian); --ht-color: var(--sobre-cian);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--cian) 32%, transparent), inset 0 1px 0 rgba(255, 255, 255, .18); }
.hud__contacto .dot { width: 6px; height: 6px; background: var(--sobre-cian); box-shadow: 0 0 0 3px rgba(255, 255, 255, .22); }
.hud__contacto.pill:hover { background: var(--cian-hondo); transform: translateY(-1px); }
/* Música: un aro con una onda de sonido (no la corchea de siempre). */
.musica { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  background: radial-gradient(circle at 50% 30%, var(--superficie), var(--superficie-2) 75%); box-shadow: 0 8px 24px rgb(var(--text-rgb) / .08);
  transition: box-shadow .5s var(--ease), transform .3s var(--ease); }
.musica svg { width: 50px; height: 50px; overflow: visible; }
.musica__aro { fill: none; stroke: url(#musicaGrad); stroke-width: 1.6; opacity: .45; transition: opacity .5s var(--ease); }
.musica__aro2 { fill: none; stroke: color-mix(in srgb, var(--cian) 16%, transparent); stroke-width: 1; }
.musica__onda rect { fill: url(#musicaGrad); }
.musica__onda { opacity: .5; transition: opacity .5s var(--ease); }
.musica:hover { transform: translateY(-1px); }
.musica:hover .musica__aro, .musica:hover .musica__onda { opacity: .8; }
/* Sonando: el aro y la onda se encienden y el botón brilla en el acento. */
.musica.is-on { box-shadow: 0 0 0 4px color-mix(in srgb, var(--cian) 9%, transparent), 0 8px 28px color-mix(in srgb, var(--cian) 32%, transparent); }
.musica.is-on .musica__aro, .musica.is-on .musica__onda { opacity: 1; }
.musica.is-on svg { filter: drop-shadow(0 0 3px color-mix(in srgb, var(--cian) 45%, transparent)); }

/* Reel abierto a pantalla completa: solo el video y el logo, pequeño en la esquina. */
.hud__tl { transform-origin: 0 0; transition: transform .6s var(--ease); }
body.is-reel .hud__tl { transform: translate(-12px, -12px) scale(.62); }
body.is-reel .hud__desliza, body.is-reel .hud__tr, body.is-reel .hud__bl, body.is-reel .hud__br,
body.is-reel .marks { filter: opacity(0); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .s-hero__title span, .s-statement__text .w { opacity: 1; }
  .msg, .coach__sources, .tile::after { opacity: 1; transform: none; }
}

/* ── Mantén para activar ────────────────────────────────────────────────── */
.hold { position: fixed; left: 0; top: 0; z-index: 70; width: 0; height: 0; pointer-events: none; }
.hold__in {
  position: absolute; left: -36px; top: -36px; width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle, rgb(var(--superficie-rgb) / .6), rgb(var(--superficie-rgb) / 0) 80%);
  border: 1px solid rgb(var(--text-rgb) / .14);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  opacity: 0; transform: scale(.6); transition: opacity .4s ease, transform .6s var(--ease);
}
.hold.is-on .hold__in { opacity: 1; transform: scale(1); }
.hold.is-holding .hold__in { transform: scale(.82); }
.hold__txt { position: relative; z-index: 2; font-size: 8px; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.hold__ring { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); transform: rotate(-90deg); }
.hold__track { fill: none; stroke: rgb(var(--text-rgb) / .12); stroke-width: 1.5; }
.hold__fill { fill: none; stroke: var(--cian); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 4px color-mix(in srgb, var(--cian) 45%, transparent)); }
.hold__pulse { position: absolute; inset: 0; border-radius: 50%; }
.hold__pulse::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, transparent 55%, color-mix(in srgb, var(--cian) 25%, transparent)); animation: holdPulso 4s linear infinite; }
@keyframes holdPulso { 0% { transform: scale(0); opacity: 0; } 20% { transform: scale(.75); opacity: .7; } 32% { transform: scale(1.05); opacity: 0; } 100% { transform: scale(1.05); opacity: 0; } }
.hold.is-touch { left: 50%; top: auto; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); pointer-events: auto; touch-action: none; -webkit-user-select: none; user-select: none; }
.hold.is-touch .hold__in { top: -72px; }
@media (pointer: fine) { body.is-holding, body.is-holding * { cursor: none !important; } }
body.is-holding { -webkit-user-select: none; user-select: none; }
/* Foco: al mantener y en el mensaje, solo queda el logo. */
/* Con filter y no con opacity: así no choca con el fundido de entrada del HUD (GSAP). */
.hud__desliza, .hud__tr, .hud__bl, .hud__br, .marks { transition: filter .8s var(--ease); }
body.is-focus .hud__desliza, body.is-focus .hud__tr, body.is-focus .hud__bl, body.is-focus .hud__br, body.is-focus .marks { filter: opacity(0); pointer-events: none; transition-duration: .4s; }
/* Pasado el inicio el contenido es el protagonista: del HUD quedan el logo,
   Contáctenos y la sección. */
html[data-sec]:not([data-sec="inicio"]) .hud__desliza,
html[data-sec]:not([data-sec="inicio"]) .hud__bl, html[data-sec]:not([data-sec="inicio"]) .hud__br { filter: opacity(0); pointer-events: none; }
.hud__seccion { position: absolute; left: var(--gx); bottom: calc(30px + env(safe-area-inset-bottom, 0px)); font-size: 12px; color: var(--text-2); filter: opacity(0); transition: filter .8s var(--ease); pointer-events: none; }
.hud__seccion b { color: var(--carmin-texto); font-weight: 500; margin-right: .5em; }
html[data-sec]:not([data-sec="inicio"]) .hud__seccion { filter: opacity(1); }
body.is-reel .hud__seccion, body.is-focus .hud__seccion { filter: opacity(0); }
@media (max-width: 760px) { .hud__seccion { display: none; } }

/* ── Mensaje al activar ─────────────────────────────────────────────────── */
.reveal { position: fixed; inset: 0; z-index: 75; cursor: pointer; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 0 clamp(24px, 9vw, 160px); }
.reveal[hidden] { display: none; }
.reveal::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(var(--noche-rgb) / .85), transparent 34%, transparent 66%, rgb(var(--noche-rgb) / .85)); pointer-events: none; }
.reveal > * { position: relative; }
.reveal p { max-width: 30ch; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.7; color: var(--text-2); text-shadow: 0 0 8px rgb(var(--noche-rgb) / .9); }
.reveal b { color: var(--text); font-weight: 600; }
.reveal__l { justify-self: start; align-self: center; transform: translateY(-12vh); }
.reveal__r { justify-self: end; transform: translateY(12vh); }
/* la invitación: bajo la esfera, centrada */
.reveal__invita { grid-column: 1 / -1; justify-self: center; align-self: end; transform: none; margin-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  display: grid; justify-items: center; gap: 14px; text-align: center; width: min(100%, 820px); }
.reveal .reveal__t { margin: 0; font: 600 clamp(28px, 3.1vw, 48px)/1.04 var(--sans); letter-spacing: -.04em; color: var(--text); text-shadow: 0 0 18px rgb(var(--noche-rgb) / .9); }
.reveal .reveal__invita p { max-width: none; margin: 0; }
.reveal__cta { margin-top: 10px; }
.reveal__close { position: absolute; left: 50%; bottom: calc(32px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); color: #E9EBED; letter-spacing: .1em; text-transform: uppercase; font-size: 11px; padding: 9px 16px; border-radius: 999px; background: rgba(13, 14, 29, .85); border: 1px solid rgba(65, 38, 194, .4); backdrop-filter: blur(8px); }
@media (max-width: 760px) {
  .reveal { grid-template-columns: 1fr; align-content: center; gap: 40px; }
  .reveal__l, .reveal__r { transform: none; justify-self: start; }
  .reveal:has(.reveal__invita) { align-content: end; }
  .reveal__invita { justify-self: center; align-self: end; }
}

/* ── Sonido ─────────────────────────────────────────────────────────────── */
.sound { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); padding: 0; transition: color .3s; }
.sound:hover, .sound.is-on { color: var(--text); }
.sound__wave { display: inline-flex; align-items: center; gap: 2px; height: 12px; }
.sound__wave b { width: 2px; height: 3px; background: currentColor; border-radius: 1px; transition: height .3s; }
.sound.is-on .sound__wave b { animation: onda 1s ease-in-out infinite; }
.sound.is-on .sound__wave b:nth-child(2) { animation-delay: .2s; } .sound.is-on .sound__wave b:nth-child(3) { animation-delay: .4s; } .sound.is-on .sound__wave b:nth-child(4) { animation-delay: .6s; }
@keyframes onda { 0%, 100% { height: 3px; } 50% { height: 12px; } }

/* ── Texto que se desliza al pasar el mouse ─────────────────────────────── */
.ht { display: inline-flex; overflow: hidden; line-height: 1.2; vertical-align: middle; }
.ht__c { position: relative; display: inline-block; transition: transform .55s var(--ease); transition-delay: calc(var(--i) * 16ms); }
.ht__c::after { content: attr(data-c); position: absolute; left: 0; top: 100%; color: var(--ht-color, var(--cian)); }
.pill { --ht-color: var(--noche); }
a:hover > .ht .ht__c, button:hover > .ht .ht__c, a:focus-visible > .ht .ht__c { transform: translateY(-100%); }

/* ── Reel: la cinta envuelve la tableta; el video se abre solo con clic ──── */
.reel-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .3s linear; }
/* 290vh: "Ver reel" termina de aparecer a las 2,6 pantallas y la sección queda quieta solo ~0,3 pantallas más
   (antes 370vh: ~1 pantalla quieta, se sentía trabado antes de pasar a Proyectos). */
.s-reel { height: 290vh; position: relative; }
.s-reel > video { position: absolute; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
.s-reel__stick {
  position: sticky; top: 0; height: 100vh;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: auto 1fr;
  gap: 32px clamp(32px, 5vw, 96px); align-items: center;
  padding: 120px calc(var(--gx) + 120px) 70px calc(var(--gx) + 120px);
}
.s-reel__title { grid-column: 1 / -1; align-self: end; font: 500 clamp(40px, 5.6vw, 96px)/.95 var(--sans); letter-spacing: -.05em; max-width: 16ch; }
.s-reel__slot { position: relative; width: 100%; aspect-ratio: 16 / 10.4; max-height: 50vh; justify-self: start; }
.s-reel__copy { display: flex; flex-direction: column; gap: 22px; max-width: 36ch; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; color: var(--text); }
.s-reel__copy p:nth-child(2) { color: var(--text-2); }
/* "Ver ▶ reel" sobre la tableta, como el Play Reel de Lusion. */
.s-reel__ver {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .5em;
  font: 500 clamp(30px, 3.6vw, 60px)/1 var(--sans); letter-spacing: -.04em; color: #fff;
  text-shadow: 0 0 40px rgba(0, 0, 0, .55); border-radius: 26px; cursor: pointer; opacity: 0; pointer-events: none;
}
.s-reel__ver.is-on { pointer-events: auto; }
.s-reel__ver i { display: grid; place-items: center; width: 2.4em; height: 1.4em; border-radius: 999px; background: #fff; color: #000; font-size: .5em; font-style: normal; transition: transform .4s var(--ease); }
.s-reel__ver:hover i { transform: scale(1.12); }
/* Reproductor: el lienzo del reel sube por encima de todo y aparece "Cerrar". */
/* El reel se reproduce centrado (~65 % del ancho) sobre la misma escena: se ocultan título y textos,
   y quedan el menú, las partículas y la línea azul. "Cerrar" va centrado debajo del video. */
body.is-player .s-reel__title, body.is-player .s-reel__copy, body.is-player .s-reel__ver { opacity: 0 !important; visibility: hidden; pointer-events: none; transition: opacity .5s var(--ease), visibility 0s .5s; }
.s-reel__title, .s-reel__copy { transition: opacity .6s var(--ease); }
.reel-cerrar { position: fixed; left: 50%; top: calc(50vh + min(21.2vw, 36vh) + 22px); transform: translateX(-50%); z-index: 120; }
@media (max-width: 760px) { .reel-cerrar { top: calc(50vh + min(29.9vw, 36vh) + 18px); } }
.reel-cerrar[hidden] { display: none; }
@media (max-width: 900px) {
  .s-reel__stick { grid-template-columns: 1fr; grid-template-rows: auto auto auto; padding: 100px var(--gx) 50px; gap: 24px; align-content: center; overflow: clip; }
  .s-reel__slot { max-height: 34vh; }
  .s-reel__copy p:nth-child(2) { display: none; }
}

/* ── Línea de luz que recorre la página y fluido del mouse (ideas de Lusion) ── */
.fluido-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 55; pointer-events: none; }
/* Letras que el humo de la estela desplaza (js/humo-texto.js): cada palabra sin cortes, cada letra movible. */
x-p { display: inline; white-space: nowrap; }
x-l { display: inline-block; }
/* Copia del texto para lectores de pantalla (las letras sueltas van ocultas para ellos). */
.humo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (pointer: coarse), (prefers-reduced-motion: reduce) { .fluido-canvas { display: none; } }


/* Las maquetas de los proyectos son "pantallas": mantienen su interfaz oscura. */
.mock, .d-mock, .s-work__grid {
  --text: #E9EBED; --text-2: #A8A9B4; --text-3: #6C6D78; --line: rgba(233, 235, 237, .12);
  --cian: #F8BC7A; --azul: #472AD3; --panel: #121220;
  color: var(--text);
}
.mock { --noche: #060516; }

/* Mientras el puntero está sobre el selector de colores no se muestran el cursor propio ni el "Mantén". */
html.sobre-paletas .hold, html.sobre-paletas .cursor { opacity: 0 !important; transition: opacity .15s; }

/* Menú de puntos (idea de utsubo): un punto por sección en el borde derecho, centrado en
   vertical, donde nada más lo ocupa. Al pasar el cursor, y un momento al entrar a una
   sección, su nombre se desliza a la izquierda del punto. */
.hud__nav { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; pointer-events: auto; transition: opacity .6s var(--ease); }
.hud__nav a { position: relative; display: flex; padding: 16px 20px; opacity: .3; transition: opacity .4s; }
.hud__nav a:hover, .hud__nav a:focus-visible { opacity: .75; outline: none; }
.hud__nav a.is-on { opacity: 1; }
.hud__punto { position: relative; width: 4px; height: 4px; border-radius: 50%; background: #FCFCFC; }
/* Halo del punto activo: en el azul eléctrico → celeste del logo. */
.hud__punto::before { content: ""; position: absolute; inset: 0; border-radius: 50%; opacity: 0; transform: scale(0);
  box-shadow: 0 0 4px 4px rgba(47, 107, 255, .35), 0 0 6px 6px rgba(56, 182, 255, .5); transition: opacity .4s, transform .4s; }
.hud__nav a.is-on .hud__punto::before { opacity: .45; transform: scale(1); }
.hud__nav a:hover .hud__punto::before, .hud__nav a:focus-visible .hud__punto::before { opacity: .3; transform: scale(1); }
.hud__capitulo { position: absolute; right: calc(100% - 4px); top: 50%; white-space: nowrap; font-size: 12px; letter-spacing: .04em; color: #EEF1F5;
  opacity: 0; transform: translate3d(12px, -50%, 0); pointer-events: none; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.hud__nav a:hover .hud__capitulo, .hud__nav a:focus-visible .hud__capitulo, .hud__nav a.is-anuncio .hud__capitulo {
  opacity: 1; transform: translate3d(0, -50%, 0); transition: opacity 1.4s var(--ease), transform 1.2s var(--ease); }
/* Entrada: los puntos aparecen uno a uno al terminar la intro. */
html:not(.is-intro) .hud__nav a { animation: puntoEntra 1.3s var(--ease) backwards; animation-delay: calc(.4s + var(--i) * .08s); }
@keyframes puntoEntra { from { opacity: 0; transform: scale(0); } }
/* En Proyectos las tarjetas llegan al borde: los puntos se atenúan para no cargar la vista. */
html[data-sec="proyectos"] .hud__nav { opacity: .45; }
html[data-sec="proyectos"] .hud__nav:hover { opacity: 1; }
body.is-focus .hud__nav, body.is-player .hud__nav { opacity: 0; pointer-events: none; }
@media (max-width: 760px) { .hud__nav { display: none; } }

/* Eslogan: línea en español, más pequeña, debajo del título en inglés. */
.s-hero__title .s-hero__sub { margin-top: .9em; font-size: clamp(15px, 1.5vw, 22px); font-weight: 400; letter-spacing: -.005em; line-height: 1.3; color: var(--text-2); }

/* ── HUD según el diseño Melena: Carbón + cinta Eléctrico → celeste ── */
.logo { font: 600 38px/1 var(--sans); letter-spacing: -.04em; padding-top: 0; color: #EEF1F5; }
.logo__wild { background: linear-gradient(90deg, #2F6BFF, #38B6FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro__word { font-family: var(--sans); font-weight: 600; color: #EEF1F5; }
.hud__contacto.pill { height: 44px; padding: 0 22px; font: 500 12px/1 var(--mono); letter-spacing: .08em; gap: 12px;
  background: #EEF1F5; color: #111216; --ht-color: #111216; box-shadow: none; }
.hud__contacto .dot { width: 6px; height: 6px; background: #111216; box-shadow: none; }
.hud__contacto.pill:hover { background: #FFFFFF; }
.hud__br { max-width: 250px; }
/* Manifiesto: el título centrado sobre el párrafo; el párrafo sigue a la derecha con líneas parejas. */
.hud__br .hud__kicker { align-self: stretch; text-align: center; }
.hud__kicker { color: #EEF1F5 !important; }
.hud .hud__text { color: #9CA0AE; line-height: 1.5; text-wrap: balance; }
.musica { background: #16171C; box-shadow: inset 0 0 0 1px rgba(238, 241, 245, .1); }
.musica__aro2 { stroke: rgba(238, 241, 245, .1); }
.musica.is-on { box-shadow: inset 0 0 0 1px rgba(238, 241, 245, .3), 0 0 0 4px rgba(238, 241, 245, .05), 0 8px 24px rgba(0, 0, 0, .35); }
.musica.is-on svg { filter: drop-shadow(0 0 3px rgba(238, 241, 245, .3)); }
@media (max-width: 760px) { .logo { font-size: 28px; } .hud .hud__contacto.pill { height: 38px; padding: 0 16px; font-size: 11px; gap: 10px; } }

/* Botón para cerrar la activación: discreto, no compite con el núcleo */
.reveal__close { background: transparent; color: #9CA0AE; border: 1px solid rgba(238, 241, 245, .14); box-shadow: none; backdrop-filter: none; }
.reveal__close:hover { color: #EEF1F5; border-color: rgba(238, 241, 245, .3); }

/* Prueba: la sección del reel en fondo claro (se activa con body.is-claro al llegar a #reel) */
body { transition: background-color .7s var(--ease), color .7s var(--ease); }
body.is-claro { background-color: #EEF0F4; --text: #111216; --text-2: #4E525C; --text-3: #8A8E98; --text-rgb: 17 18 22; }
body.is-claro .logo { color: #111216; }
body.is-claro .hud__contacto.pill { background: #111216; color: #EEF0F4; --ht-color: #EEF0F4; }
body.is-claro .hud__contacto .dot { background: #EEF0F4; }
body.is-claro .hud__nav a, body.is-claro .hud__nav a > span { color: #8A8E98; }
body.is-claro .hud__nav a.is-on, body.is-claro .hud__nav a.is-on > span { color: #111216; }
body.is-claro .hud__kicker { color: #111216 !important; }
body.is-claro .hud .hud__text, body.is-claro .hud .mono { color: #4E525C; }
body.is-claro .musica { background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(17, 18, 22, .12); }
body.is-claro .s-reel__title, body.is-claro .s-reel__copy p:first-child { color: #111216; }
body.is-claro .s-reel__copy p:nth-child(2) { color: #4E525C; }
.logo, .hud__contacto.pill, .hud__nav a, .hud__nav a > span, .musica, .s-reel__title, .s-reel__copy p { transition: color .7s var(--ease), background-color .7s var(--ease); }

/* Botón "Ver reel" bajo el texto (dirección A · Lusion claro) */
.s-reel__pill { align-self: flex-start; background: #fff; color: #111216; --ht-color: #111216; box-shadow: 0 6px 18px rgba(17,18,22,.08); }
.s-reel__pill:hover { background: #A5E3FF; }

/* Reel en escritorio: misma composición que el mockup A (marco de 1440×900 escalado a la ventana),
   para que la cinta —que se traza en proporción a la tableta— caiga igual que en el diseño. */
@media (min-width: 901px) {
  .s-reel__stick { --u: min(calc(100vw / 1440), calc(100vh / 900)); display: block; padding: 0; }
  .s-reel__title, .s-reel__slot, .s-reel__copy { position: absolute; margin: 0; }
  /* La cinta azul se traza sobre la guía (el rectángulo de la tableta del diseño original, 640×400), así conserva
     su recorrido; la tableta crece un poco (720×468) sobre el mismo centro y la lista de pasos va a la derecha.
     Todo el bloque sube 46 (cinta incluida) para quedar más cerca del título. */
  .s-reel__guia { position: absolute; left: calc(50vw - 560 * var(--u)); top: calc(50vh + 24 * var(--u));
    width: calc(640 * var(--u)); height: calc(306 * var(--u)); visibility: hidden; pointer-events: none; }
  .s-reel__title { left: calc(50vw - 600 * var(--u)); top: calc(50vh - 262 * var(--u)); width: calc(1000 * var(--u)); max-width: none;
    font-size: calc(96 * var(--u)); line-height: .95; letter-spacing: -.05em; }
  .s-reel__slot { left: calc(50vw - 600 * var(--u)); top: calc(50vh - 130 * var(--u)); width: calc(720 * var(--u)); height: calc(468 * var(--u));
    aspect-ratio: auto; max-height: none; }
  .s-reel__copy { left: calc(50vw + 190 * var(--u)); top: calc(50vh - 130 * var(--u)); width: calc(390 * var(--u)); max-width: none;
    gap: calc(22 * var(--u)); font-size: max(14px, calc(18 * var(--u))); }
}
.s-reel__guia { display: none; }
/* Donde la cinta azul pasa por detrás de la columna de texto, un halo oscuro mantiene la letra legible. */
.s-reel__copy { text-shadow: 0 0 3px #0b0c0f, 0 0 10px #0b0c0f, 0 0 22px #0b0c0f, 0 0 36px #0b0c0f; }
body.is-claro .s-reel__copy, .s-reel__copy .s-reel__pill { text-shadow: none; }
@media (min-width: 901px) { .s-reel__guia { display: block; } }
/* Pasos del video: siguen a la animación; el activo se marca en cian. */
.s-reel__pasos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid rgba(238,241,245,.12); }
.s-reel__pasos li { border-bottom: 1px solid rgba(238,241,245,.12); }
.s-reel__pasos button { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: baseline; gap: 14px; padding: .62em 0; cursor: pointer;
  font: 500 1.12em/1.2 var(--sans); letter-spacing: -.02em; color: var(--text-3, #686E78); transition: color .35s var(--ease); }
.s-reel__pasos button .mono { font-size: .62em; letter-spacing: .12em; color: inherit; }
.s-reel__pasos button:hover { color: var(--text); }
.s-reel__pasos button:focus-visible { outline: 2px solid #38B6FF; outline-offset: 4px; }
.s-reel__pasos button[aria-current="step"] { color: var(--text); }
.s-reel__pasos button[aria-current="step"] .mono { color: #38B6FF; }
.s-reel__paso { margin: 0; min-height: 3em; font-size: .78em !important; line-height: 1.5; letter-spacing: .02em; color: var(--text-2); }
body.is-player .s-reel__pasos, body.is-player .s-reel__paso { visibility: hidden; }
@media (max-width: 900px) {
  .s-reel__pasos { flex-direction: row; flex-wrap: wrap; gap: 6px; border: 0; }
  .s-reel__pasos li { border: 0; }
  .s-reel__pasos button { width: auto; padding: 5px 9px; border: 1px solid rgba(238,241,245,.14); border-radius: 999px; font-size: 12px; gap: 5px; }
  .s-reel__paso { display: none; }
  .s-reel__copy { font-size: 15px; gap: 14px; }
}

/* Polvo y glifos del hero en el manifiesto y el reel (capa propia, detrás del contenido) */
.polvo-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .8s linear; }
.polvo-canvas.is-on { opacity: 1; }

/* Servicios en escritorio: la sección queda fija una pantalla (como el reel) mientras se dibuja la C,
   con el contenido compacto y centrado para que los cinco servicios quepan completos. */
@media (min-width: 901px) {
  .s-services { --u: min(calc(100vw / 1440), calc(100vh / 900)); height: 230vh; padding: 0; position: relative; }
  .s-services__stick { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center;
    padding: 70px var(--gx) 30px calc(50vw - 440 * var(--u)); }
  .s-services__title { font-size: calc(84 * var(--u)); margin-bottom: calc(34 * var(--u)); }
  .s-services__list { max-width: calc(1110 * var(--u)); }
  .svc { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) calc(200 * var(--u)); gap: calc(28 * var(--u)); padding: calc(17 * var(--u)) 0; }
  .svc h3 { font-size: max(20px, calc(29 * var(--u))); }
  .svc p { font-size: max(13px, calc(15 * var(--u))); line-height: 1.5; }
  .svc .mono { font-size: max(10px, calc(11.5 * var(--u))); }
}

/* Intro: al terminar de descifrarse "WildCore", el azul de "Wild" se pinta de izquierda a derecha
   (barrido suave) en vez de aparecer de golpe. Termina en el mismo degradado del logo. */
.intro__word .logo__wild.pinta {
  background-image: linear-gradient(90deg, #2F6BFF 0%, #38B6FF 44%, #EEF1F5 56%, #EEF1F5 100%);
  background-size: 225% 100%; background-position: 100% 0;
  animation: pintaWild .8s cubic-bezier(.65, 0, .35, 1) forwards;
}
@keyframes pintaWild { to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .intro__word .logo__wild.pinta { animation: none; background-position: 0 0; } }

/* ── Contacto: el logo WC de partículas es el protagonista (js/wc-contacto.js) ── */
.s-contact__red { display: none; }
.s-contact__wc { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.s-contact__stick { justify-content: flex-end; gap: 22px; padding-bottom: clamp(56px, 13vh, 150px); }
.s-contact__stick::before { display: none; }
.s-contact__kicker { position: relative; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Contacto con fondo gris claro (lo pinta js/wc-contacto.js): el texto pasa a oscuro para leerse */
.s-contact__kicker { color: #1b1d23; }

/* WildCore Labs: «Labs» va pegado al nombre, más liviano para que Wild y Core sigan mandando.
   El logo completo ocupa el mismo ancho que tenía «WildCore» (38px → 26px; en móvil 28px → 19px). */
.logo__labs { font-weight: 400; opacity: .62; }
.logo { font-size: 26px; }
@media (max-width: 760px) { .logo { font-size: 19px; } }

/* Contacto (fondo gris claro): botón negro */
.s-contact .pill { background: #111216; color: #EEF1F5; --ht-color: #EEF1F5; box-shadow: 0 14px 34px rgba(17, 18, 22, .28), inset 0 1px 0 rgba(255, 255, 255, .08); }
.s-contact .pill:hover { background: #2A2D36; }
.s-contact .pill .dot { background: #EEF1F5; }

/* Mientras se está sobre el gris claro de Contacto, el logo y el menú pasan a oscuro (body.en-contacto lo pone js/wc-contacto.js) */
body.en-contacto .logo { color: #111216; }
body.en-contacto .hud__contacto.pill { background: #111216; color: #EEF0F4; --ht-color: #EEF0F4; }
body.en-contacto .hud__contacto .dot { background: #EEF0F4; }
body.en-contacto .hud__nav a, body.en-contacto .hud__nav a > span { color: #8A8E98; }
body.en-contacto .hud__nav a.is-on, body.en-contacto .hud__nav a.is-on > span { color: #111216; }
body.en-contacto .hud__kicker { color: #111216 !important; }
body.en-contacto .hud .hud__text, body.en-contacto .hud .mono { color: #4E525C; }
body.en-contacto .musica { background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(17, 18, 22, .12); }

/* ===== Fase 0 · Ingeniería: sala de máquinas ===== */
.s-ing { --ia: #38B6FF; --ia2: #2F6BFF; position: relative; height: 420vh; }
.s-ing__stick { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 4vw;
  padding: 96px calc(var(--gx) + 24px) 64px max(calc(var(--gx) + 64px), 9vw); overflow: hidden; }
.s-ing__eyebrow { margin: 0 0 18px; color: var(--ia); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.s-ing__titulo { margin: 0 0 6vh; font: 500 clamp(40px, 5.4vw, 86px)/.95 var(--sans); letter-spacing: -.05em; }
.s-ing__capas { list-style: none; margin: 0; padding: 0; display: grid; max-width: 520px; }
.s-ing__capas > li { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 12px; padding-left: 26px; border-left: 2px solid transparent;
  border-image: linear-gradient(var(--ia), transparent) 1; opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .5s var(--ease), transform .7s var(--ease); }
.s-ing__capas > li.is-on { opacity: 1; transform: none; pointer-events: auto; transition-delay: .12s; }
.s-ing__capas > li > .mono { color: var(--ia); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.s-ing__capas h3 { margin: 0; font: 500 clamp(22px, 2vw, 30px)/1.12 var(--sans); letter-spacing: -.025em; }
.s-ing__capas p { margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.6; }
.s-ing__capas p b { color: var(--text); font-weight: 500; }
.s-ing__capas ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.s-ing__capas ul li { padding: 6px 10px; border-radius: 999px; font-size: 11px; color: var(--text-2); border: 1px solid var(--line); }

.s-ing__escena { position: relative; height: min(76vh, 720px); perspective: 1700px; }
.s-ing__pila { --sep: 16px; --gz: 0deg; --gx2: 0deg; position: absolute; left: 50%; top: 50%; width: min(28vw, 380px); aspect-ratio: 1;
  transform: translate(-50%, -50%) rotateX(calc(58deg + var(--gx2))) rotateZ(calc(-42deg + var(--gz))); transform-style: preserve-3d; }
.ing-placa { --alza: 0px; position: absolute; inset: 0; border-radius: 24px;
  transform: translateZ(calc((var(--i) - 1.5) * var(--sep) * 2.2 + var(--alza)));
  background-color: rgb(var(--superficie-rgb) / .05);
  background-image: linear-gradient(rgb(var(--text-rgb) / .07) 1px, transparent 1px), linear-gradient(90deg, rgb(var(--text-rgb) / .07) 1px, transparent 1px);
  background-size: 26px 26px; background-position: 12px 12px;
  border: 1px solid rgb(var(--text-rgb) / .2); opacity: .6;
  transition: transform .9s var(--ease), border-color .5s, box-shadow .6s, opacity .5s, background-color .5s; }
.ing-placa > span { position: absolute; left: 18px; bottom: 14px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); transition: color .5s; }
.ing-placa.is-on { --alza: 30px; opacity: 1; border-color: var(--ia); background-color: color-mix(in srgb, var(--ia) 9%, transparent);
  box-shadow: 0 0 0 1px var(--ia), 0 40px 90px -30px color-mix(in srgb, var(--ia) 70%, transparent), inset 0 0 60px color-mix(in srgb, var(--ia) 14%, transparent); }
.ing-placa.is-on > span { color: var(--ia); }
.ing-nodo { position: absolute; left: var(--x); top: var(--y); width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: rgb(var(--text-rgb) / .35); transition: background .5s; }
.ing-placa.is-on .ing-nodo { background: var(--ia); }
.ing-placa.is-on .ing-nodo::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--ia); animation: ingPulso 1.8s var(--ease) infinite; }
.ing-placa.is-on .ing-nodo:nth-child(3)::after { animation-delay: .6s; }
.ing-placa.is-on .ing-nodo:nth-child(4)::after { animation-delay: 1.2s; }
@keyframes ingPulso { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.ing-eje { position: absolute; left: var(--x); top: var(--y); width: 2px; margin-left: -1px; height: calc(var(--sep) * 6.6 + 40px); transform-origin: top center;
  transform: translateZ(calc(var(--sep) * 3.3 + 40px)) rotateX(-90deg);
  background: linear-gradient(transparent, var(--ia) 20%, var(--ia) 80%, transparent); opacity: .35; transition: height .9s var(--ease), transform .9s var(--ease); }
.ing-eje::after { content: ""; position: absolute; left: -2px; width: 6px; height: 18px; border-radius: 3px; background: var(--ia); box-shadow: 0 0 14px var(--ia); animation: ingBaja 2.4s linear infinite; }
.ing-eje + .ing-eje::after { animation-delay: 1.2s; }
@keyframes ingBaja { from { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { top: 100%; opacity: 0; } }

.s-ing__log { position: absolute; right: 0; bottom: 0; width: min(440px, 100%); min-height: calc(3 * 1.7em + 30px); margin: 0; padding: 14px 18px;
  border-radius: 14px; border: 1px solid var(--line); background: rgb(var(--superficie-rgb) / .06); backdrop-filter: blur(8px);
  font-size: 12px; line-height: 1.7; color: var(--text-2); white-space: pre-wrap; }
.s-ing__log b { color: var(--ia); font-weight: 500; }
.s-ing__progreso { position: absolute; right: calc(var(--gx) + 24px); top: 96px; color: var(--text-3); }
.s-ing__progreso b { color: var(--text); font-weight: 500; }

@media (max-width: 860px) {
  .s-ing { height: 460vh; }
  .s-ing__stick { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; gap: 0; padding: 92px var(--gx) 24px; }
  .s-ing__titulo { margin-bottom: 22px; font-size: clamp(34px, 9vw, 48px); }
  .s-ing__capas p { font-size: 14.5px; }
  .s-ing__escena { height: 100%; min-height: 240px; }
  .s-ing__pila { width: min(44vw, 200px); top: 60%; }
  .s-ing__capas ul { display: none; }
  .s-ing__log { font-size: 11px; padding: 10px 12px; }
  .s-ing__progreso { top: 92px; right: var(--gx); }
}
@media (prefers-reduced-motion: reduce) {
  .ing-eje::after, .ing-placa.is-on .ing-nodo::after { animation: none; }
}

/* ===== Fase 0 · maquetas de las piezas del Lab ===== */
.mock--fantasma { justify-content: center; gap: 16px; font-family: var(--mono); font-size: 12.5px; transition: background-color .4s; }
.mock--fantasma.is-rojo { background: radial-gradient(70% 60% at 50% 40%, rgba(224, 40, 30, .22), transparent 70%); }
.lf__top { display: flex; justify-content: space-between; align-items: baseline; text-transform: uppercase; letter-spacing: .12em; color: var(--text-2); }
.lf__top strong { color: var(--text); font-weight: 500; }
.lf__reloj { font-size: 22px; letter-spacing: .06em; color: var(--text); }
.is-rojo .lf__reloj { color: var(--cian); animation: lfParpadeo 1.1s steps(2) infinite; }
@keyframes lfParpadeo { 50% { opacity: .35; } }
.lf__tablero { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lf__tablero li { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; padding: 8px 12px; border-radius: 6px; background: rgba(255, 255, 255, .04);
  text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); opacity: 0; transform: rotateX(80deg); transform-origin: top; transition: opacity .3s, transform .45s var(--ease); }
.lf__tablero li.is-on { opacity: 1; transform: none; }
.lf__tablero li em { font-style: normal; }
.lf__tablero li b { color: var(--text); font-weight: 500; }
.lf__tablero .lf__13 { background: rgba(224, 40, 30, .16); color: var(--cian); box-shadow: inset 0 0 0 1px rgba(255, 90, 78, .5); }
.lf__tablero .lf__13.is-on { animation: lfGlitch .5s steps(3) 2; }
.lf__tablero .lf__13 b { color: var(--cian); }
@keyframes lfGlitch { 33% { transform: translateX(-4px); filter: blur(1px); } 66% { transform: translateX(3px); } }
.lf__ticket { position: absolute; right: 8%; bottom: 10%; display: grid; grid-template-columns: auto auto; align-items: center; gap: 2px 12px; padding: 12px 16px;
  border-radius: 6px; background: #EFE6DC; color: #1a1210; transform: translateY(30px) rotate(-8deg); opacity: 0; transition: transform .7s var(--ease), opacity .4s;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .5); }
.lf__ticket.is-on { opacity: 1; transform: rotate(-5deg); }
.lf__ticket small { grid-column: 1; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; }
.lf__ticket b { grid-column: 2; grid-row: 1 / 3; font-size: 34px; line-height: 1; color: #C8231A; }
.lf__ticket span { grid-column: 1; font-size: 10px; letter-spacing: .04em; opacity: .7; }

.mock--abisal { justify-content: space-between; overflow: hidden; }
.ab__prof { display: flex; align-items: baseline; gap: 8px; z-index: 1; }
.ab__prof small { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); margin-right: 8px; }
.ab__prof b { font: 800 clamp(40px, 6vw, 68px)/1 var(--logo); letter-spacing: -.03em; color: var(--cian); }
.ab__prof span { font: 600 18px var(--sans); color: var(--text-2); }
.ab__vinetas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; z-index: 1; }
.ab__vinetas i { position: relative; min-height: 92px; padding: 12px; border-radius: 6px; background: #F6F2E4; border: 3px solid #0B1830; font-style: normal;
  opacity: 0; transform: scale(.85) rotate(-2deg); transition: opacity .3s, transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.ab__vinetas i:nth-child(2) { background: #3FE0C5; transform: scale(.85) rotate(2deg); }
.ab__vinetas i.is-on { opacity: 1; transform: none; }
.ab__vinetas i span { display: inline-block; padding: 6px 10px; border-radius: 12px; background: #fff; color: #0B1830; font: 600 12px/1.3 var(--sans); box-shadow: 2px 2px 0 #0B1830; }
.ab__vinetas .ab__ancha { grid-column: 1 / 3; min-height: 70px; background: #FF6B5A; display: grid; place-items: center; }
.ab__vinetas em { font: 800 30px/1 var(--logo); font-style: normal; color: #D7F23A; -webkit-text-stroke: 2px #0B1830; letter-spacing: .02em; }
.ab__burbujas { position: absolute; inset: 0; pointer-events: none; }
.ab__burbujas i { position: absolute; bottom: -20px; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .5); animation: abSube 6s linear infinite; }
.ab__burbujas i:nth-child(1) { left: 12%; } .ab__burbujas i:nth-child(2) { left: 28%; width: 6px; height: 6px; animation-delay: 1.4s; }
.ab__burbujas i:nth-child(3) { left: 52%; animation-delay: 2.6s; } .ab__burbujas i:nth-child(4) { left: 70%; width: 14px; height: 14px; animation-delay: .8s; }
.ab__burbujas i:nth-child(5) { left: 84%; width: 7px; height: 7px; animation-delay: 3.4s; } .ab__burbujas i:nth-child(6) { left: 40%; animation-delay: 4.6s; }
@keyframes abSube { to { transform: translateY(-120vh) translateX(20px); } }

/* ===== Fase 1 · «Cómo está hecho»: arquitectura que se arma ===== */
.d-arq { width: min(1380px, 88vw); display: flex; flex-direction: column; gap: 22px; }
.d-arq__top { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.d-arq__top h3 { color: var(--text-2); font-weight: 500; }
.d-arq__leyenda { display: flex; gap: 14px; flex-wrap: wrap; color: var(--text-3); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.d-arq__leyenda span { display: inline-flex; align-items: center; gap: 6px; }
.d-arq__leyenda span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--arq-c, var(--text-3)); }
.d-arq__cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: clamp(24px, 3vw, 48px); align-items: center; }
.d-arq__lienzo { position: relative; border-radius: 22px; padding: clamp(14px, 2vw, 28px);
  background: radial-gradient(80% 90% at 30% 20%, var(--m-pantalla-a, var(--superficie-2)), var(--m-pantalla-b, var(--superficie)) 75%);
  box-shadow: inset 0 0 0 1px var(--line); }
.d-arq__lienzo::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgb(255 255 255 / .09) 1px, transparent 1.2px); background-size: 22px 22px; }
.d-arq__svg { position: relative; display: block; width: 100%; height: auto; max-height: 62vh; overflow: visible; }

[data-tipo="personas"] { --arq-c: #C9CED8; }
[data-tipo="canal"]    { --arq-c: var(--m-acento-2, #F2C14E); }
[data-tipo="servicio"] { --arq-c: #6EA8FF; }
[data-tipo="ia"]       { --arq-c: var(--m-acento, #38B6FF); }
[data-tipo="datos"]    { --arq-c: #7DD3A8; }
[data-tipo="externo"]  { --arq-c: #A89BD8; }

.arq-enlaces path { fill: none; stroke: var(--text-3); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .7;
  transition: stroke-dashoffset 1.1s var(--ease) var(--d); }
.arq-paquetes circle { fill: var(--cian); opacity: 0; transition: opacity .5s var(--d); filter: drop-shadow(0 0 6px var(--cian)); }
.arq-nodo { opacity: 0; transition: opacity .6s var(--ease) var(--d); }
.arq-nodo rect { fill: rgb(10 12 16 / .72); stroke: color-mix(in srgb, var(--arq-c) 55%, transparent); stroke-width: 1.2; }
.arq-nodo[data-tipo="personas"] rect { stroke-dasharray: 5 4; }
.arq-nodo[data-tipo="ia"] rect { stroke: var(--arq-c); stroke-width: 1.6; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--arq-c) 45%, transparent)); }
.arq-punto { fill: var(--arq-c); }
.arq-tipo { fill: var(--arq-c); font: 500 9.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.arq-nombre { fill: #F2F4F7; font: 500 15px var(--sans); letter-spacing: -.01em; }
.arq-detalle { fill: rgb(242 244 247 / .58); font: 400 10.5px var(--mono); }
.d-arq.is-on .arq-nodo { opacity: 1; }
.d-arq.is-on .arq-enlaces path { stroke-dashoffset: 0; }
.d-arq.is-on .arq-paquetes circle { opacity: 1; }

.d-arq__decisiones { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 28px; }
.d-arq__decisiones li { display: flex; flex-direction: column; gap: 8px; padding-left: 18px; border-left: 2px solid var(--cian); }
.d-arq__decisiones .mono { color: var(--cian); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.d-arq__decisiones strong { font: 500 clamp(19px, 1.6vw, 24px)/1.15 var(--sans); letter-spacing: -.02em; }
.d-arq__decisiones p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.55; }

@media (max-width: 760px) {
  .d-arq { width: 86vw; }
  .d-arq__cuerpo { grid-template-columns: 1fr; }
  .d-arq__svg { max-height: 46vh; }
  .d-arq__svg.is-vertical .arq-nombre { font-size: 19px; }
  .d-arq__svg.is-vertical .arq-detalle { display: none; }
  .d-arq__decisiones { gap: 16px; }
  .d-arq__decisiones li:nth-child(n+2) { display: none; }
  .d-arq__leyenda { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .arq-enlaces path, .arq-nodo { transition: none; }
}

/* ===== Fase 1 · demo de producto grabada en «Así funciona» ===== */
.d-maqueta--demo { width: min(1180px, 84vw); }
.detail .d-demo { height: auto; aspect-ratio: 1280 / 680; background: #000; }
.d-demo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ===== Fase 1 · la consola real de la flota en la capa 02 ===== */
.s-ing__pantalla { position: absolute; z-index: 2; right: 0; top: 4%; width: min(88%, 640px); margin: 0; border-radius: 16px; overflow: hidden;
  background: #0b0c10; box-shadow: 0 0 0 1px rgb(56 182 255 / .35), 0 40px 90px -30px rgb(56 182 255 / .55);
  opacity: 0; transform: translateY(24px) scale(.97); pointer-events: none; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.s-ing__pantalla video { display: block; width: 100%; aspect-ratio: 1280 / 680; object-fit: cover; }
.s-ing__pantalla figcaption { position: absolute; left: 12px; bottom: 10px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px;
  border-radius: 999px; background: rgb(0 0 0 / .65); color: #EEF1F5; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.s-ing__pantalla figcaption i { width: 7px; height: 7px; border-radius: 50%; background: #38B6FF; box-shadow: 0 0 8px #38B6FF; }
.s-ing[data-capa="1"] .s-ing__pantalla { opacity: 1; transform: none; }
.s-ing[data-capa="1"] .s-ing__pila { opacity: .35; transition: opacity .6s; }
@media (max-width: 860px) { .s-ing__pantalla { top: 0; width: 100%; } }

/* ===== Fase 1 · videos y capturas completos (sin recortar los lados) =====
   Las grabaciones son 1600×848: los paneles toman esa proporción y muestran el encuadre entero. */
.d-foto, .d-foto--alta { height: auto; aspect-ratio: 1600 / 848; width: min(68vw, calc(64vh * 1.887), 1180px); }
.d-foto--grande { height: auto; aspect-ratio: 1600 / 848; width: min(84vw, calc(76vh * 1.887), 1440px); }
.d-foto > img, .d-foto > video { object-fit: contain; background: #000; }
/* El detalle movía y ampliaba cada video e imagen (paralaje ×1.18): eso cortaba los lados. Ahora se ven completos y quietos. */
.d-foto > img, .d-foto > video { --zoom: 1 !important; transform: none !important; object-position: 50% 50% !important; }
.d-maqueta--demo { width: min(84vw, calc(64vh * 1.887), 1180px); }
.detail .d-demo { aspect-ratio: 1600 / 848; }
.d-demo video { object-fit: contain; }

/* «Lo que gana el negocio»: palabras, no cifras técnicas */
.d-resultados { width: min(980px, 84vw); }
.d-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.d-facts dt { font: 500 clamp(28px, 2.6vw, 42px)/1.05 var(--sans); letter-spacing: -.03em; }
.d-facts dd { max-width: none; margin: 12px 0 0; font-size: 15px; line-height: 1.55; }
@media (max-width: 760px) {
  .d-foto, .d-foto--alta, .d-foto--grande, .d-maqueta--demo { width: 86vw; }
  .d-facts { grid-template-columns: 1fr; gap: 20px; }
}

/* Nombres largos en «Próximo proyecto»: la letra se ajusta al largo del nombre para que no se corte */
.d-next__nombre { font-size: min(clamp(110px, 16vw, 300px), calc(150vw / var(--n, 8))); }

/* ===== Fase 2 · De la idea a producción (#metodo) ===== */
.s-met { --ia: #38B6FF; --ia2: #2F6BFF; position: relative; height: 520vh; }
.s-met__stick { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center;
  padding: 92px 0 56px max(calc(var(--gx) + 64px), 9vw); gap: 5vh; }
.s-met__top { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 12px 6vw; padding-right: calc(var(--gx) + 24px); }
.s-met__eyebrow { grid-column: 1 / -1; margin: 0; color: var(--ia); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.s-met__titulo { margin: 0; font: 500 clamp(40px, 5vw, 80px)/.95 var(--sans); letter-spacing: -.05em; }
.s-met__linea { position: relative; list-style: none; margin: 0 0 10px; padding: 18px 0 0; display: grid; grid-template-columns: repeat(5, 1fr);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.s-met__linea::before, .s-met__avance { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line); }
.s-met__avance { background: linear-gradient(90deg, var(--ia2), var(--ia)); transform-origin: left; transform: scaleX(0); }
.s-met__linea li { position: relative; transition: color .4s; }
.s-met__linea li::before { content: ""; position: absolute; left: 0; top: -23px; width: 10px; height: 10px; border-radius: 50%; background: var(--noche); box-shadow: inset 0 0 0 2px var(--text-3); transition: box-shadow .4s, background .4s; }
.s-met__linea li.is-on { color: var(--text); }
.s-met__linea li.is-on::before { background: var(--ia); box-shadow: 0 0 0 4px rgb(56 182 255 / .18); }

.s-met__pista { display: flex; gap: 4vw; will-change: transform; }
.met-paso { flex: none; width: min(1060px, 74vw); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: center; gap: 4vw;
  padding: clamp(24px, 3vw, 44px); border-radius: 26px; border: 1px solid var(--line); background: rgb(var(--superficie-rgb) / .03);
  opacity: .38; transition: opacity .6s var(--ease), border-color .6s; }
.met-paso.is-on { opacity: 1; border-color: rgb(56 182 255 / .45); }
.met-paso__texto { display: flex; flex-direction: column; gap: 14px; }
.met-paso__texto > .mono { color: var(--ia); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.met-paso h3 { margin: 0; font: 500 clamp(26px, 2.6vw, 40px)/1.05 var(--sans); letter-spacing: -.03em; }
.met-paso p { margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.6; }
.met-paso dl { margin: 10px 0 0; display: grid; gap: 10px; }
.met-paso dl div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11.5px; }
.met-paso dt { color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; }
.met-paso dd { margin: 0; color: var(--text); }

/* Ilustraciones: se dibujan cuando el paso está activo */
.met-vis { width: 100%; height: auto; overflow: visible; }
.met-vis * { fill: none; stroke: rgb(var(--text-rgb) / .35); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.met-vis text { stroke: none; fill: var(--text-2); font: 500 12px var(--mono); text-anchor: middle; }
.met-vis [style*="--d"] { transition: opacity .5s var(--ease) var(--d), transform .7s var(--ease) var(--d), stroke-dashoffset 1s var(--ease) var(--d), fill .5s var(--d); }
.met-paso:not(.is-visto) .met-vis [style*="--d"] { opacity: 0; }

.met-vis--entender .nota { fill: rgb(56 182 255 / .1); stroke: var(--ia); transform-box: fill-box; transform-origin: center; transform: translateY(-14px) rotate(0); }
.is-visto .met-vis--entender .nota { transform: rotate(var(--r)); }
.met-vis--entender .traza { stroke: var(--ia); stroke-dasharray: 600; stroke-dashoffset: 600; }
.is-visto .met-vis--entender .traza { stroke-dashoffset: 0; }
.met-vis--entender .plan { fill: rgb(var(--superficie-rgb) / .06); stroke: rgb(var(--text-rgb) / .5); }
.met-vis--entender .renglon { stroke: rgb(var(--text-rgb) / .55); stroke-width: 3; }

.met-vis--disenar .marco { stroke: rgb(var(--text-rgb) / .3); }
.met-vis--disenar .bloque { stroke-dasharray: 5 5; transform-box: fill-box; transform-origin: center; }
.is-visto .met-vis--disenar .bloque { stroke-dasharray: none; fill: rgb(var(--text-rgb) / .08); stroke: rgb(var(--text-rgb) / .25); }
.is-visto .met-vis--disenar .bloque--acento { fill: rgb(56 182 255 / .22); stroke: var(--ia); }
.met-vis--disenar .cursor-met { fill: var(--ia); stroke: none; opacity: 0; }
.is-on .met-vis--disenar .cursor-met { opacity: 1; animation: metCursor 4s var(--ease) 1.2s infinite; }
@keyframes metCursor { 0% { transform: translate(300px, 260px); } 30% { transform: translate(140px, 140px); } 45% { transform: translate(140px, 140px) scale(.7); }
  55% { transform: translate(140px, 140px); } 85% { transform: translate(292px, 112px); } 100% { transform: translate(300px, 260px); } }

.met-vis--construir .rama { stroke: rgb(var(--text-rgb) / .3); }
.met-vis--construir .hito { transform-box: fill-box; transform-origin: bottom; transform: scaleY(.2); }
.is-visto .met-vis--construir .hito { transform: none; }
.met-vis--construir .hito circle { fill: var(--noche); stroke: var(--ia); stroke-width: 2; }
.met-vis--construir .hito rect { fill: rgb(56 182 255 / .14); stroke: var(--ia); }

.met-vis--probar .chequeo rect { fill: rgb(var(--superficie-rgb) / .04); }
.met-vis--probar .chequeo path { stroke: #4ADE80; stroke-width: 2.5; stroke-dasharray: 40; stroke-dashoffset: 40; transition: stroke-dashoffset .5s var(--ease) calc(var(--d) + .3s); }
.is-visto .met-vis--probar .chequeo path { stroke-dashoffset: 0; }
.met-vis--probar .chequeo line { stroke: rgb(var(--text-rgb) / .4); stroke-width: 3; }
.met-vis--probar .barra-fondo { fill: rgb(var(--text-rgb) / .08); stroke: none; }
.met-vis--probar .barra { fill: #4ADE80; stroke: none; transform-box: fill-box; transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease) .3s; }
.is-visto .met-vis--probar .barra { transform: none; }

.met-vis--operar .marco { stroke: rgb(var(--text-rgb) / .3); }
.met-vis--operar .guia { stroke: rgb(var(--text-rgb) / .1); stroke-dasharray: 4 6; }
.met-vis--operar .pulso { stroke: var(--ia); stroke-width: 2.5; stroke-dasharray: 520; stroke-dashoffset: 520; }
.is-on .met-vis--operar .pulso { animation: metPulso 2.6s linear infinite; }
@keyframes metPulso { to { stroke-dashoffset: -520; } }
.met-vis--operar .vivo { fill: #4ADE80; stroke: none; }
.is-on .met-vis--operar .vivo { animation: metVivo 1.4s ease-in-out infinite; }
@keyframes metVivo { 50% { opacity: .3; } }
.met-vis--operar .estado { text-anchor: start; fill: var(--text); }

/* (La sección Equipo se reemplazó por el Taller: estilos en css/taller.css) */

@media (max-width: 860px) {
  .s-met { height: auto; }
  .s-met__stick { position: static; height: auto; overflow: visible; padding: 14vh var(--gx) 8vh; }
  .s-met__top { grid-template-columns: 1fr; }
  .s-met__linea { display: none; }
  .s-met__pista { flex-direction: column; transform: none !important; gap: 18px; }
  .met-paso { width: 100%; grid-template-columns: 1fr; opacity: 1; }
  .met-vis { max-width: 360px; }
}
@media (prefers-reduced-motion: reduce) {
  .met-vis [style*="--d"], .met-vis * { transition: none !important; animation: none !important; }
}

/* ===== Fase 2 · Pregúntanos (js/asistente.js) ===== */
.s-contact__preguntar { position: relative; z-index: 3; margin-top: 18px; padding: 8px 4px; border: 0; background: none; cursor: pointer;
  color: #1b1d23; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid currentColor; }
.s-contact__preguntar i { font-style: normal; display: inline-block; transition: transform .3s var(--ease); }
.s-contact__preguntar:hover i { transform: translateX(4px); }
.asis { position: fixed; z-index: 160; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); display: flex; flex-direction: column; gap: 14px;
  padding: 28px 24px 20px; background: #0d0f13; color: #EEF1F5; box-shadow: -30px 0 80px rgb(0 0 0 / .45); border-left: 1px solid rgb(255 255 255 / .08);
  animation: asisEntra .5s var(--ease); }
@keyframes asisEntra { from { transform: translateX(40px); opacity: 0; } }
.asis[hidden] { display: none; }
.asis__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.asis__eyebrow { margin: 0 0 8px; color: #38B6FF; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.asis__titulo { margin: 0; font: 500 24px/1.15 var(--sans); letter-spacing: -.02em; }
.asis__cerrar { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .16); background: none; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.asis__nota { margin: 0; color: rgb(238 241 245 / .55); font-size: 11px; line-height: 1.5; }
.asis__sugerencias { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.asis__sugerencias button { padding: 8px 12px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .14); background: rgb(255 255 255 / .03); color: #EEF1F5;
  font: 400 13px/1.3 var(--sans); text-align: left; cursor: pointer; transition: border-color .3s, background .3s; }
.asis__sugerencias button:hover { border-color: #38B6FF; background: rgb(56 182 255 / .08); }
.asis__lista { flex: 1; overflow-y: auto; list-style: none; margin: 0; padding: 4px 2px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.asis__msj { max-width: 92%; padding: 12px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.55; }
.asis__msj--tu { align-self: flex-end; background: #2F6BFF; color: #fff; border-bottom-right-radius: 4px; }
.asis__msj--ella { align-self: flex-start; background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .08); border-bottom-left-radius: 4px; }
.asis__msj blockquote { margin: 10px 0 6px; padding-left: 12px; border-left: 2px solid #38B6FF; color: rgb(238 241 245 / .86); }
.asis__msj sup { color: #38B6FF; font: 500 10px var(--mono); }
.asis__fuente { display: inline-block; margin: 6px 10px 0 0; color: #38B6FF; font-size: 11px; letter-spacing: .04em; text-decoration: none; border-bottom: 1px solid rgb(56 182 255 / .4); }
.asis__puntos { display: inline-flex; gap: 4px; }
.asis__puntos i { width: 6px; height: 6px; border-radius: 50%; background: #38B6FF; animation: asisPunto 1s infinite; }
.asis__puntos i:nth-child(2) { animation-delay: .15s; } .asis__puntos i:nth-child(3) { animation-delay: .3s; }
@keyframes asisPunto { 50% { opacity: .25; } }
.asis__form { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid rgb(255 255 255 / .08); }
.asis__form input { flex: 1; min-width: 0; padding: 13px 14px; border-radius: 12px; border: 1px solid rgb(255 255 255 / .14); background: rgb(255 255 255 / .04);
  color: #EEF1F5; font: 400 15px var(--sans); outline: none; }
.asis__form input:focus { border-color: #38B6FF; }
.asis__enviar { width: 48px; border-radius: 12px; border: 0; background: #EEF1F5; color: #0d0f13; font-size: 20px; cursor: pointer; }

/* ── Detalle: "Wild" toma el color de cada proyecto y cada uno tiene su fondo vivo (js/fondos-proyecto.js) ── */
@property --wild-a { syntax: "<color>"; inherits: true; initial-value: #2F6BFF; }
@property --wild-b { syntax: "<color>"; inherits: true; initial-value: #38B6FF; }
.detail__logo .logo__wild { --wild-a: var(--m-wild-a, #2F6BFF); --wild-b: var(--m-wild-b, #38B6FF);
  background: linear-gradient(90deg, var(--wild-a), var(--wild-b)); -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: --wild-a .7s var(--ease), --wild-b .7s var(--ease); }
.detail__logo.is-sig .logo__wild { --wild-a: var(--sig-wild-a, #2F6BFF); --wild-b: var(--sig-wild-b, #38B6FF); transition-duration: .35s; }
.d-fondo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: 0; transition: opacity .9s var(--ease); }
/* El color general de .logo (más abajo en este archivo) pisaba el del detalle: en proyectos claros (Syscar) "CoreLabs" quedaba blanco. */
.detail .detail__logo { color: var(--text); }
.detail .detail__logo.is-sig { color: var(--sig-texto); }

/* ── Servicios · "¿Qué necesitas construir?" (js/servicios.js) ─────────────────────────────────────
   Escritorio (A): escenario con la escena 3D de cada camino, riel con los 7 caminos y los pasos para empezar.
   Móvil (D): la frase "Quiero… / Necesito…", chips, la escena y el detalle. La sección fluye (no queda fija). */
.s-services { height: auto !important; padding: 0 !important; position: relative; }
.sx { --bg: #111216; --card: #16181D; --t1: #EEF1F5; --t2: #A4AAB4; --t3: #686E78; --ln: rgba(238,241,245,.12); --acc: #38B6FF; --sub: #8CCBFF;
  --bar1: #3B5BFF; --bar2: #38B6FF; --e: cubic-bezier(.22,1,.36,1);
  position: relative; color: var(--t1); padding: clamp(96px, 14vh, 150px) var(--gx) clamp(90px, 12vh, 140px); overflow-x: clip; }
.sx-in { max-width: 1200px; margin: 0 auto; }
.sx button { font: inherit; color: inherit; }
.sx :focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.sx-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 56px; }
.sx-head h2 { margin: 0; font: 500 clamp(48px, 7.4vw, 112px)/.9 var(--sans); letter-spacing: -.065em; }
.sx-head p { margin: 0 0 10px; color: var(--t2); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; max-width: 34ch; }
.sx[data-v="d"] .sx-head { display: none; }
.sx-var { display: none; position: relative; }
.sx[data-v="a"] #sxA, .sx[data-v="d"] #sxD { display: block; }
.sx-gl { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 5; }
.sx-view { position: relative; background: var(--card); touch-action: pan-y; }
.sx-accent::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 2px; background: linear-gradient(var(--bar1), var(--bar2) 60%, transparent); z-index: 1; }
.sx-hud { position: absolute; left: 18px; right: 18px; bottom: 14px; display: flex; align-items: center; gap: 12px; z-index: 6; pointer-events: none;
  font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--t2); }
.sx-hud b { color: var(--acc); font-weight: 500; white-space: nowrap; }
.sx-hud span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-hud span.sw { animation: sxHud .5s var(--e) both; }
@keyframes sxHud { from { opacity: 0; transform: translateY(6px); } }
.sx-tk { display: flex; gap: 4px; margin-left: auto; flex: none; }
.sx-tk i { width: 22px; height: 2px; background: var(--ln); position: relative; overflow: hidden; }
.sx-tk i u { position: absolute; inset: 0; background: var(--acc); transform-origin: left; transform: scaleX(0); }
.sx-ttl { position: absolute; left: 18px; top: 14px; z-index: 6; pointer-events: none; font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--t3); }
.sx-k { margin: 0 0 18px; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--t3); }
.sx-k b { color: var(--acc); font-weight: 500; }
.sx h3 { margin: 0; font: 500 clamp(32px, 3.4vw, 52px)/1.02 var(--sans); letter-spacing: -.05em; }
.sx-sub { margin: 8px 0 18px; color: var(--sub); font-size: clamp(16px, 1.4vw, 20px); letter-spacing: -.01em; line-height: 1.35; }
.sx-body { margin: 0 0 26px; color: var(--t2); font-size: 16.5px; line-height: 1.65; max-width: 58ch; }
.sx-cols { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 30px; }
.sx-cols h4 { margin: 0 0 12px; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--t2); }
.sx-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 16.5px; }
.sx-cols li::before { content: "→ "; color: var(--acc); }
.sx-pills { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sx-pills li { border: 1px solid var(--ln); border-radius: 999px; padding: 8px 13px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--t2); }
.sx-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font: 400 13px var(--mono); color: var(--t3); }
.sx-cta { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--t1); text-decoration: none; border: 0; border-bottom: 2px solid var(--acc);
  padding: 0 0 6px; background: none; cursor: pointer; transition: color .3s; }
.sx-cta:hover { color: #A5E3FF; }
.sx-f { display: grid; gap: 10px; margin-bottom: 6px; }
.sx-f label { display: grid; gap: 12px; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--t2); }
.sx-f textarea { font: 400 16px var(--sans); letter-spacing: 0; text-transform: none; color: var(--t1); background: transparent; border: 1px solid var(--ln); border-radius: 12px;
  padding: 14px 16px; min-height: 92px; resize: vertical; }
.sx-err { color: #FF6B6B; font: 400 13px var(--mono); min-height: 1.2em; }
.sx-swap > * { animation: sxUp .55s var(--e) both; }
.sx-swap > :nth-child(2) { animation-delay: .04s; } .sx-swap > :nth-child(3) { animation-delay: .08s; } .sx-swap > :nth-child(4) { animation-delay: .12s; } .sx-swap > :nth-child(n+5) { animation-delay: .16s; }
@keyframes sxUp { from { opacity: 0; transform: translateY(12px); } }
.sx-prog { position: absolute; left: 0; right: 14px; top: -1px; height: 2px; background: var(--acc); transform-origin: left; transform: scaleX(0); }
/* A · Escenario */
.sx-stage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--card); border: 1px solid var(--ln); position: relative; }
.sx-st-text { padding: clamp(28px, 3.4vw, 52px); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.sx-st-view { min-height: min(600px, 68vh); border-left: 1px solid var(--ln); }
.sx-rail { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.sx-rail button { position: relative; text-align: left; background: none; border: 0; border-top: 1px solid var(--ln); padding: 16px 14px 16px 0; color: var(--t3); cursor: pointer;
  font-size: 15px; line-height: 1.3; letter-spacing: -.01em; transition: color .3s; }
.sx-rail button i { display: block; font: 400 11px var(--mono); font-style: normal; letter-spacing: .08em; margin-bottom: 6px; }
.sx-rail button:hover { color: var(--t2); }
.sx-rail button[aria-selected="true"] { color: var(--t1); }
.sx-rail button[aria-selected="true"] i { color: var(--acc); }
.sx-steps { display: grid; grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(0, 1fr)); gap: 20px 28px; align-items: start; margin-top: 52px; }
.sx-steps .sx-k { margin: 4px 0 0; }
.sx-stp { border-top: 1px solid var(--ln); padding-top: 14px; font-size: 18px; letter-spacing: -.02em; line-height: 1.3; }
.sx-stp span { display: block; font: 400 11px var(--mono); letter-spacing: .08em; color: var(--acc); margin-bottom: 8px; }
.sx-note { grid-column: 2 / -1; margin: 6px 0 0; font: 400 13px var(--mono); color: var(--t3); }
/* D · Frase (móvil) */
.sx-dk { margin: 0 0 14px; }
.sx-sentence { margin: 0 0 22px; font: 500 clamp(42px, 12vw, 64px)/.98 var(--sans); letter-spacing: -.06em; }
.sx-pre { display: block; color: var(--t3); }
.sx-w { display: block; cursor: pointer; text-decoration: underline; text-decoration-color: var(--acc); text-decoration-thickness: .055em; text-underline-offset: .12em;
  transition: transform .5s var(--e), opacity .35s, filter .4s; }
.sx-w.is-out { transform: translateY(-.35em); opacity: 0; filter: blur(6px); }
.sx-w.is-in { transform: translateY(.35em); opacity: 0; filter: blur(6px); transition: none; }
.sx-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gx)); padding: 0 var(--gx) 4px; scroll-snap-type: x proximity; }
.sx-chips::-webkit-scrollbar { display: none; }
.sx-chips button { flex: none; scroll-snap-align: start; border: 1px solid var(--ln); border-radius: 999px; padding: 10px 16px; background: none; color: var(--t2); font-size: 15px;
  cursor: pointer; position: relative; overflow: hidden; }
.sx-chips button[aria-pressed="true"] { background: var(--t1); color: var(--bg); border-color: var(--t1); }
.sx-chips .sx-prog { left: 0; right: 0; top: auto; bottom: 0; height: 2px; }
#sxD .sx-view { height: 380px; margin: 22px 0 26px; border: 1px solid var(--ln); }
@media (max-width: 900px) {
  .sx-head { grid-template-columns: 1fr; gap: 20px; }
  .sx-steps { grid-template-columns: 1fr 1fr; } .sx-steps .sx-k, .sx-note { grid-column: 1 / -1; }
}
@media (max-width: 1100px) and (min-width: 901px) { .sx-rail button { font-size: 13.5px; } }
@media (prefers-reduced-motion: reduce) { .sx-swap > *, .sx-hud span.sw { animation: none; } .sx-w { transition: none; } }


/* Servicios en escritorio (mockup A): todo cabe en una pantalla. Marco de 1440×900 escalado a la ventana, como el reel:
   título en una línea con la bajada a la derecha, escenario de 1200×560 (texto 480 + escena) y el riel de caminos debajo. */
@media (min-width: 901px) {
  .sx { --u: min(calc(100vw / 1440), calc(100vh / 900)); min-height: 100vh; box-sizing: border-box;
    padding: calc(98 * var(--u)) calc(50vw - 600 * var(--u)) calc(50 * var(--u)); }
  .sx-in { max-width: none; }
  .sx-head { display: flex; justify-content: space-between; align-items: center; gap: calc(40 * var(--u)); margin-bottom: calc(34 * var(--u)); }
  .sx-head h2 { font-size: calc(64 * var(--u)); line-height: .95; letter-spacing: -.055em; white-space: nowrap; }
  .sx-head p { margin: 0; width: calc(300 * var(--u)); max-width: none; font-size: max(12px, calc(15 * var(--u))); line-height: 1.5; }
  .sx-stage { grid-template-columns: calc(480 * var(--u)) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: calc(530 * var(--u)); }
  .sx-st-text { padding: calc(36 * var(--u)) calc(42 * var(--u)); overflow: hidden; }
  .sx-st-view { min-height: 0; }
  .sx-st-text .sx-k { margin-bottom: calc(16 * var(--u)); font-size: calc(11 * var(--u)); }
  .sx h3 { font-size: calc(44 * var(--u)); }
  .sx-sub { margin: calc(10 * var(--u)) 0 calc(16 * var(--u)); font-size: calc(18 * var(--u)); }
  .sx-body { margin-bottom: calc(22 * var(--u)); font-size: max(12px, calc(15.5 * var(--u))); }
  .sx-pills { gap: calc(7 * var(--u)); margin-bottom: calc(28 * var(--u)); }
  .sx-pills li { padding: calc(7 * var(--u)) calc(12 * var(--u)); font-size: calc(10.5 * var(--u)); }
  .sx-foot { font-size: calc(12.5 * var(--u)); }
  .sx-cta { font-size: calc(12 * var(--u)); }
  .sx-f textarea { min-height: calc(84 * var(--u)); font-size: max(13px, calc(15 * var(--u))); }
  .sx-rail button { padding: calc(14 * var(--u)) calc(14 * var(--u)) 0 0; font-size: max(13px, calc(15 * var(--u))); }
}

/* ── 03b Orden · «Pon en orden tu negocio» (js/orden.js) ───────────────────────────────────────────
   Escritorio: marco de 1440×900 escalado (como el reel). Esfera al centro, tres módulos a cada lado y los contadores
   debajo. Móvil: todo en columna, la esfera arriba y los módulos en dos columnas. */
.s-orden { position: relative; }
.od { --u: min(calc(100vw / 1440), calc(100vh / 900)); --e: cubic-bezier(.22,1,.36,1); position: relative; color: var(--text); }
.od-lienzo { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.od-kick { margin: 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #38B6FF; }
.od-titulo { margin: 0; font: 500 clamp(40px, 10vw, 64px)/.95 var(--sans); letter-spacing: -.06em; }
.od-lead { margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.55; }
.od-esfera { position: relative; z-index: 4; cursor: grab; touch-action: pan-y; }
.od-esfera.is-agarra { cursor: grabbing; }
.od-esfera.is-pieza { cursor: pointer; }
.od-mods { display: grid; gap: 14px; position: relative; z-index: 2; }
.od-mod { --c: #38B6FF; box-sizing: border-box; padding: 13px 15px 14px; background: #16181D; border: 1px solid rgba(238,241,245,.10); border-radius: 14px;
  display: flex; flex-direction: column; gap: 10px; min-width: 0; transition: border-color .4s, box-shadow .4s, opacity .4s; }
.od-mod--clientes { --c: #8B7BFF; } .od-mod--inventario { --c: #3FCF8E; } .od-mod--facturacion { --c: #FF6B5E; }
.od-mod--agenda { --c: #F2C94C; } .od-mod--reportes { --c: #C9CEDA; }
.od-mod header { display: flex; align-items: center; gap: 9px; }
.od-mod__ico { width: 9px; height: 9px; border-radius: 2px; background: var(--c); flex: none; }
.od-mod h3 { margin: 0; flex-grow: 1; font: 500 15px/1.2 var(--sans); letter-spacing: -.02em; }
.od-mod__n { font-size: 11px; color: var(--text-2); }
.od-mod.is-golpe { animation: odGolpe .5s var(--e); }
@keyframes odGolpe { 30% { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 10px 30px rgba(0,0,0,.35); transform: translateY(-2px); } }
.od-mod.is-luz { border-color: var(--c); }
.od-mod.is-luz .od-mod__n { color: var(--c); }
.od-mod__ui { position: relative; height: 92px; overflow: hidden; font-size: 12px; transition: opacity .5s; }
.od-mod__ui.is-limpia { opacity: 0; }
.od-mod__ui .nuevo { animation: odEntra .5s var(--e) both; }
@keyframes odEntra { from { opacity: 0; transform: translateY(-8px); } }
/* mini interfaces de cada módulo */
.od-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: .5em; }
.od-lista li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .67em; align-items: center; height: 2em; padding: 0 .67em; border-radius: .5em; background: rgba(238,241,245,.04); }
.od-lista li > :first-child { font: 400 .875em var(--mono); color: var(--text-2); white-space: nowrap; }
.od-lista li > :nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #DDE3EA; }
.od-chip { font: 500 .83em var(--mono); padding: .17em .6em; border-radius: 999px; white-space: nowrap; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.od-avs { display: flex; flex-wrap: wrap; gap: .5em; }
.od-avs span { width: 2.17em; height: 2.17em; border-radius: 50%; display: grid; place-items: center; font: 500 .83em var(--mono); color: #111216; background: var(--c); }
.od-avs span:nth-child(3n+2) { background: color-mix(in srgb, var(--c) 70%, #EEF1F5); } .od-avs span:nth-child(3n) { background: color-mix(in srgb, var(--c) 55%, #111216); color: #EEF1F5; }
.od-barras { display: grid; gap: .58em; }
.od-barras div { display: grid; grid-template-columns: 5.4em minmax(0, 1fr) 2.6em; white-space: nowrap; gap: .67em; align-items: center; font: 400 .875em var(--mono); color: var(--text-2); }
.od-barras i { height: .5em; border-radius: .25em; background: rgba(238,241,245,.08); position: relative; overflow: hidden; }
.od-barras i u { position: absolute; left: 0; top: 0; bottom: 0; border-radius: .25em; background: var(--c); transition: width .6s var(--e); }
.od-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .33em; }
.od-cal span { height: 1.5em; border-radius: .33em; background: rgba(238,241,245,.05); font: 400 .75em/1 var(--mono); color: var(--text-3, #686E78); display: grid; place-items: center; transition: background .4s, color .4s; }
.od-cal span.on { background: color-mix(in srgb, var(--c) 30%, transparent); color: #F7F1DC; }
.od-graf { display: flex; align-items: flex-end; gap: .42em; height: 100%; padding-top: .67em; box-sizing: border-box; border-bottom: 1px solid rgba(238,241,245,.10); }
.od-graf i { flex: 1; border-radius: .25em .25em 0 0; background: color-mix(in srgb, var(--c) 70%, transparent); transition: height .6s var(--e); }
.od-graf i:last-child { background: #38B6FF; }
/* controles */
.od-ctl { position: relative; z-index: 4; display: flex; flex-direction: column; gap: 12px; }
.od-cuenta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.od-cuenta span { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); margin-bottom: 4px; }
.od-cuenta b { font-weight: 500; font-size: 30px; letter-spacing: -.04em; }
.od-cuenta div:last-child b { color: #38B6FF; }
.od-barra { height: 3px; border-radius: 3px; background: rgba(238,241,245,.12); overflow: hidden; }
.od-barra i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2F6BFF, #38B6FF); }
.od-acc { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.od-btn { all: unset; box-sizing: border-box; cursor: pointer; white-space: nowrap; height: 40px; padding: 0 18px; border-radius: 999px; background: #EEF1F5; color: #111216; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; transition: background .3s; }
.od-btn:hover { background: #A5E3FF; }
.od-btn.is-invita { animation: odInvita 2.2s ease-in-out infinite; }
@keyframes odInvita { 0%, 100% { box-shadow: 0 0 0 0 rgba(56,182,255,.55); } 60% { box-shadow: 0 0 0 12px rgba(56,182,255,0); } }
.od-btn:focus-visible { outline: 2px solid #38B6FF; outline-offset: 3px; }
.od-pista { font-size: 11px; color: var(--text-2); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.od-tip { position: absolute; z-index: 6; pointer-events: none; padding: 7px 10px; border-radius: 8px; background: #EEF1F5; color: #111216; font-size: 11px; white-space: nowrap;
  opacity: 0; transform: translate(-50%, calc(-100% - 14px)); transition: opacity .2s; }
.od-tip.is-on { opacity: 1; }
.od-tip b { font-weight: 500; margin-right: 6px; }
/* móvil */
@media (max-width: 900px) {
  .od { padding: 96px var(--gx) 80px; display: flex; flex-wrap: wrap; gap: 14px 10px; }
  .od > .od-top, .od > .od-esfera, .od > .od-ctl { flex: 1 1 100%; }
  .od-mods { display: contents; }
  .od-mod { order: 5; flex: 0 0 calc(50% - 5px); }
  .od-top { display: flex; flex-direction: column; gap: 14px; }
  .od-esfera { height: 340px; margin: 0 calc(-1 * var(--gx)); }
  .od-ctl { order: 4; }
  .od-mod { padding: 11px 12px; }
  .od-mod__ui { height: 70px; }
  .od-pista { display: none; }
  .od-lista li > :first-child { display: none; }
  .od-lista li { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (min-width: 600px) and (max-width: 900px) { .od-mod { flex-basis: calc(33.333% - 7px); } }
/* escritorio: posiciones en el marco de 1440×900 */
@media (min-width: 901px) {
  .od { height: 100vh; min-height: 600px; overflow: hidden; }
  .od-top { position: absolute; left: calc(50vw - 450 * var(--u)); top: calc(96 * var(--u)); width: calc(900 * var(--u)); display: flex; flex-direction: column; align-items: center; gap: calc(12 * var(--u)); text-align: center; }
  .od-kick { font-size: max(10px, calc(11 * var(--u))); }
  .od-titulo { font-size: calc(60 * var(--u)); white-space: nowrap; }
  .od-lead { width: calc(680 * var(--u)); font-size: max(13px, calc(16 * var(--u))); }
  .od-esfera { position: absolute; left: calc(50vw - 240 * var(--u)); top: calc(300 * var(--u)); width: calc(480 * var(--u)); height: calc(420 * var(--u)); }
  .od-mods { position: absolute; top: calc(292 * var(--u)); width: calc(320 * var(--u)); gap: calc(16 * var(--u)); }
  .od-mods--izq { left: calc(50vw - 600 * var(--u)); }
  .od-mods--der { left: calc(50vw + 280 * var(--u)); }
  .od-mod { height: calc(160 * var(--u)); padding: calc(13 * var(--u)) calc(15 * var(--u)); gap: calc(10 * var(--u)); border-radius: calc(14 * var(--u)); }
  .od-mod h3 { font-size: calc(15 * var(--u)); }
  .od-mod header { gap: calc(9 * var(--u)); }
  .od-mod__ico { width: calc(9 * var(--u)); height: calc(9 * var(--u)); }
  .od-mod__n { font-size: calc(11 * var(--u)); }
  .od-mod__ui { height: calc(100 * var(--u)); font-size: calc(12 * var(--u)); }
  .od-ctl { position: absolute; left: calc(50vw - 210 * var(--u)); top: calc(728 * var(--u)); width: calc(420 * var(--u)); gap: calc(12 * var(--u)); }
  .od-cuenta b { font-size: calc(30 * var(--u)); }
  .od-cuenta span { font-size: calc(10.5 * var(--u)); }
  .od-cuenta { gap: calc(20 * var(--u)); }
  .od-btn { height: calc(40 * var(--u)); padding: 0 calc(18 * var(--u)); font-size: calc(11.5 * var(--u)); }
  .od-pista { font-size: calc(11 * var(--u)); }
  .od-kick { font-size: calc(11 * var(--u)); }
  .od-lead { font-size: calc(16 * var(--u)); }
}
@media (prefers-reduced-motion: reduce) { .od-mod.is-golpe, .od-mod__ui .nuevo, .od-btn.is-invita { animation: none; } }

/* ── 07 Servicios en claro (js/servicios.js) ─────────────────────────────────────────────────────────
   Transición: al llegar, una franja clara sube sobre el final del Taller con el borde en arco (el arco crece de 0 a 11vw
   con --arc, que pone el script según el scroll). Luego los 7 caminos como etapas sobre una línea que se dibuja. */
/* deja lugar a la franja clara que sube al llegar a Servicios (después de Proyectos) y a Contacto (después del Taller) */
.s-taller, .s-work { margin-bottom: calc(4vh + 11vw + 22svh); }
/* Contacto: solo el cierre (logo de partículas y pie), sin el aire de arriba que tenía dentro de Servicios */
.sv--fin { padding-top: 0 !important; }
.sv--fin .sv-fin { margin-top: 0 !important; }
.s-services { --band: calc(11vw + 22svh); --claro: #F6F7F9; --tinta: #111216; position: relative; z-index: 2; height: auto !important; padding: 0 !important; background: var(--claro); color: var(--tinta); }
.s-services::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: calc(var(--band) + 11vw + 2px); pointer-events: none; z-index: 0;
  /* Capa propia (will-change): así el borde se mueve entero y no asoma una línea clara de 1 px sobre el arco
     cuando la franja queda a medio píxel. */
  will-change: transform;
  /* Dentro del arco la franja es transparente (antes era oscuro sólido): la luz de Proyectos y lo que haya detrás llega
     hasta la curva, sin cortarse en una línea recta arriba de ella. Fuera del arco y debajo, el claro de la sección. */
  background: radial-gradient(ellipse 60% 100% at 50% 0, rgba(246,247,249,0) 0, rgba(246,247,249,0) 99.4%, var(--claro) 100%) 50% 0 / 100% calc(var(--arc, 0) * 11vw + 1px) no-repeat,
    linear-gradient(var(--claro), var(--claro)) 0 calc(var(--arc, 0) * 11vw - 1px) / 100% 100% no-repeat; /* 2 px de traslape: sin costura */
  transform: translateY(calc(var(--arc, 0) * var(--band) * -1)); }
.sv { --u: min(calc(100vw / 1440), calc(100vh / 900)); --t2: #4E525C; --t3: #8A8F99; --apagado: #C3C7CE; --azul: #1670C4; --e: cubic-bezier(.22,1,.36,1);
  position: relative; z-index: 1; padding: 70px var(--gx) clamp(120px, 18vh, 200px); }
.sv-linea { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.sv-linea path { fill: none; stroke-width: 1.5; stroke-linecap: round; }
.sv-linea__pista { stroke: #DCDFE5; }
.sv-linea__tinta { stroke: var(--tinta); }
.sv-head { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.sv-kick { margin: 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--azul); }
.sv-titulo { margin: 0; font: 500 clamp(40px, 8vw, 76px)/.98 var(--sans); letter-spacing: -.055em; }
.sv-pal { display: inline-block; white-space: nowrap; }
.sv-l { color: var(--apagado); transition: color .35s; }
.sv-l.on { color: var(--tinta); }
.sv-lead { margin: 0; max-width: 46ch; font-size: 17px; line-height: 1.55; color: var(--t2); }
.sv-pasos { list-style: none; margin: 130px 0 0; padding: 0; display: grid; gap: 136px; } /* celular: el número grande (.sv-num) sube 96 px sobre su paso; con este espacio no pisa la tarjeta del anterior */
.sv-paso { display: grid; gap: 22px; }
.sv-paso__texto { position: relative; display: flex; flex-direction: column; }
.sv-punto { display: none; }
.sv-paso__k { margin: 0 0 12px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--t3); }
.sv-paso__k b { font-weight: 500; color: var(--azul); }
.sv-paso__h { margin: 0; font: 500 clamp(28px, 7vw, 40px)/1.05 var(--sans); letter-spacing: -.045em; color: var(--apagado); transition: color .6s var(--e); }
.sv-paso__s { margin: 12px 0 10px; font-size: 18px; line-height: 1.35; letter-spacing: -.01em; color: var(--azul); }
.sv-paso__b { margin: 0 0 20px; font-size: 15.5px; line-height: 1.6; color: var(--t2); max-width: 52ch; }
.sv-paso__s, .sv-paso__b, .sv-chips, .sv-foot, .sv-f { transition: opacity .6s var(--e), transform .6s var(--e); }
.sv-paso:not(.is-on) .sv-paso__s, .sv-paso:not(.is-on) .sv-paso__b, .sv-paso:not(.is-on) .sv-chips, .sv-paso:not(.is-on) .sv-foot, .sv-paso:not(.is-on) .sv-f { opacity: .28; }
.sv-paso.is-on .sv-paso__h { color: var(--tinta); }
.sv-chips { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.sv-chips li { border: 1px solid rgba(17,18,22,.14); border-radius: 999px; padding: 7px 12px; font: 500 10.5px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--t2); background: #fff; }
.sv-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font: 400 12.5px var(--mono); color: var(--t3); max-width: 440px; }
.sv-cta { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--tinta); text-decoration: none; border: 0; border-bottom: 2px solid var(--azul); padding: 0 0 6px; background: none; cursor: pointer; transition: color .3s; }
.sv-cta:hover { color: var(--azul); }
.sv-cta:focus-visible, .sv :focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; }
.sv-f { display: grid; gap: 10px; max-width: 440px; }
.sv-f label { display: grid; gap: 10px; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--t2); }
.sv-f textarea { font: 400 16px var(--sans); letter-spacing: 0; text-transform: none; color: var(--tinta); background: #fff; border: 1px solid rgba(17,18,22,.16); border-radius: 12px; padding: 14px 16px; min-height: 88px; resize: vertical; }
.sv-err { color: #C8372D; font: 400 13px var(--mono); min-height: 1.2em; }
/* ventana con la escena (oscura sobre el fondo claro) */
.sv-ventana { position: relative; margin: 0; height: 320px; border-radius: 18px; background: #16181D; overflow: hidden;
  box-shadow: 0 40px 90px rgba(17,18,22,.20), 0 2px 8px rgba(17,18,22,.08); transition: transform .9s var(--e), opacity .9s var(--e); }
.sv-paso:not(.is-on) .sv-ventana { transform: translateY(28px) scale(.97); }
.sv-vista { position: absolute; inset: 0; touch-action: pan-y; }
.sv-ventana.is-color { background: radial-gradient(120% 90% at 50% 10%, color-mix(in srgb, var(--fondo) 78%, #fff), var(--fondo) 70%); }
.sv-ventana.is-color .sv-hud { color: rgba(255,255,255,.88); }
.sv-ventana.is-color .sv-hud b { color: #fff; }
.sv-ventana.is-color .sv-ttl { color: rgba(255,255,255,.78); }
.sv-ventana.is-color .sv-tk i { background: rgba(255,255,255,.28); }
.sv-ventana.is-color .sv-tk i u { background: #fff; }
.sv-c { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sv-hud { position: absolute; left: 18px; right: 18px; bottom: 14px; display: flex; align-items: center; gap: 12px; z-index: 6; pointer-events: none;
  font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #A4AAB4; }
.sv-hud b { color: #38B6FF; font-weight: 500; white-space: nowrap; }
.sv-hud span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-hud span.sw { animation: svHud .5s var(--e) both; }
@keyframes svHud { from { opacity: 0; transform: translateY(6px); } }
.sv-tk { display: flex; gap: 4px; margin-left: auto; flex: none; }
.sv-tk i { width: 22px; height: 2px; background: rgba(238,241,245,.14); position: relative; overflow: hidden; }
.sv-tk i u { position: absolute; inset: 0; background: #38B6FF; transform-origin: left; transform: scaleX(0); }
.sv-ttl { position: absolute; left: 18px; top: 14px; z-index: 6; pointer-events: none; font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #8A8F99; }
/* escritorio: marco de 1440 escalado; texto a la izquierda junto a la línea, ventana a la derecha */
@media (min-width: 901px) {
  .sv { padding: calc(110 * var(--u)) calc(50vw - 600 * var(--u)) calc(220 * var(--u)); }
  .sv-head { gap: calc(20 * var(--u)); }
  .sv-kick { font-size: calc(11 * var(--u)); }
  .sv-titulo { font-size: calc(76 * var(--u)); white-space: nowrap; }
  .sv-lead { width: calc(560 * var(--u)); max-width: none; font-size: calc(17 * var(--u)); }
  .sv-pasos { margin-top: calc(300 * var(--u)); gap: calc(150 * var(--u)); }
  .sv-paso { grid-template-columns: calc(470 * var(--u)) minmax(0, 1fr); gap: calc(60 * var(--u)); align-items: center; }
  .sv-paso__texto { padding-left: calc(56 * var(--u)); }
  .sv-punto { display: block; position: absolute; left: calc(1 * var(--u)); top: calc(48 * var(--u)); width: calc(12 * var(--u)); height: calc(12 * var(--u)); border-radius: 50%;
    background: var(--claro); box-shadow: inset 0 0 0 1.5px #C9CDD4; transition: background .4s, box-shadow .4s; }
  .sv-paso.is-on .sv-punto { background: var(--tinta); box-shadow: 0 0 0 5px var(--claro); }
  .sv-paso__k { margin-bottom: calc(14 * var(--u)); font-size: calc(11 * var(--u)); }
  .sv-paso__h { font-size: calc(40 * var(--u)); }
  .sv-paso__s { margin: calc(14 * var(--u)) 0 calc(12 * var(--u)); font-size: calc(18 * var(--u)); }
  .sv-paso__b { margin-bottom: calc(22 * var(--u)); font-size: max(13px, calc(15.5 * var(--u))); }
  .sv-chips { gap: calc(7 * var(--u)); margin-bottom: calc(24 * var(--u)); }
  .sv-chips li { padding: calc(7 * var(--u)) calc(12 * var(--u)); font-size: calc(10.5 * var(--u)); }
  .sv-foot { font-size: calc(12.5 * var(--u)); max-width: calc(414 * var(--u)); }
  .sv-cta { font-size: calc(12 * var(--u)); }
  .sv-ventana { height: calc(470 * var(--u)); border-radius: calc(20 * var(--u)); }
}
/* cabecera del sitio sobre el claro de Servicios (body.en-claro lo pone js/servicios.js) */
body.en-claro .logo { color: #111216; }
body.en-claro .hud__contacto.pill { background: #111216; color: #EEF0F4; --ht-color: #EEF0F4; }
body.en-claro .hud__contacto .dot { background: #EEF0F4; }
body.en-claro .hud__nav a, body.en-claro .hud__nav a > span { color: #8A8E98; }
body.en-claro .hud__nav a.is-on, body.en-claro .hud__nav a.is-on > span { color: #111216; }
body.en-claro .hud__kicker { color: #111216 !important; }
body.en-claro .hud .hud__text, body.en-claro .hud .mono { color: #4E525C; }
body.en-claro .musica { background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(17, 18, 22, .12); }
body.en-claro .hud__punto, body.en-contacto .hud__punto { background: #111216; }
body.en-claro .hud__capitulo, body.en-contacto .hud__capitulo { color: #111216; }
@media (prefers-reduced-motion: reduce) { .sv-l, .sv-paso__h, .sv-ventana { transition: none; } }

/* Servicios · paleta Tierra con «Luz del proyecto»: cada etapa (--c, --ct en el li) tiñe el fondo detrás de su ventana
   mientras está activa, y lleva su número grande en contorno detrás del texto (como el plano técnico). */
.sv-paso { position: relative; }
.sv-paso::before { content: ""; position: absolute; left: 10%; top: 50%; width: 1100px; height: 900px; transform: translate(-6%, -50%); pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 38%, transparent), color-mix(in srgb, var(--c) 12%, transparent) 55%, transparent);
  opacity: 0; transition: opacity 1s var(--e); }
.sv-paso.is-actual::before { opacity: 1; }
.sv-paso__k b { color: var(--ct); }
.sv-paso__s { color: var(--ct); }
.sv-cta { border-bottom-color: var(--c); }
.sv-cta:hover { color: var(--ct); }
.sv-linea__tinta { transition: stroke .8s var(--e); }
.sv-num { position: absolute; left: -6px; top: -96px; z-index: -1; pointer-events: none; font: 600 130px/1 var(--sans); letter-spacing: -.06em; color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--ct) 38%, transparent); transition: -webkit-text-stroke-color .6s; }
.sv-paso:not(.is-on) .sv-num { -webkit-text-stroke-color: rgba(17,18,22,.10); }
.sv-ventana { box-shadow: 0 40px 90px color-mix(in srgb, var(--ct) 30%, transparent), 0 2px 8px rgba(17,18,22,.08); }
@media (min-width: 901px) {
  .sv-paso::before { left: calc(865 * var(--u)); width: calc(1300 * var(--u)); height: calc(1100 * var(--u)); transform: translate(-50%, -50%); }
  .sv-paso.is-on .sv-punto { background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 22%, var(--claro)); }
  .sv-num { left: calc(48 * var(--u)); top: calc(-170 * var(--u)); font-size: calc(220 * var(--u)); }
}


/* ── Servicios · números: al pasar el cursor se rellenan con el color de su etapa ── */
.sv-paso__texto > :not(.sv-num):not(.sv-punto) { position: relative; z-index: 1; }
.sv-num { pointer-events: auto; z-index: 0; transition: color .45s var(--e), -webkit-text-stroke-color .6s; }
.sv-num:hover { color: var(--c); -webkit-text-stroke-color: var(--c); }

/* ── Servicios · cierre: el logo de partículas sobre el blanco, con su sombra y su reflejo, y un horizonte de granos que salta con la música ── */
.sv:has(.sv-fin) { padding-bottom: 28px; }
.sv-fin { position: relative; margin-top: 90px; scroll-margin-top: 40px; display: flex; flex-direction: column; align-items: center; }
.sv-fin__escena { position: relative; width: 100vw; margin: 0 calc(var(--gx) * -1); height: min(92vw, 420px); }
.sv-fin__logo, .sv-fin__horizonte { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sv-fin__horizonte { z-index: 0; pointer-events: none; }
/* El lienzo del logo sobresale 28 % arriba y abajo de la escena (la cámara ve el mismo cuadro, js/wc-contacto.js «margen»):
   las partículas que el cursor empuja se desvanecen en un borde suave en vez de cortarse en un rectángulo. */
.sv-fin__logo { z-index: 1; touch-action: pan-y; top: -28%; height: 156%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 15%, #000 57.7%, transparent 80.8%), linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(180deg, transparent 0, #000 15%, #000 57.7%, transparent 80.8%), linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.sv-fin__pie { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; margin-top: -10px; }
.sv-fin__h { margin: 0; font: 500 30px/1.05 var(--sans); letter-spacing: -.045em; color: var(--tinta); }
.sv-fin__cta.pill { background: #111216; color: #EEF1F5; --ht-color: #EEF1F5; box-shadow: 0 14px 34px rgba(17,18,22,.24), inset 0 1px 0 rgba(255,255,255,.08); transition: background .3s, transform .3s var(--e); }
.sv-fin__cta.pill .dot { background: #EEF1F5; }
.sv-fin__cta.pill:hover { background: #2A2D36; transform: translateY(-1px); }
.sv-fin__franja { align-self: stretch; margin-top: 56px; padding-top: 14px; border-top: 1px solid rgba(17,18,22,.10); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px;
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #6B707A; }
.sv-fin__franja a { color: var(--tinta); text-decoration: none; }
.sv-fin__franja a:hover { color: #2F6BFF; }
@media (min-width: 901px) {
  .sv:has(.sv-fin) { padding-bottom: calc(40 * var(--u)); }
  .sv-fin { margin-top: calc(200 * var(--u)); scroll-margin-top: calc(10 * var(--u)); }
  .sv-fin__escena { width: calc(1440 * var(--u)); margin: 0 calc(-120 * var(--u)); height: calc(640 * var(--u)); }
  .sv-fin__pie { margin-top: calc(-40 * var(--u)); gap: calc(30 * var(--u)); }
  .sv-fin__h { font-size: calc(52 * var(--u)); white-space: nowrap; }
  /* el pie (año, ciudad, volver arriba) va pegado al borde de abajo, fuera del flujo: así no empuja el logo hacia arriba
     al llegar al final. El espacio de abajo alcanza para el lienzo del logo, que se sale por debajo de su caja: si no,
     queda una franja oscura al final de la página. */
  .sv:has(.sv-fin) { padding-bottom: max(calc(40 * var(--u) + 34px), calc(134 * var(--u) - 48px)); }
  .sv-fin__franja { position: absolute; left: 0; right: 0; top: calc(100% + 40 * var(--u)); margin: 0; padding-top: 10px; }
}

/* celular: Contacto mide al menos una pantalla; si no, al llegar al final de la página asoma arriba el oscuro del Taller
   (el arco claro no alcanza a cubrirlo) y la cabecera queda en modo oscuro sobre fondo claro */
@media (max-width: 900px) { .s-contacto { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; } }

/* la luz de cada etapa (::before de .sv-paso) es más ancha que la pantalla en celular: se recorta en la sección
   para que no ensanche la página (sin crear un contenedor de scroll) */
.s-services { overflow-x: clip; }
body.en-final .hud__seccion { opacity: 0; pointer-events: none; transition: opacity .4s; }

/* ── Intro núcleo (js/intro-nucleo.js): los símbolos de la esfera se juntan mientras carga; al final, con o sin sonido ── */
.intro--nucleo { background-color: #0D0F14; transition: background-color 1s ease, opacity .45s ease; }
.intro--nucleo.es-transparente { background-color: rgba(13,15,20,0); }
.intro--nucleo.sale { opacity: 0; }
.intro--nucleo .intro__rain, .intro--nucleo .intro__word { display: none; }
.nucleo__lienzo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.nucleo__cuenta { position: absolute; z-index: 2; left: var(--gx); bottom: calc(clamp(14px, 3vw, 40px) + env(safe-area-inset-bottom, 0px)); color: #EEF1F5; pointer-events: none;
  transition: opacity .6s, transform .6s var(--ease); }
/* números que ruedan como un odómetro */
.nucleo__odo { display: flex; height: 1em; overflow: hidden; font: 600 clamp(96px, 17vw, 240px)/1 var(--sans); letter-spacing: -.07em; font-variant-numeric: tabular-nums; }
.nucleo__col { display: flex; flex-direction: column; will-change: transform; }
.nucleo__col span { display: block; height: 1em; }
/* centro: barra de carga que se vuelve el logo WCL */
.nucleo__marca { position: absolute; z-index: 2; left: 50%; top: 50%; width: var(--ancho, 156px); transform: translate(-50%, -50%); color: #EEF1F5; pointer-events: none;
  transition: opacity .55s ease, transform .7s var(--ease), filter .55s ease; }
.nucleo__marca::before { content: ""; position: absolute; left: 50%; top: 50%; width: 170%; aspect-ratio: 1.6; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(13,15,20,.92), rgba(13,15,20,.6) 55%, rgba(13,15,20,0)); opacity: 0; transition: opacity .8s .2s; }
.nucleo__marca.dibuja::before { opacity: 1; }
.nucleo__logo { position: relative; }
.nucleo__barra { position: absolute; left: 50%; top: 50%; width: 88px; height: 10px; margin: -5px 0 0 -44px; background: rgba(238,241,245,.18); overflow: hidden;
  transition: transform .45s cubic-bezier(.65,0,.35,1), opacity .3s .35s; transform-origin: right; }
.nucleo__barra b { position: absolute; inset: 0; background: #EEF1F5; transform-origin: left; transform: scaleX(0); }
.nucleo__logo { display: block; width: 100%; height: auto; overflow: visible; }
.nucleo__w, .nucleo__c { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .6s cubic-bezier(.65,0,.35,1); }
.nucleo__c { transition-delay: .48s; }
.nucleo__w { transition-delay: .3s; }
.nucleo__l { clip-path: inset(100% 0 0 0); transition: clip-path .4s cubic-bezier(.65,0,.35,1) .75s; }
.nucleo__zarpas path { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); transition: transform .32s cubic-bezier(.7,0,.3,1); }
.nucleo__zarpas path:nth-child(1) { transition-delay: 1s; } .nucleo__zarpas path:nth-child(2) { transition-delay: 1.06s; } .nucleo__zarpas path:nth-child(3) { transition-delay: 1.12s; }
.nucleo__marca.dibuja .nucleo__barra { transform: scaleX(0); opacity: 0; }
.nucleo__marca.dibuja .nucleo__w, .nucleo__marca.dibuja .nucleo__c { stroke-dashoffset: 0; }
.nucleo__marca.dibuja .nucleo__l { clip-path: inset(0 0 0 0); }
.nucleo__marca.dibuja .nucleo__zarpas path { transform: scaleX(1); }
/* al entrar, el logo se funde en el núcleo */
/* el logo se deshace en signos de código (los dibuja intro-nucleo.js en el lienzo, encima) */
.nucleo__marca.signos { opacity: 0; transition: opacity .22s ease; }
.nucleo__marca.signos::before { opacity: 0; }
.nucleo__lienzo { z-index: 3; }
.nucleo__cuenta.fuera { opacity: 0; transform: translateY(24px); }
.nucleo__elige { position: absolute; z-index: 3; left: 0; top: 0; width: var(--tam, 136px); display: grid; justify-items: center; gap: 12px;
  opacity: 0; transform: scale(.9); pointer-events: none; transition: opacity .7s, transform .8s var(--ease); }
.nucleo__elige.on { opacity: 1; transform: none; pointer-events: auto; }
.nucleo__elige.sale { opacity: 0; transition: opacity .35s; }
.nucleo__guia { position: absolute; right: 100%; top: calc(var(--tam, 136px) / 2); height: 1px; background: linear-gradient(90deg, rgba(238,241,245,0), rgba(238,241,245,.45));
  transform-origin: right; transform: scaleX(0); transition: transform .9s .25s var(--ease); }
.nucleo__guia::before { content: ""; position: absolute; left: 0; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: #EEF1F5; }
.nucleo__elige.on .nucleo__guia { transform: scaleX(1); }
.nucleo__anillo { position: relative; width: var(--tam, 136px); height: var(--tam, 136px); padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #EEF1F5;
  background: rgba(12,14,20,.78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .45s var(--ease), background-color .3s; }
.nucleo__anillo::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(238,241,245,.35); transition: box-shadow .3s; }
.nucleo__anillo:hover { transform: scale(1.06); background: rgba(12,14,20,.9); }
.nucleo__anillo:hover::before { box-shadow: inset 0 0 0 1px rgba(238,241,245,.7); }
.nucleo__anillo svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: nucleoGira 14s linear infinite; }
.nucleo__anillo:hover svg { animation-duration: 5s; }
@keyframes nucleoGira { to { transform: rotate(1turn); } }
.nucleo__anillo text { font: 500 11px var(--mono); letter-spacing: .3em; text-transform: uppercase; fill: rgba(238,241,245,.82); }
.nucleo__centro { display: grid; justify-items: center; gap: 8px; font: 600 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.nucleo__anillo:focus-visible { outline: 2px solid #EEF1F5; outline-offset: 4px; }
.nucleo__sin { min-height: 36px; padding: 8px 14px; border: 0; border-radius: 999px; background: rgba(13,15,20,.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: pointer; color: rgba(238,241,245,.55); font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.nucleo__sin:hover { color: #EEF1F5; }
.nucleo__sin:focus-visible { outline: 2px solid #EEF1F5; outline-offset: 2px; }
.nucleo__ondas { display: inline-flex; align-items: center; gap: 3px; height: 18px; }
.nucleo__ondas i { width: 3px; height: 30%; border-radius: 2px; background: currentColor; animation: nucleoOnda 1.1s ease-in-out infinite; }
.nucleo__ondas i:nth-child(2) { animation-delay: -.3s; } .nucleo__ondas i:nth-child(3) { animation-delay: -.6s; } .nucleo__ondas i:nth-child(4) { animation-delay: -.15s; } .nucleo__ondas i:nth-child(5) { animation-delay: -.45s; }
@keyframes nucleoOnda { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.nucleo__vuelo.mudo .nucleo__ondas i { animation: none; height: 16%; }
/* la pieza del sonido en vuelo hacia el botón de música del HUD */
.nucleo__vuelo { position: fixed; z-index: 260; display: grid; place-items: center; border-radius: 50%; color: #C9CDD6; pointer-events: none; overflow: hidden; }
/* al entrar, la portada aparece por partes: el HUD y los textos se funden mientras la esfera se arma */
html.intro-esfera .hud, html.intro-esfera main, html.intro-esfera .polvo-canvas, html.intro-esfera .marks, html.intro-esfera .fluido-canvas, html.intro-esfera #hold { opacity: 0 !important; pointer-events: none; }
html.intro-esfera-sale .hud { transition: opacity .7s ease !important; }
html.intro-esfera-sale main, html.intro-esfera-sale .marks, html.intro-esfera-sale .polvo-canvas { transition: opacity 1.1s ease .45s !important; }
/* el logo del HUD aparece con la portada (la intro ya es transparente), no hasta que se elige el sonido */
html.is-intro.intro-revela .logo { opacity: 1; transition: opacity .8s ease .3s; }
/* el botón de música del HUD no aparece hasta que se entra */
html.is-intro .musica { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .nucleo__anillo svg { animation: none; } }
@media (prefers-reduced-motion: reduce) { .nucleo__ondas i { animation: none; } }
