/* ============================================================
   WORKLYNK — sistema visual
   Oscuro por defecto. Paleta tomada del logo:
   verde neón #2bff66 · azul de trazo #303344.
   Tipografía: Jost (geométrica, familia Futura) + Geist Mono en maquetas.
   ============================================================ */

/* ---------- Tipografías autoalojadas (sin llamadas a terceros) ----------
   Se sirven desde /assets/fonts/. Subconjuntos latin y latin-ext: el navegador
   descarga solo el que necesita según el unicode-range. Jost es variable
   (300–700). Licencia SIL OFL 1.1 — ver assets/fonts/README.txt. */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/assets/fonts/jost-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/assets/fonts/jost-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/assets/fonts/geist-mono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/assets/fonts/geist-mono-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #08080a;
  --bg-2: #0c0c0f;
  --surface: #101013;
  --surface-2: #17171b;
  --surface-3: #1f1f24;
  --border: #232327;
  --border-2: #303036;
  --ink: #303344;

  --text: #edeef5;
  --text-2: #a4a9bd;
  --text-3: #757b91;

  --marca: #29dc6e;              /* verde de estatus activo: logo, foco, selección */
  --accent: #e6e7ec;             /* en oscuro, el acento es la luz */
  --accent-hot: #ffffff;
  --accent-soft: rgba(255, 255, 255, 0.07);
  --accent-line: rgba(255, 255, 255, 0.16);
  --ok: #3fd18b;
  --ok-ink: #05140d;

  --topbar-bg: #08080a;
  --neon: rgba(255, 255, 255, 0.26);
  --hit: rgba(255, 255, 255, 0.45);
  --aura-luz: rgba(255, 255, 255, 0.42);
  --aura-marca: rgba(41, 220, 110, 0.30);
  --brillo: 0 0 30px rgba(255, 255, 255, 0.30);
  --aura-txt: rgba(255, 255, 255, 0.30);
  --cursor-1: rgba(255, 255, 255, 0.11);
  --cursor-2: rgba(41, 220, 110, 0.22);
  --sig-1: rgba(237, 238, 245, 0.045);
  --sig-2: rgba(237, 238, 245, 0.05);
  --glow-cta: transparent;
  color-scheme: dark;

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 30px 60px -28px rgba(0, 0, 0, 0.95);
  --glow: 0 0 0 1px rgba(255, 255, 255, 0.04);

  --frame: 1280px;
  --pad: 34px;
  --r-sm: 8px;      /* enlaces del menú, celdas internas */
  --r: 10px;        /* bloques */
  --r-lg: 14px;     /* tarjetas y maquetas */
  --r-campo: 10px;  /* campos de formulario */
  --pastilla: 999px;/* todo lo que se pulsa */

  --ease: cubic-bezier(0.22, 0.72, 0.24, 1);

  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-md: 1.0625rem;
  --t-lg: clamp(1.15rem, 1.03rem + 0.55vw, 1.4rem);
  --t-xl: clamp(1.55rem, 1.2rem + 1.5vw, 2.25rem);
  --t-2xl: clamp(2.25rem, 1.5rem + 3.2vw, 4rem);
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #fafafa;
  --surface: #ffffff;
  --surface-2: #f6f6f7;
  --surface-3: #ededf0;
  --border: #e8e8ec;
  --border-2: #d6d6dc;

  --text: #14161f;
  --text-2: #565b6e;
  --text-3: #656a80;

  --marca: #12a455;              /* verde profundo: el neón no contrasta sobre blanco */
  --accent: #14161c;             /* en claro, el acento es la tinta */
  --accent-hot: #000000;
  --accent-soft: rgba(0, 0, 0, 0.05);
  --accent-line: rgba(0, 0, 0, 0.13);
  --ok: #147a4a;
  --ok-ink: #ffffff;

  --shadow: 0 1px 2px rgba(16, 18, 30, 0.06), 0 26px 54px -28px rgba(16, 18, 30, 0.28);
  --glow: 0 0 0 1px rgba(0, 0, 0, 0.03);

  --topbar-bg: #ffffff;
  --neon: rgba(0, 0, 0, 0.20);
  --hit: rgba(0, 0, 0, 0.30);
  --aura-luz: rgba(20, 22, 31, 0.34);
  --aura-marca: rgba(18, 164, 85, 0.18);
  --brillo: 0 8px 22px rgba(20, 22, 31, 0.20);
  --aura-txt: rgba(20, 22, 31, 0.20);
  --cursor-1: rgba(20, 22, 31, 0.07);
  --cursor-2: rgba(18, 164, 85, 0.16);
  --sig-1: rgba(20, 22, 31, 0.05);
  --sig-2: rgba(20, 22, 31, 0.05);
  --glow-cta: transparent;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Jost", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.03rem;
  line-height: 1.62;
  letter-spacing: 0.004em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.024em;
  text-wrap: balance;
  color: var(--text);
}
h1 {
  font-size: var(--t-2xl); font-weight: 600;
  text-transform: uppercase; letter-spacing: -0.012em;
}
h2 {
  font-size: var(--t-xl);
  text-transform: uppercase; letter-spacing: -0.005em;
}
h3 { font-size: var(--t-lg); letter-spacing: -0.024em; }
h4 { font-size: var(--t-md); letter-spacing: -0.016em; }
p { margin: 0; text-wrap: pretty; }

.mono {
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.025em;
  color: var(--text-3);
}

/* La monoespaciada solo dentro de las maquetas: ahí representa
   una interfaz de verdad, no es un adorno tipográfico. */
.screen .mono,
.browser .mono {
  font-family: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.01em;
}

::selection { background: var(--marca); color: #04140d; }
:focus-visible { outline: 2px solid var(--marca); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 16px; top: 16px; z-index: 90;
  background: var(--surface); border: 1px solid var(--border-2);
  padding: 10px 16px; border-radius: var(--pastilla);
}

/* ---------- Marca ---------- */

/* El destello del logo sigue el color de marca por tema (verde neón en
   oscuro, verde profundo en claro), en vez de un hex fijo en el SVG. */
.destello { fill: var(--marca); }

.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand__mark {
  width: 38px; height: auto; color: var(--text); flex: 0 0 auto;
  transition: filter 0.28s var(--ease), transform 0.22s var(--ease);
}
.brand:hover .brand__mark { filter: drop-shadow(0 0 9px var(--neon)); transform: scale(1.07); }
.brand:active .brand__mark { transform: scale(0.93); transition-duration: 0.1s; }
.brand__mark .destello { transition: opacity 0.28s var(--ease); }
.brand:hover .brand__mark .destello { opacity: 0.85; }
.brand:active .brand__mark .destello { opacity: 1; }
/* Logo nuevo: "worklynk" en minúscula, un solo peso — antes eran dos
   bloques (WORK atenuado / LYNK en negrita); ahora solo la "y" lleva el
   verde de marca, el resto del texto es uniforme. */
.wm { font-size: 0.95rem; font-weight: 650; letter-spacing: 0.006em; line-height: 1; white-space: nowrap; color: var(--text); }
.wm-y { color: var(--marca); }

/* ---------- Rastro del cursor ---------- */

/* Dos halos con distinta inercia: uno pequeño y ceñido que casi calca al
   puntero, y otro más grande y magenta que se queda un paso atrás. Juntos dan
   sensación de estela sin teñir el fondo. */
.cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 1;
  width: 170px; height: 170px; margin: -85px 0 0 -85px;
  pointer-events: none; opacity: 0;
  background: radial-gradient(circle closest-side, var(--cursor-1), transparent 70%);
  filter: blur(18px);
  transition: opacity 0.4s ease;
}
.cursor-dot--marca {
  width: 280px; height: 280px; margin: -140px 0 0 -140px;
  background: radial-gradient(circle closest-side, var(--cursor-2), transparent 72%);
  filter: blur(32px);
}
@media (hover: none), (pointer: coarse) { .cursor-dot { display: none; } }

/* ---------- Estructura ---------- */

.frame {
  position: relative;
  max-width: var(--frame);
  margin: 0 auto;
}

/* El fondo animado del hero rompe el ancho del marco (100vw). Este recorte
   horizontal en el contenedor a pantalla completa evita cualquier barra de
   desplazamiento lateral sin crear un contexto de scroll (no afecta a la
   barra superior fija, que va fuera de #main). 'clip' no fuerza el eje
   vertical, a diferencia de 'hidden'. */
#main { overflow-x: clip; }

.section {
  position: relative;
  overflow-x: clip;
  padding: clamp(56px, 7vw, 100px) var(--pad);
  border-bottom: 1px solid var(--border);
}
.section:last-child { border-bottom: 0; }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }

.head { max-width: 62ch; }
.head p { color: var(--text-2); margin-top: 15px; font-size: var(--t-md); }
.head + * { margin-top: 42px; }

.lede { color: var(--text-2); font-size: var(--t-md); line-height: 1.62; max-width: 56ch; }
.prose { color: var(--text-2); max-width: 68ch; }
.prose p + p { margin-top: 1em; }
.prose strong { color: var(--text); font-weight: 600; }

/* ---------- Barra superior ---------- */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--topbar-bg);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  max-width: var(--frame); margin: 0 auto;
  padding: 0 var(--pad); height: 64px;
  display: flex; align-items: center; gap: 6px;
}
.topbar .brand { margin-right: 26px; }
.topbar .brand__mark { width: 34px; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav__link, .nav__trigger {
  display: inline-flex; align-items: center; gap: 5px;
  height: 32px; padding: 0 11px;
  border: 0; background: transparent; cursor: pointer;
  color: var(--text-2); font-size: var(--t-sm); font-weight: 500;
  border-radius: var(--r-sm);
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.nav__link:hover, .nav__trigger:hover { color: var(--text); background: var(--surface-2); }
.nav__link[aria-current="page"] { color: var(--text); }
.nav__trigger svg { width: 10px; height: 10px; opacity: 0.6; transition: transform 0.2s var(--ease); }
.nav__trigger[aria-expanded="true"] { color: var(--text); background: var(--surface-2); }
.nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.spacer { margin-left: auto; }
.burger { display: none; }


/* ---------- Desplegable ---------- */

.menuwrap { position: relative; }
.menu {
  position: absolute; top: calc(100% + 11px); left: -8px;
  width: 392px; padding: 6px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-8px) scale(0.98);
  pointer-events: none;
  /* Oculto de verdad al cerrarse: sin visibility, el tabulador entraría en
     enlaces invisibles. Se oculta al acabar el fundido, no antes. */
  visibility: hidden;
  transition: opacity 0.18s var(--ease), transform 0.22s var(--ease), visibility 0s linear 0.22s;
}
.menu[data-open="true"] { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }

.menu__row {
  position: relative;
  display: grid; grid-template-columns: 32px 1fr; gap: 12px;
  padding: 11px 10px; border-radius: var(--r);
  transition: background-color 0.15s var(--ease);
}
.menu__row:hover, .menu__row:focus-visible { background: var(--surface-3); }
.menu__ico {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--border-2); border-radius: 9px;
  color: var(--text-2); background: var(--bg-2);
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.menu__row:hover .menu__ico { color: var(--accent-hot); border-color: var(--accent-line); }
.menu__ico svg { width: 15px; height: 15px; }
.menu__txt b { display: block; font-weight: 600; font-size: var(--t-sm); letter-spacing: -0.012em; color: var(--text); }
.menu__txt span { display: block; color: var(--text-3); font-size: var(--t-xs); line-height: 1.5; margin-top: 3px; }
.menu__foot {
  margin-top: 4px; padding: 11px 12px;
  border-top: 1px solid var(--border); display: flex; gap: 18px;
}
.menu__foot a { font-size: var(--t-xs); color: var(--text-3); transition: color 0.15s var(--ease); }
.menu__foot a:hover { color: var(--accent-hot); }

/* ---------- Botones ---------- */

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 16px;
  border: 1px solid transparent; border-radius: var(--pastilla);
  font-size: var(--t-sm); font-weight: 500; letter-spacing: -0.01em;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
              border-color 0.18s var(--ease), box-shadow 0.25s var(--ease), color 0.18s var(--ease);
}
.btn { overflow: hidden; }
.btn--solid {
  background: var(--text); color: var(--bg);
  box-shadow: inset 0 0 0 0 var(--accent-soft);
}
.btn--solid:hover {
  transform: translateY(-1px); opacity: 0.9;
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.35);
}
.btn--line { border-color: var(--border-2); color: var(--text); background: var(--surface); }
.btn--line:hover { border-color: var(--border-2); background: var(--surface-2); transform: translateY(-1px); }
.btn--quiet { color: var(--text-2); }
.btn--quiet:hover { color: var(--accent-hot); background: var(--accent-soft); }

/* golpe de luz en el punto exacto donde se pulsa */
.btn::after, .ph::after {
  content: ""; position: absolute;
  left: var(--rx, 50%); top: var(--ry, 50%);
  width: 300px; height: 300px; margin: -150px 0 0 -150px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle closest-side, var(--hit), transparent 72%);
  transform: scale(0); opacity: 0;
}
.btn--solid::after { background: radial-gradient(circle closest-side, var(--bg), transparent 72%); opacity: 0; }
.btn--solid.is-hit::after { animation: golpe 0.55s cubic-bezier(0.2, 0.7, 0.3, 1); }
.btn.is-hit::after, .ph.is-hit::after { animation: golpe 0.55s cubic-bezier(0.2, 0.7, 0.3, 1); }
@keyframes golpe {
  0% { transform: scale(0); opacity: 0.95; }
  100% { transform: scale(1); opacity: 0; }
}
.ph { position: relative; overflow: hidden; }
.btn--lg { height: 44px; padding: 0 22px; font-size: var(--t-base); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.actions { display: flex; flex-wrap: wrap; gap: 11px; }
.actions--chips .btn { height: 40px; padding: 0 17px; font-size: 0.9375rem; }

.tlink {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--accent-hot); font-size: var(--t-sm); font-weight: 500;
  transition: gap 0.18s var(--ease);
}
.tlink::after {
  content: ""; width: 5px; height: 5px;
  border-top: 1.4px solid currentColor; border-right: 1.4px solid currentColor;
  transform: rotate(45deg);
}
.tlink:hover { gap: 11px; }

/* ---------- Portada ---------- */

.hero {
  position: relative;
  padding: clamp(64px, 9vw, 128px) var(--pad) clamp(64px, 8vw, 112px);
  /* 'visible' para que el fondo animado (.hero__net) pueda romper el ancho
     del marco y llegar de borde a borde; el recorte horizontal contra el
     scroll lo pone #main. */
  overflow: visible;
}
/* única licencia de color en el fondo: una línea de neón que se apaga
   hacia los lados, para cerrar la portada sin dibujar una caja */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--border);
}

/* La marca abre la portada. En móvil ocupa el centro y late en neón;
   en escritorio es una firma discreta sobre el titular. */
.hero--marca {
  /* el recorte horizontal lo hace #main; aquí visible para que el fondo
     animado llegue a los bordes */
  overflow: visible;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding-block: clamp(48px, 7vw, 96px) clamp(44px, 6vw, 84px);
}
/* rejilla de puntos muy discreta, se apaga hacia los bordes: da textura
   al fondo de la portada sin dibujar ninguna caja ni robarle protagonismo
   al titular */
.hero--marca::before {
  content: ""; position: absolute; inset: -20% -10%; z-index: -1;
  background-image: radial-gradient(circle, var(--border-2) 1px, transparent 1.6px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 38%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 62% 58% at 50% 38%, #000 0%, transparent 72%);
  opacity: 0.55; pointer-events: none;
}
.hero--marca h1 {
  max-width: none; line-height: 0.96;
  font-size: clamp(2.8rem, 9vw, 5.5rem); letter-spacing: -0.05em;
  text-shadow: var(--brillo);
}

/* La misma luz, más contenida, en los encabezados de sección y en los
   títulos de cada pieza: da profundidad sin ensuciar la lectura. */
.head h2, .piece__title, .cta h2 { text-shadow: var(--brillo); }

/* Un resplandor real detrás de los encabezados: la sombra de texto sola
   no se aprecia sobre blanco. */
/* Resplandor detrás de los titulares. La clave es que la caja del encabezado
   se ciña al texto (fit-content): si no, el degradado se pinta sobre todo el
   ancho de la columna y dibuja una mancha rectangular. */
.head h2, .cta h2, .piece__title, .hero--marca h1 {
  width: fit-content; max-width: 100%;
  /* La caja crece con relleno y se compensa con margen negativo, para que el
     degradado tenga sitio de sobra donde apagarse dentro de ella. Con
     background-size mayor que la caja, el navegador lo recortaba y dejaba
     un canto recto. */
  padding: 0.5em 0.55em;
  margin: -0.5em -0.55em;
  background-image: radial-gradient(closest-side, var(--aura-txt), transparent 82%);
  background-repeat: no-repeat;
}
.hero--marca h1 { margin-inline: auto; }
.head h2 + p { margin-top: 15px; }
.hero--marca .lede { margin-inline: auto; margin-top: 22px; max-width: 44ch; }
.hero--marca .actions { justify-content: center; margin-top: 30px; }

/* Fondo de la portada: la red de nodos 3D (WebGL). Ocupa todo el hero por
   detrás del contenido. Si no carga (móvil, sin WebGL, menos movimiento),
   queda oculto y el titular se apoya en el fondo de puntos. */
.hero__net {
  position: absolute; top: 0; bottom: 0;
  left: 50%; width: 100vw; transform: translateX(-50%);
  z-index: 0; pointer-events: none; overflow: hidden;
}
.hero__net canvas { display: block; width: 100%; height: 100%; opacity: 0.9; }
/* el contenido de cualquier cabecera va por encima de la red */
.hero > :not(.hero__net) { position: relative; z-index: 1; }
/* Velo detrás del contenido para que se lea sobre el fluido: en su propio
   pseudo-elemento (.hero__net::after, no .hero::after) para no chocar con
   la línea de neón del pie del hero, que ya usa ese mismo selector.
   Centrado en la portada, anclado a la izquierda en las cabeceras
   interiores (texto a la izquierda). Bien opaco en el centro: el fluido es
   vistoso pero el titular manda. */
.hero__net::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.hero--marca .hero__net::after {
  background: radial-gradient(ellipse 62% 60% at 50% 50%, var(--bg) 0%, var(--bg) 22%, transparent 72%);
  opacity: 0.86;
}
.hero:not(.hero--marca) .hero__net::after {
  background: radial-gradient(ellipse 66% 95% at 10% 45%, var(--bg) 0%, var(--bg) 20%, transparent 66%);
  opacity: 0.9;
}
/* En escritorio la portada se hace inmersiva: la red 3D llena la pantalla
   con el titular centrado, como las webs de referencia. */
@media (min-width: 761px) {
  .hero--marca { min-height: min(82vh, 780px); }
}
/* En móvil el fluido WebGL no se carga (pesa más de lo que aporta), así que
   la cabecera se quedaba desnuda. Se le da un fondo estático propio: una
   aurora verde de marca, muy suave, sobre el negro — y se aligera el velo
   para que se note. Vale para la portada y para las cabeceras interiores. */
@media (max-width: 760px) {
  /* En móvil el fluido WebGL no se carga; en su lugar, una aurora verde de
     marca VIVA: tres manchas que se desplazan y respiran lentamente. Da vida
     a la cabecera sin el coste del fluido. Vale para la portada y para las
     cabeceras interiores. */
  .hero__net::before {
    content: ""; position: absolute; inset: -25%;
    background:
      radial-gradient(46% 38% at 22% 26%, rgba(41, 220, 110, 0.72), transparent 62%),
      radial-gradient(44% 36% at 82% 64%, rgba(41, 220, 110, 0.60), transparent 64%),
      radial-gradient(38% 34% at 56% 86%, rgba(36, 205, 104, 0.54), transparent 66%);
    filter: blur(22px);
    animation: aurora 15s ease-in-out infinite alternate;
    will-change: transform;
  }
  [data-theme="light"] .hero__net::before {
    background:
      radial-gradient(46% 38% at 22% 26%, rgba(18, 164, 85, 0.62), transparent 62%),
      radial-gradient(44% 36% at 82% 64%, rgba(12, 140, 74, 0.52), transparent 64%),
      radial-gradient(38% 34% at 56% 86%, rgba(18, 164, 85, 0.46), transparent 66%);
  }
  /* El velo se aligera para que la aurora se note; en oscuro deja el titular
     legible, en claro apenas hace falta porque el texto es oscuro. */
  .hero--marca .hero__net::after { opacity: 0.26; }
  .hero:not(.hero--marca) .hero__net::after { opacity: 0.34; }
}
@keyframes aurora {
  0%   { transform: translate3d(-5%, -4%, 0) scale(1.05); }
  50%  { transform: translate3d(4%, 3%, 0) scale(1.14); }
  100% { transform: translate3d(-3%, 5%, 0) scale(1.07); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__net::before { animation: none; }
}

.hero h1 { max-width: 15ch; }
.hero h1 em {
  font-style: normal;
  color: var(--accent-hot);
  text-shadow: 0 0 34px var(--neon-soft), 0 0 12px var(--neon-soft);
}
/* sobre blanco el neón ensucia en vez de brillar */
[data-theme="light"] .hero h1 em { text-shadow: none; }
.hero .lede { margin-top: 22px; }
.hero .actions { margin-top: 32px; }

/* ---------- Banda en movimiento ---------- */

.banda {
  overflow: hidden; padding-block: 20px;
  border-bottom: 1px solid var(--border);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.banda__pista { display: flex; width: max-content; animation: rodar 38s linear infinite; }
.banda__grupo { display: flex; align-items: center; }
.banda__grupo b {
  font-size: var(--t-sm); font-weight: 500; letter-spacing: -0.01em;
  color: var(--text-2); white-space: nowrap;
}
.banda__grupo i {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--text-3); opacity: 0.55;
  margin-inline: 26px; flex: 0 0 auto;
}
@keyframes rodar { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.banda:hover .banda__pista { animation-play-state: paused; }

/* ---------- Pantalla de producto ---------- */

.screen {
  position: relative;
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow), var(--glow);
  overflow: hidden;
}
.screen__bar {
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 13px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.screen__dots { display: flex; gap: 5px; }
.screen__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-2); }

.screen__name { font-size: var(--t-xs); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen__pill {
  margin-left: auto; flex: 0 0 auto;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10.5px; color: var(--accent-hot);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: 999px; padding: 3px 10px;
}

.screen__body { display: grid; grid-template-columns: 206px minmax(0, 1fr) 190px; }
.screen__side { border-right: 1px solid var(--border); padding: 12px 10px; }
.screen__main { padding: 22px 24px; min-height: 348px; }
.screen__main:focus-visible { outline-offset: -3px; }
.screen__rail { border-left: 1px solid var(--border); padding: 15px 12px; background: var(--bg-2); }

.ph {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  padding: 9px; border: 0; border-radius: var(--r-sm);
  background: transparent; cursor: pointer;
  font-size: var(--t-xs); color: var(--text-3);
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}
.ph:hover { background: var(--surface-2); color: var(--text-2); }
.ph[aria-selected="true"] {
  background: var(--accent-soft); color: var(--text); font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--accent-line);
}
.ph__n {
  width: 18px; height: 18px; flex: 0 0 auto;
  display: grid; place-items: center;
  border: 1px solid var(--border-2); border-radius: 50%;
  font-family: "Geist Mono", ui-monospace, monospace; font-size: 9px; color: var(--text-3);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.ph[data-done="true"] .ph__n { background: var(--ok); border-color: var(--ok); color: var(--ok-ink); }
.ph[aria-selected="true"] .ph__n { border-color: var(--accent-hot); color: var(--accent-hot); background: transparent; }

.doc__kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; }
.doc__h { font-size: var(--t-md); font-weight: 600; letter-spacing: -0.016em;
  color: var(--text); margin-bottom: 14px; }
.doc__lines { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.doc__lines i {
  height: 7px; border-radius: 4px; display: block;
  background: linear-gradient(90deg, var(--surface-3), var(--surface-2));
  transform-origin: left center;
  animation: grow 0.5s var(--ease) both;
}
@keyframes grow { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
.doc__lines i:nth-child(2) { animation-delay: 0.06s; }
.doc__lines i:nth-child(3) { animation-delay: 0.12s; }
.doc__lines i:nth-child(4) { animation-delay: 0.18s; }

.doc__note {
  border-left: 1px solid var(--border);
  background: var(--accent-soft);
  padding: 10px 13px; border-radius: 0 var(--r-campo) var(--r-campo) 0;
  font-size: var(--t-xs); color: var(--text-2);
}
.doc__grid { margin-top: 18px; border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; }
.doc__grid div { display: grid; grid-template-columns: 1.7fr 1fr 1fr; border-bottom: 1px solid var(--border); }
.doc__grid div:last-child { border-bottom: 0; }
.doc__grid div:first-child { background: var(--surface-2); }
.doc__grid span { padding: 8px 11px; font-size: 11px; color: var(--text-2); border-right: 1px solid var(--border); }
.doc__grid span:last-child { border-right: 0; }

.rail__t { font-size: 10.5px; color: var(--text-3); margin-bottom: 11px; font-family: "Geist Mono", ui-monospace, monospace; }
.src { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 9px 10px; margin-bottom: 7px; background: var(--surface); }
.src b { display: block; font-size: 11px; font-weight: 600; letter-spacing: -0.01em; }
.src span { display: block; font-size: 10px; color: var(--text-3); margin-top: 3px; }

/* ---------- Piezas: título grande fijo, contenido que pasa al lado ---------- */

.piece {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  column-gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(52px, 7vw, 96px);
  border-top: 1px solid var(--border);
}
.piece:first-child { border-top: 0; padding-top: 0; }

.piece__head { position: sticky; top: 96px; align-self: start; }
.piece__kind { display: block; margin-bottom: 16px; }
.piece__title {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  letter-spacing: -0.01em; line-height: 1.02; font-weight: 600; text-transform: uppercase;
}
.piece__head .tlink { margin-top: 22px; }

.piece__body > p { color: var(--text-2); font-size: var(--t-md); max-width: 46ch; }
.piece__body > p + p { margin-top: 14px; }
.piece__visual { grid-column: 1 / -1; min-width: 0; margin-top: clamp(30px, 3.5vw, 46px); }

/* pequeña web dentro de un navegador, para la tercera pieza */
.browser {
  border: 1px solid var(--border-2); border-radius: var(--r-lg);
  overflow: hidden; background: var(--surface); box-shadow: var(--shadow);
}
.browser__bar {
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 13px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.browser__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-2); }

.browser__url {
  margin-left: 10px; flex: 1;
  font-family: "Geist Mono", ui-monospace, monospace; font-size: 10.5px;
  color: var(--text-3); background: var(--bg); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px 12px; text-align: center;
}
.browser__view {
  position: relative; min-height: 250px;
  background: var(--bg); padding: 30px 28px 0;
  display: flex; flex-direction: column; gap: 16px;
}
.browser__view::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
}
.mini__brand { display: flex; align-items: center; gap: 8px; }
.mini__brand svg { width: 26px; }
.mini__brand span { font-size: 12px; letter-spacing: 0.01em; }
.mini__brand i { font-style: normal; font-weight: 350; color: var(--text-3); }
.mini__brand b { font-weight: 700; }
.mini__h {
  font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 500;
  letter-spacing: -0.032em; line-height: 1.12; max-width: 15ch; margin-top: 12px;
}
.mini__h em { font-style: normal; color: var(--accent-hot); }
.mini__row { display: flex; gap: 8px; margin-top: 4px; }
.mini__btn {
  height: 26px; width: 108px; border-radius: 5px;
  background: linear-gradient(180deg, var(--accent-hot), var(--accent));
}
.mini__btn--ghost { background: none; border: 1px solid var(--border-2); width: 86px; }

/* ---------- Comparador antes/después de Refórmalo ---------- */
/* Maqueta ilustrativa, no una captura real: mismo chrome de ventana que
   .browser/.screen para que se lea como parte de la misma familia de UI. */
.reforma {
  border: 1px solid var(--border-2); border-radius: var(--r-lg);
  overflow: hidden; background: var(--surface); box-shadow: var(--shadow);
}

/* ---------- Inclinación 3D en las maquetas de producto ---------- */
/* Las únicas cajas de la web son las que representan un producto real
   (pantalla de KERN, mini navegador, comparador de Refórmalo): un giro en
   perspectiva que sigue al cursor les da profundidad sin ninguna librería.
   Solo con ratón fino -- en táctil no hay cursor que seguir. */
@media (hover: hover) and (pointer: fine) {
  .screen, .browser, .reforma {
    transition: transform 0.5s var(--ease);
    will-change: transform;
  }
  .screen[data-tilting], .browser[data-tilting], .reforma[data-tilting] {
    transition: transform 0.06s linear;
  }
}
.reforma__bar {
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 13px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.reforma__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-2); }
.reforma__bar span { margin-left: auto; }
.reforma__split { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.reforma__split::after {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: var(--border);
}
.reforma__lado {
  padding: 30px 20px 26px; display: flex; flex-direction: column;
  align-items: center; gap: 14px;
}
.reforma__lado--antes { background: var(--bg-2); }
.reforma__etq {
  font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--text-3);
}
.reforma__lado svg { width: 100%; max-width: 200px; height: auto; color: var(--text-2); }
.reforma__lado--despues svg { color: var(--text); }
@media (max-width: 560px) {
  .reforma__split { grid-template-columns: 1fr; }
  .reforma__split::after { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 1px; }
}

/* ---------- Selector de sector ---------- */

.sector { max-width: 620px; }
.sector__label { display: block; font-size: var(--t-sm); font-weight: 500; margin-bottom: 10px; }
.sector__row { display: flex; gap: 10px; }
.sector__row .in { flex: 1; }
.sector__row .btn { flex: 0 0 auto; height: 42px; }
.sector__row .in { height: 42px; }

.sector__out {
  margin-top: 26px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.sector__msg { color: var(--text-2); font-size: var(--t-md); max-width: 54ch; }
.sector__msg strong { color: var(--text); font-weight: 550; }
.sector__out .actions { margin-top: 22px; }

/* ---------- Rejillas de contenido ---------- *//* ---------- Rejillas de contenido ---------- */

.cols { display: grid; gap: clamp(26px, 3.5vw, 52px); }
.cols--2 { grid-template-columns: repeat(2, 1fr); }
.cols--3 { grid-template-columns: repeat(3, 1fr); }
.cols > article { border-top: 1px solid var(--border); padding-top: 22px; }
.cols h3 { font-size: var(--t-md); }
.cols p { color: var(--text-2); font-size: var(--t-sm); margin-top: 12px; }

.rows { border-top: 1px solid var(--border); }
.row {
  display: grid; grid-template-columns: 200px minmax(0, 1fr);
  gap: 26px; padding: 26px 0; border-bottom: 1px solid var(--border);
}
/* dentro de filas y textos, el h2 usa el tamaño visual de un subtítulo:
   la jerarquía es semántica, no tipográfica */
.row h2, .prose h2 { font-size: var(--t-lg); letter-spacing: -0.024em; }
.row > div:last-child { color: var(--text-2); }
.row p + p { margin-top: 11px; }

/* Cita destacada: una frase que ya está en el texto, sacada aparte para
   que pese. Sin caja, solo la regla horizontal que separa el resto de filas. */
.pull-quote { border-bottom: 1px solid var(--border); padding: 6px 0 32px; }
.pull-quote p {
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 500;
  letter-spacing: -0.022em; line-height: 1.3;
  max-width: 20ch; color: var(--text);
}
.pull-quote p::before { content: "\201C"; color: var(--text-3); }
.pull-quote p::after { content: "\201D"; color: var(--text-3); }

.stack { display: grid; }
.item {
  display: grid; grid-template-columns: 28px minmax(0, 1fr);
  gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--border);
}
.item:first-child { border-top: 1px solid var(--border); }
.item p { color: var(--text-2); font-size: var(--t-sm); margin-top: 8px; }
.item .mono { padding-top: 3px; }

.bullets { list-style: none; margin: 0; padding: 0; }
.bullets li {
  display: grid; grid-template-columns: 16px 1fr; gap: 13px;
  padding: 13px 0; border-bottom: 1px solid var(--border);
  color: var(--text-2); font-size: var(--t-sm);
}
.bullets li:first-child { border-top: 1px solid var(--border); }
.bullets li::before {
  content: ""; width: 6px; height: 6px; margin-top: 8px; margin-left: 5px;
  border-radius: 50%; background: var(--accent);

}
.bullets strong { color: var(--text); font-weight: 600; }

/* ---------- Bloque de producto ---------- */

.promo {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(26px, 4vw, 56px); align-items: center;
}
.promo__copy p { color: var(--text-2); margin-top: 15px; max-width: 46ch; }
.promo__copy .actions { margin-top: 26px; }

.tag {
  display: inline-block; font-size: var(--t-xs); font-weight: 500;
  letter-spacing: 0.02em; color: var(--accent-hot);
  border: 1px solid var(--accent-line); background: var(--accent-soft);
  border-radius: 999px; padding: 4px 11px; margin-bottom: 16px;
}

/* ---------- Precios de referencia ---------- */

.precios { border-top: 1px solid var(--border); }
.precio {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--border);
}
.precio span { font-size: var(--t-md); letter-spacing: -0.012em; }
.precio b { font-weight: 600; white-space: nowrap; }
.nota-precio { margin-top: 20px; color: var(--text-3); font-size: var(--t-sm); max-width: 60ch; }

/* ---------- Métricas ---------- */

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3.5vw, 48px); }
.metrics > div { border-top: 1px solid var(--border); padding-top: 20px; }
.metrics b { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 500; letter-spacing: -0.04em; }
.metrics span { display: block; color: var(--text-3); font-size: var(--t-xs); margin-top: 7px; }

.pending {
  background: rgba(41, 220, 110, 0.10); color: var(--marca);
  border: 1px solid rgba(41, 220, 110, 0.32); border-radius: 4px; padding: 0 6px;
  font-size: 0.88em; font-weight: 500;
}

/* ---------- Preguntas ---------- */

.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 19px 36px 19px 0; font-size: var(--t-md); font-weight: 500; letter-spacing: -0.018em;
  transition: color 0.18s var(--ease);
}
.faq summary:hover { color: var(--accent-hot); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 26px;
  width: 9px; height: 9px;
  border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3);
  transform: rotate(45deg); transition: transform 0.22s var(--ease), border-color 0.18s var(--ease);
}
.faq summary:hover::after { border-color: var(--accent-hot); }
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq details p { color: var(--text-2); font-size: var(--t-sm); padding-bottom: 22px; max-width: 70ch; }

/* ---------- Perfil ---------- */

.who { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 34px; align-items: start; }
.portrait {
  aspect-ratio: 1; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--border-2); background: var(--surface-2);
  display: grid; place-items: center; text-align: center;
  color: var(--text-3); font-size: var(--t-xs); padding: 12px;
}

/* ---------- Formulario ---------- */

.form { display: grid; gap: 19px; max-width: 640px; }
.f label { display: block; font-size: var(--t-sm); font-weight: 500; margin-bottom: 8px; }
.f small { display: block; color: var(--text-3); font-size: var(--t-xs); margin-bottom: 9px; line-height: 1.55; }
.in, .ta, .sel {
  width: 100%; background: var(--surface);
  border: 1px solid var(--border-2); border-radius: var(--r-campo);
  padding: 11px 14px; color: var(--text); font: inherit; font-size: var(--t-sm);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.in::placeholder, .ta::placeholder { color: var(--text-3); }
.in:focus, .ta:focus, .sel:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ta { min-height: 136px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.hp { position: absolute; left: -9999px; }

/* ---------- Cierre ---------- */

.cta { position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; left: 50%; bottom: -60%;
  width: min(760px, 110%); aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(circle closest-side, var(--glow-cta), transparent 68%);
  filter: blur(20px); pointer-events: none;
}
.cta > * { position: relative; }
.cta p { color: var(--text-2); margin-top: 15px; max-width: 50ch; }
.cta .actions { margin-top: 28px; }

/* ---------- Pie ---------- */

.foot { position: relative; border-top: 1px solid var(--border); overflow: hidden; }
.foot__inner {
  position: relative; z-index: 2;
  max-width: var(--frame); margin: 0 auto;
  padding: 52px var(--pad) 30px;
}
.foot__grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
.foot__about { color: var(--text-3); font-size: var(--t-xs); margin-top: 16px; max-width: 30ch; line-height: 1.6; }
/* Títulos de columna del pie: h2 por orden de encabezados, con el aspecto de siempre. */
.foot .foot__h { font-family: var(--texto, inherit); font-size: var(--t-xs); font-weight: 600; letter-spacing: -.035em; line-height: 1.06; text-transform: none; text-shadow: none; max-width: none; margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 9px; }
.foot li a { color: var(--text-2); font-size: var(--t-sm); transition: color 0.16s var(--ease); }
.foot li a:hover { color: var(--accent-hot); }
.foot__base {
  margin-top: 42px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--text-3); font-size: var(--t-xs);
}

.foot__sig {
  position: absolute; left: 50%; bottom: -0.3em; z-index: 1;
  transform: translateX(-50%);
  font-size: clamp(4rem, 15vw, 13rem); line-height: 0.8;
  letter-spacing: -0.06em; white-space: nowrap;
  pointer-events: none; user-select: none;
}
.foot__sig i { font-style: normal; font-weight: 350; color: var(--sig-1); }
.foot__sig b { font-weight: 700; color: var(--sig-1); }

/* ---------- Barra de acción fija en móvil ---------- */

.dock { display: none; }

/* ---------- Migas ---------- */

.crumbs { display: flex; gap: 9px; align-items: center; font-size: var(--t-xs); color: var(--text-3); margin-bottom: 24px; }
.crumbs a { transition: color 0.16s var(--ease); }
.crumbs a:hover { color: var(--accent-hot); }

/* ---------- Revelado al bajar ---------- */

/* Cada bloque nace hundido en el eje Z e inclinado, y se endereza al entrar
   en pantalla: la página entera se lee como una estructura con profundidad,
   no como capas planas que suben. La perspectiva va por elemento (no hay un
   ancestro común a todos los data-rv), así que cada uno trae la suya. */
html.js [data-rv] {
  opacity: 0;
  transform: perspective(1400px) translate3d(0, 34px, -110px) rotateX(7deg);
  transform-origin: 50% 100%;
  transition: opacity 0.8s var(--ease), transform 0.9s var(--ease);
}
/* Las piezas que ya venían "de lado" ahora entran girando en 3D desde su
   costado, no deslizándose en plano. */
html.js [data-rv="lado"] { transform: perspective(1400px) translate3d(-34px, 0, -110px) rotateY(9deg); transform-origin: 100% 50%; }
html.js [data-rv="lado-der"] { transform: perspective(1400px) translate3d(34px, 0, -110px) rotateY(-9deg); transform-origin: 0% 50%; }
html.js [data-rv].rv-in { opacity: 1; transform: perspective(1400px) translate3d(0, 0, 0) rotateX(0) rotateY(0); }

/* El titular y la entradilla de la portada no suben en bloque: cada
   palabra entra por su cuenta (site.js las envuelve en <span> antes de
   observarlas). Anula el movimiento de [data-rv] en el propio elemento —
   el movimiento vive en las palabras, no en la caja que las contiene. */
html.js [data-rv-words] { opacity: 1; transform: none; }
html.js [data-rv-words] span {
  display: inline-block;
  opacity: 0; transform: translate3d(0, 0.5em, 0);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
html.js [data-rv-words].rv-in span { opacity: 1; transform: none; }

/* ---------- Adaptación ---------- */

@media (max-width: 980px) {
  .piece { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .piece__head { position: static; }
  .promo { grid-template-columns: 1fr; }
  .screen__body { grid-template-columns: 172px minmax(0, 1fr); }
  .screen__rail { display: none; }
  .cols--3 { grid-template-columns: 1fr 1fr; }
  .who { grid-template-columns: 128px minmax(0, 1fr); gap: 24px; }
  .metrics { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --pad: 20px; }

  /* Entrada de móvil: el titular, el mensaje y una acción sobre la aurora.
     Altura contenida para que el contenido llene la cabecera y no quede un
     vacío enorme sobre la insignia. */
  .hero--marca {
    position: relative;
    min-height: 60svh;
    padding-block: clamp(20px, 7vw, 40px) clamp(24px, 7vw, 40px);
  }
  .hero--marca .lede { margin-top: 16px; }
  .hero--marca .actions { margin-top: 26px; }
  .banda { padding-block: 18px; }
  .banda__grupo i { margin-inline: 20px; }
  .nav, .topbar .btn { display: none; }
  .burger {
    display: grid; place-items: center; margin-left: auto;
    width: 36px; height: 34px; border: 1px solid var(--border-2);
    border-radius: var(--pastilla); background: transparent; color: var(--text); cursor: pointer;
  }
  .burger svg { width: 15px; height: 15px; }
  .sheet {
    position: fixed; inset: 64px 0 0; z-index: 45;
    background: var(--bg); padding: 20px var(--pad) 44px;
    overflow-y: auto; display: none;
  }
  body[data-sheet="true"] .sheet { display: block; }
  body[data-sheet="true"] { overflow: hidden; }
  .sheet a {
    display: block; padding: 16px 0; font-size: 1.1rem;
    border-bottom: 1px solid var(--border); letter-spacing: -0.025em;
  }
  .sheet a span { display: block; font-size: var(--t-xs); color: var(--text-3); margin-top: 4px; letter-spacing: 0; }
  .sheet .btn { display: inline-flex; margin-top: 24px; border-bottom: 0; }
  .cols--2, .cols--3 { grid-template-columns: 1fr; }
  .sector__row { flex-direction: column; }
  .sector__row .btn { width: 100%; }
  /* en móvil, sin giro lateral (evita desbordes en una sola columna):
     todo entra desde la profundidad en vertical */
  html.js [data-rv], html.js [data-rv="lado"], html.js [data-rv="lado-der"] {
    transform: perspective(1200px) translate3d(0, 26px, -70px) rotateX(6deg);
    transform-origin: 50% 100%;
  }
  html.js [data-rv].rv-in { transform: perspective(1200px) translate3d(0, 0, 0) rotateX(0); }
  .row { grid-template-columns: 1fr; gap: 9px; }
  .precio { flex-direction: column; gap: 4px; align-items: flex-start; }
  .screen__body { grid-template-columns: 1fr; }
  .screen__bar { height: auto; min-height: 40px; padding-block: 8px; }
  .screen__side {
    border-right: 0; border-bottom: 1px solid var(--border);
    display: flex; gap: 5px; overflow-x: auto; padding: 9px; min-width: 0;
    scroll-behavior: smooth; scrollbar-width: none;
  }
  .screen__side::-webkit-scrollbar { display: none; }
  .ph { width: auto; flex: 0 0 auto; white-space: nowrap; }
  .two { grid-template-columns: 1fr; }
  .who { grid-template-columns: 1fr; }
  .portrait { max-width: 152px; }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 760px) {
  /* La acción principal siempre al alcance del pulgar */
  .dock {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    border-top: 1px solid var(--border);
    transform: translateY(130%);
    transition: transform 0.32s var(--ease);
  }
  .dock[data-on="true"] { transform: none; }
  .dock .btn { width: 100%; height: 50px; font-size: 1rem; }
  body:has(.dock) { padding-bottom: 78px; }
  /* que un salto a un ancla no deje el destino bajo la barra fija */
  html:has(.dock) { scroll-padding-bottom: 92px; }

  /* objetivos táctiles cómodos */
  .btn { height: 44px; }
  .btn--lg { height: 50px; }
  .nav__link, .burger { min-height: 44px; }
  .in, .ta, .sel { padding: 13px 14px; font-size: 16px; }
  .faq summary { padding-block: 20px; }
}

@media (min-width: 761px) { .sheet { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
  .cursor-dot { display: none; }
}

/* ============================================================
   Componentes añadidos en la revisión de posicionamiento
   ============================================================ */

/* ---------- Síntomas: "quizá le suene" ---------- */

.sintomas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--border); border-block: 1px solid var(--border); }
.sintoma {
  background: var(--bg); padding: 20px 22px;
  display: flex; gap: 13px; align-items: flex-start;
  font-size: var(--t-md); letter-spacing: -0.012em; color: var(--text-2);
  transition: background-color 0.3s var(--ease);
}
.sintoma:hover { background: var(--surface); color: var(--text); }
.sintoma::before {
  content: ""; flex: 0 0 auto; margin-top: 9px;
  width: 14px; height: 1px; background: var(--border-2);
}
.sintomas + .cierre-sintomas { margin-top: 28px; font-size: var(--t-md); max-width: 58ch; color: var(--text); }

/* ---------- Métrica destacada ---------- */

.metrica { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; padding: 26px 0; border-block: 1px solid var(--border); }
.metrica b { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.metrica span { color: var(--text-2); font-size: var(--t-md); }

/* ---------- Adaptación ---------- */

@media (max-width: 760px) {
  .sintomas { grid-template-columns: 1fr; }
}

/* ---------- Proceso en cuatro pasos ---------- */

.pasos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pasos__p { position: relative; padding: 28px 26px 0 0; }
.pasos__p::before {
  content: ""; position: absolute; top: 0; left: 0; right: 14px; height: 1px; background: var(--border-2);
}
.pasos__p:first-child::before { background: var(--text); }
.pasos__p em { font-style: normal; font-size: var(--t-sm); color: var(--text-3); }
.pasos__p b { display: block; font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.024em; margin: 12px 0 9px; }
.pasos__p span { color: var(--text-2); font-size: var(--t-sm); }

/* ---------- Otros desarrollos: peso visual reducido ---------- */

.otros { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.otros h3 { font-size: var(--t-lg); }
.otros p { color: var(--text-2); font-size: var(--t-sm); margin-top: 12px; max-width: 42ch; }
.otros .browser { max-width: 520px; }

@media (max-width: 900px) {
  .pasos { grid-template-columns: 1fr 1fr; }
  .otros { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .pasos { grid-template-columns: 1fr; }
  .pasos__p { padding: 22px 0 0; }
  .pasos__p::before { right: 0; }
}

/* ---------- Antes / Proceso / Ahora ---------- */

.trans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trans__col { position: relative; padding: 26px 28px 0 0; }
.trans__col::before {
  content: ""; position: absolute; top: 0; left: 0; right: 16px; height: 1px; background: var(--border-2);
}
.trans__col:last-child::before { background: var(--text); }
.trans__col b { display: block; font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.024em; margin: 12px 0 10px; }
.trans__col p { color: var(--text-2); font-size: var(--t-sm); }

/* ---------- Pista para invitar a tocar la maqueta ---------- */

.pista { margin-top: 14px; color: var(--text-3); font-size: var(--t-xs); display: flex; align-items: center; gap: 8px; }
.pista::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-3); opacity: 0.5;
  animation: pulso 2.4s ease-in-out infinite;
}
@keyframes pulso { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.8; } }

/* ---------- Casilla del formulario ---------- */

.check { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; }
.check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--text); flex: 0 0 auto; }
.check span { font-size: var(--t-sm); color: var(--text-2); }

@media (max-width: 760px) {
  .trans { grid-template-columns: 1fr; }
  .trans__col { padding: 20px 0 0; }
  .trans__col::before { right: 0; }
}

/* ---------- Fichas que rellenan el campo ---------- */

.fichas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ficha {
  border: 1px solid var(--border); background: transparent;
  color: var(--text-2); border-radius: var(--pastilla);
  padding: 8px 15px; font-size: var(--t-sm); font-family: inherit;
  cursor: pointer; white-space: nowrap;
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.ficha:hover { border-color: var(--border-2); color: var(--text); background: var(--surface-2); }
.ficha[aria-pressed="true"] { border-color: var(--text); color: var(--text); background: var(--surface-2); }

/* ---------- Lista de ejemplos que lleva al formulario ---------- */

.bullets a.ejemplo {
  display: block; color: inherit;
  transition: color 0.16s var(--ease);
}
.bullets a.ejemplo:hover { color: var(--text); }
.bullets a.ejemplo strong { text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 3px; }
.bullets a.ejemplo:hover strong { text-decoration-color: var(--text-3); }

/* ---------- Submenús del menú de móvil ---------- */

@media (max-width: 760px) {
  .sheet__grupo { border-bottom: 1px solid var(--border); }
  .sheet__grupo summary {
    list-style: none; cursor: pointer; position: relative;
    padding: 16px 30px 16px 0; font-size: 1.1rem; letter-spacing: -0.02em;
    text-transform: none;
  }
  .sheet__grupo summary::-webkit-details-marker { display: none; }
  .sheet__grupo summary::after {
    content: ""; position: absolute; right: 6px; top: 22px;
    width: 8px; height: 8px;
    border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3);
    transform: rotate(45deg); transition: transform 0.22s var(--ease);
  }
  .sheet__grupo[open] summary::after { transform: rotate(-135deg); top: 25px; }
  .sheet__grupo a {
    border-bottom: 0; padding: 11px 0 11px 16px;
    font-size: 1rem; color: var(--text-2);
  }
  .sheet__grupo a:last-of-type { padding-bottom: 18px; }
  .sheet__solo { font-size: 1.1rem; }
}

/* ---------- Contexto tras la portada ---------- */

.contexto { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(30px, 5vw, 72px); align-items: start; }
.contexto__texto p { font-size: var(--t-lg); line-height: 1.5; letter-spacing: -0.015em; }
.contexto__texto p + p { margin-top: 16px; color: var(--text-2); font-size: var(--t-md); letter-spacing: 0; }

.aviso {
  border: 1px solid var(--border-2); border-radius: var(--r-lg);
  padding: 22px 24px; background: var(--surface);
}
.aviso__eti {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.02em;
  color: var(--text-2); margin-bottom: 12px;
}
.aviso__eti i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.aviso b { display: block; font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.024em; text-transform: uppercase; }
.aviso p { color: var(--text-2); font-size: var(--t-sm); margin: 10px 0 18px; }

/* ---------- Capacidades en composición ---------- */

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.bento__c { background: var(--bg); padding: 26px 24px 28px; transition: background-color 0.3s var(--ease); }
.bento__c:hover { background: var(--surface); }
.bento__c--grande { grid-column: span 2; }
.bento__n { display: block; font-size: var(--t-xs); color: var(--text-3); margin-bottom: 26px; }
.bento__c b { display: block; font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.024em; text-transform: uppercase; }
.bento__c--grande b { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.bento__c span { display: block; color: var(--text-2); font-size: var(--t-sm); margin-top: 10px; max-width: 42ch; }

@media (max-width: 900px) {
  .contexto { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento__c--grande { grid-column: span 2; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .bento__c--grande { grid-column: span 1; }
  .bento__n { margin-bottom: 14px; }
}

/* WORKLYNK · white studio. Original copy is a protected input. */
:root, [data-theme="light"] {
  --bg:#f5f5f7; --bg-2:#fff; --surface:#fff; --surface-2:#eeeef1; --surface-3:#e5e5e9;
  --text:#1d1d1f; --text-2:#535359; --text-3:#66666c; --border:#dcdce1; --border-2:#bdbdc5;
  --accent:#1d1d1f; --accent-hot:#000; --accent-soft:rgba(0,0,0,.045); --accent-line:rgba(0,0,0,.14);
  --marca:#087b40; --glass:rgba(255,255,255,.62); --glass-strong:rgba(255,255,255,.86);
  --glass-edge:rgba(255,255,255,.95); --glass-shadow:0 10px 36px rgba(45,51,66,.09); --menu-bg:rgba(255,255,255,.96);
  --frame:1240px; --pad:clamp(22px,5vw,64px); --r:16px; --r-lg:28px; --r-campo:14px;
  --t-xl:clamp(2.1rem,4vw,3.5rem); --t-2xl:clamp(3.2rem,6.6vw,5.5rem);
  --ease:cubic-bezier(.16,1,.3,1); --brillo:none; --shadow:0 20px 65px rgba(30,35,50,.1);
  color-scheme:light;
}
html { background:var(--bg); scroll-padding-top:100px; scrollbar-color:var(--border-2) var(--bg); }
body { background:transparent; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif; font-size:17px; line-height:1.55; letter-spacing:0; }
.site-backdrop { position:fixed; inset:0; z-index:-1; pointer-events:none; background:linear-gradient(180deg,#fff 0,var(--bg) 720px); }
::selection { background:#b7e5cc; color:#14271d; }
:focus-visible { outline:3px solid var(--marca); outline-offset:4px; }
input,textarea { caret-color:var(--marca); }
h1,h2,h3,h4 { font-family:inherit; text-transform:none; font-weight:650; line-height:1.06; letter-spacing:-.035em; text-wrap:balance; }
h1 { font-size:var(--t-2xl); }
h2 { font-size:var(--t-xl); }
.head h2,.piece__title,.cta h2,.hero--marca h1 { padding:0; margin:0; background:none; text-shadow:none; width:auto; }
.head h2::before,.piece__title::before,.cta h2::before,.hero--marca h1::before,.hero::after,.hero--marca::before,.cta::before { display:none; }
.mono:not(.screen .mono):not(.reforma .mono) { font-family:inherit; }
.cursor-dot { display:none; }
.section { padding-block:clamp(72px,8vw,112px); border:0; }
.section--tight { padding-block:56px; }
.head { max-width:850px; }
.head h2 { max-width:23ch; }
.head p { font-size:21px; line-height:1.5; max-width:58ch; }
.head + * { margin-top:48px; }
.lede { font-size:clamp(1.18rem,2vw,1.55rem); line-height:1.45; }
.topbar { position:fixed; inset:14px 20px auto; background:none; border:0; backdrop-filter:none; }
.topbar__inner { height:64px; padding:0 22px; max-width:1120px; border-radius:999px; background:var(--glass); border:1px solid var(--glass-edge); backdrop-filter:blur(24px) saturate(160%); -webkit-backdrop-filter:blur(24px) saturate(160%); box-shadow:var(--glass-shadow),inset 0 1px 2px #fff; transition:background .25s,box-shadow .25s; }
.topbar[data-scrolled="true"] .topbar__inner { background:var(--glass-strong); box-shadow:0 8px 32px rgba(30,40,55,.13),inset 0 1px 1px var(--glass-edge); }
.topbar .brand { margin-right:auto; }
.topbar .brand__mark { width:30px; }
.nav__link,.nav__trigger { min-height:44px; color:var(--text); font-size:13px; font-weight:500; border-radius:999px; }
.nav__link:hover,.nav__trigger:hover { background:var(--accent-soft); }
.menu { margin-top:12px; border:1px solid var(--glass-edge); border-radius:24px; background:var(--menu-bg); backdrop-filter:blur(48px) saturate(180%); -webkit-backdrop-filter:blur(48px) saturate(180%); box-shadow:var(--glass-shadow); padding:12px; }
.menu a { border-radius:12px; }
.menu__ico { background:var(--accent-soft); border:0; }
.btn { min-height:46px; padding:12px 22px; font-size:15px; font-weight:500; text-shadow:none; box-shadow:none; transition:background .2s,transform .15s; }
.btn::before,.btn::after { display:none; }
.btn--solid { background:var(--text); color:var(--bg-2); border-color:transparent; }
.btn--solid:hover { background:var(--text-2); color:var(--bg-2); box-shadow:none; transform:translateY(-1px); }
.btn--line { background:var(--glass); color:var(--text); border:1px solid var(--glass-edge); box-shadow:0 3px 12px rgba(32,40,55,.07),inset 0 1px 0 #fff; backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); }
.btn--line:hover { background:var(--glass-strong); box-shadow:var(--glass-shadow); }
.btn:active { transform:scale(.97); }
.topbar .btn { min-height:38px; padding:8px 18px; font-size:13px; }
.tlink { color:var(--text); font-size:17px; font-weight:500; text-underline-offset:5px; }
.hero { min-height:610px; padding-top:165px; padding-bottom:90px; isolation:isolate; display:flex; flex-direction:column; justify-content:center; }
.hero h1 { max-width:14ch; }
.hero .lede { max-width:42ch; }
.hero .actions { margin-top:28px; }
.hero .crumbs { font-size:13px; margin-bottom:26px; }
.piece { display:grid; grid-template-columns:1fr 1.15fr; gap:28px 70px; padding:72px 0; border-top:1px solid var(--border); }
.piece:first-of-type { border:0; }
.piece__head { position:static; }
.piece__kind { color:var(--text-3); font-size:13px; letter-spacing:.02em; margin-bottom:16px; }
.piece__title { font-size:clamp(2.8rem,5vw,4.5rem); letter-spacing:-.035em; }
.piece__body > p { font-size:20px; line-height:1.5; }
.piece__body > p + p { font-size:16px; color:var(--text-3); margin-top:20px; }
.piece__visual { margin-top:30px; }
.screen { border:1px solid var(--glass-edge); border-radius:24px; background:var(--glass-strong); backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px); box-shadow:0 24px 70px rgba(35,40,60,.12),inset 0 1px 1px #fff; }
.screen__bar { background:var(--glass); height:48px; }
.screen__main { padding:32px; }
.screen__side,.screen__rail { background:var(--accent-soft); }
.reforma-photo { display:block; width:100%; border-radius:28px; max-height:560px; object-fit:cover; }
.contexto { grid-template-columns:1.5fr 1fr; gap:70px; align-items:center; }
.contexto__texto p { font-size:clamp(1.5rem,2.8vw,2.2rem); line-height:1.3; letter-spacing:-.02em; }
.contexto__texto p + p { font-size:20px; line-height:1.5; margin-top:28px; color:var(--text-2); }
.aviso,.form { background:var(--glass); border:1px solid var(--glass-edge); border-radius:28px; padding:32px; backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px); box-shadow:var(--glass-shadow),inset 0 1px 1px #fff; }
.aviso b { font-size:38px; letter-spacing:-.03em; }
.browser { border-radius:22px; border:0; box-shadow:var(--shadow); }
.pasos { gap:28px; padding-top:26px; border-top:1px solid var(--border); }
.pasos__p { padding:0; border:0; }
.pasos__p::before { display:none; }
.pasos__p em { font-size:20px; color:var(--text-3); }
.pasos__p b { font-size:23px; margin-top:24px; }
.pasos__p span { line-height:1.5; }
.bento { gap:16px; background:none; border:0; grid-template-columns:repeat(3,minmax(0,1fr)); }
.bento__c,.bento__c--grande { grid-column:span 1; min-height:260px; padding:32px; border-radius:16px; background:var(--bg-2); }
.bento__c:first-child,.bento__c:nth-child(4) { grid-column:span 2; }
.bento__n { margin-bottom:30px; }
.bento__c b { font-size:26px; line-height:1.14; letter-spacing:-.025em; }
.bento__c span { font-size:17px; }
.sintomas { gap:16px; background:none; border:0; }
.sintoma { background:var(--bg-2); border-radius:16px; padding:30px; font-size:20px; }
.ficha { min-height:44px; background:var(--glass); border-color:var(--border); }
.faq { border-top:1px solid var(--border); }
.faq summary { padding:26px 30px 26px 0; font-size:20px; font-weight:550; }
.faq details p { font-size:17px; }
.cta { margin:40px var(--pad) 90px; padding:72px 54px; border-radius:28px; background:var(--glass); backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px); border:1px solid var(--glass-edge); text-align:center; box-shadow:var(--glass-shadow); }
.cta h2,.cta p { margin-inline:auto; }
.cta .actions { justify-content:center; }
.foot { background:var(--bg-2); border:0; padding-top:64px; }
.foot a,.foot__about { font-size:14px; }
.in,.ta,.sel { background:var(--bg-2); font-size:16px; min-height:48px; border-color:var(--border); }
.dock { background:var(--glass-strong); backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px); }
@media (max-width:980px) {
 .nav__link,.nav__trigger { padding-inline:8px; } .topbar .brand { margin-right:8px; }
 .piece { gap:24px 40px; } .contexto { gap:40px; }
}
@media (max-width:760px) {
 .topbar { inset:10px 12px auto; } .topbar__inner { height:58px; padding:0 16px; }
 .topbar .brand { margin-right:auto; } .burger { width:44px; height:44px; border:0; background:var(--accent-soft); }
 .sheet { inset:78px 12px auto; max-height:calc(100svh - 90px); border-radius:24px; background:var(--menu-bg); border:1px solid var(--glass-edge); backdrop-filter:blur(48px) saturate(180%); -webkit-backdrop-filter:blur(48px) saturate(180%); box-shadow:var(--glass-shadow); }
 .hero { min-height:560px; padding-top:132px; padding-bottom:70px; }
 .hero h1 { font-size:clamp(2.65rem,9vw,3.8rem); max-width:16ch; }
 .hero .lede { font-size:20px; }
 .hero--marca { min-height:auto; padding:128px 22px 44px; }
 .hero--marca h1 { font-size:54px; max-width:9ch; }
 .hero--marca h1 br { display:block; }
 .hero--marca .lede { font-size:20px; max-width:28ch; margin-top:20px; }
 .hero--marca .actions { flex-wrap:nowrap; gap:10px; }
 .hero--marca .btn { padding-inline:16px; font-size:14px; }
 .section { padding-block:64px; } .head p { font-size:19px; }
 .piece { grid-template-columns:1fr; padding:48px 0; gap:26px; } .piece__head .tlink { margin-top:18px; }
 .piece__body > p { font-size:19px; } .piece__visual { margin-top:8px; }
 .contexto { grid-template-columns:1fr; gap:32px; } .contexto__texto p { font-size:25px; }
 .screen__main { padding:22px 18px; } .reforma-photo { min-height:280px; object-fit:cover; border-radius:20px; }
 .pasos { display:grid; grid-template-columns:1fr 1fr; gap:36px 20px; } .pasos__p b { font-size:20px; margin-top:14px; }
 .bento { grid-template-columns:1fr; } .bento__c,.bento__c:first-child,.bento__c:nth-child(4) { grid-column:auto; min-height:220px; padding:28px; }
 .sintomas { grid-template-columns:1fr; } .sintoma { font-size:18px; padding:24px; }
 .cta { margin:24px 16px 64px; padding:48px 24px; } .cta h2 { font-size:34px; }
 .form { padding:24px; } .foot__grid { grid-template-columns:1fr 1fr; }
 .site-backdrop { background-size:auto 650px; background-position:center top; }
}
@media (prefers-reduced-transparency:reduce) {
 .topbar__inner,.menu,.sheet,.btn--line,.screen,.aviso,.form,.cta,.dock { background:var(--bg-2); backdrop-filter:none; -webkit-backdrop-filter:none; }
}
@media (prefers-contrast:more) {
 :root,[data-theme="light"] { --text-2:#303034; --text-3:#414147; --border:#85858c; }
 .topbar__inner,.menu,.sheet,.btn--line { background:var(--bg-2); border-color:var(--border); }
}
@media (prefers-reduced-motion:reduce) {
 *,*::before,*::after { scroll-behavior:auto!important; animation:none!important; transition:none!important; }
}


.piece__title,.bento__c b { text-transform:none; }
.bento__c:nth-child(5),.bento__c:nth-child(6) { grid-column:span 1; }
@media(min-width:761px){.bento {grid-template-columns:repeat(2,minmax(0,1fr));}.bento__c:first-child,.bento__c:nth-child(4){grid-column:span 1;}.bento__c:first-child{grid-row:span 2;display:flex;flex-direction:column;justify-content:flex-end;}.bento__c:last-child{grid-column:span 2;min-height:210px;}}

/* =====================================================================
   v3 · 2026-09-23 — Esta capa manda sobre todo lo anterior.
   Tipografía: titulares en Jost (la misma geometría que el logotipo),
   texto en la fuente del sistema. Cabeceras con su vídeo o imagen nítidos,
   sin velo. Escena de scroll, manifiesto que se ilumina al leer y revelados
   tranquilos: una sola dirección de movimiento, de abajo arriba.
   ===================================================================== */
:root {
  --display: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --texto: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(.22,1,.36,1);
}
body { font-family: var(--texto); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, .piece__title, .bento__c b, .pasos__p b, .pasos__p em, .principio b, .lab__c b,
.metrica b, .metrics b, .manifiesto__txt, .bento__n, .intro__lista li {
  font-family: var(--display);
}
h1, h2 { font-weight: 520; letter-spacing: -.028em; line-height: 1.02; }
h1 { font-size: clamp(3rem, 6.2vw, 5.6rem); }
h2 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
h3 { font-weight: 500; letter-spacing: -.012em; line-height: 1.15; }
.piece__title { font-weight: 500; letter-spacing: -.03em; }
.bento__c b, .pasos__p b { font-weight: 500; letter-spacing: -.015em; }
.lede { font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.45; color: var(--text-2); }
.head p { color: var(--text-2); }

/* ---------- Un solo verde: el de estado activo ----------
   Todos los detalles verdes usan el mismo lima de neón. Sobre claro no se
   usa como color de texto (no se leería): el texto destacado lleva el
   lima como subrayado de rotulador y los números, como pastilla. */
:root, :root[data-theme="light"] { --marca: #7dff3c; --marca-tinta: #0d1f06; --ok: #7dff3c; --ok-ink: #0d1f06; }
::selection { background: var(--marca); color: var(--marca-tinta); }
:root :focus-visible { outline-color: var(--text); box-shadow: 0 0 0 6px rgba(125, 255, 60, .45); }
.pending { background: rgba(125, 255, 60, .16); color: var(--text); border-color: rgba(125, 255, 60, .6); }

/* ---------- Logo ---------- */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.brand { color: var(--text); }
.brand__logo { display: block; height: 26px; width: auto; color: var(--text); }
.brand__logo .destello { fill: url(#wl-glow); opacity: .75; transition: opacity .3s var(--ease-out); }
.brand:hover .brand__logo .destello { opacity: 1; }
.foot .brand__logo { height: 30px; }
.foot__about { margin-top: 18px; }

/* ---------- Cabeceras interiores: el material, nítido, a la derecha ---------- */
.hero { min-height: min(780px, 94vh); padding-top: 150px; padding-bottom: 96px; isolation: auto; }
.hero::after { display: none; }
.hero > .hero-material {
  position: absolute; z-index: -1; top: 60px; bottom: 0; left: auto;
  right: calc(50% - 50vw); width: min(58vw, 1000px); margin: 0; overflow: hidden; opacity: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40%), linear-gradient(0deg, transparent 0, #000 18%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 40%), linear-gradient(0deg, transparent 0, #000 18%, #000 86%, transparent);
  mask-composite: intersect;
}
.hero-material img, .hero-material video {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%;
  mix-blend-mode: multiply; filter: brightness(1.07) contrast(1.03);
  transform: translate3d(0, calc(var(--pz, 0) * 60px), 0) scale(calc(1.02 + var(--pz, 0) * .05));
  will-change: transform;
}
.hero-material img[src*="glass-light"] { object-fit: contain; object-position: 92% 55%; filter: none; }
.hero h1 { max-width: 12.5ch; }
.hero .lede { max-width: 40ch; }

/* ---------- Portada: el titular a la izquierda y el fluido a la derecha ---------- */
.hero--marca {
  min-height: min(880px, 100vh); min-height: min(880px, 100svh);
  padding: 150px var(--pad) 84px; text-align: left; align-items: flex-start; justify-content: center;
}
.hero--marca::before { display: none; }
.hero--marca h1 br { display: inline; }
.hero--marca h1 { margin-inline: 0; max-width: none; font-size: clamp(3.2rem, 5.8vw, 5.7rem); line-height: 1.06; letter-spacing: -.036em; }
.hero--marca .lede { max-width: 40ch; margin: 26px 0 0; font-size: clamp(1.18rem, 1.6vw, 1.42rem); }
.hero--marca .actions { margin-top: 34px; justify-content: flex-start; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px;
  font-size: 14px; font-weight: 500; letter-spacing: .01em; color: var(--text-2);
}
/* Luz de estado activo: verde lima de neón con halo y un latido lento. */
.hero__kicker i {
  position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--marca);
  box-shadow: 0 0 6px 1px rgba(125, 255, 60, .85), 0 0 14px 3px rgba(125, 255, 60, .35);
}
.hero__kicker i::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid rgba(125, 255, 60, .7); animation: latido 2.4s var(--ease-out) infinite;
}
@keyframes latido { 0% { transform: scale(.6); opacity: .9; } 70%, 100% { transform: scale(2.1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero__kicker i::after { animation: none; opacity: 0; } }
.hero__garantias {
  display: flex; flex-wrap: wrap; gap: 10px 28px; max-width: 760px; margin: 46px 0 0; padding: 22px 0 0;
  list-style: none; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-2);
}
.hero__garantias li { display: flex; align-items: center; gap: 9px; }
.hero__garantias li::before {
  content: ""; flex: none; width: 17px; height: 17px; border-radius: 50%;
  background: var(--marca) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230d1f06' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.6 8.3 2.3 2.2 4.5-4.8'/%3E%3C/svg%3E") center / 100% no-repeat;
  box-shadow: 0 0 8px rgba(125, 255, 60, .55);
}
.hero--marca > .hero-material {
  top: 50%; bottom: auto; width: min(50vw, 900px); height: min(37vw, 660px); translate: 0 -46%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%), linear-gradient(0deg, transparent 0, #000 22%, #000 80%, transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 38%), linear-gradient(0deg, transparent 0, #000 22%, #000 80%, transparent);
}
.hero--marca > .hero-material video { object-position: 50% 50%; }


/* ---------- Manifiesto: se ilumina palabra a palabra al leer ---------- */
.manifiesto { max-width: 1120px; }
.manifiesto__txt {
  font-weight: 500; font-size: clamp(1.9rem, 3.7vw, 3.3rem); line-height: 1.14;
  letter-spacing: -.022em; color: var(--text); text-wrap: pretty;
}
html.js .manifiesto__txt .w { opacity: .14; transition: opacity .4s linear; }
html.js .manifiesto__txt .w.on { opacity: 1; }
.manifiesto__sub { margin-top: 34px; font-size: 21px; line-height: 1.5; color: var(--text-2); max-width: 54ch; }

/* ---------- Revelados: suaves y en una sola dirección ---------- */
html.js body [data-rv], html.js body [data-rv="lado"], html.js body [data-rv="lado-der"] {
  opacity: 0; transform: translate3d(0, 30px, 0); filter: none;
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out);
}
html.js body [data-rv].rv-in { opacity: 1; transform: none; }
html.js body [data-rv-words], html.js body [data-rv-words].rv-in { opacity: 1; transform: none; }
html.js body [data-rv-words] span {
  display: inline-block; opacity: 0; transform: translate3d(0, .42em, 0); filter: blur(4px);
  transition: opacity .8s var(--ease-out), transform 1s var(--ease-out), filter .8s var(--ease-out);
}
html.js body [data-rv-words].rv-in span { opacity: 1; transform: none; filter: none; }

/* ---------- Fondos de sección: el cristal a un lado, fundido hacia el texto ---------- */
.fondo {
  position: absolute; z-index: -1; top: 0; width: min(56vw, 980px); height: min(86vh, 760px);
  pointer-events: none; overflow: hidden;
}
.fondo--der { right: calc(50% - 50vw); }
.fondo--izq { left: calc(50% - 50vw); }
.fondo--der {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 46%), linear-gradient(0deg, transparent 0, #000 30%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 46%), linear-gradient(0deg, transparent 0, #000 30%, #000 82%, transparent);
}
.fondo--izq {
  -webkit-mask-image: linear-gradient(270deg, transparent 0, #000 46%), linear-gradient(0deg, transparent 0, #000 22%, #000 82%, transparent);
  mask-image: linear-gradient(270deg, transparent 0, #000 46%), linear-gradient(0deg, transparent 0, #000 22%, #000 82%, transparent);
}
.fondo { -webkit-mask-composite: source-in; mask-composite: intersect; }
.fondo video {
  display: block; width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: multiply; filter: brightness(1.07) contrast(1.03);
  transform: translate3d(0, calc(var(--fp, 0) * -70px), 0) scale(1.06);
  will-change: transform;
}
.fondo--izq video { transform: translate3d(0, calc(var(--fp, 0) * -70px), 0) scale(-1.06, 1.06); }
/* Sin contexto de apilamiento propio: así el multiply se funde con el fondo
   real de la página y el cristal no deja un rectángulo más claro. */
.section:has(> .fondo) { overflow-x: visible; }
.piece:has(> .fondo) { position: relative; }
.piece > .fondo { top: -140px; height: min(70vh, 620px); }
/* Así trabajamos: más arriba y más corto, para que no entre en el catálogo. */
.section:has(> .pasos) > .fondo { top: -160px; height: min(68vh, 600px); }

/* ---------- Qué hacemos: el cristal a la izquierda, el texto a la derecha ---------- */
.intro { display: flex; align-items: center; min-height: min(760px, 90vh); }
.intro > .fondo { top: 50%; height: min(90vh, 780px); translate: 0 -50%; width: min(48vw, 860px); }
.intro__txt { width: min(600px, 100%); margin-left: auto; }
.intro .head h2 { max-width: 15ch; }
.intro h2 em { font-style: normal; color: var(--marca); text-shadow: 0 0 1px rgba(30, 80, 5, .55), 0 0 26px rgba(125, 255, 60, .4); }
.intro__lista { margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.intro__lista li {
  display: flex; align-items: baseline; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--border);
  font-size: clamp(1.2rem, 1.7vw, 1.45rem); font-weight: 500; letter-spacing: -.015em; line-height: 1.25;
}
.intro__lista em { flex: none; align-self: center; font-family: var(--texto); font-style: normal; font-size: 12px; font-weight: 700; line-height: 1; padding: 5px 8px; border-radius: 999px; background: #1d1d1f; color: #fff; }
.intro__nota { margin-top: 26px; max-width: 46ch; font-size: 17px; line-height: 1.55; color: var(--text-2); }
.intro__lista li:nth-child(2) { transition-delay: .08s; }
.intro__lista li:nth-child(3) { transition-delay: .16s; }

/* ---------- Trabajos ---------- */
.actions--trabajos { margin-top: 12px; }

/* KERN: el título a la derecha y el texto a la izquierda, para que el
   párrafo no quede encima del cristal del fondo. */
@media (min-width: 761px) {
  .piece--inv { grid-template-columns: 1.15fr 1fr; }
  .piece--inv .piece__head { grid-column: 2; grid-row: 1; }
  .piece--inv .piece__body { grid-column: 1; grid-row: 1; }
}

/* ---------- Desplegables del menú: el mismo cristal que el selector ---------- */
.menu {
  background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 26px;
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 30px 80px rgba(30, 35, 50, .14), inset 0 1px 1px rgba(255, 255, 255, .9);
}
/* La barra lleva su cristal en una capa aparte: si el desenfoque estuviera
   en la propia barra, el desplegable (que vive dentro) solo podría
   desenfocar la barra y no la página que tiene debajo. */
.topbar__inner { position: relative; isolation: isolate; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.topbar__inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  transition: background .25s;
}
.topbar[data-scrolled="true"] .topbar__inner { background: none; }
.topbar[data-scrolled="true"] .topbar__inner::before { background: var(--glass-strong); }
@media (prefers-reduced-transparency: reduce) { .topbar__inner::before { background: var(--bg-2); backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (prefers-reduced-transparency: reduce) { .menu { background: var(--bg-2); backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (prefers-contrast: more) { .menu { background: var(--bg-2); border-color: var(--border); } }

/* ---------- Botones al pasar: los negros se vuelven lima con texto blanco; los claros, solo un borde lima ---------- */
.btn--solid, .btn--line { transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease-out), box-shadow .2s; }
.btn--solid:hover { background: var(--marca); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); box-shadow: none; transform: translateY(-1px); }
.btn--line:hover { border-color: var(--marca); box-shadow: inset 0 0 0 1px var(--marca); transform: translateY(-1px); }
.btn:active { transform: scale(.97); }

/* ---------- Tarjetas: todas de cristal esmerilado, como el selector ----------
   Catálogo, síntomas, principios y laboratorio comparten el mismo panel. */
.section:has(> .bento) > .fondo { top: 4%; height: calc((min(86vh, 760px) + 84%) / 2); width: min(60vw, 1040px); }
.bento__c, .bento__c--grande, .sintoma, .principio, .lab__c {
  background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 24px;
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 24px 60px rgba(30, 35, 50, .08), inset 0 1px 1px rgba(255, 255, 255, .9);
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), box-shadow .4s var(--ease-out), background-color .4s;
}
:is(.bento__c, .sintoma, .principio, .lab__c):hover {
  background: var(--glass-strong); box-shadow: 0 30px 70px rgba(30, 35, 50, .12), inset 0 1px 1px rgba(255, 255, 255, .9);
}
@media (prefers-reduced-transparency: reduce) {
  :is(.bento__c, .sintoma, .principio, .lab__c) { background: var(--bg-2); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---------- Maqueta de KERN, con el cristal y la tipografía de la web ---------- */
.screen {
  border-radius: 28px; background: var(--glass); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 30px 80px rgba(30, 35, 50, .10), inset 0 1px 1px rgba(255, 255, 255, .9);
}
.screen .mono, .screen__pill, .ph__n, .rail__t { font-family: var(--texto); }
.screen__bar { height: 54px; padding: 0 20px; gap: 14px; background: transparent; border-bottom: 1px solid var(--border); }
.screen__dots { gap: 7px; }
.screen__dots i { width: 10px; height: 10px; background: var(--border-2); opacity: .6; }
.screen__name { font-size: 13px; font-weight: 500; color: var(--text-2); }
.screen__pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px;
  font-size: 12px; font-weight: 500; color: var(--text);
  background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: 0 2px 10px rgba(30, 35, 50, .05);
}
.screen__pill::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--marca);
  box-shadow: 0 0 6px 1px rgba(125, 255, 60, .75);
}
@media (min-width: 981px) { .screen__body { grid-template-columns: 224px minmax(0, 1fr) 214px; } }
.screen__side, .screen__rail { background: transparent; }
.screen__side { padding: 16px 12px; border-right: 1px solid var(--border); }
.screen__rail { padding: 20px 16px; border-left: 1px solid var(--border); }
.screen__main { padding: 30px 34px; }

.ph { gap: 12px; padding: 10px 12px; margin-bottom: 2px; border-radius: 14px; font-size: 13.5px; color: var(--text-2); }
.ph:hover { background: var(--glass-strong); color: var(--text); }
.ph[aria-selected="true"] {
  background: var(--glass-strong); color: var(--text); font-weight: 500;
  box-shadow: 0 6px 18px rgba(30, 35, 50, .07), inset 0 0 0 1px var(--glass-edge);
}
.ph__n { width: 22px; height: 22px; font-size: 11px; font-weight: 600; border-color: var(--border-2); }
.ph[aria-selected="true"] .ph__n { border-color: var(--text); color: var(--text); }

.doc__kicker .mono { font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.doc__h { font-family: var(--display); font-size: clamp(1.5rem, 2.2vw, 1.9rem); font-weight: 500; letter-spacing: -.022em; margin-bottom: 18px; }
.doc__lines { gap: 11px; margin-bottom: 22px; }
.doc__lines i { height: 8px; border-radius: 999px; background: var(--border); opacity: .75; }
.doc__note {
  padding: 13px 16px; border: 1px solid var(--glass-edge); border-radius: 16px;
  background: var(--glass-strong); font-size: 13px; line-height: 1.5; color: var(--text-2);
}
.doc__grid { margin-top: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--glass-strong); }
.doc__grid div:first-child { background: transparent; }
.doc__grid div:first-child span { font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.doc__grid span { padding: 11px 15px; font-size: 12.5px; }
.doc__grid div:not(:first-child) span:last-child { display: flex; align-items: center; gap: 8px; color: var(--text); }
.doc__grid div:not(:first-child) span:last-child::before {
  content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--marca);
  box-shadow: 0 0 5px rgba(125, 255, 60, .7);
}
.rail__t { margin-bottom: 14px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.src {
  margin-bottom: 9px; padding: 12px 14px; border-radius: 14px;
  background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: 0 4px 14px rgba(30, 35, 50, .05);
}
.src b { font-size: 12.5px; font-weight: 600; }
.src span { font-size: 11.5px; margin-top: 4px; }

/* ---------- Refórmalo: foto con el móvil, carga y aviso ---------- */
.rdemo {
  position: relative; display: grid; place-items: center; padding: clamp(40px, 6vw, 76px) 20px;
  border-radius: 28px; background: var(--glass); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 30px 80px rgba(30, 35, 50, .10), inset 0 1px 1px rgba(255, 255, 255, .9);
}
.rdemo__movil {
  width: 264px; padding: 9px; border-radius: 46px; background: #1d1d1f;
  box-shadow: 0 40px 90px rgba(20, 24, 36, .22), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.rdemo__pantalla {
  position: relative; aspect-ratio: 240 / 500; overflow: hidden; border-radius: 37px;
  background: var(--bg-2); color: var(--text);
}
.rdemo__pantalla::before { /* isla */
  content: ""; position: absolute; z-index: 7; top: 10px; left: 50%; width: 76px; height: 22px; margin-left: -38px;
  border-radius: 999px; background: #1d1d1f;
}
.rdemo__sala { position: absolute; left: 0; right: 0; top: 11%; width: 100%; height: auto; transition: transform .9s var(--ease-out); }
.rdemo__base { color: var(--text-3); }
.rdemo__nuevo path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0s; }
.rdemo[data-fase="lista"] .rdemo__nuevo path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s var(--ease-out); }
.rdemo[data-fase="lista"] .rdemo__nuevo path:nth-child(2) { transition-delay: .12s; }
.rdemo[data-fase="lista"] .rdemo__nuevo path:nth-child(3) { transition-delay: .24s; }
.rdemo[data-fase="lista"] .rdemo__nuevo path:nth-child(4) { transition-delay: .36s; }
.rdemo[data-fase="lista"] .rdemo__nuevo path:nth-child(5) { transition-delay: .48s; }
.rdemo[data-fase="lista"] .rdemo__nuevo path:nth-child(6) { transition-delay: .6s; }
.rdemo[data-fase="encuadre"] .rdemo__sala { transform: scale(1.06); }

/* visor y disparador */
.rdemo__visor { position: absolute; inset: 22% 9% 26%; opacity: 0; transition: opacity .4s; }
.rdemo__visor i { position: absolute; width: 20px; height: 20px; border: 0 solid var(--text); }
.rdemo__visor i:nth-child(1) { top: 0; left: 0; border-width: 2px 0 0 2px; border-radius: 6px 0 0 0; }
.rdemo__visor i:nth-child(2) { top: 0; right: 0; border-width: 2px 2px 0 0; border-radius: 0 6px 0 0; }
.rdemo__visor i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 2px 2px; border-radius: 0 0 0 6px; }
.rdemo__visor i:nth-child(4) { bottom: 0; right: 0; border-width: 0 2px 2px 0; border-radius: 0 0 6px 0; }
.rdemo__disparo {
  position: absolute; left: 50%; bottom: 26px; width: 56px; height: 56px; margin-left: -28px; border-radius: 50%;
  border: 3px solid var(--text); opacity: 0; transition: opacity .4s, transform .2s;
}
.rdemo__disparo::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--text); }
.rdemo:is([data-fase="encuadre"], [data-fase="foto"]) :is(.rdemo__visor, .rdemo__disparo) { opacity: 1; }
.rdemo[data-fase="foto"] .rdemo__disparo { transform: scale(.88); }
.rdemo__flash { position: absolute; inset: 0; z-index: 4; background: #fff; opacity: 0; pointer-events: none; }
.rdemo[data-fase="foto"] .rdemo__flash { animation: rdemo-flash .45s ease-out; }
@keyframes rdemo-flash { 0% { opacity: 0; } 18% { opacity: .95; } 100% { opacity: 0; } }

/* carga */
.rdemo__escaneo {
  position: absolute; left: 0; right: 0; top: 14%; height: 2px; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--marca), transparent);
  box-shadow: 0 0 18px 4px rgba(125, 255, 60, .35);
}
.rdemo[data-fase="carga"] .rdemo__escaneo { opacity: 1; animation: rdemo-escaneo 1.5s ease-in-out infinite alternate; }
@keyframes rdemo-escaneo { from { transform: translateY(0); } to { transform: translateY(290px); } }
.rdemo__carga {
  position: absolute; left: 14px; right: 14px; bottom: 22px; padding: 14px 16px 16px; border-radius: 20px;
  background: var(--glass-strong); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 12px 30px rgba(20, 24, 36, .12);
  opacity: 0; transform: translateY(16px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.rdemo[data-fase="carga"] .rdemo__carga { opacity: 1; transform: none; }
.rdemo__fila { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--text-2); }
.rdemo__fila b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.rdemo__barra { height: 5px; margin-top: 10px; border-radius: 999px; background: var(--border); overflow: hidden; }
.rdemo__barra i {
  display: block; height: 100%; border-radius: inherit; background: var(--marca);
  box-shadow: 0 0 10px rgba(125, 255, 60, .6); transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}

/* aviso */
.rdemo__aviso {
  position: absolute; z-index: 6; left: 10px; right: 10px; top: 42px; display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 20px; background: var(--glass-strong); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 14px 34px rgba(20, 24, 36, .16);
  opacity: 0; transform: translateY(-24px) scale(.96);
  transition: opacity .3s, transform .3s;
}
.rdemo[data-fase="lista"] .rdemo__aviso {
  opacity: 1; transform: none; transition: opacity .5s var(--ease-out) .5s, transform .8s var(--ease-out) .5s;
}
.rdemo__app {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: #1d1d1f; color: var(--marca);
}
.rdemo__app svg { width: 17px; height: 17px; }
.rdemo__txt { flex: 1; min-width: 0; display: grid; gap: 1px; font-size: 11.5px; line-height: 1.3; color: var(--text-2); }
.rdemo__txt b { font-size: 12px; font-weight: 600; color: var(--text); }
.rdemo__aviso time { align-self: flex-start; font-size: 10.5px; color: var(--text-3); }
@media (prefers-reduced-motion: reduce) { .rdemo *, .rdemo *::after { animation: none !important; transition: none !important; } }

/* ---------- Selector: un panel de cristal sobre el vídeo ---------- */
.sector { position: relative; max-width: none; margin-top: 64px; padding-block: 40px; }
.sector > .fondo { top: 50%; height: 130%; translate: 0 -50%; width: min(60vw, 1040px); }
.sector__panel {
  position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 18px 56px; align-items: center;
  padding: clamp(28px, 4vw, 56px);
  border-radius: 28px; background: var(--glass); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 30px 80px rgba(30, 35, 50, .10), inset 0 1px 1px rgba(255, 255, 255, .9);
}
.sector__panel > * { grid-column: 2; }
.sector__panel > .sector__label { grid-column: 1; grid-row: 1 / span 3; align-self: center; }
.sector__label {
  display: block; margin-bottom: 0; max-width: 11ch; font-family: var(--display); font-size: clamp(2.1rem, 3.3vw, 3rem);
  font-weight: 520; line-height: 1.08; letter-spacing: -.028em; color: var(--text);
}
.sector__row { position: relative; display: block; }
.sector__row .in {
  width: 100%; height: 68px; min-height: 68px; padding: 0 200px 0 28px; border-radius: 999px;
  font-size: 18px; background: var(--bg-2); border: 1px solid var(--border);
  transition: border-color .2s, box-shadow .2s;
}
.sector__row .in:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 5px rgba(125, 255, 60, .35); }
.sector__row .btn { position: absolute; top: 8px; right: 8px; bottom: 8px; height: auto; min-height: 0; padding: 0 24px; }
.sector .fichas { margin-top: 0; gap: 10px; }
@media (max-width: 1100px) {
  .sector__panel { display: block; }
  .sector__label { max-width: none; margin-bottom: 22px; }
  .sector .fichas { margin-top: 18px; }
}
.sector .ficha { background: var(--bg-2); border-color: var(--border); transition: border-color .2s, transform .2s var(--ease-out); }
.sector .ficha:hover { border-color: var(--text); transform: translateY(-1px); }

/* ---------- Proceso: la línea se rellena al bajar ---------- */
.pasos { position: relative; border-top: 0; padding-top: 34px; }
.pasos::before, .pasos::after { content: ""; position: absolute; top: 0; left: 0; height: 2px; border-radius: 2px; }
.pasos::before { right: 0; background: var(--border); }
.pasos::after { width: 100%; background: var(--marca); transform-origin: 0 50%; transform: scaleX(var(--pp, 0)); }
.pasos__p em { font-style: normal; font-weight: 500; transition: color .4s; }
.pasos__p.on em { color: var(--text); }

/* ---------- Estudio ---------- */
.principios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.principio { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 210px; padding: 32px; }
.principio b { font-size: 27px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.principio span { color: var(--text-2); max-width: 44ch; }
.lab { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lab__c {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; min-height: 300px; padding: 36px;
  color: var(--text); text-decoration: none;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.lab__c:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.lab__c b { font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.lab__c .mono { color: var(--text-3); font-size: 13px; }
.lab__c > span:last-child { color: var(--text-2); max-width: 40ch; }

/* ---------- Cierre de página: texto a la izquierda, fluido a la derecha ---------- */
.cta {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 18px 40px;
  text-align: left; padding: 56px 0 56px 56px; min-height: 420px; overflow: hidden;
  background: var(--bg-2); border: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.cta > :not(.cta__media) { grid-column: 1; margin-inline: 0; }
.cta h2 { font-size: clamp(2.2rem, 3.8vw, 3.3rem); max-width: 16ch; }
.cta .actions { justify-content: flex-start; margin-top: 10px; }
.cta__media {
  grid-column: 2; grid-row: 1 / span 4; align-self: stretch; position: relative; min-height: 320px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%), linear-gradient(0deg, transparent, #000 16%, #000 84%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 30%), linear-gradient(0deg, transparent, #000 16%, #000 84%, transparent);
  mask-composite: intersect;
}
.cta__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; filter: brightness(1.07) contrast(1.03); }

/* ---------- Más calma ---------- */
.screen, .browser { transform: none !important; }
.is-hit { animation: none !important; }

@media (max-width: 900px) {
  .principios, .lab { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .brand__logo { height: 22px; }
  .hero { min-height: auto; padding-top: 118px; padding-bottom: 40px; }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 3.6rem); }
  /* En móvil el cristal también va detrás del texto, arriba a la derecha,
     fundido hacia la izquierda y hacia abajo (como en escritorio). */
  .hero > .hero-material {
    top: 64px; bottom: auto; right: calc(50% - 50vw); width: 118vw; height: 84vw; translate: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%), linear-gradient(0deg, transparent, #000 40%, #000 85%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 55%), linear-gradient(0deg, transparent, #000 40%, #000 85%, transparent);
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
  .hero-material img[src*="glass-light"] { object-position: 50% 50%; }
  .hero--marca { min-height: auto; padding: 124px var(--pad) 0; }
  .hero--marca h1 { max-width: none; font-size: clamp(2.9rem, 12.5vw, 3.9rem); }
  .hero--marca h1 br { display: none; }
  .hero--marca .actions .btn { flex: 1 1 auto; }
  .hero__garantias { flex-direction: column; align-self: stretch; margin-top: 34px; }
  .hero--marca { padding-bottom: 56px; }
  .hero--marca > .hero-material { top: 70px; width: 120vw; height: 80vw; right: -46vw; }
  .manifiesto__txt { font-size: 1.75rem; line-height: 1.18; }
  .manifiesto__sub { font-size: 18px; }
  .cta { grid-template-columns: 1fr; padding: 40px 24px 0; min-height: 0; text-align: left; }
  .cta__media {
    grid-column: 1; grid-row: auto; order: 5; min-height: 0; height: 62vw; margin: 8px -24px 0;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 90%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 22%, #000 90%, transparent);
  }
  .fondo, .piece > .fondo, .section:has(> .pasos) > .fondo, .intro > .fondo, .sector > .fondo {
    top: 0; left: auto; right: -20vw; width: 110vw; height: 96vw; translate: none;
  }
  .fondo--der, .fondo--izq {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%), linear-gradient(0deg, transparent, #000 40%, #000 85%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 38%), linear-gradient(0deg, transparent, #000 40%, #000 85%, transparent);
  }
  .intro { display: block; min-height: 0; }
  .screen__main { padding: 22px 18px; }
  .section:has(> .bento) > .fondo { top: 0; height: 96vw; }
  .sector { margin-top: 44px; padding-block: 0; }
  .sector__panel { display: block; padding: 24px 20px; border-radius: 22px; }
  .sector__label { max-width: none; margin-bottom: 20px; }
  .sector .fichas { margin-top: 16px; }
  .sector__row .in { height: 58px; min-height: 58px; padding: 0 20px; font-size: 16px; }
  .sector__row .btn { position: static; width: 100%; margin-top: 10px; min-height: 52px; }
  .rdemo__movil { width: 236px; }
  .principio { min-height: 0; padding: 26px; }
  .lab__c { min-height: 220px; padding: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-material :is(img, video), .fondo video { transform: none !important; }
}

/* ---------- Maqueta de KERN: avance, fases aprobadas y cierre del expediente ---------- */
.screen__bar { position: relative; }
.screen__prog {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
  background: var(--marca); box-shadow: 0 0 8px rgba(125, 255, 60, .55);
  transform-origin: 0 50%; transform: scaleX(var(--avance, 0)); transition: transform .7s var(--ease-out);
}
.ph[data-done="true"] .ph__n {
  font-size: 0; border-color: var(--marca);
  background: var(--marca) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230d1f06' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.6 8.3 2.3 2.2 4.5-4.8'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.doc__pie {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border);
}
.doc__estado { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-2); }
.doc__estado::before {
  content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--border-2);
  transition: background-color .3s, box-shadow .3s;
}
.doc__estado[data-ok] { color: var(--text); font-weight: 500; }
.doc__estado[data-ok]::before { background: var(--marca); box-shadow: 0 0 6px 1px rgba(125, 255, 60, .75); }
.btn.doc__ok { min-height: 40px; height: auto; padding: 0 18px; font-size: 13.5px; }
.screen[data-cerrado] .screen__pill { background: var(--marca); border-color: transparent; color: var(--marca-tinta); }
.screen[data-cerrado] .screen__pill::before { background: var(--marca-tinta); box-shadow: none; }

@keyframes kern-entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.doc.is-nuevo :is(.doc__h, .doc__note) { animation: kern-entra .5s var(--ease-out) both; }
.doc.is-nuevo .doc__note { animation-delay: .08s; }
.doc__grid > div, .screen__rail > * { animation: kern-entra .45s var(--ease-out) both; }
.doc__grid > div:nth-child(2), .screen__rail > :nth-child(2) { animation-delay: .1s; }
.doc__grid > div:nth-child(3), .screen__rail > :nth-child(3) { animation-delay: .16s; }
.doc__grid > div:nth-child(4), .screen__rail > :nth-child(4) { animation-delay: .22s; }
@media (prefers-reduced-motion: reduce) {
  .screen__prog { transition: none; }
  .doc.is-nuevo :is(.doc__h, .doc__note), .doc__grid > div, .screen__rail > * { animation: none; }
}

/* ---------- Página de KERN ---------- */
/* en las cabeceras interiores las garantías no pasan de la columna del texto */
.hero:not(.hero--marca) .hero__garantias { max-width: min(600px, 48vw); margin-top: 40px; }
.pasos--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.principios--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.principios--3 .principio { min-height: 190px; justify-content: flex-start; }
.kit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kit__c {
  display: flex; flex-direction: column; gap: 10px; min-height: 230px; padding: 30px;
  background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 24px;
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 24px 60px rgba(30, 35, 50, .08), inset 0 1px 1px rgba(255, 255, 255, .9);
  transition: background-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.kit__c:hover { background: var(--glass-strong); box-shadow: 0 30px 70px rgba(30, 35, 50, .12), inset 0 1px 1px rgba(255, 255, 255, .9); }
.kit__n {
  align-self: flex-start; font-size: 12px; font-weight: 700; line-height: 1;
  padding: 5px 8px; border-radius: 999px; background: #1d1d1f; color: #fff;
}
.kit__c b { margin-top: 30px; font-family: var(--display); font-size: 23px; font-weight: 500; letter-spacing: -.015em; line-height: 1.15; }
.kit__c > span:last-child { color: var(--text-2); font-size: 16px; line-height: 1.5; max-width: 34ch; }
@media (prefers-reduced-transparency: reduce) { .kit__c { background: var(--bg-2); backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (max-width: 980px) {
  .kit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kit > :last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 0; }
  .principios--3 { grid-template-columns: 1fr; }
  .principios--3 .principio { min-height: 0; }
}
@media (max-width: 760px) {
  .hero:not(.hero--marca) .hero__garantias { max-width: none; margin-top: 34px; }
  .pasos--3 { grid-template-columns: 1fr; gap: 30px; }
  .kit { grid-template-columns: 1fr; }
  .kit > :last-child:nth-child(odd) { grid-column: auto; }
  .kit__c { min-height: 0; padding: 26px; }
  .kit__c b { margin-top: 22px; }
}

/* ---------- Página de Refórmalo: pasos a un lado, el móvil al otro ---------- */
.ref-como { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.ref-como .head { margin-bottom: 0; }
.ref-como .rdemo { padding-block: clamp(34px, 4vw, 56px); }
@media (max-width: 900px) { .ref-como { grid-template-columns: minmax(0, 1fr); } }

/* Alineación óptica: en Jost a este tamaño la letra deja aire a su izquierda y
   el titular parece metido respecto al resto de la columna. */
.hero h1 { margin-left: -.045em; }

/* ---------- Webs a medida: panel de lo incluido y cinco tipos de proyecto ---------- */
.incluye {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(30px, 4.5vw, 56px); border-radius: 28px;
  background: var(--glass); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 30px 80px rgba(30, 35, 50, .10), inset 0 1px 1px rgba(255, 255, 255, .9);
}
.incluye__head h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 500; }
.incluye__head p { margin-top: 16px; color: var(--text-2); max-width: 38ch; }
.incluye__lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; padding: 0; list-style: none; }
.incluye__lista li { display: flex; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--border); font-size: 16px; color: var(--text); }
.incluye__lista li::before {
  content: ""; flex: none; width: 19px; height: 19px; border-radius: 50%;
  background: var(--marca) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230d1f06' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.6 8.3 2.3 2.2 4.5-4.8'/%3E%3C/svg%3E") center / 100% no-repeat;
}
@media (prefers-reduced-transparency: reduce) { .incluye { background: var(--bg-2); backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (min-width: 981px) {
  .kit--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kit--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .kit--5 > * { grid-column: span 2; }
  .kit--5 > :nth-child(n+4) { grid-column: span 3; min-height: 200px; }
}
@media (max-width: 900px) {
  .incluye { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .incluye__lista { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Caso de ingeniería: cifras en tarjetas de cristal ---------- */
.metrics > div {
  border-top: 0; padding: 26px 28px; border-radius: 22px;
  background: var(--glass); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 24px 60px rgba(30, 35, 50, .08), inset 0 1px 1px rgba(255, 255, 255, .9);
}
.metrics b { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.metrics span { font-size: 15px; color: var(--text-2); margin-top: 10px; }
.metrics { gap: 16px; }
@media (prefers-reduced-transparency: reduce) { .metrics > div { background: var(--bg-2); backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* ---------- Contacto: formulario de cristal y, al lado, correo y ubicación ---------- */
.contacto { max-width: 880px; }
.contacto .form { max-width: none; padding: clamp(26px, 3.5vw, 44px); }
.contacto__lado { display: grid; gap: 16px; }
.contacto__lado .principio { min-height: 0; justify-content: flex-start; gap: 12px; padding: 28px; }
.contacto__lado .principio b { font-size: 24px; }
.contacto__lado .principio span { overflow-wrap: anywhere; }
.form__priv { font-size: 14px; color: var(--text-2); }
.form .check input { accent-color: var(--marca); }
@media (max-width: 900px) { .contacto { grid-template-columns: minmax(0, 1fr); } }
/* cabecera baja: el formulario asoma sin tener que bajar */
.hero--corto { min-height: 0; padding-bottom: 36px; }
.hero--corto + .section { padding-top: 24px; }

/* ---------- Grano fino sobre los vídeos de cristal ----------
   Rompe las bandas de los degradados y disimula la compresión al estirar el
   vídeo en pantallas grandes. Con soft-light no tiñe el blanco: solo se nota
   sobre el cristal. Quitar este bloque lo deshace por completo. */
.hero-material::after, .fondo::after, .cta__media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='.33 .33 .33 0 0 .33 .33 .33 0 0 .33 .33 .33 0 0 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E") 0 0 / 200px 200px;
  mix-blend-mode: soft-light; opacity: .55;
}

