/* Quiet Motion · sitio web v2 (borrador para revisión local)
   Paleta: la del logo v1 (Noche, Hueso, Piedra, Ámbar; versión clara Marfil, Tinta, Arcilla, Ámbar profundo)
   + los tonos cálidos del Reel 2 (Espresso, Crema, Terracota, Leche). Los acentos se usan con moderación.
   Curvas de movimiento de la marca: ENTRA = bezier(0.16, 1, 0.3, 1) · SUAVE = bezier(0.65, 0, 0.35, 1).
   Los estados ocultos para animar solo existen con la clase .con-movimiento, que pone interaccion.js
   cuando hay JavaScript y el visitante no pidió reducir el movimiento: sin ella, todo se ve completo. */

@font-face {
  font-family: "DM Sans";
  src: url("assets/fuentes/DMSans_opsz_wght_.ttf") format("truetype");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("assets/fuentes/DMMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Marca (logo v1) */
  --noche: #131211;
  --tinta: #1a1917;
  --hueso: #ede8e0;
  --piedra: #a39d93;
  --ambar: #e3a24c;
  --marfil: #f4f1eb;
  --arcilla: #6a645b;
  --ambar-profundo: #a65f14;
  /* Tonos cálidos (Reel 2) y sus intermedios */
  --espresso: #1d1613;
  --espresso-2: #2b1e18;
  --cafe: #2a211b;
  --crema: #f3e9dc;
  --leche: #7a604b;
  --terracota: #c8643b;

  --entra: cubic-bezier(0.16, 1, 0.3, 1);
  --suave: cubic-bezier(0.65, 0, 0.35, 1);

  --margen: clamp(20px, 5vw, 64px);
  --ancho: 1240px;
  --alto-cabecera: 100px;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  color-scheme: dark;
}

/* Temas por sección: los componentes leen estas variables y funcionan sobre fondo oscuro o claro. */
:root, [data-tema="oscuro"] {
  --texto: var(--hueso); --texto-2: var(--piedra); --acento: var(--ambar);
  --linea: #2b2926; --linea-fuerte: #45423d;
}
[data-tema="claro"] {
  --texto: var(--tinta); --texto-2: var(--arcilla); --acento: var(--ambar-profundo);
  --linea: rgba(26, 25, 23, 0.13); --linea-fuerte: rgba(26, 25, 23, 0.32);
  color: var(--texto); color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--noche);
  color: var(--texto);
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: rgba(227, 162, 76, 0.32); color: var(--hueso); }
[data-tema="claro"] ::selection { background: rgba(166, 95, 20, 0.22); color: var(--tinta); }

:focus-visible { outline: 2px solid var(--acento); outline-offset: 4px; border-radius: 4px; }

.contenedor { width: 100%; max-width: calc(var(--ancho) + 2 * var(--margen)); margin-inline: auto; padding-inline: var(--margen); }

.saltar {
  position: absolute; left: var(--margen); top: -100px; z-index: 20;
  padding: 10px 16px; border-radius: 999px; background: var(--hueso); color: var(--noche);
  font-weight: 500; text-decoration: none;
}
.saltar:focus { top: 16px; }

/* ───────── Texto común ───────── */
.etiqueta { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.02em; line-height: 1.5; color: var(--texto-2); }
.etiqueta__num { color: var(--texto); margin-right: 0.6em; }
.punto { color: var(--acento); }
.junto { display: inline-block; }
.aviso, .reel__aviso {
  justify-self: start; align-self: start; display: inline-block;
  font-family: var(--mono); font-size: 0.8125rem; line-height: 1;
  padding: 8px 12px; border: 1px solid var(--linea-fuerte); border-radius: 999px; color: var(--texto);
}

/* ───────── Botón y enlace ───────── */
.boton {
  display: inline-flex; align-items: center; gap: 0.6em;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--hueso); color: var(--noche);
  font-weight: 500; font-size: 1rem; letter-spacing: -0.005em; text-decoration: none;
  transition: background-color 0.3s var(--entra);
}
.boton__flecha { display: inline-block; transition: transform 0.4s var(--entra); }
.enlace {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--texto-2); text-decoration: underline; text-decoration-color: var(--linea-fuerte);
  text-underline-offset: 6px; text-decoration-thickness: 1px;
  transition: color 0.3s var(--entra), text-decoration-color 0.3s var(--entra);
}
@media (hover: hover) {
  .boton:hover { background: #ffffff; }
  .boton:hover .boton__flecha { transform: translate(2px, -2px); }
  .enlace:hover { color: var(--texto); text-decoration-color: var(--texto-2); }
}

/* ───────── Cabecera (sobre el fondo del inicio) ───────── */
.cabecera { position: absolute; top: 0; left: 0; right: 0; z-index: 10; padding-block: 28px; }
.cabecera__fila { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cabecera__logo { display: inline-flex; padding-block: 6px; border-radius: 6px; }
.cabecera__logo img { width: 156px; height: auto; }
.nav { display: flex; gap: clamp(20px, 3vw, 36px); }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--piedra); text-decoration: none; font-size: 0.9375rem;
  transition: color 0.3s var(--entra);
}
@media (hover: hover) { .nav a:hover { color: var(--hueso); } }
@media (max-width: 719px) { .nav__extra { display: none; } }
@media (min-width: 720px) { .cabecera__logo img { width: 173px; } }

/* ───────── Capas: el hilo va sobre los fondos y debajo del contenido ───────── */
main { position: relative; }
main > section { position: relative; overflow-x: clip; }
main > section > .contenedor { position: relative; z-index: 2; }

.hilo { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.hilo__trazo { fill: none; stroke: rgba(237, 232, 224, 0.34); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1 2; stroke-dashoffset: 0; }
.hilo__kf { fill: var(--ambar); transform-box: fill-box; transform-origin: center; }
.hilo--claro .hilo__trazo { stroke: rgba(43, 30, 24, 0.5); stroke-width: 2; }
.hilo--claro .hilo__kf { fill: var(--terracota); }

/* ───────── Inicio ───────── */
.hero {
  padding-block: calc(var(--alto-cabecera) + clamp(56px, 12vh, 140px)) clamp(104px, 18vh, 200px);
  background:
    radial-gradient(55% 60% at 90% 30%, rgba(200, 100, 59, 0.11), transparent 70%),
    linear-gradient(180deg, var(--noche) 55%, var(--espresso) 100%);
}
.hero__fondo {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  /* La forma se desvanece antes del borde inferior para no cortarse en seco. */
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 92%); mask-image: linear-gradient(180deg, #000 45%, transparent 92%);
}
.hero__curva-fondo { position: absolute; width: max(150vw, 900px); right: -62vw; bottom: -6%; will-change: transform; }
.hero__curva-fondo path { fill: none; stroke: rgba(237, 232, 224, 0.035); stroke-width: 15; stroke-linecap: round; }
@media (min-width: 960px) { .hero__curva-fondo { width: min(110vw, 1500px); right: -22vw; bottom: -20%; } }
.hero__contenido { display: flex; flex-direction: column; align-items: flex-start; }
.hero .etiqueta { margin-bottom: 28px; }
/* "en movimiento." mide 5.96 em: este tamaño cabe en una línea desde 320 px de ancho. */
.hero__titulo {
  font-weight: 500; font-size: clamp(2.75rem, 0.6rem + 10vw, 8rem);
  line-height: 0.96; letter-spacing: -0.045em;
}
.hero__bajada { margin-top: 32px; max-width: 34ch; color: var(--texto-2); font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem); line-height: 1.5; }
.hero__acciones { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

.simbolo { overflow: visible; }
.simbolo__curva { fill: none; stroke: var(--hueso); stroke-width: 15; stroke-linecap: round; stroke-dasharray: 1 2; stroke-dashoffset: 0; }
.simbolo__kf { fill: var(--ambar); transform-box: fill-box; transform-origin: center; }
.hero__contenido > .simbolo { width: min(36vw, 150px); align-self: flex-end; margin-top: 56px; }
/* Escritorio: el símbolo acompaña al titular por la derecha, a la altura de sus dos líneas. */
@media (min-width: 1100px) {
  .hero__contenido > .simbolo { position: absolute; right: var(--margen); top: 64px; width: clamp(200px, 17vw, 250px); margin: 0; }
}

/* ───────── Secciones ───────── */
.seccion { padding-block: clamp(96px, 13vw, 176px); }
.seccion__cabeza { display: grid; gap: 20px; margin-bottom: clamp(48px, 7vw, 96px); max-width: 44rem; }
.seccion__titulo { font-weight: 500; font-size: clamp(2.125rem, 1.4rem + 2.9vw, 3.75rem); line-height: 1.04; letter-spacing: -0.035em; }
.seccion__intro { color: var(--texto-2); max-width: 40ch; }

/* ───────── Trabajo: reels sobre bloques de color ───────── */
.seccion--trabajo { background: linear-gradient(180deg, var(--espresso) 0%, #1a1411 100%); }
.reels { display: grid; gap: 104px; align-items: start; }
.reel { display: grid; gap: 32px; max-width: 400px; align-items: start; }
.reel--estudio { --losa: var(--cafe); }
.reel--cafe { --losa: #3b2419; }
.reel__escenario { position: relative; }
/* El bloque de color sale del borde de la página y queda detrás del video (en el reel 2, por la derecha). */
.reel__escenario::before {
  content: ""; position: absolute; z-index: 0; top: 14%; bottom: -8%; left: -100vw; right: 26%;
  background: var(--losa); border-radius: 0 20px 20px 0; transform-origin: right center;
}
.reel--desfase .reel__escenario::before { left: 26%; right: -100vw; border-radius: 20px 0 0 20px; transform-origin: left center; }
.reel__marco {
  position: relative; z-index: 1; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden;
  background: var(--tinta); border: 1px solid rgba(237, 232, 224, 0.1);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
  transition: border-color 0.4s var(--entra);
}
.reel__video { width: 100%; height: 100%; object-fit: cover; background: var(--tinta); }
.reel__reproducir {
  position: absolute; inset: 0; width: 100%; padding: 0; border: 0; border-radius: inherit;
  background: transparent; color: var(--hueso); cursor: pointer; font: inherit;
  display: flex; align-items: flex-end; justify-content: flex-start;
}
.reel__reproducir[hidden] { display: none; }
.reel__reproducir::before {
  content: ""; position: absolute; inset: 0; background: var(--noche); opacity: 0;
  transition: opacity 0.4s var(--entra);
}
.reel__pastilla {
  position: relative; margin: 18px; display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 18px 0 14px; border-radius: 999px;
  background: rgba(19, 18, 17, 0.78); border: 1px solid rgba(237, 232, 224, 0.22);
  font-size: 0.9375rem; font-weight: 500;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: border-color 0.4s var(--entra), background-color 0.4s var(--entra), transform 0.4s var(--entra);
}
.reel__triangulo { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--hueso); }
.reel__reproducir:focus-visible { outline-offset: -4px; }
@media (hover: hover) {
  .reel:hover .reel__marco { border-color: rgba(237, 232, 224, 0.24); }
  .reel__reproducir:hover::before { opacity: 0.12; }
  .reel__reproducir:hover .reel__pastilla { border-color: rgba(237, 232, 224, 0.5); background: rgba(19, 18, 17, 0.92); transform: translateY(-2px); }
}
.reel__texto { position: relative; z-index: 1; display: grid; gap: 12px; align-content: start; }
/* Móvil: el texto va debajo del video, así que el bloque de color no baja más allá del video (solo asoma por el lado). */
@media (max-width: 859px) {
  .reel__escenario::before { top: 10%; bottom: 8%; }
}
.reel__texto .reel__titulo { margin-bottom: 4px; }
.reel__texto > p:not(.etiqueta):not(.reel__datos):not(.reel__aviso) { color: var(--texto-2); }
.reel__titulo { font-weight: 500; font-size: clamp(1.5rem, 1.25rem + 0.9vw, 1.875rem); line-height: 1.15; letter-spacing: -0.025em; }
.reel__datos { font-family: var(--mono); font-size: 0.8125rem; color: var(--texto-2); padding-top: 4px; }
.reel--cafe .reel__aviso { border-color: rgba(200, 100, 59, 0.6); }
/* Escritorio: filas alternadas (video y texto), en zigzag. */
@media (min-width: 860px) {
  .reels { gap: clamp(120px, 12vw, 176px); }
  .reel {
    max-width: none; align-items: center; gap: 0 clamp(48px, 8vw, 128px);
    grid-template-columns: minmax(0, 360px) minmax(0, 420px); justify-content: start;
  }
  .reel--desfase { grid-template-columns: minmax(0, 420px) minmax(0, 360px); justify-content: end; }
  .reel--desfase .reel__escenario { order: 2; }
}

/* ───────── Vapor Lento: antes y después (paleta de la cafetería ficticia) ───────── */
.comparacion {
  --texto: var(--espresso-2); --texto-2: var(--leche); --acento: var(--terracota);
  --linea-fuerte: rgba(43, 30, 24, 0.3);
  background: var(--crema); color: var(--texto);
  padding-block: clamp(96px, 12vw, 168px);
  overflow: clip; /* la forma de fondo no debe salirse a las secciones vecinas */
}
.comparacion :focus-visible { outline-color: var(--espresso-2); }
/* Forma: un keyframe enorme y muy tenue, medio fuera del lienzo, arriba a la izquierda
   (detrás de la etiqueta y el titular, nunca del párrafo, para no bajar su contraste). */
.comparacion__forma {
  position: absolute; z-index: 0; left: -14vw; top: -46%; width: clamp(360px, 46vw, 680px); aspect-ratio: 1;
  border-radius: 50%; background: var(--terracota); opacity: 0.07;
}
.comparacion__rejilla { display: grid; gap: 64px; align-items: center; }
.comparacion__texto { display: grid; gap: 22px; align-content: start; max-width: 30rem; }
.comparacion__titulo { font-weight: 500; font-size: clamp(2.25rem, 1.3rem + 3.4vw, 4.25rem); line-height: 1; letter-spacing: -0.04em; }
.punto-terracota { color: var(--terracota); }
.comparacion__texto > p:last-child { color: var(--texto-2); max-width: 34ch; }
.comparacion__par {
  position: relative; display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: clamp(44px, 7vw, 104px); align-items: end; max-width: 720px; width: 100%; justify-self: center;
}
.comparacion__pieza { position: relative; z-index: 2; display: grid; gap: 16px; }
.comparacion__pieza img { width: 100%; height: auto; box-shadow: 0 34px 60px -34px rgba(43, 30, 24, 0.45); }
/* Las tarjetas del video tienen esquinas de 6 y 36 px sobre 760 × 1000: se recortan igual. */
.comparacion__antes img { border-radius: 0.8% / 0.6%; }
.comparacion__despues img { border-radius: 5.3% / 4%; }
.comparacion__pieza figcaption { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.02em; color: var(--texto-2); }
.comparacion__despues figcaption { color: var(--texto); }
@media (min-width: 960px) {
  .comparacion__rejilla { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(48px, 6vw, 96px); }
  .comparacion__par { justify-self: end; }
}

/* ───────── Servicios ───────── */
.seccion--servicios { background: var(--noche); }
.servicios { border-top: 1px solid var(--linea); }
.servicio {
  display: grid; gap: 12px 32px; padding-block: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--linea);
}
.servicio__num { font-family: var(--mono); font-size: 0.8125rem; color: var(--texto-2); padding-top: 0.5em; display: inline-flex; align-items: center; gap: 10px; }
.servicio__kf { width: 9px; height: 9px; border-radius: 50%; background: var(--ambar); flex: none; }
.servicio__titulo { font-weight: 500; font-size: clamp(1.625rem, 1.3rem + 1.3vw, 2.375rem); line-height: 1.12; letter-spacing: -0.03em; }
.servicio__texto { color: var(--texto-2); max-width: 46ch; }
.servicio__entregables { font-family: var(--mono); font-size: 0.8125rem; line-height: 1.7; color: var(--texto-2); }
@media (min-width: 900px) {
  .servicio { grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: auto auto; align-items: start; }
  .servicio__num { grid-row: 1 / span 2; align-self: start; }
  .servicio__titulo { grid-column: 2; grid-row: 1 / span 2; }
  .servicio__texto { grid-column: 3; }
  .servicio__entregables { grid-column: 3; }
}

/* ───────── Proceso (versión clara de la marca) ───────── */
.seccion--proceso { background: var(--marfil); }
/* La línea se dibuja con el scroll: interaccion.js actualiza --progreso (0 → 1). Sin JS queda completa. */
.pasos { --progreso: 1; position: relative; display: grid; gap: 48px; padding-left: 36px; }
.pasos::before {
  content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1px; background: var(--linea-fuerte);
  transform-origin: top; transform: scaleY(var(--progreso));
}
.paso { position: relative; display: grid; gap: 12px; max-width: 34ch; align-content: start; }
.paso p { color: var(--texto-2); }
.paso__kf {
  position: absolute; left: -36px; top: 8px; width: 15px; height: 15px; border-radius: 50%; background: var(--ambar-profundo);
  transition: transform 0.6s var(--entra), opacity 0.6s var(--entra);
}
.paso__titulo { font-weight: 500; font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); letter-spacing: -0.025em; line-height: 1.2; }
.paso__num { font-family: var(--mono); font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.02em; color: var(--texto-2); vertical-align: 0.45em; margin-right: 0.5em; }
@media (min-width: 900px) {
  .pasos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; padding-left: 0; padding-top: 52px; }
  .pasos::before { left: 7px; right: 0; top: 7px; bottom: auto; width: auto; height: 1px; transform-origin: left; transform: scaleX(var(--progreso)); }
  .paso__kf { left: 0; top: -52px; }
}
.nota {
  margin-top: clamp(64px, 8vw, 112px); padding: clamp(28px, 4vw, 44px); max-width: 46rem;
  border-radius: 16px; background: #ebe4d9;
  display: grid; gap: 14px;
}
.nota__titulo { font-weight: 500; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); letter-spacing: -0.02em; line-height: 1.25; }
.nota p { color: var(--texto-2); max-width: 52ch; }

/* ───────── Contacto ───────── */
.contacto {
  background:
    radial-gradient(65% 75% at 100% 100%, rgba(200, 100, 59, 0.2), transparent 68%),
    radial-gradient(45% 55% at 0% 0%, rgba(227, 162, 76, 0.05), transparent 70%),
    #1b1411;
}
.contacto__rejilla { display: grid; gap: 72px; align-items: center; }
.contacto__texto-bloque { display: grid; justify-items: start; gap: 24px; }
.contacto__titulo { font-weight: 500; font-size: clamp(2.75rem, 1.4rem + 5.6vw, 6.5rem); line-height: 1; letter-spacing: -0.045em; margin-top: 8px; }
.contacto__texto { color: var(--texto-2); max-width: 38ch; margin-bottom: 20px; font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem); line-height: 1.5; }
.simbolo--cierre { width: min(52vw, 230px); justify-self: end; transform-origin: 60% 60%; will-change: transform; }
@media (min-width: 960px) {
  .contacto__rejilla { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .simbolo--cierre { width: min(100%, 380px); justify-self: center; }
}

/* ───────── Pie ───────── */
.pie { background: var(--noche); border-top: 1px solid #2b2926; padding-block: 36px 44px; }
.pie__fila { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; font-size: 0.875rem; color: var(--piedra); }
.pie a { display: inline-flex; min-height: 44px; align-items: center; margin-block: -12px; text-underline-offset: 4px; text-decoration-color: #45423d; transition: color 0.3s var(--entra); }
@media (hover: hover) { .pie a:hover { color: var(--hueso); } }

/* ───────── Halo del cursor (solo escritorio con ratón; ver interaccion.js) ───────── */
.halo {
  position: fixed; left: 0; top: 0; z-index: 50; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border-radius: 50%; border: 1px solid rgba(237, 232, 224, 0.24);
  pointer-events: none; opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--entra), border-color 0.4s var(--entra), width 0.4s var(--entra), height 0.4s var(--entra), margin 0.4s var(--entra);
}
.halo.esta-activo { visibility: visible; }
.halo.esta-visible { opacity: 1; }
.halo.sobre-accion { width: 44px; height: 44px; margin: -22px 0 0 -22px; border-color: rgba(227, 162, 76, 0.5); }
.halo.sobre-claro { border-color: rgba(43, 30, 24, 0.3); }
.halo.sobre-claro.sobre-accion { border-color: rgba(166, 95, 20, 0.6); }

/* ───────── Movimiento ───────── */
@media (prefers-reduced-motion: no-preference) {
  /* Entrada del inicio: una sola vez al cargar */
  .js .hero__entrada { animation: aparece 1s var(--entra) both; }
  .js .hero__entrada:nth-child(2) { animation-delay: 0.08s; }
  .js .hero__entrada:nth-child(3) { animation-delay: 0.16s; }
  .js .hero__entrada:nth-child(4) { animation-delay: 0.24s; }
  /* El símbolo del inicio: aparece el keyframe A, luego el B y la curva se dibuja entre ellos */
  .js .hero .simbolo__kf { animation: keyframe 0.7s var(--entra) both; animation-delay: 0.35s; }
  .js .hero .simbolo__kf--b { animation-delay: 0.6s; }
  .js .hero .simbolo__curva { animation: trazo 1.2s var(--suave) 0.95s both; }
}

/* Revelado al entrar en pantalla: una sola vez. Escalonado breve entre elementos hermanos (--i lo pone el JS). */
.con-movimiento .revelar:not([data-escalonar]) { opacity: 0; transform: translateY(16px); transition: opacity 0.9s var(--entra), transform 0.9s var(--entra); }
.con-movimiento .revelar.es-visible:not([data-escalonar]) { opacity: 1; transform: none; }
.con-movimiento [data-escalonar] > * {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.8s var(--entra), transform 0.8s var(--entra); transition-delay: calc(var(--i, 0) * 70ms);
}
.con-movimiento .es-visible[data-escalonar] > *, .con-movimiento .es-visible [data-escalonar] > * { opacity: 1; transform: none; }
.con-movimiento .comparacion__despues.revelar { transition-delay: 0.14s; }
/* El bloque de color de cada reel se extiende al aparecer. */
.con-movimiento .reel .reel__escenario::before { transform: scaleX(0); transition: transform 1.2s var(--suave) 0.1s; }
.con-movimiento .reel.es-visible .reel__escenario::before { transform: none; }
/* Keyframes de los servicios */
.con-movimiento .servicio__kf { transform: scale(0.4); opacity: 0; transition: transform 0.7s var(--entra) 0.15s, opacity 0.7s var(--entra) 0.15s; }
.con-movimiento .servicio.es-visible .servicio__kf { transform: none; opacity: 1; }
/* Hilos y símbolo de cierre: el trazo avanza con el scroll y no retrocede; sus keyframes se encienden al llegar. */
.con-movimiento .hilo__trazo, .con-movimiento .simbolo--cierre .simbolo__curva { stroke-dashoffset: 1; transition: stroke-dashoffset 0.45s var(--entra); }
.con-movimiento .hilo__kf, .con-movimiento .simbolo--cierre .simbolo__kf { opacity: 0; transform: scale(0.45); transition: opacity 0.6s var(--entra), transform 0.7s var(--entra); }
.con-movimiento .paso__kf { opacity: 0.25; transform: scale(0.5); }
.con-movimiento .encendido { opacity: 1 !important; transform: none !important; }
.con-movimiento .pasos { --progreso: 0; }
.con-movimiento .pasos::before { transition: transform 0.45s var(--entra); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .halo { display: none; }
}

@keyframes aparece { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes keyframe { from { opacity: 0; transform: scale(0.55); } to { opacity: 1; transform: none; } }
@keyframes trazo { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
