/* Dirección E · Profundidad (1/2): marca oscura, cabecera, collage de capas, clientes, comparador y círculo. */
body.dir-e {
  --bg: #191517;
  --bg-alt: #221D20;
  --line: rgba(255, 255, 255, .14);
  --line-strong: rgba(255, 255, 255, .55);
  --muted: #BDB6BA;
  --header-bg: #191517;
  --header-fg: #fff;
  --header-line: rgba(255, 255, 255, .1);
  --nav-hover: rgba(255, 255, 255, .08);
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --head-weight: 800;
  --head-track: -.035em;
  --focus: var(--yellow);
  --link: var(--teal-light);
  --footer-bg: #0E0C0D;
  color: #F3F0F1;
}
.dir-e h1, .dir-e h2, .dir-e h3 { font-variation-settings: "opsz" 96; }
.dir-e .platform-link { color: var(--teal-light); }
.dir-e .platform-link:hover { background: rgba(255, 255, 255, .08); }
.dir-e .btn-outline { color: #fff; }
.cabecera-e { transition: background-color .3s, border-color .3s; }
.cabecera-e:not(.is-desplazada) { border-color: transparent; }
.e-cab { display: grid; gap: 18px; max-width: 920px; margin-bottom: 48px; }
.e-cab h2 { font-size: clamp(2.3rem, 5.2vw, 4.8rem); line-height: .98; }
.e-cab p { max-width: 56ch; color: var(--muted); font-size: 1.15rem; }
.e-cab-centro { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.e-lead { font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.4; }

/* Arranque: titular entre capas de fotos y capturas */
.e-hero { position: relative; display: grid; place-items: center; min-height: calc(100svh - 116px); overflow: hidden; padding: 96px 0 120px; }
.e-capas { position: absolute; inset: 0; pointer-events: none; }
.e-capa {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); aspect-ratio: var(--ar, 4 / 5); margin: 0; overflow: hidden;
  border-radius: 14px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
  transform: translate3d(var(--mx, 0px), calc(var(--my, 0px) + var(--py, 0px)), 0) rotate(var(--rot, 0deg));
  transition: transform .9s var(--ease);
}
.e-capa img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.e-capa-1 { --w: clamp(110px, 15vw, 240px); --x: 3%; --y: 10%; --rot: -6deg; }
.e-capa-2 { --w: clamp(150px, 22vw, 360px); --ar: 16 / 9; --x: 72%; --y: 6%; --rot: 4deg; }
.e-capa-3 { --w: clamp(100px, 12vw, 200px); --x: 84%; --y: 50%; --rot: 7deg; }
.e-capa-4 { --w: clamp(160px, 21vw, 340px); --ar: 16 / 9; --x: 2%; --y: 66%; --rot: -4deg; }
.e-capa-5 { --w: clamp(110px, 14vw, 220px); --ar: 3 / 2; --x: 75%; --y: 82%; --rot: -7deg; }
.con-movimiento .e-capa { opacity: 0; animation: capa-entra 1.2s var(--ease) forwards; animation-delay: calc(var(--n, 1) * 120ms + 200ms); }
.e-capa-1 { --n: 1; } .e-capa-2 { --n: 2; } .e-capa-3 { --n: 3; } .e-capa-4 { --n: 4; } .e-capa-5 { --n: 5; }
@keyframes capa-entra { from { opacity: 0; scale: .7; } to { opacity: 1; scale: 1; } }
.e-hero-centro { position: relative; z-index: 2; text-align: center; }
.e-hero h1 { max-width: 13.5ch; margin: 0 auto; font-size: clamp(2.5rem, 6.6vw, 6.9rem); line-height: .98; }
.e-hero h1 .w:nth-child(2 of .w) > span, .e-hero h1 .w:nth-child(4 of .w) > span { color: var(--teal-light); }
.e-hero-lead { max-width: 46ch; margin: 28px auto 32px; color: #E3DEE0; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; }
.e-hero .actions { justify-content: center; }
@media (max-width: 719px) {
  .e-hero { padding: 64px 0 220px; place-items: start center; }
  .e-capa-1, .e-capa-3 { display: none; }
  .e-capa-2 { --x: 52%; --y: 76%; }
  .e-capa-4 { --x: 4%; --y: 80%; }
  .e-capa-5 { display: none; }
}

/* Clientes en una losa clara que se endereza al entrar */
.e-clientes { padding: 16px 0 104px; perspective: 1400px; }
.e-losa {
  padding: 32px; border-radius: 22px; background: #F4F2EE; color: var(--ink); transform-origin: 50% 100%;
  transform: rotateX(calc((1 - min(var(--p) * 2.6, 1)) * 40deg)) scale(calc(.88 + min(var(--p) * 2.6, 1) * .12));
}
.e-losa h2 { margin-bottom: 22px; font: 700 1rem/1.3 var(--font-body); letter-spacing: 0; }
@media (min-width: 1080px) { .e-losa { padding: 36px 48px; } .e-losa .clientes-logos { justify-content: space-between; } }

/* Comparador personas / datos */
.e-comp { padding: 40px 0 112px; }
.comp-b-fondo { position: absolute; inset: 0; display: grid; place-items: center; padding: 5%; background: var(--teal); }
.comp-b-fondo img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 24px 48px rgba(0, 0, 0, .25); }
.comp-etiqueta {
  position: absolute; bottom: 18px; padding: 8px 14px; border-radius: 8px; background: rgba(25, 21, 23, .82); color: #fff;
  font-weight: 700; font-size: .9375rem; max-width: 44%;
}
.comp-etiqueta-a { left: 18px; }
.comp-etiqueta-b { right: 18px; text-align: right; }

/* Círculo que crece hasta llenar la pantalla */
.e-circulo-sticky { position: relative; display: grid; place-items: center; height: 100vh; overflow: hidden; }
.con-movimiento .e-circulo { height: 240vh; }
.con-movimiento .e-circulo-sticky { position: sticky; top: 0; }
.e-circulo-forma {
  position: absolute; inset: 0; display: grid; place-items: center; background: var(--teal);
  clip-path: circle(calc(3% + min(var(--p) * 1.7, 1) * 72%) at 50% 50%);
}
.e-circulo-texto {
  color: #fff; text-align: center;
  opacity: clamp(0, calc((var(--p) - .3) * 4), 1);
  transform: scale(calc(.9 + clamp(0, calc((var(--p) - .3) * 4), 1) * .1));
}
.e-circulo-texto h2 { max-width: 12ch; margin: 0 auto 24px; font-size: clamp(2.6rem, 7.6vw, 7.8rem); line-height: .95; }
.e-circulo-texto p { max-width: 32ch; margin: 0 auto; font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.35; }
