/* Kreatik Studio · web nueva
   Diseño a 1440 px de Figma. La unidad --u escala todo de forma proporcional: 1 px de Figma = 1 --u. */
:root {
  --azul: #173DED;
  --navy: #051042;
  --blanco: #FFFFFF;
  --u: calc(min(100vw, 1440px) / 1440);
  --gu: var(--u);                           /* unidad de la galería (en móvil es más grande) */
  --curva: cubic-bezier(.16, 1, .3, 1);     /* salida rápida, frenada suave */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; overscroll-behavior-x: none; max-width: 100%; touch-action: pan-y; }
body {
  margin: 0;
  background: var(--blanco);
  color: var(--azul);
  font-family: Montserrat, system-ui, sans-serif;
  overflow-x: clip;                          /* corta lo que se salga a los lados sin crear otra barra de scroll */
  overscroll-behavior-x: none;
  max-width: 100%;
  width: 100%;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-font-smoothing: antialiased;
}
main, section, footer, .hero, .escena-proy, .enfoque, .serie, .servicios, .proceso, .fundador, .testimonios, .cta, .pie { overflow-x: clip; max-width: 100%; }
img, video, svg, canvas, a img { -webkit-user-drag: none; user-drag: none; -webkit-touch-callout: none; }
input, textarea, select, [contenteditable="true"], a[href^="mailto:"], a[href^="tel:"], a[href*="wa.me"], a[href*="whatsapp.com"], a[href*="instagram.com"], a[href*="behance.net"], a[href*="youtube.com"], a[href*="youtu.be"], a[href*="tiktok.com"], a[href*="facebook.com"], [data-copiable], .pie__correo, .pie__tel, .pie__redes, .pie__redes a, .ar-redes, .ar-redes a, .ar-autor { -webkit-user-select: text; user-select: text; }
.sv-plan, .sv-planes, .sv-precio, .fundador, .es-fundador, .es-manifiesto, .enfoque, .ar-bloque, .ar-cuerpo { -webkit-user-select: none; user-select: none; }
.ck-banner:not(.visible), .ck-fondo:not(.abierto) { opacity: 0; pointer-events: none; visibility: hidden; }
img { display: block; }

.lienzo { position: relative; width: calc(1440 * var(--u)); margin: 0 auto; }

/* ================= HERO ================= */
/* Fondo navy de lado a lado (sin escalón en pantallas anchas) + textura de ruido */
.hero { position: relative; background: var(--navy); isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: var(--ruido, .3); mix-blend-mode: soft-light;
}
.hero__lienzo { height: calc(936 * var(--u)); z-index: 1; width: 100%; }   /* el marco ocupa todo el ancho: mismo grosor de navy a los lados que arriba */
/* la pestaña blanca de abajo: misma forma que la muesca del Figma */
.hero__muesca {
  position: absolute; left: 50%; bottom: -1px; width: calc(1440 * var(--u)); height: calc(61 * var(--u)); transform: translateX(-50%);
}

.marco {
  position: absolute;
  left: calc(54 * var(--u)); top: calc(54 * var(--u));
  width: calc(100% - 108 * var(--u)); height: calc(768 * var(--u));   /* mismo grosor de navy arriba, izquierda y derecha (54 del Figma) */
  overflow: hidden;
}
.marco__forma { position: absolute; inset: 0; width: 100%; height: 100%; }
.marco__anim {
  position: absolute; inset: 0;
  overflow: hidden;
  clip-path: url(#recorte-marco);           /* definido en main.js con la misma forma */
}

/* INTRO: la animación ocupa toda la pantalla y luego viaja al marco (main.js) */
html.intro { overflow: hidden; }
.marco__anim.anim--grande {
  position: fixed; inset: auto; left: 0; top: 0; width: 100vw; height: 100vh; height: 100dvh;
  z-index: 100; clip-path: none; background: var(--azul);
  contain: layout paint;   /* el navegador no recalcula el resto de la página mientras la animación crece/encoge */
}
.marco__anim { contain: layout paint; }

.cabecera { position: absolute; inset: 0 0 auto 0; height: calc(160 * var(--u)); }
.logo {
  position: absolute; left: calc(102 * var(--u)); top: calc(93 * var(--u));
  width: calc(363 * var(--u)); height: calc(33 * var(--u));
}
.logo .logo__kreatik, .logo .logo__studio {
  position: absolute; width: calc(168 * var(--u)); height: calc(29 * var(--u));
  background: url(../assets/logo-sprite.png) no-repeat; background-size: 100% 200%;
}
.logo .logo__kreatik { left: 0; top: calc(4 * var(--u)); background-position: 0 0; }
.logo .logo__studio { left: calc(181 * var(--u)); top: 0; background-position: 0 100%; }
/* Tech Text: la caja marca dónde va el texto (altura de mayúscula y ancho del logo);
   el lienzo es más grande para que quepan el marco de selección, las etiquetas y las líneas de la intro */
.logo__caja { position: absolute; left: 0; top: calc(6 * var(--u)); width: calc(349 * var(--u)); height: calc(25 * var(--u)); pointer-events: none; }
.logo__tech { position: absolute; inset: -34px -96px -22px -22px; color: var(--blanco); display: none; touch-action: pan-y; }
.logo__tech .tech-text-canvas { display: block; width: 100%; height: 100%; }
.tech-activo .logo__tech { display: block; }
.tech-activo .logo .logo__kreatik, .tech-activo .logo .logo__studio { visibility: hidden; }

.menu { position: absolute; inset: 0; pointer-events: none; }
.pildora {
  pointer-events: auto;
  position: absolute; top: calc(86 * var(--u)); height: calc(44 * var(--u));
  display: inline-flex; align-items: center; justify-content: center; gap: calc(12 * var(--u));
  padding: 0 calc(14 * var(--u));
  background: var(--blanco); color: var(--azul);
  border-radius: calc(97 * var(--u));
  font-weight: 900; font-size: calc(20 * var(--u)); letter-spacing: calc(-1.6 * var(--u));
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--curva), background-color .25s, color .25s, box-shadow .35s var(--curva);
}
/* alineadas al borde derecho del marco (como en Figma), así acompañan al marco cuando se ensancha */
.pildora:nth-child(1) { right: calc(641 * var(--u)); width: calc(132 * var(--u)); }
.pildora:nth-child(2) { right: calc(469 * var(--u)); width: calc(152 * var(--u)); }
.pildora:nth-child(3) { right: calc(327 * var(--u)); width: calc(125 * var(--u)); }
.pildora--oscura { right: calc(84 * var(--u)) !important; width: calc(227 * var(--u)) !important; background: var(--navy); color: var(--blanco); }
.pildora--oscura img { width: calc(22 * var(--u)); height: calc(22 * var(--u)); }
.pildora:hover, .pildora:focus-visible {
  transform: translateY(calc(-3 * var(--u)));
  background: var(--navy); color: var(--blanco);
  box-shadow: 0 calc(10 * var(--u)) calc(24 * var(--u)) rgba(5, 16, 66, .35);
  outline: none;
}
.pildora--oscura:hover, .pildora--oscura:focus-visible { background: var(--blanco); color: var(--navy); }
.pildora--oscura:hover img { filter: brightness(0) saturate(100%) invert(8%) sepia(54%) saturate(4000%) hue-rotate(225deg); }

/* entrada al cargar */
.anim-entrada { opacity: 0; transform: translateY(calc(-18 * var(--u))); }
.marco.anim-entrada { transform: scale(.965); transform-origin: 50% 60%; }
.listo .anim-entrada {
  opacity: 1; transform: none;
  transition: opacity .7s ease var(--d, 0s), transform .9s var(--curva) var(--d, 0s);
}
.listo .pildora.anim-entrada { transition: opacity .7s ease var(--d, 0s), transform .9s var(--curva) var(--d, 0s), background-color .25s, color .25s, box-shadow .35s var(--curva); }

/* ================= TÍTULO + GALERÍA ================= */
.galeria { position: relative; padding-top: calc(94 * var(--u)); width: 100%; max-width: 100%; overflow: hidden; contain: layout paint; }
.titulo {
  margin: 0; text-align: center;
  font-weight: 800; font-size: calc(56 * var(--u)); letter-spacing: calc(-3.92 * var(--u));
  line-height: 1.2; text-transform: uppercase; color: var(--azul);
}
.titulo__p { display: inline-block; padding: 0 calc(6 * var(--u)); }
.titulo__resalte {
  position: relative; color: var(--blanco); z-index: 0;
  margin: 0 calc(22 * var(--u));
  padding: 0 calc(16 * var(--u)) 0 calc(14 * var(--u));   /* aire dentro del recuadro: la L ya no toca el borde */
}
.titulo__resalte::before {
  content: ""; position: absolute; z-index: -1;
  inset: calc(4 * var(--u)) 0 calc(2 * var(--u)) 0;
  background: var(--azul); border-radius: calc(6 * var(--u));
}
/* revelado al hacer scroll: cada parte sube desde abajo, difuminada, una después de otra */
.revelar .titulo__p { opacity: 0; transform: translateY(calc(70 * var(--u))); filter: blur(14px); }
.revelar .titulo__resalte { color: var(--azul); }
.revelar .titulo__resalte::before { transform: scaleX(0); transform-origin: 0 50%; }
.revelar.visto .titulo__p { opacity: 1; transform: none; filter: blur(0); transition: opacity .8s ease, transform 1.1s var(--curva), filter 1s ease; }
.revelar.visto .titulo__p:nth-child(2) { transition-delay: .38s; }
.revelar.visto .titulo__p:nth-child(3) { transition-delay: .76s; }
.revelar.visto .titulo__resalte { color: var(--blanco); transition: opacity .8s ease .38s, transform 1.1s var(--curva) .38s, filter 1s ease .38s, color .3s ease .95s; }
.revelar.visto .titulo__resalte::before { transform: scaleX(1); transition: transform .8s var(--curva) .7s; }

/* anillo 3D: el visitante está DENTRO del cilindro, por eso las tarjetas de los lados se ven más grandes */
.anillo-escena {
  position: relative; height: calc(560 * var(--gu)); margin-top: calc(10 * var(--u));
  max-width: 100%; overflow: hidden;
  perspective: calc(540 * var(--gu)); perspective-origin: 50% 50%;
  cursor: grab; touch-action: pan-y; user-select: none;
}
.anillo-escena.arrastrando { cursor: grabbing; }
.anillo {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  transform-style: preserve-3d;
}
.tarjeta {
  position: absolute;
  width: calc(var(--tw) * var(--gu)); height: calc(var(--th) * var(--gu));
  left: calc(var(--tw) * var(--gu) / -2); top: calc(var(--th) * var(--gu) / -2);
  background: var(--azul); border-radius: calc(18 * var(--gu));
  backface-visibility: hidden;
  overflow: hidden;
}
.tarjeta img { width: 100%; height: 100%; object-fit: cover; }

/* ================= ESCENA: GALERÍA → PROYECTOS =================
   La sección mide 3 pantallas; su contenido se queda fijo (sticky) mientras main.js lee el avance del scroll. */
.escena-proy { position: relative; height: 225vh; height: 225svh; width: 100%; max-width: 100%; }
.escena-proy__fija { position: sticky; top: 0; width: 100%; max-width: 100%; height: 100vh; height: 100svh; overflow: hidden; overflow: clip; contain: layout paint; }
/* la galería ocupa toda la pantalla fija y va centrada en vertical (sin hueco blanco abajo) */
.escena-proy .galeria {
  height: 100%; padding: calc(150 * var(--u)) 0 calc(70px + 3vh); will-change: opacity, filter;   /* arriba deja sitio al logo fijo */
  display: flex; flex-direction: column; justify-content: center;
}
.escena-proy .titulo { margin-bottom: 1vh; }
/* «suelo» de luz azul bajo las tarjetas */
.anillo-escena::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -2%; height: 22%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(23, 61, 237, .22), rgba(23, 61, 237, 0) 70%);
  filter: blur(8px);
}
/* aviso para seguir bajando */
.pista-scroll {
  position: absolute; left: 50%; bottom: calc(22px + 2vh); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px; pointer-events: none;
  font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--azul); white-space: nowrap;
  animation: pista-latido 2.4s ease-in-out infinite;
}
@keyframes pista-latido { 0%, 100% { opacity: .55; transform: translate(-50%, 0); } 50% { opacity: 1; transform: translate(-50%, 4px); } }
.pista-scroll i {
  position: relative; width: 26px; height: 40px; border: 2px solid var(--azul); border-radius: 14px;
}
.pista-scroll i::before {
  content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: var(--azul); animation: pista 1.6s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes pista { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* logo fijo azul (aparece al dejar atrás el hero; encaja en el recorte del panel de proyectos) */
.logo-fijo {
  position: fixed; z-index: 60; left: calc(102 * var(--u)); top: calc(93 * var(--u));
  width: calc(363 * var(--u)); height: calc(33 * var(--u)); color: var(--azul);
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .45s ease, transform .6s var(--curva), visibility .45s;
}
.logo-fijo .logo__tech { color: var(--azul); }
.logo-fijo.visible { opacity: 1; visibility: visible; transform: none; }

/* arte de cada proyecto: foto o fondo provisional con la marca */
.arte {
  position: absolute; inset: 0; overflow: hidden; container-type: inline-size;
  background: radial-gradient(130% 95% at 78% 18%, var(--c1), var(--c2) 72%);
}
.arte::before {   /* rejilla técnica sutil, como el blueprint del logo */
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 7cqw 7cqw;
}
.arte img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.arte__nombre {
  position: absolute; left: 7cqw; right: 7cqw; top: 8cqw;
  font-weight: 900; font-size: 19cqw; line-height: .9; letter-spacing: -.04em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: max(1px, .3cqw) rgba(255,255,255,.3); overflow-wrap: anywhere;
}
.tarjeta .arte { border-radius: inherit; }

/* panel de proyectos: medidas en unidades del propio panel (cqw / cqh) para que todo escale con él */
.proy {
  position: absolute; visibility: hidden; z-index: 5;
  left: calc(54 * var(--u)); top: max(92px, calc(54 * var(--u) + 38px)); right: calc(54 * var(--u)); bottom: calc(54 * var(--u));
  border-radius: calc(28 * var(--u)); overflow: hidden; overflow: clip; contain: layout paint; container-type: size;
  background: var(--navy); color: var(--blanco); isolation: isolate;
  transform-origin: 50% 50%; will-change: transform, opacity;
  --c: 0;   /* 0 → 1: aparece el contenido (lo controla main.js) */
}
.proy__fondo, .proy__capa, .proy__velo { position: absolute; inset: 0; }
.proy__fondo-capa {
  position: absolute; inset: 0; opacity: 0; transform: scale(1.03);
  transition: opacity .65s cubic-bezier(.22, 1, .36, 1), transform .95s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform; pointer-events: none;
}
.proy__fondo-capa.activo { opacity: 1; transform: scale(1); }
/* en el fondo grande, el nombre provisional va arriba a la derecha y muy tenue (no compite con las tarjetas) */
.proy__fondo .arte__nombre, .proy__exp .arte__nombre { left: auto; right: 5cqw; top: 9cqw; width: 50cqw; text-align: right; font-size: 6.5cqw; -webkit-text-stroke-color: rgba(255,255,255,.2); }
.proy__capa { z-index: 1; pointer-events: none; }
.proy__exp { position: absolute; overflow: hidden; z-index: 1; will-change: left, top, width, height, opacity, clip-path; }
.proy__velo {
  z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,16,66,.88) 0%, rgba(5,16,66,.55) 38%, rgba(5,16,66,.12) 70%, rgba(5,16,66,0) 100%),
    linear-gradient(0deg, rgba(5,16,66,.55) 0%, rgba(5,16,66,0) 35%);
  opacity: var(--c);
}
.proy__exp .proy__velo { opacity: 1; }
.proy__seccion, .proy__info, .proy__tarjetas, .proy__nav { z-index: 3; opacity: var(--c); }
/* texto del proyecto: solo el nombre de la marca (como el título del sitio) y el botón a Behance */
.proy__info { position: absolute; left: 5cqw; top: 50%; transform: translateY(-50%); width: 38cqw; }
.proy__titulo {
  margin: 0 0 28px; font-weight: 900; text-transform: uppercase; letter-spacing: -.07em;
  font-size: min(4.6cqw, 10cqh); line-height: .92;
}
.proy__titulo .pal { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .06em 0; }
.proy__titulo .pal > span { display: inline-block; }
.proy__botones { display: flex; align-items: center; }
/* misma píldora blanca del menú del header */
.proy__ver {
  display: inline-flex; align-items: center; gap: 12px; height: 50px; padding: 0 22px 0 26px; border-radius: 99px;
  background: var(--blanco); color: var(--azul); text-decoration: none;
  font-size: 18px; font-weight: 900; letter-spacing: -1.2px; text-transform: uppercase;
  transition: background-color .25s, color .25s, transform .35s var(--curva), box-shadow .35s var(--curva);
}
.proy__ver svg { transition: transform .35s var(--curva); }
.proy__ver:hover, .proy__ver:focus-visible { background: var(--navy); color: var(--blanco); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(5,16,66,.4); outline: none; }
.proy__ver:hover svg { transform: translateX(4px); }
.proy__tarjetas {
  position: absolute; left: 47cqw; top: 50%; transform: translateY(-46%);
  height: 44cqh; display: flex; gap: 1.3cqw;
}
.proy__tarjetas { cursor: grab; touch-action: pan-y; }
.proy__tarjetas.arrastrando { cursor: grabbing; }
.proy__tarjeta {
  position: relative; flex: none; height: 100%; aspect-ratio: .66; border-radius: 14px; overflow: hidden; cursor: pointer;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35); transition: transform .45s var(--curva), box-shadow .45s var(--curva);
}
.proy__tarjeta:hover, .proy__tarjeta:focus-visible { transform: translateY(-8px); box-shadow: 0 26px 50px rgba(0,0,0,.45); outline: none; }
.proy__tlabel {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 45% 10% 10%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.65)); display: flex; flex-direction: column; gap: 4px;
}
.proy__tlabel strong { font-size: clamp(13px, 1.3cqw, 19px); font-weight: 900; line-height: 1; text-transform: uppercase; letter-spacing: -.06em; }

.proy__nav { position: absolute; left: 47cqw; right: 5cqw; bottom: 7cqh; display: flex; align-items: center; gap: 12px; }
.proy__flecha {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  background: var(--blanco); color: var(--azul); border: 0;   /* píldora blanca, como el menú */
  transition: background-color .25s, color .25s, transform .35s var(--curva);
}
.proy__flecha:hover, .proy__flecha:focus-visible { background: var(--navy); color: var(--blanco); outline: none; }
.proy__flecha:active { transform: scale(.92); }
.proy__progreso { flex: 1; display: flex; align-items: center; gap: 6px; margin: 0 18px; }
.proy__seg {
  flex: 1; height: 4px; padding: 0; border: 0; border-radius: 99px;
  background: rgba(255,255,255,.22); cursor: pointer; overflow: hidden;
  transition: flex .55s var(--curva), background-color .3s ease;
}
.proy__seg:hover, .proy__seg:focus-visible { background: rgba(255,255,255,.4); outline: none; }
.proy__seg.activo { flex: 1.7; background: rgba(255,255,255,.28); }
.proy__seg span { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--blanco); transform-origin: 0 50%; transform: scaleX(0); }
.proy__seg.hecho span { background: rgba(255,255,255,.55); transform: scaleX(1); }
.proy__num { font-weight: 900; font-size: min(4.4cqw, 9cqh); line-height: 1; height: 1em; overflow: hidden; letter-spacing: -.07em; }
.proy__num span { display: block; }

/* panel estrecho (celular): texto arriba, tarjetas y controles abajo */
@container (max-width: 760px) {
  .proy__seccion { top: 22px; left: 22px; font-size: 10px; }
  .proy__info { left: 22px; right: 22px; top: 28px; transform: none; width: auto; }
  .proy__titulo { font-size: min(13cqw, 10cqh); margin-bottom: 20px; }
  .proy__ver { height: 46px; font-size: 16px; }
  .proy__desc { max-width: none; margin: 12px 0 18px; font-size: 14px; }
  .proy__tarjetas { left: 22px; top: auto; bottom: 92px; transform: none; height: 28cqh; gap: 10px; }
  .proy__nav { left: 22px; right: 22px; bottom: 24px; gap: 10px; }
  .proy__progreso { margin: 0 8px; gap: 5px; }
  .proy__fondo .arte__nombre, .proy__exp .arte__nombre { display: none; }
  .proy__velo { background: linear-gradient(180deg, rgba(5,16,66,.85) 0%, rgba(5,16,66,.45) 45%, rgba(5,16,66,.75) 100%); }
}

/* =====================================================================
   SECCIONES DE CONTENIDO (enfoque → footer) · mismo lenguaje: Montserrat Black apretada,
   azul / navy / blanco, marcos con recorte, ruido en los navy y entrada difuminada desde abajo
   ===================================================================== */
.contenedor { width: min(100% - 2 * max(16px, 54 * var(--u)), 1332px); margin: 0 auto; position: relative; }
.titulo-sec {
  margin: 0 0 clamp(36px, 5vw, 72px); text-align: center; color: var(--azul);
  font-weight: 900; text-transform: uppercase; letter-spacing: -.07em; line-height: 1.04;
  font-size: clamp(34px, 4.4vw, 68px);
}
.titulo-sec > span { display: inline-block; }
.titulo-sec--claro { color: var(--blanco); }
.titulo-sec--izq { text-align: left; }
.resalte { padding: 0 .2em; border-radius: 6px; background: var(--azul); color: var(--blanco); }
.resalte--blanco { background: var(--blanco); color: var(--azul); }

/* entrada: sube desde abajo, difuminado, cada elemento a su tiempo (--rd) */
.rv { opacity: 0; transform: translateY(46px); filter: blur(12px); }
.rv.visto { opacity: 1; transform: none; filter: blur(0); transition: opacity .8s ease var(--rd, 0s), transform 1.1s var(--curva) var(--rd, 0s), filter 1s ease var(--rd, 0s); }

/* textura de ruido compartida por las superficies navy y azules */
.enfoque::before, .testimonios::before, .pie::before, .servicio-principal::before, .cta__marco::before, .servicio::before, .proceso__marco::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E");
  background-size: 240px 240px; opacity: .3; mix-blend-mode: soft-light;
}
.enfoque > *, .testimonios > *, .pie > *, .servicio-principal > *, .cta__marco > *, .servicio > *, .proceso__marco > * { position: relative; z-index: 1; }

/* botón píldora (mismo de «Ver proyecto» y del menú) */
.pildora-btn {
  display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 24px 0 28px; border-radius: 99px;
  background: var(--blanco); color: var(--azul); text-decoration: none; white-space: nowrap;
  font-size: 18px; font-weight: 900; letter-spacing: -1.2px; text-transform: uppercase;
  transition: background-color .25s, color .25s, transform .35s var(--curva), box-shadow .35s var(--curva);
}
.pildora-btn svg { transition: transform .35s var(--curva); }
.pildora-btn:hover, .pildora-btn:focus-visible { background: var(--navy); color: var(--blanco); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(5,16,66,.35); outline: none; }
.pildora-btn:hover svg { transform: translateX(4px); }
.pildora-btn--azul { background: var(--azul); color: var(--blanco); }
.pildora-btn--navy { background: var(--navy); color: var(--blanco); }
.pildora-btn--navy:hover { background: var(--blanco); color: var(--navy); }
.pildora-btn--navy:hover img { filter: brightness(0) saturate(100%) invert(8%) sepia(54%) saturate(4000%) hue-rotate(225deg); }

/* las piezas con [data-forma] toman la silueta del marco del header (main.js calcula el recorte; --corte = su alto) */
.forma { position: relative; }

/* ---------- 04 · Enfoque: franja navy a todo el ancho ---------- */
.enfoque { position: relative; background: var(--navy); color: var(--blanco); padding: clamp(80px, 9vw, 140px) 0; overflow: hidden; isolation: isolate; }
.enfoque__rejilla {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.22) 1.2px, transparent 1.4px);
  background-size: 48px 48px;
  mask-image: radial-gradient(90% 80% at 50% 50%, #000 30%, transparent 85%);
}
.enfoque .titulo-sec { font-size: clamp(36px, 5vw, 86px); line-height: .98; text-align: left; margin-bottom: clamp(26px, 3vw, 44px); }
.enfoque .titulo-sec > span { display: block; width: fit-content; }
.enfoque .titulo-sec .resalte { margin-top: .08em; }
.enfoque__texto { max-width: 680px; margin: 0 0 0 auto; font-size: clamp(17px, 1.4vw, 23px); line-height: 1.55; color: rgba(255,255,255,.78); }
/* cursor de escritura del párrafo */
.caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; vertical-align: -.15em; background: var(--blanco); animation: caret 1s steps(1) infinite; transition: opacity .6s; }
.caret--fin { opacity: 0; }
@keyframes caret { 50% { opacity: 0; } }
.enfoque__texto strong { color: var(--blanco); font-weight: 800; }

/* ---------- 04B · Serie «Desde el boceto hasta la marca» ---------- */
/* mismo navy liso que «Aquí se piensa» (sin degradado), con la textura de ruido */
.serie { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); color: var(--blanco); padding: clamp(60px, 7vw, 110px) 0; }
.serie::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E");
  background-size: 240px 240px; opacity: .3; mix-blend-mode: soft-light;
}
/* izquierda: textos y logo · derecha: teléfono */
.serie__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 60px); min-height: clamp(620px, 52vw, 780px); }
.serie__cabeza { position: relative; z-index: 3; }
.serie__chip {
  display: inline-flex; margin: 0; padding: 9px 18px; border-radius: 99px; border: 1px solid rgba(255,255,255,.28);
  font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.85);
  background: rgba(5,16,66,.6); backdrop-filter: blur(6px);
}
.serie__logo { margin: clamp(22px, 2.6vw, 34px) 0 clamp(18px, 2vw, 26px); }
.serie__logo img { display: block; width: min(560px, 100%); height: auto; }
.serie__texto { margin: 0 0 30px; max-width: 480px; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.6; color: rgba(255,255,255,.75); }
.serie__botones { display: flex; flex-wrap: wrap; gap: 14px; }
/* sobre navy, el hover pasa a azul (si fuera navy desaparecería) */
.serie .pildora-btn:not(.pildora-btn--contorno):hover, .serie .pildora-btn:not(.pildora-btn--contorno):focus-visible { background: var(--azul); color: var(--blanco); }
.serie .pildora-btn:not(.pildora-btn--contorno):hover svg path:first-child { fill: var(--blanco); }
.serie .pildora-btn:not(.pildora-btn--contorno):hover svg path:last-child { fill: var(--azul); }
.pildora-btn--contorno { background: transparent; color: var(--blanco); box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.pildora-btn--contorno:hover, .pildora-btn--contorno:focus-visible { background: var(--blanco); color: var(--navy); box-shadow: none; }

.serie__escenario { position: relative; z-index: 2; height: clamp(600px, 50vw, 760px); perspective: 1400px; }
/* cinta de miniaturas: cruza toda la sección por detrás y se desvanece hacia la izquierda (bajo el texto) */
.serie__cinta {
  position: absolute; z-index: 1; top: 50%; transform: translateY(-50%); overflow: hidden; padding: 24px 0;
  left: calc(50% - 50vw); right: calc(50% - 50vw);
  mask-image: linear-gradient(90deg, transparent 40%, rgba(0,0,0,.18) 50%, #000 68%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, rgba(0,0,0,.18) 50%, #000 68%, #000 95%, transparent);
}
.serie__pista { display: flex; gap: clamp(14px, 1.6vw, 24px); width: max-content; animation: cinta 46s linear infinite; }
.serie__cinta:hover .serie__pista { animation-play-state: paused; }
@keyframes cinta { to { transform: translateX(-50%); } }
.ep {
  position: relative; flex: none; width: clamp(140px, 12vw, 200px); aspect-ratio: 9 / 16; padding: 0; border: 0; border-radius: 20px; overflow: hidden;
  background: var(--navy); cursor: pointer; box-shadow: 0 20px 40px rgba(0,0,0,.45);
  transition: transform .45s var(--curva), box-shadow .45s var(--curva);
}
.ep img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ep:hover, .ep:focus-visible { transform: translateY(-10px) scale(1.03); box-shadow: 0 30px 60px rgba(0,0,0,.55); outline: none; }
.ep__info {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40% 12px 12px; text-align: left; color: var(--blanco);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.75)); display: flex; flex-direction: column; gap: 2px;
}
.ep__info small { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.ep__info strong { font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: -.04em; }
/* teléfono */
.telefono {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 3;
  width: clamp(230px, 19vw, 300px); aspect-ratio: 9 / 19.5;
  transform-style: preserve-3d; will-change: transform;
}
/* el cuerpo gira en 3D (frente = pantalla, dorso = parte trasera); se arrastra para darle la vuelta */
.telefono__cuerpo { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateZ(-4deg); cursor: grab; touch-action: pan-y; }
.telefono.girando .telefono__cuerpo { cursor: grabbing; }
.telefono__cuerpo > .telefono__marco { backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 50px 80px rgba(0,0,0,.55), 0 0 70px rgba(23,61,237,.3), inset 0 0 0 1.5px rgba(255,255,255,.14), inset 0 0 0 4px #07080b; }
.telefono__dorso {
  position: absolute; inset: 0; border-radius: 46px; transform: rotateY(180deg); backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: radial-gradient(120% 80% at 30% 20%, #3a3f4c, #15171d 60%, #0b0c10); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14), 0 50px 80px rgba(0,0,0,.55);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.telefono__camaras { position: absolute; top: 16px; left: 16px; width: 42%; aspect-ratio: 1; border-radius: 28%; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); display: grid; grid-template-columns: 1fr 1fr; place-items: center; padding: 8%; }
.telefono__camaras i { width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2b3a6b, #05060a 60%); box-shadow: 0 0 0 3px #1c1f27, 0 0 0 4px rgba(255,255,255,.1); }
.telefono__marca { margin: 0; color: rgba(255,255,255,.85); font-size: 22px; font-weight: 900; letter-spacing: -.04em; }
.telefono__marca span { font-weight: 200; letter-spacing: .2em; margin-left: 4px; }
.telefono__sombra { position: absolute; left: 10%; right: 10%; bottom: -46px; height: 40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.6), rgba(0,0,0,0)); filter: blur(6px); transform: translateZ(-60px); }
.telefono__marco {
  position: relative; width: 100%; height: 100%; padding: 9px; border-radius: 46px; background: linear-gradient(145deg, #2b2f3a, #0b0c10 45%, #1c1f27);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14), inset 0 0 0 4px #07080b;
}
.telefono__isla { position: absolute; z-index: 6; top: 18px; left: 50%; transform: translateX(-50%); width: 30%; height: 24px; border-radius: 20px; background: #000; }
.telefono__pantalla { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: #000; }
.telefono__feed { height: 100%; will-change: transform; }
.reel { position: relative; height: 100%; overflow: hidden; }
.reel__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__ui {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px 14px 20px;
  font-size: 12px; color: var(--blanco); background: linear-gradient(180deg, transparent 52%, rgba(0,0,0,.65));
}
.reel__ui--logo { align-items: center; background: none; }
.reel__marca { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; opacity: .7; color: #111; }
.reel__acciones { position: absolute; right: 10px; bottom: 120px; display: flex; flex-direction: column; gap: 16px; }
.reel__autor { display: flex; align-items: center; gap: 8px; }
.reel__avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--azul); font-weight: 900; font-size: 13px; box-shadow: 0 0 0 2px var(--blanco); }
.reel__seguir { padding: 3px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.8); font-size: 11px; font-weight: 700; }
.reel__pie p { margin: 10px 46px 12px 0; font-size: 11.5px; line-height: 1.45; }
.reel__ver {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 8px 13px; border-radius: 99px;
  background: var(--blanco); color: var(--navy); font-size: 11px; font-weight: 900; letter-spacing: -.02em; text-transform: uppercase; text-decoration: none;
}
.reel__arriba { position: absolute; z-index: 5; top: 52px; left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: center; color: var(--blanco); font-size: 16px; font-weight: 800; pointer-events: none; text-shadow: 0 1px 6px rgba(0,0,0,.4); }

@media (max-width: 767px) {
  .serie__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .serie__cabeza { text-align: left; min-width: 0; }
  .serie__chip { margin-left: 0; }
  .serie__logo img { margin: 0; width: min(360px, 100%); }
  .serie__texto { margin-left: 0; margin-right: 0; text-align: left; max-width: 100%; }
  .serie__botones { justify-content: flex-start; }
  .serie__escenario { height: 560px; max-width: 100%; }
  .telefono { width: 230px; }
  .reel__acciones { bottom: 148px; gap: 12px; }
  .ep { width: 128px; border-radius: 14px; }
  .serie__cinta { top: auto; bottom: 280px; transform: translateY(50%); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
  .serie__botones .pildora-btn { width: 100%; justify-content: center; }
  .pildora-btn { max-width: 100%; height: auto; min-height: 48px; padding: 12px 18px; white-space: normal; text-align: center; justify-content: center; font-size: 15px; line-height: 1.15; box-sizing: border-box; }
  .cta__botones { flex-direction: column; align-items: stretch; }
  .cta__botones .pildora-btn { width: 100%; }
  .cta__marco .titulo-sec { font-size: clamp(24px, 6.8vw, 38px); line-height: 1.12; }
}

/* ---------- 05 · Servicios ---------- */
.servicios { padding: clamp(90px, 10vw, 150px) 0 clamp(60px, 7vw, 110px); }

/* «Cómo trabajamos»: entrada de plano (js/proceso.js) · rejilla → guías → alambres → relleno */
.proceso__plano {
  position: absolute; inset: 0; z-index: 0 !important; pointer-events: none; opacity: 0; transition: opacity .9s ease;
  background-image: linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px);
  background-size: 44px 44px;
}
.bp-1 .proceso__plano { opacity: 1; }
.bp-listo .proceso__plano { opacity: .35; }
.guia { position: absolute; background: rgba(255,255,255,.6); transition: transform 1s cubic-bezier(.65,0,.25,1) var(--gd, 0s), opacity .7s ease; }
.guia--v { top: 0; bottom: 0; width: 1px; transform: scaleY(0); transform-origin: 50% 0; }
.guia--h { left: 0; right: 0; height: 1px; transform: scaleX(0); transform-origin: 0 50%; }
.bp-1 .guia--v { transform: scaleY(1); }
.bp-1 .guia--h { transform: scaleX(1); }
.guia--cota { background: none; color: var(--blanco); font: 500 11px ui-monospace, Menlo, Consolas, monospace; opacity: 0; transition: opacity .5s ease var(--gd, 0s); }
.bp-2 .guia--cota { opacity: .85; }
.bp-listo .guia { opacity: 0; }
.proceso__marco .paso, .proceso__marco .paso h3, .proceso__marco .paso p, .proceso__marco .paso__num, .proceso__marco .titulo-sec, .proceso__marco .titulo-sec .resalte {
  transition: background-color .7s ease, border-color .7s ease, color .6s ease, opacity .6s ease, transform .9s var(--curva), -webkit-text-stroke-color .6s ease, box-shadow .6s ease, outline-color .6s ease;
}
.proceso__marco .paso:nth-child(2), .proceso__marco .paso:nth-child(2) * { transition-delay: .1s; }
.proceso__marco .paso:nth-child(3), .proceso__marco .paso:nth-child(3) * { transition-delay: .2s; }
.proceso__marco .paso:nth-child(4), .proceso__marco .paso:nth-child(4) * { transition-delay: .3s; }
.bp-espera .paso, .bp-1:not(.bp-2) .paso, .bp-espera .titulo-sec, .bp-1:not(.bp-2) .titulo-sec { opacity: 0; transform: translateY(18px); }
/* alambre: contorno discontinuo sobre el azul, sin relleno */
.bp-2:not(.bp-3) .paso { background: transparent; border: 1.5px dashed rgba(255,255,255,.8); box-shadow: none; }
.bp-2:not(.bp-3) .paso h3, .bp-2:not(.bp-3) .paso p { opacity: 0; transform: translateY(14px); }
.bp-2:not(.bp-3) .paso__num { -webkit-text-stroke-color: rgba(255,255,255,.85); }
.bp-2:not(.bp-3) .titulo-sec { color: transparent; -webkit-text-stroke: 1.5px var(--blanco); }
.bp-2:not(.bp-3) .titulo-sec .resalte { background: transparent; color: transparent; outline: 1.5px dashed var(--blanco); }
.proceso__marco:not(.bp-3) .proceso__pasos::before { opacity: 0; }
.proceso__pasos::before { transition: opacity .8s ease .6s; }

/* escena «cinta 3D → cuadrícula» (js/hacemos.js) */
.hacemos { height: 290vh; padding: 0; }
.hacemos__fija { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; perspective: 1200px; }
.hacemos__contenido { position: relative; z-index: 3; padding: clamp(24px, 3vh, 40px) 0; }
.hacemos .titulo-sec { margin-bottom: clamp(18px, 3vh, 34px); }
.hacemos__palabras { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 2vh; pointer-events: none; overflow: hidden; }
.hacemos__palabra {
  display: flex; width: max-content; margin: 0; white-space: nowrap; will-change: transform;
  font-weight: 900; font-size: clamp(90px, 12vw, 210px); line-height: .9; letter-spacing: -.07em; text-transform: uppercase; color: var(--azul);
}
.hacemos__palabra span { padding-right: .3em; }
.hacemos__palabra--contorno { color: transparent; -webkit-text-stroke: 2px var(--azul); margin-left: -20vw; }
.hacemos__cinta { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 2; transform-style: preserve-3d; pointer-events: none; }
.hc-tile {
  position: absolute; left: 0; top: 0; overflow: hidden; border-radius: 16px; background: var(--navy);
  box-shadow: 0 24px 50px rgba(5,16,66,.28); will-change: transform, width, height;
}
.hc-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hc-tile--serv { display: flex; flex-direction: column; justify-content: space-between; padding: 16px 18px; color: var(--blanco); }
.hc-tile--principal { background: var(--azul); }
.hc-tile__num { font-size: 40px; font-weight: 900; line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.4px rgba(255,255,255,.45); }
.hc-tile strong { font-size: clamp(14px, 1.2vw, 20px); font-weight: 900; line-height: 1; letter-spacing: -.05em; text-transform: uppercase; }
.hc-tile--principal strong { font-size: clamp(18px, 2vw, 34px); }
/* cuadrícula final tipo bento: principal grande a la izquierda + 4 */
.bento { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: clamp(12px, 1.2vw, 18px); height: min(560px, calc(100vh - 300px)); min-height: 380px; }
.bento .servicio-principal { grid-row: 1 / 3; min-height: 0; padding-left: clamp(24px, 2.6vw, 44px); padding-right: clamp(24px, 2.6vw, 44px); }
.bento .servicio-principal h3 { font-size: clamp(30px, 3.3vw, 56px); }
.bento .servicio-principal p { font-size: clamp(15px, 1.15vw, 19px); }
.bento .servicio-principal__num { font-size: clamp(90px, 10vw, 170px); opacity: .7; }
.bento .servicio { min-height: 0; }
.hacemos .emprende { margin-top: clamp(12px, 2vh, 20px); }
/* sin escena (celular / reducir movimiento): la cuadrícula normal */
.hacemos--plano { height: auto; padding: clamp(80px, 9vw, 130px) 0 clamp(60px, 7vw, 100px); }
.hacemos--plano .hacemos__fija { position: static; height: auto; overflow: visible; display: block; perspective: none; }
.hacemos--plano .hacemos__cinta, .hacemos--plano .hacemos__palabras { display: none; }
.hacemos--plano .bento { height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
.hacemos--plano .bento .servicio-principal { grid-row: auto; grid-column: 1 / -1; min-height: 380px; }
.hacemos--plano .bento .servicio { min-height: 170px; }
.servicio-principal {
  overflow: hidden; color: var(--blanco); background: var(--azul);
  padding: calc(var(--corte, 110px) + clamp(24px, 3vw, 48px)) clamp(26px, 4vw, 64px) clamp(32px, 4vw, 64px);
  min-height: 440px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 28px;
}
.chip {
  position: absolute; top: calc(var(--corte, 110px) * .5 - 18px); right: clamp(24px, 3vw, 44px);
  display: inline-flex; align-items: center; height: 36px; padding: 0 18px; border-radius: 99px;
  background: var(--blanco); color: var(--azul); font-size: 14px; font-weight: 900; letter-spacing: -.5px; text-transform: uppercase;
}
.servicio-principal h3 { margin: 0 0 18px; font-size: clamp(38px, 5.4vw, 88px); font-weight: 900; line-height: .95; letter-spacing: -.07em; text-transform: uppercase; }
.servicio-principal p { margin: 0; max-width: 560px; font-size: clamp(17px, 1.4vw, 22px); line-height: 1.5; color: rgba(255,255,255,.85); }
.servicio-principal__num, .servicio__num, .paso__num {
  font-weight: 900; letter-spacing: -.06em; line-height: .8; color: transparent;
}
.servicio-principal__num {
  position: absolute; right: clamp(20px, 3vw, 48px); bottom: clamp(16px, 2vw, 30px);
  font-size: clamp(120px, 16vw, 250px); -webkit-text-stroke: 2px rgba(255,255,255,.28);
}
.servicios__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.4vw, 20px); margin: clamp(12px, 1.4vw, 20px) 0 clamp(28px, 3vw, 44px); }
.servicio {
  position: relative; overflow: hidden; min-height: 230px; padding: 28px; border-radius: 28px; background: var(--navy); color: var(--blanco);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .5s var(--curva), background-color .35s ease, box-shadow .5s var(--curva);
}
.servicio__num { font-size: 64px; -webkit-text-stroke: 1.6px rgba(255,255,255,.4); transition: -webkit-text-stroke-color .35s, color .35s; }
.servicio h3 { margin: 0; font-size: clamp(22px, 2vw, 30px); font-weight: 900; letter-spacing: -.06em; line-height: 1; text-transform: uppercase; }
.servicio:hover { transform: translateY(-8px); background: var(--azul); box-shadow: 0 24px 50px rgba(23,61,237,.28); }
.servicio:hover .servicio__num { color: var(--blanco); -webkit-text-stroke-color: var(--blanco); }
.emprende {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px 14px 14px clamp(22px, 3vw, 40px); border: 2px solid var(--azul); border-radius: 99px;
}
.emprende p { margin: 0; font-size: clamp(16px, 1.5vw, 22px); color: var(--navy); }
.emprende strong { color: var(--azul); font-weight: 900; text-transform: uppercase; letter-spacing: -.04em; }
.emprende .pildora-btn { background: var(--azul); color: var(--blanco); }
.emprende .pildora-btn:hover { background: var(--navy); }

/* ---------- 06 · Proceso ---------- */
.proceso { padding: clamp(20px, 3vw, 40px) 0 0; }   /* sin espacio abajo: el carnet cuelga justo debajo de la tarjeta */
/* marco azul grande con la forma del header, casi a pantalla completa */
.contenedor--ancho { width: calc(100% - 2 * max(12px, 54 * var(--u))); max-width: none; }
.proceso__marco {
  position: relative; overflow: hidden; background: var(--azul); border-radius: 28px;
  min-height: calc(100vh - 2 * max(12px, 54 * var(--u)));
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--corte, 110px) + clamp(14px, 2vw, 30px)) clamp(22px, 4vw, 68px) clamp(44px, 5vw, 80px);
}
.proceso__marco .titulo-sec { font-size: clamp(34px, 5.2vw, 88px); margin-bottom: clamp(28px, 3.6vw, 52px); }
.proceso__marco .proceso__pasos { width: min(100%, 1332px); margin: 0 auto; }
.proceso__pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.3vw, 20px); position: relative; }
.proceso__pasos::before {   /* línea punteada que une los pasos */
  content: ""; position: absolute; left: 6%; right: 6%; top: 82px; border-top: 2px dashed rgba(255,255,255,.45);
}
.paso {
  position: relative; background: var(--blanco); border-radius: 24px; padding: clamp(20px, 1.8vw, 28px);
  border: 1.5px solid rgba(23,61,237,.18); transition: border-color .35s, transform .5s var(--curva), box-shadow .5s var(--curva);
}
.paso::before, .paso::after {   /* marcas de esquina, como el blueprint del logo */
  content: ""; position: absolute; width: 9px; height: 9px; border: 1.5px solid var(--blanco); background: var(--azul);
}
.paso::before { top: -5px; left: -5px; } .paso::after { bottom: -5px; right: -5px; }
.paso__num { display: block; font-size: clamp(46px, 4.2vw, 72px); -webkit-text-stroke: 2px var(--azul); margin-bottom: 12px; transition: color .35s; }
.paso__icono { position: absolute; top: clamp(26px, 2.4vw, 38px); right: clamp(26px, 2.4vw, 38px); width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: rgba(23,61,237,.08); color: var(--azul); transition: background-color .35s, color .35s, transform .5s var(--curva); }
.paso__icono svg { width: 32px; height: 32px; }
.paso:hover .paso__icono { background: var(--azul); color: var(--blanco); transform: rotate(-6deg) scale(1.06); }
.bp-2:not(.bp-3) .paso__icono { background: transparent; color: var(--blanco); outline: 1.5px dashed rgba(255,255,255,.6); }
.paso h3 { margin: 0 0 10px; color: var(--azul); font-size: clamp(19px, 1.5vw, 24px); font-weight: 900; letter-spacing: -.055em; text-transform: uppercase; line-height: 1.02; }
.paso p { margin: 0; color: rgba(5,16,66,.72); font-size: 15px; line-height: 1.5; }
.paso:hover { border-color: var(--azul); transform: translateY(-6px); box-shadow: 0 22px 44px rgba(23,61,237,.14); }
.paso:hover .paso__num { color: var(--azul); }

/* ---------- 07 · Fundador: carnet 3D colgando + texto dentro del marco con recorte ---------- */
.fundador { position: relative; padding: 0 0 clamp(100px, 11vw, 170px); }
.fundador__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 5vw, 90px); align-items: stretch; }
.carnet { position: relative; min-height: clamp(700px, 58vw, 900px); }
/* el lienzo del carnet cubre toda la sección y no bloquea los clics (js/lanyard.js agarra solo si tocas el carnet) */
.carnet__lienzo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: 3; }
.fundador__texto {
  align-self: center; margin-top: clamp(60px, 8vw, 140px); overflow: hidden; color: var(--blanco); background: var(--navy); border-radius: 28px;
  padding: calc(var(--corte, 110px) + clamp(28px, 3.4vw, 56px)) clamp(28px, 5.4vw, 92px) clamp(44px, 5.4vw, 88px);
}
.fundador__texto::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E");
  background-size: 240px 240px; opacity: .3; mix-blend-mode: soft-light;
}
.fundador__texto > * { position: relative; }
.fundador__texto p { margin: 0 0 26px; max-width: 34em; font-size: clamp(17px, 1.3vw, 21px); line-height: 1.8; color: rgba(255,255,255,.82); }
.fundador .titulo-sec { margin-bottom: clamp(30px, 3vw, 46px); }
.fundador__firma { margin-top: 36px !important; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); font-weight: 900; color: var(--blanco) !important; text-transform: uppercase; letter-spacing: -.03em; font-size: 15px !important; opacity: .9; }
.fundador__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; margin-top: 40px; }
.redes { display: flex; gap: 10px; }
.redes a {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.55); color: var(--blanco); transition: background-color .25s, color .25s, transform .35s var(--curva), border-color .25s;
}
.redes a:hover, .redes a:focus-visible { background: var(--blanco); color: var(--azul); border-color: var(--blanco); transform: translateY(-3px); outline: none; }
/* ---------- 08 · Testimonios ---------- */
.testimonios { position: relative; background: var(--navy); padding: clamp(90px, 10vw, 150px) 0; overflow: hidden; isolation: isolate; }
.testimonios__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.testimonio {
  margin: 0; padding: clamp(28px, 2.6vw, 40px); border-radius: 28px; color: var(--blanco);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  display: flex; flex-direction: column; justify-content: space-between; min-height: 240px;
  transition: background-color .35s, transform .5s var(--curva);
}
.testimonio::before { content: "“"; font-size: 90px; line-height: .6; font-weight: 900; color: var(--azul); }
.testimonio blockquote { margin: 18px 0 28px; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; }
.testimonio figcaption { font-size: 14px; color: rgba(255,255,255,.65); }
.testimonio figcaption strong { color: var(--blanco); text-transform: uppercase; letter-spacing: -.02em; }
.testimonio:hover { background: rgba(255,255,255,.09); transform: translateY(-6px); }

/* ---------- 09 · Cierre ---------- */
.cta { padding: clamp(80px, 9vw, 140px) 0; }
.cta__marco {
  overflow: hidden; background: var(--azul); color: var(--blanco); text-align: center; border-radius: 28px;
  padding: calc(var(--corte, 110px) + clamp(20px, 3vw, 50px)) clamp(22px, 5vw, 80px) clamp(50px, 6vw, 96px);
}
.cta__marco .titulo-sec { margin-bottom: 24px; font-size: clamp(34px, 5vw, 80px); }
.cta__marco p { margin: 0 auto 36px; max-width: 640px; font-size: clamp(17px, 1.4vw, 22px); line-height: 1.5; color: rgba(255,255,255,.85); }
.cta__botones { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Footer ---------- */
.pie { position: relative; background: var(--navy); color: rgba(255,255,255,.7); padding: clamp(60px, 7vw, 100px) 0 28px; overflow: hidden; isolation: isolate; }
.pie a { color: var(--blanco); text-decoration: none; transition: opacity .2s; }
.pie a:hover { opacity: .7; }
.pie__fila { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; font-size: 15px; }
.pie__fila p { margin: 0 0 6px; }
.pie__marca { color: var(--blanco); font-size: 26px; font-weight: 900; letter-spacing: -.04em; text-transform: uppercase; }
.pie__marca span { font-weight: 200; letter-spacing: .28em; margin-left: 6px; }
.pie__der { text-align: right; }
.pie__redes { display: flex; gap: 22px; justify-content: flex-end; margin-bottom: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; }
.pie__gigante { margin: clamp(30px, 5vw, 70px) 0 0; user-select: none; }
.pie__gigante-texto {   /* respaldo si no carga el script */
  margin: 0; font-size: clamp(90px, 22vw, 330px); font-weight: 900; line-height: .8; letter-spacing: -.07em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.18); text-align: center;
}
.pie__gigante svg { display: block; width: 100%; height: auto; overflow: visible; }
/* cada letra: contorno tenue + nodos; al pasar el cursor se enciende en azul con sus tiradores */
.pie-letra__forma { fill: rgba(255,255,255,.04); stroke: rgba(255,255,255,.28); stroke-width: 1.5px; vector-effect: non-scaling-stroke; transition: fill .45s ease, stroke .45s ease, filter .45s ease; }
.pie-letra__nodos rect, .pie-letra__nodos circle { fill: var(--navy); stroke: rgba(255,255,255,.42); stroke-width: 1.2px; vector-effect: non-scaling-stroke; transition: stroke .35s ease, fill .35s ease; }
.pie-letra__tiradores { opacity: 0; transition: opacity .35s ease; }
.pie-letra__tiradores line { stroke: rgba(255,255,255,.7); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.pie-letra__tiradores circle { fill: var(--blanco); }
.pie-letra { cursor: default; }
.pie-nodo { cursor: grab; }
.pie-nodo__zona { fill: transparent; stroke: none !important; }
.pie-letra--activa .pie-letra__forma { fill: var(--azul); stroke: #8EA4FF; filter: drop-shadow(0 0 28px rgba(23,61,237,.9)); }
.pie-letra--activa .pie-letra__tiradores { opacity: 1; }
.pie-letra--activa .pie-letra__nodos rect, .pie-letra--activa .pie-letra__nodos circle:not(.pie-nodo__zona) { stroke: var(--blanco); fill: var(--azul); }
.pie__gigante svg { touch-action: none; }
.pie-letra:hover .pie-letra__forma { fill: var(--azul); stroke: #8EA4FF; filter: drop-shadow(0 0 28px rgba(23,61,237,.9)); }
.pie-letra:hover .pie-letra__nodos rect, .pie-letra:hover .pie-letra__nodos circle { stroke: var(--blanco); fill: var(--azul); }
.pie-letra:hover .pie-letra__tiradores { opacity: 1; }
.pie__base { display: flex; justify-content: space-between; gap: 20px; margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }

@media (max-width: 1120px) {
  .proceso__pasos { grid-template-columns: repeat(2, 1fr); }
  .proceso__pasos::before { display: none; }
}
@media (max-width: 960px) {
  .servicios__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonios__grid { grid-template-columns: minmax(0, 1fr); }
  .fundador__grid { grid-template-columns: minmax(0, 1fr); }
  .fundador__texto, .carnet { min-width: 0; max-width: 100%; }
  .carnet { min-height: 540px; }
  .fundador__texto { margin-top: 0; }
}
@media (max-width: 640px) {
  .proceso__pasos { grid-template-columns: minmax(0, 1fr); }
  .paso { min-width: 0; max-width: 100%; }
}
@media (max-width: 600px) {
  .servicios__grid { grid-template-columns: 1fr 1fr; }
  .servicio { min-height: 170px; padding: 20px; }
  .servicio__num { font-size: 46px; }
  .servicio-principal { min-height: 380px; }
  .emprende { flex-direction: column; align-items: flex-start; border-radius: 28px; padding: 22px; }
  .pildora-btn { height: 50px; font-size: 16px; }
  .pie__fila, .pie__base { flex-direction: column; }
  .pie__der { text-align: left; } .pie__redes { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; filter: none; } }

/* rejilla de puntos interactiva (js/puntos.js): va detrás del contenido de cada sección */
[data-puntos]:not(.escena-proy__fija) { position: relative; }
.puntos { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; }
[data-puntos] > :not(.puntos):not(.proy) { position: relative; z-index: 1; }
.escena-proy__fija > .proy { z-index: 5; }
/* brillo de las tarjetas inclinables (js/tilt.js) */
.tilt-brillo { position: absolute !important; inset: 0; z-index: 4 !important; pointer-events: none; opacity: 0; border-radius: inherit; mix-blend-mode: soft-light; }
[data-tilt] { will-change: transform; }

/* cursor de colaborador estilo programa de diseño (js/cursor.js) */
html.cursor-k-activo, html.cursor-k-activo * { cursor: none !important; }
.cursor-k { position: fixed; inset: 0; z-index: 10000; pointer-events: none; opacity: 0; transition: opacity .2s ease; }
.cursor-k.visible { opacity: 1; }
.cursor-k__flecha, .cursor-k__etiqueta { position: absolute; left: 0; top: 0; will-change: transform; }
.cursor-k__flecha {
  fill: var(--azul); stroke: var(--blanco); stroke-width: 1.6; overflow: visible;
  filter: drop-shadow(0 2px 4px rgba(5,16,66,.35)); transform-origin: 3px 2px; transition: scale .15s ease, fill .2s, stroke .2s;
}
.cursor-k__etiqueta {
  padding: 5px 10px 5px 9px; border-radius: 3px 12px 12px 12px; background: var(--azul); color: var(--blanco);
  font: 800 12px/1 Montserrat, system-ui, sans-serif; letter-spacing: -.02em; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(5,16,66,.28); transition: background-color .2s, color .2s;
}
.cursor-k[data-tema="oscuro"] .cursor-k__flecha { fill: var(--blanco); stroke: var(--azul); }
.cursor-k[data-tema="oscuro"] .cursor-k__etiqueta { background: var(--blanco); color: var(--azul); }
.cursor-k.pulsado .cursor-k__flecha { scale: .85; }
.cursor-k.pulsado .cursor-k__etiqueta { opacity: 0; transition: opacity .12s; }   /* al arrastrar o seleccionar, la etiqueta no estorba */
.cursor-k__texto { position: absolute; left: 0; top: 0; opacity: 0; stroke: var(--azul); stroke-width: 2px; filter: drop-shadow(0 1px 2px rgba(255,255,255,.8)); will-change: transform; }
.cursor-k[data-tema="oscuro"] .cursor-k__texto { stroke: var(--blanco); filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.cursor-k.modo-texto .cursor-k__texto { opacity: 1; }
.cursor-k.modo-texto .cursor-k__flecha, .cursor-k.modo-texto .cursor-k__etiqueta { opacity: 0; }
.cursor-k__flecha, .cursor-k__etiqueta { transition: opacity .15s ease; }
.cursor-k.enlace .cursor-k__etiqueta { padding-right: 12px; }

/* ---------- regla de scroll + botón subir/bajar (js/regla.js) ---------- */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }   /* la regla reemplaza la barra del navegador */
.regla {
  position: fixed; z-index: 70; top: 50%; right: 10px; height: min(70vh, 620px); width: 34px; transform: translateY(-50%);
  border-radius: 10px; background: rgba(255,255,255,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(5,16,66,.16), inset 0 0 0 1px rgba(23,61,237,.14); transition: opacity .4s ease, width .3s var(--curva);
}
.regla__escala { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.regla__escala line { stroke: rgba(5,16,66,.35); stroke-width: 1; }
.regla__escala line.mayor { stroke: rgba(5,16,66,.7); }
.regla__escala text { font: 600 7.5px ui-monospace, Menlo, Consolas, monospace; fill: rgba(5,16,66,.6); }
.regla__marca { position: absolute; left: 2px; width: 30px; height: 12px; margin-top: -6px; padding: 0; border: 0; background: none; cursor: pointer; }
.regla__marca::before { content: ""; position: absolute; right: 3px; top: 3px; width: 6px; height: 6px; border-radius: 2px; background: var(--azul); }
.regla__marca span {
  position: absolute; right: 40px; top: 50%; transform: translate(6px, -50%); opacity: 0; pointer-events: none; white-space: nowrap;
  padding: 5px 10px; border-radius: 3px 12px 12px 12px; background: var(--azul); color: var(--blanco); font: 800 11px Montserrat, sans-serif; letter-spacing: -.01em;
  transition: opacity .2s, transform .3s var(--curva);
}
.regla__marca:hover span, .regla__marca:focus-visible span { opacity: 1; transform: translate(0, -50%); }
.regla__indicador { position: absolute; left: -6px; right: -2px; top: 0; height: 0; cursor: ns-resize; outline: none; will-change: transform; }
.regla__linea { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--azul); box-shadow: 0 0 0 2px rgba(255,255,255,.7); }
.regla__valor {
  position: absolute; right: 42px; top: 0; transform: translateY(-50%); padding: 4px 8px; border-radius: 6px;
  background: var(--azul); color: var(--blanco); font: 700 10px ui-monospace, Menlo, Consolas, monospace; white-space: nowrap; box-shadow: 0 4px 12px rgba(23,61,237,.35);
}
.regla.activa .regla__valor, .regla__indicador:focus-visible .regla__valor { background: var(--navy); }
.boton-scroll {
  position: fixed; z-index: 70; right: 58px; bottom: 24px; width: 62px; height: 62px; border: 0; border-radius: 50%; padding: 0;
  display: grid; place-items: center; background: var(--azul); color: var(--blanco); cursor: pointer;
  box-shadow: 0 12px 30px rgba(23,61,237,.4); transition: transform .4s var(--curva), opacity .4s ease, background-color .25s;
}
.boton-scroll:hover, .boton-scroll:focus-visible { transform: translateY(-4px); outline: none; }
.boton-scroll__anillo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); }
.boton-scroll__anillo circle { fill: none; stroke-width: 3; }
.boton-scroll__anillo .fondo { stroke: rgba(255,255,255,.2); }
.boton-scroll__anillo .avance { stroke: var(--blanco); stroke-linecap: round; }
.boton-scroll__flecha { position: relative; transition: transform .5s var(--curva); animation: boton-baja 2s ease-in-out infinite; }
.boton-scroll.arriba .boton-scroll__flecha { transform: rotate(180deg); animation: boton-sube 2s ease-in-out infinite; }
@keyframes boton-baja { 0%, 100% { translate: 0 -1px; } 50% { translate: 0 3px; } }
@keyframes boton-sube { 0%, 100% { translate: 0 1px; } 50% { translate: 0 -3px; } }
html.intro .regla, html.intro .boton-scroll, html:not(.listo) .regla, html:not(.listo) .boton-scroll { opacity: 0; pointer-events: none; }
@media (max-width: 767px) { .regla { display: none; } .boton-scroll { right: 16px; bottom: 16px; width: 54px; height: 54px; } }

.menu-boton { display: none; }
/* ================= MÓVIL (hasta 767 px) =================
   El marco conserva su recorte (lo recalcula main.js al tamaño real): el logo va en la parte navy
   recortada y el botón de menú en la pestaña azul. La animación se adapta en vertical a toda la pantalla. */
@media (max-width: 767px) {
  :root { --gu: calc(100vw / 780); --pad: 14px; --corte: 58px; }

  .hero__lienzo {
    width: 100%; height: 100vh; height: 100dvh; display: flex; flex-direction: column;
    padding: max(var(--pad), env(safe-area-inset-top)) var(--pad) max(var(--pad), env(safe-area-inset-bottom));
  }
  .hero__muesca { display: none; }
  .hero__lienzo::after { display: none; }

  .marco { position: relative; left: auto; top: auto; width: 100%; height: auto; flex: 1; min-height: 0; }
  .marco__anim { inset: 0; clip-path: url(#recorte-marco); transition: background-color .3s; }

  .cabecera {
    z-index: 20;
    inset: max(var(--pad), env(safe-area-inset-top)) var(--pad) auto var(--pad);
    height: var(--corte);
  }
  .logo { left: 2px; top: 15px; width: 186px; height: 17px; transform-origin: 0 50%; }
  .logo .logo__kreatik, .logo .logo__studio { width: 86px; height: 15px; }
  .logo .logo__kreatik { left: 0; top: 2px; }
  .logo .logo__studio { left: 93px; top: 0; }
  .logo__caja { top: 3px; width: 179px; height: 13px; }
  .logo__tech { inset: -24px -36px -14px -10px; }

  /* icono hamburguesa editorial (3 trazos asimétricos → X simétrica) */
  .menu-boton {
    display: block;
    position: absolute; right: 8px; top: 8px; width: 42px; height: 42px; padding: 0;
    border: 0; border-radius: 50%; background: var(--blanco); cursor: pointer; z-index: 3;
    box-shadow: 0 4px 16px rgba(5, 16, 66, .22), inset 0 0 0 1.5px rgba(23, 61, 237, .16);
    transition: background-color .3s ease, transform .3s var(--curva), box-shadow .3s ease;
  }
  .menu-boton:active { transform: scale(.93); }
  .menu-boton span {
    position: absolute; left: 50%; top: 50%; width: 18px; height: 2.2px; border-radius: 99px;
    background: var(--azul); transform-origin: center;
    transition: transform .4s var(--curva), opacity .22s ease, width .3s var(--curva), background-color .3s ease;
  }
  .menu-boton span:nth-child(1) { transform: translate(-50%, -6px); }
  .menu-boton span:nth-child(2) { width: 12px; transform: translate(calc(-50% + 3px), -50%); }
  .menu-boton span:nth-child(3) { transform: translate(-50%, 4px); }
  .menu-boton[aria-expanded="true"] {
    background: var(--navy);
    box-shadow: 0 6px 20px rgba(5, 16, 66, .4), inset 0 0 0 1.5px rgba(255, 255, 255, .24);
  }
  .menu-boton[aria-expanded="true"] span { background: var(--blanco); width: 18px; }
  .menu-boton[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
  .menu-boton[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: translate(-50%, -50%) scaleX(0); }
  .menu-boton[aria-expanded="true"] span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

  /* menú desplegable sobre el marco */
  .menu {
    inset: calc(var(--corte) + 8px) 0 auto 0; z-index: 10; width: 100%; box-sizing: border-box;
    display: flex; flex-direction: column; gap: 10px; padding: 18px;
    background: rgba(5, 16, 66, .96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-radius: 22px; box-shadow: 0 24px 50px rgba(5, 16, 66, .55), inset 0 0 0 1px rgba(255, 255, 255, .12);
    opacity: 0; visibility: hidden; transform: translateY(-10px); pointer-events: none;
    transition: opacity .25s ease, transform .4s var(--curva), visibility .25s;
  }
  .menu.abierto { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .pildora, .pildora--oscura {
    position: static !important; width: 100% !important; height: 52px;
    font-size: 20px; letter-spacing: -1.2px; gap: 10px; border-radius: 99px;
  }
  .pildora--oscura { background: var(--azul); }
  .pildora--oscura img { width: 22px; height: 22px; }
  .pildora:hover, .pildora:focus-visible { transform: none; box-shadow: none; }
  .anim-entrada { transform: translateY(-10px); }
  .menu .pildora.anim-entrada { opacity: 1; transform: none; }

  .galeria { padding-top: 92px; }
  .titulo { font-size: clamp(24px, 7.8vw, 38px); letter-spacing: -0.07em; line-height: 1.28; padding: 0 var(--pad); }
  .titulo__p { padding: 0 4px; }
  .titulo__resalte { margin: 2px 4px; padding: 0 10px 0 9px; }
  .titulo__resalte::before { inset: 3px 0 1px 0; border-radius: 5px; }
  .revelar .titulo__p { transform: translateY(34px); filter: blur(10px); }
  .anillo-escena { margin-top: 8px; }
  .proy { left: 12px; top: 82px; right: 12px; bottom: 12px; border-radius: 22px; }
  .logo-fijo { left: 16px; top: 28px; width: 186px; height: 17px; }
  .escena-proy .galeria { padding: 94px 0 calc(110px + 2vh); }
  .pista-scroll { font-size: 10px; letter-spacing: .18em; }
  section[id] { scroll-margin-top: 88px; }
}
@media (max-width: 360px) {
  .logo { transform: scale(.86); }
}

@media (prefers-reduced-motion: reduce) {
  .anim-entrada, .revelar .titulo__p, .revelar .titulo__resalte::before { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .revelar .titulo__resalte { color: var(--blanco); }
}

/* =====================================================================
   REDISEÑO · más vida, más imagen, menos blanco
   ===================================================================== */
:root { --noche: #030A2A; }
.ruido-svg { --ruido: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E"); }

/* ---------- menú: CONTÁCTANOS en hover → letras azules ---------- */
.icono-wa {
  display: inline-block; flex: none; width: calc(22 * var(--u)); height: calc(22 * var(--u)); background: currentColor;
  -webkit-mask: url("../assets/icono-whatsapp.svg") center / contain no-repeat; mask: url("../assets/icono-whatsapp.svg") center / contain no-repeat;
}
.pildora--oscura:hover, .pildora--oscura:focus-visible { background: var(--blanco); color: var(--azul); }

/* ---------- galería: escenario nocturno con luz azul (adiós al blanco vacío) ---------- */
.escena-proy__fija { background: var(--noche); isolation: isolate; }
.escena-proy__fija::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 58%, rgba(23,61,237,.42), rgba(23,61,237,0) 70%),
    radial-gradient(40% 30% at 12% 8%, rgba(142,164,255,.16), transparent 70%),
    radial-gradient(40% 30% at 90% 95%, rgba(23,61,237,.25), transparent 70%);
}
.escena-proy__fija::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .22; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}
.escena-proy .titulo { color: var(--blanco); }
.escena-proy .tarjeta { background: #0b1550; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.anillo-escena::after { background: radial-gradient(50% 50% at 50% 50%, rgba(23,61,237,.55), rgba(23,61,237,0) 70%); }
.logo-fijo, .logo-fijo .logo__tech { color: var(--blanco); }

/* cinta de marcas reales */
.marcas { position: absolute; left: 0; right: 0; bottom: calc(14px + 2vh); display: flex; flex-direction: column; align-items: center; gap: 14px; pointer-events: none; }
.marcas__titulo { margin: 0; font: 600 11px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .26em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.marcas__cinta { width: min(1180px, 92vw); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.marcas__pista { --hueco: clamp(40px, 4.5vw, 72px); display: flex; align-items: center; gap: var(--hueco); padding-right: var(--hueco); width: max-content; animation: marcas 46s linear infinite; }
.marcas__copia { display: contents; }
.marcas__pista img { height: clamp(22px, 2.2vw, 32px); width: auto; max-width: 150px; object-fit: contain; opacity: .62; }
@keyframes marcas { to { transform: translateX(-50%); } }

/* ---------- enfoque: texto + collage del proceso real ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 600 12px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .24em; text-transform: uppercase; color: var(--azul); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.enfoque { background: var(--blanco); color: var(--navy); padding: clamp(70px, 8vw, 120px) 0; }
.enfoque::before { display: none; }
.enfoque__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(30px, 5vw, 90px); align-items: center; }
.enfoque .titulo-sec { font-size: clamp(34px, 4.1vw, 66px); color: var(--azul); margin-bottom: clamp(20px, 2.2vw, 32px); }
.enfoque__texto { margin: 0; max-width: 520px; font-size: clamp(16px, 1.25vw, 20px); color: rgba(5,16,66,.78); line-height: 1.62; }
.enfoque__texto strong { color: var(--navy); }
.enfoque__texto strong.enfoque__azul { color: var(--azul); }
.enfoque__texto.k-glass { padding: clamp(20px, 2.2vw, 28px) clamp(22px, 2.5vw, 30px); }
.enfoque .caret { background: var(--azul); }
.collage { position: relative; aspect-ratio: 1.08 / 1; perspective: 1000px; -webkit-user-select: none; user-select: none; }
.collage__pieza { position: absolute; margin: 0; padding: 0; outline: 1.5px solid var(--azul); outline-offset: 0; border-radius: 4px; background: #eef1ff; box-shadow: 0 30px 60px -20px rgba(5,16,66,.45); transition: transform .7s var(--curva), box-shadow .5s ease; transform-origin: top center; cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; }
.collage__pieza img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; pointer-events: none; -webkit-user-drag: none; -webkit-user-select: none; user-select: none; }
/* tiradores de selección estilo Figma */
.collage__pieza::before, .collage__pieza::after { content: ""; position: absolute; z-index: 2; width: 9px; height: 9px; background: var(--blanco); border: 1.5px solid var(--azul); pointer-events: none; }
.collage__pieza::before { left: -6px; top: -6px; box-shadow: calc(var(--ancho, 0px)) 0 0 -1.5px var(--azul); }
.collage__pieza::after { right: -6px; bottom: -6px; }
.collage__pieza figcaption { position: absolute; left: -1.5px; bottom: 100%; margin-bottom: 6px; padding: 3px 8px; border-radius: 3px; background: var(--azul); color: var(--blanco); font: 700 11px Montserrat, sans-serif; white-space: nowrap; pointer-events: none; -webkit-user-select: none; user-select: none; }
.collage__pieza--1 { left: 0; top: 6%; width: 58%; height: 60%; z-index: 10; }
.collage__pieza--2 { right: 0; top: 0; width: 44%; height: 44%; z-index: 11; }
.collage__pieza--3 { right: 6%; bottom: 0; width: 60%; height: 46%; z-index: 12; }
.collage__pieza.collage--arrastrable { transition: opacity .6s ease, filter .6s ease, box-shadow .28s ease !important; will-change: transform; }
.collage__pieza.collage--arrastrable:hover { box-shadow: 0 32px 64px -18px rgba(23,61,237,.36), 0 14px 28px -12px rgba(5,16,66,.22); }
.collage__pieza.esta-arrastrando, .collage__pieza.esta-arrastrando:hover { cursor: grabbing; box-shadow: 0 38px 72px -12px rgba(5,16,66,.46), 0 20px 40px -16px rgba(23,61,237,.38); }

/* ---------- servicios: paneles de imagen que se expanden ---------- */
.servicios { position: relative; background: var(--blanco); padding: clamp(80px, 9vw, 130px) 0 clamp(50px, 6vw, 90px); }
.servicios__cabeza { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: clamp(26px, 3vw, 44px); }
.servicios__cabeza .titulo-sec { font-size: clamp(34px, 4.4vw, 70px); color: var(--azul); margin: 0; }
.acordeon { display: flex; gap: clamp(8px, 1vw, 14px); height: clamp(420px, 64vh, 640px); margin-bottom: clamp(26px, 3vw, 44px); }
.panel-serv {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: clamp(18px, 1.8vw, 28px); cursor: pointer; outline: none;
  background: var(--navy); isolation: isolate; transition: flex-grow .8s var(--curva), box-shadow .5s ease;
}
.panel-serv.activo { flex-grow: 4.4; box-shadow: 0 30px 60px -24px rgba(23,61,237,.6); }
.panel-serv:focus-visible { box-shadow: 0 0 0 3px var(--azul); }
.panel-serv__fondo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); filter: saturate(.7) brightness(.75); transition: transform 1.2s var(--curva), filter .8s ease; }
.panel-serv.activo .panel-serv__fondo { transform: scale(1); filter: none; }
.panel-serv::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(3,10,42,.15) 30%, rgba(3,10,42,.92)); transition: opacity .6s; }
.panel-serv:not(.activo)::after { background: linear-gradient(180deg, rgba(23,61,237,.55), rgba(3,10,42,.9)); }
.panel-serv__vertical {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl;
  color: var(--blanco); font-size: clamp(16px, 1.4vw, 22px); font-weight: 900; letter-spacing: -.04em; text-transform: uppercase; white-space: nowrap;
  transition: opacity .35s ease;
}
.panel-serv.activo .panel-serv__vertical { opacity: 0; }
.panel-serv__info { position: absolute; left: clamp(22px, 2.4vw, 40px); right: clamp(22px, 2.4vw, 40px); bottom: clamp(22px, 2.4vw, 38px); color: var(--blanco); opacity: 0; transform: translateY(18px); transition: opacity .35s ease, transform .6s var(--curva); pointer-events: none; }
.panel-serv.activo .panel-serv__info { opacity: 1; transform: none; transition-delay: .3s; }
.panel-serv__num { display: inline-block; margin-bottom: 12px; padding: 5px 11px; border-radius: 99px; background: var(--azul); font: 700 11px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; }
.panel-serv__info h3 { margin: 0 0 8px; font-size: clamp(26px, 2.6vw, 44px); font-weight: 900; letter-spacing: -.06em; line-height: 1; text-transform: uppercase; }
.panel-serv__info p { margin: 0; max-width: 440px; font-size: clamp(15px, 1.1vw, 18px); line-height: 1.5; color: rgba(255,255,255,.82); }

/* ---------- proceso: imágenes reales en cada paso ---------- */
.paso__icono { display: none; }
.paso__imagen { display: block; aspect-ratio: 16 / 10; margin: 0 0 18px; border-radius: 14px; overflow: hidden; background: rgba(23,61,237,.08); }
.paso__imagen img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--curva), opacity .6s ease; }
.paso:hover .paso__imagen img { transform: scale(1.06); }
.paso__num { margin-bottom: 10px; font-size: clamp(44px, 3.8vw, 68px); }
.bp-2:not(.bp-3) .paso__imagen { background: transparent; outline: 1.5px dashed rgba(255,255,255,.7); }
.bp-2:not(.bp-3) .paso__imagen img, .bp-espera .paso__imagen img { opacity: 0; }

/* ---------- footer: 4 columnas, horario e iconos ---------- */
.pie__fila { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 30px 40px; align-items: start; }
.pie__etiqueta { margin: 0 0 10px !important; font: 600 11px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.pie__correo { font-size: 17px; font-weight: 800; letter-spacing: -.02em; border-bottom: 1px solid rgba(255,255,255,.3); }
.pie__redes { display: flex; gap: 12px; justify-content: flex-start; margin: 0; }
.pie__redes a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: var(--blanco); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); transition: background-color .25s, box-shadow .25s, transform .35s var(--curva), color .25s; }
.pie__redes a:hover { opacity: 1; background: var(--blanco); color: var(--azul); box-shadow: none; transform: translateY(-3px); }
.pie__redes svg { width: 20px; height: 20px; }

/* ---------- cursor ligero: etiqueta que acompaña al cursor normal ---------- */
.cursor-tag {
  position: fixed; left: 0; top: 0; z-index: 10000; pointer-events: none; padding: 5px 11px; border-radius: 3px 12px 12px 12px;
  background: var(--azul); color: var(--blanco); font: 800 12px Montserrat, sans-serif; letter-spacing: -.01em; white-space: nowrap;
  opacity: 0; scale: .8; transform-origin: 0 0; transition: opacity .16s ease, scale .2s var(--curva); will-change: transform;
}
.cursor-tag.visible { opacity: 1; scale: 1; }
.cursor-tag[data-tema="oscuro"] { background: var(--blanco); color: var(--azul); }

/* ---------- indicador de scroll minimalista ---------- */
.regla {
  position: fixed; z-index: 70; top: 50%; right: 18px; width: 18px; height: min(56vh, 480px); transform: translateY(-50%);
  background: none; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; border-radius: 0; mix-blend-mode: difference;
}
.regla__pista { position: absolute; right: 8px; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.28); }
.regla__lleno { position: absolute; inset: 0; background: var(--blanco); transform-origin: 50% 0; transform: scaleY(0); }
.regla__marca { position: absolute; left: 0; width: 18px; height: 14px; margin-top: -7px; padding: 0; border: 0; background: none; cursor: pointer; }
.regla__marca::before { content: ""; position: absolute; right: 5px; top: 6.5px; width: 7px; height: 1px; border-radius: 0; background: rgba(255,255,255,.7); transition: width .25s var(--curva); }
.regla__marca:hover::before { width: 12px; }
.regla__marca span { right: 26px; padding: 0; border-radius: 0; background: none; color: var(--blanco); font: 600 10px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .16em; text-transform: uppercase; }
.regla__indicador { position: absolute; left: -10px; right: 0; top: 0; height: 0; cursor: ns-resize; outline: none; will-change: transform; }
.regla__indicador::before { content: ""; position: absolute; right: 5px; top: -3.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--blanco); }
.regla__valor { right: 22px; top: 0; padding: 0; border-radius: 0; background: none !important; box-shadow: none; color: var(--blanco); font: 600 10px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; }
.regla__valor::after { content: "%"; opacity: .5; margin-left: 1px; }
.boton-scroll { right: 48px; width: 54px; height: 54px; box-shadow: 0 10px 26px rgba(23,61,237,.35); }

/* ---------- móvil ---------- */
@media (max-width: 960px) {
  .enfoque__grid { grid-template-columns: 1fr; }
  .collage { max-width: 560px; width: 100%; margin: 20px auto 0; }
  .pie__fila { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .icono-wa { width: 22px; height: 22px; }
  .marcas { bottom: 18px; gap: 10px; }
  .marcas__pista img { height: 20px; }
  .acordeon { flex-direction: column; height: auto; }
  .panel-serv { flex: none; height: 76px; transition: height .7s var(--curva); }
  .panel-serv.activo { height: 360px; }
  .panel-serv__vertical { left: 22px; bottom: 50%; transform: translateY(50%); writing-mode: horizontal-tb; }
  .collage__pieza figcaption { font-size: 10px; }
  .pie__fila { grid-template-columns: minmax(0, 1fr); }
  .pie__col { min-width: 0; }
  .panel-serv__info { min-width: 0; max-width: 100%; }
  .panel-serv__info p { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .marcas__pista { animation: none; } }
.pie__base { padding-right: 90px; }
@media (max-width: 767px) { .pie__base { padding-right: 70px; } }
@media (max-width: 767px) { .marcas { bottom: 92px; } .escena-proy .galeria { padding-bottom: 150px; } }

/* logos de clientes más presentes */
.marcas__pista img { height: clamp(28px, 2.8vw, 42px); max-width: 180px; opacity: .9; }
.marcas__titulo { color: rgba(255,255,255,.75); font-size: 12px; }
@media (max-width: 767px) { .marcas__pista img { height: 24px; } }

/* =====================================================================
   RONDA 19-11 · marcas protagonistas, menú animado, cursor y rendimiento
   ===================================================================== */

/* ---------- rendimiento: la textura de ruido sin modo de mezcla (era lo que más pesaba al hacer scroll) ---------- */
.hero::before { mix-blend-mode: normal; opacity: .05; }
.enfoque::before, .testimonios::before, .pie::before, .servicio-principal::before, .cta__marco::before, .servicio::before, .proceso__marco::before { mix-blend-mode: normal; opacity: .05; }
.escena-proy__fija::after { mix-blend-mode: normal; opacity: .04; }
.escena-proy .galeria { will-change: opacity; }
@media (max-width: 767px) {
  .escena-proy .tarjeta,
  .escena-proy .tarjeta:has(.tarjeta__portada) { box-shadow: 0 12px 24px -10px rgba(3, 10, 42, .45); }
}

/* ---------- banner: segundo acto con las marcas «en edición» (js/hero-marcas.js) ---------- */
.hm { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; container-type: size; font-family: Montserrat, sans-serif;
  background: #173DED; opacity: 0; transition: opacity .25s ease; }
.hm--ssr.visible { transition: none; }
.hm--ssr .hm-sobre, .hm--ssr .hm-sel, .hm--ssr .hm-obj { animation: none !important; opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .marco__anim.anim--grande, .hm--ssr { display: none; } }
.hm::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 6cqw 6cqw; background-position: center;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 55%, #000 20%, transparent 80%); mask-image: radial-gradient(70% 70% at 50% 55%, #000 20%, transparent 80%); }
.hm.visible { opacity: 1; }
.hm-escena { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; padding-top: 9cqh; visibility: hidden; opacity: 1; }
.hm-escena.activa { visibility: visible; }
.hm-escena.sale { opacity: 0; transform: translateY(-2.5cqh); transition: opacity .4s ease-in, transform .45s ease-in; }
/* frases */
.hm-l1, .hm-l2 { margin: 0; text-align: center; color: #fff; font-weight: 900; text-transform: uppercase; letter-spacing: -.055em; line-height: 1.04; font-size: min(6.4cqw, 12cqh); }
.hm-l2 { margin-top: .8cqh; }
.hm-pal { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em 0 .06em; }
.hm-pal > span { display: inline-block; transform: translateY(110%); }
.hm-escena.activa .hm-pal > span { animation: hm-sube .85s cubic-bezier(.16,1,.3,1) var(--d, 0s) both; }
@keyframes hm-sube { from { transform: translateY(110%); } to { transform: none; } }
.hm-caja { display: inline-block; position: relative; isolation: isolate; padding: 0 .2em; color: #173DED; }
.hm-caja::before { content: ""; position: absolute; z-index: -1; inset: .06em 0 .02em; background: #fff; border-radius: .09em; transform: scaleX(0); transform-origin: 0 50%; }
.hm-escena.activa .hm-caja::before { animation: hm-caja .7s cubic-bezier(.65,0,.25,1) .3s both; }
@keyframes hm-caja { to { transform: scaleX(1); } }
/* marcas en edición */
.hm-guia { position: absolute; background: rgba(255,255,255,.3); }
.hm-guia--h { left: 0; right: 0; top: calc(50% + 4.5cqh); height: 1px; transform: scaleX(0); }
.hm-guia--v { top: 0; bottom: 0; left: 50%; width: 1px; transform: scaleY(0); }
.hm-escena.activa .hm-guia--h { animation: hm-guia-h .8s cubic-bezier(.65,0,.25,1) both; }
.hm-escena.activa .hm-guia--v { animation: hm-guia-v .8s cubic-bezier(.65,0,.25,1) .08s both; }
@keyframes hm-guia-h { to { transform: scaleX(1); } }
@keyframes hm-guia-v { to { transform: scaleY(1); } }
.hm-obj { position: relative; z-index: 1; padding: 2.6cqh 2.6cqw; }
.hm-escena.activa .hm-obj { animation: hm-ajusta 1.7s cubic-bezier(.45,0,.2,1) .25s both; }
@keyframes hm-ajusta { 0%, 50% { transform: scale(.88); } 78% { transform: scale(1.03); } 100% { transform: scale(1); } }
.hm-logo-caja { display: block; clip-path: inset(0 100% 0 0); }
.hm-escena.activa .hm-logo-caja { animation: hm-revela 1s cubic-bezier(.65,0,.25,1) .45s both; }
@keyframes hm-revela { to { clip-path: inset(0 0 0 0); } }
.hm-logo { display: block; width: auto; height: min(30cqh, calc(40cqw / var(--r, 1.6))); }
.hm-sel { position: absolute; inset: 0; border: 1.5px solid #fff; opacity: 0; transform: scale(.86); transform-origin: 0 0; }
.hm-escena.activa .hm-sel { animation: hm-sel .55s cubic-bezier(.65,0,.25,1) .12s both; }
@keyframes hm-sel { 0% { opacity: 0; transform: scaleX(.15) scaleY(.15); } 45% { opacity: 1; transform: scaleX(1) scaleY(.18); } 100% { opacity: 1; transform: scale(1); } }
.hm-sel b { position: absolute; width: 10px; height: 10px; margin: -5px; background: #173DED; border: 1.5px solid #fff; transform: scale(0); }
.hm-sel b:nth-child(1) { left: 0; top: 0; } .hm-sel b:nth-child(2) { right: 0; top: 0; } .hm-sel b:nth-child(3) { left: 0; bottom: 0; } .hm-sel b:nth-child(4) { right: 0; bottom: 0; }
.hm-escena.activa .hm-sel b { animation: hm-pop .4s cubic-bezier(.34,1.56,.64,1) .6s both; }
.hm-escena.activa .hm-sel b:nth-child(2) { animation-delay: .66s; } .hm-escena.activa .hm-sel b:nth-child(3) { animation-delay: .72s; } .hm-escena.activa .hm-sel b:nth-child(4) { animation-delay: .78s; }
@keyframes hm-pop { to { transform: scale(1); } }
.hm-medida { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 12px); white-space: nowrap; padding: 4px 9px; border-radius: 5px; background: #fff; color: #173DED; font-weight: 800; font-size: clamp(10px, 1.1cqw, 14px); letter-spacing: -.01em; opacity: 0; }
.hm-escena.activa .hm-medida { animation: hm-aparece .4s ease .8s both; }
@keyframes hm-aparece { from { opacity: 0; } to { opacity: 1; } }
.hm-pluma { position: absolute; left: 100%; top: 100%; width: clamp(18px, 2.2cqw, 30px); height: auto; filter: drop-shadow(0 4px 8px rgba(5,16,66,.4)); opacity: 0; }
.hm-escena.activa .hm-pluma { animation: hm-pluma 1.9s cubic-bezier(.45,0,.2,1) .2s both; }
@keyframes hm-pluma { 0% { opacity: 0; transform: translate(220%, 260%); } 15% { opacity: 1; } 48% { transform: translate(-25%, -25%); } 58% { transform: translate(-25%, -25%) scale(.85); } 82% { transform: translate(15%, 18%) scale(.85); } 100% { opacity: 1; transform: translate(15%, 18%); } }
.hm-capa { position: absolute; left: 4cqw; bottom: 6cqh; display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 12px;
  background: rgba(5,16,66,.5); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); color: #fff; font-size: clamp(11px, 1.15cqw, 16px); opacity: 0; transform: translateX(-16px); }
.hm-escena.activa .hm-capa { animation: hm-capa .6s cubic-bezier(.16,1,.3,1) .95s both; }
@keyframes hm-capa { to { opacity: 1; transform: none; } }
.hm-capa__ico { width: .7em; height: .7em; border: 2px solid #fff; transform: rotate(45deg); }
.hm-capa strong { font-weight: 900; text-transform: uppercase; letter-spacing: -.03em; }
.hm-capa em { font-style: normal; font-weight: 500; opacity: .75; }
.hm-num { position: absolute; right: 4cqw; bottom: 6cqh; color: rgba(255,255,255,.55); font-weight: 900; font-size: clamp(13px, 1.8cqw, 26px); letter-spacing: -.04em; opacity: 0; }
.hm-escena.activa .hm-num { animation: hm-aparece .5s ease 1s both; }

/* ---------- título de la galería más compacto ---------- */
.titulo__p { padding: 0 calc(2 * var(--u)); }
.titulo__resalte { margin: 0 calc(8 * var(--u)); }

/* ---------- anillo 3D: tarjetas con los logos de las marcas ---------- */
.tarjeta { isolation: isolate; }
.tarjeta::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: calc(26 * var(--gu)) calc(26 * var(--gu)); background-position: center; }
.escena-proy .tarjeta--azul { background: linear-gradient(165deg, #3557ff, #173DED 55%, #0f2bb8); color: #fff; }
.escena-proy .tarjeta--blanca { background: linear-gradient(165deg, #ffffff, #e9edff); color: #173DED; }
.tarjeta--blanca::before { background-image: linear-gradient(rgba(23,61,237,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(23,61,237,.07) 1px, transparent 1px); }
.escena-proy .tarjeta--navy { background: linear-gradient(165deg, #0f1d66, #071043); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.tarjeta__logo { position: absolute; inset: 30% 15%; background: currentColor;
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }

/* ---------- enfoque: «antes de diseñar.» en una sola línea ---------- */
.enfoque__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.enfoque .titulo-sec { font-size: clamp(30px, 3.5vw, 58px); }
.enfoque .titulo-sec .resalte { white-space: nowrap; }

/* ---------- servicios sin la etiqueta de arriba ---------- */
.servicios__cabeza .titulo-sec { margin-top: 0; }
.panel-serv__num { font-family: Montserrat, sans-serif; font-weight: 800; letter-spacing: .06em; }

/* ---------- serie: el teléfono ya no se gira con el ratón ---------- */
.telefono__cuerpo { cursor: default; touch-action: auto; }

/* ---------- footer: etiquetas con la tipografía de la marca ---------- */
.pie__etiqueta { font: 800 12px Montserrat, sans-serif; letter-spacing: .04em; color: rgba(255,255,255,.5); }

/* ---------- menú: letras que ruedan + borde de luz al pasar el cursor ---------- */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.pildora__txt { display: inline-flex; overflow: hidden; height: 1.3em; line-height: 1.3em; }
.pildora__txt .l { display: inline-block; text-shadow: 0 1.3em currentColor; transition: transform .5s cubic-bezier(.65,0,.25,1); transition-delay: calc(var(--i) * 18ms); }
.pildora:hover .pildora__txt .l, .pildora:focus-visible .pildora__txt .l { transform: translateY(-1.3em); }
.pildora::after {
  content: ""; position: absolute; inset: -3px; border-radius: inherit; padding: 2px; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: conic-gradient(from var(--ang), transparent 0 50%, rgba(142,164,255,.0) 55%, #8EA4FF 72%, #ffffff 82%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.pildora:hover::after, .pildora:focus-visible::after { opacity: 1; animation: borde-gira 1.6s linear infinite; }
.pildora--oscura::after { background: conic-gradient(from var(--ang), transparent 0 50%, #173DED 72%, #8EA4FF 84%, transparent 94%); }
@keyframes borde-gira { to { --ang: 360deg; } }
.pildora:active { transform: translateY(calc(-1 * var(--u))) scale(.97); }
.pildora--oscura:hover .icono-wa { animation: wa-salta .6s cubic-bezier(.34,1.56,.64,1); }
@keyframes wa-salta { 40% { transform: rotate(-14deg) scale(1.15); } }

/* ---------- cursor: etiqueta con icono ---------- */
.cursor-tag { padding: 0; background: none; border-radius: 0; transition: opacity .18s ease, scale .35s cubic-bezier(.34,1.56,.64,1); }
.cursor-tag__in { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border-radius: 4px 14px 14px 14px; background: var(--azul); color: var(--blanco);
  font: 800 12px Montserrat, sans-serif; letter-spacing: -.01em; white-space: nowrap; box-shadow: 0 8px 22px rgba(23,61,237,.35); }
.cursor-tag svg { width: 14px; height: 14px; flex: none; }
.cursor-tag[data-tema="oscuro"] .cursor-tag__in { background: var(--blanco); color: var(--azul); box-shadow: 0 8px 22px rgba(0,0,0,.3); }

/* ---------- barra de scroll: color según el fondo (sin modo de mezcla) ---------- */
.regla { mix-blend-mode: normal; --c: #173DED; --c2: rgba(23,61,237,.25); }
.regla[data-tema="oscuro"] { --c: #ffffff; --c2: rgba(255,255,255,.3); }
.regla__pista { background: var(--c2); transition: background-color .3s; }
.regla__lleno, .regla__indicador::before { background: var(--c); transition: background-color .3s; }
.regla__marca::before { background: var(--c); opacity: .7; }
.regla__marca span, .regla__valor { color: var(--c); font-family: Montserrat, sans-serif; font-weight: 800; transition: color .3s; }

@media (max-width: 767px) {
  .escena-proy .galeria { padding-bottom: calc(80px + 2vh); }
  .enfoque .titulo-sec { font-size: clamp(24px, 7.2vw, 34px); }
  .enfoque .titulo-sec .resalte { white-space: normal; }
  .menu .pildora, .menu .pildora--oscura { position: relative !important; top: auto !important; right: auto !important; left: auto !important; width: 100% !important; }
  .pildora::after { display: none; }
  .hm-capa { padding: 6px 10px; gap: 6px; border-radius: 8px; }
}
@media (prefers-reduced-motion: reduce) { .pildora__txt .l { transition: none; } .pildora:hover::after { animation: none; } }.cursor-tag[data-tema] { background: none; }
@media (max-width: 960px) { .enfoque__grid { grid-template-columns: minmax(0, 1fr); } .enfoque__texto-col, .collage { min-width: 0; max-width: 100%; } }

/* =====================================================================
   RONDA 19-11 (b)
   ===================================================================== */
/* ---------- banner: ráfaga de logos al empezar + frase a mitad ---------- */
.hm-sobre { margin: 0 0 3.2cqh; color: rgba(255,255,255,.85); font-weight: 800; font-size: clamp(10px, 1.25cqw, 16px); letter-spacing: .22em; text-transform: uppercase; opacity: 0; }
.hm-escena.activa .hm-sobre { animation: hm-aparece .45s ease .1s both; }
.hm-rafaga .hm-obj { width: min(34cqw, 58cqh); aspect-ratio: 16 / 10; padding: 0; }
.hm-rafaga .hm-logo { position: absolute; inset: 14%; width: 72%; height: 72%; object-fit: contain; opacity: 0; transform: scale(.9);
  transition: opacity .16s ease, transform .3s cubic-bezier(.16,1,.3,1); }
.hm-rafaga .hm-logo.ve { opacity: 1; transform: none; }
.hm-rafaga.activa .hm-obj { animation: hm-ajusta-r 2.6s cubic-bezier(.45,0,.2,1) .1s both; }
@keyframes hm-ajusta-r { 0% { transform: scale(.94); } 60% { transform: scale(.94); } 80% { transform: scale(1.02); } 100% { transform: scale(1); } }
.hm-rafaga.activa .hm-pluma { animation: hm-pluma 2.4s cubic-bezier(.45,0,.2,1) .15s both; }
.hm-rafaga.activa .hm-capa { animation: hm-capa .5s cubic-bezier(.16,1,.3,1) .35s both; }
.hm-capa { display: none !important; }
.hm-l1, .hm-l2 { font-size: min(6cqw, 11.5cqh); }
/* versión vertical (teléfonos): proporción y tipografía pensadas para formato 9:16 */
@container (max-aspect-ratio: 4/5) {
  .hm::before { background-size: 12cqw 12cqw; }
  .hm-escena { padding: 76px 6cqw 24px; }
  .hm-guia--h { top: calc(50% + 2.5cqh); }
  .hm-sobre { margin-bottom: 3.6cqh; font-size: clamp(11px, 3.1cqw, 15px); letter-spacing: .18em; text-align: center; }
  .hm-rafaga .hm-obj { width: min(76cqw, 46cqh); aspect-ratio: 4 / 3; }
  .hm-l1, .hm-l2 { font-size: min(9.8cqw, 6cqh); line-height: 1.08; }
  .hm-pluma { width: clamp(22px, 6.5cqw, 30px); }
}

/* ---------- galería: fondo azul de marca, unido al header ---------- */
.escena-proy__fija { background: var(--azul); }
.escena-proy__fija::before {
  background: radial-gradient(55% 50% at 50% 60%, rgba(255,255,255,.16), rgba(255,255,255,0) 70%),
              radial-gradient(60% 40% at 50% 0%, rgba(5,16,66,.35), transparent 70%);
}
.escena-proy .titulo__resalte { color: var(--azul); }
.escena-proy .titulo__resalte::before { background: var(--blanco); }
.revelar.visto .titulo__resalte { color: var(--azul); }
.anillo-escena::after { background: radial-gradient(50% 50% at 50% 50%, rgba(5,16,66,.45), rgba(5,16,66,0) 70%); }

/* ---------- anillo: cada tarjeta = foto oscura de la marca + su logo con sus colores ---------- */
.escena-proy .tarjeta { background: #050a22; box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 30px 60px -20px rgba(3,10,42,.6); }
.tarjeta::before { display: none; }
.tarjeta__fondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.42) saturate(.9); transform: scale(1.05); }
.tarjeta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,10,42,.15), rgba(3,10,42,.75)); }
.tarjeta__logo { z-index: 1; inset: 32% 14%; background: none; -webkit-mask: none; mask: none; display: grid; place-items: center; }
.tarjeta__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(0,0,0,.45)); }
.tarjeta__logo--tinta { background: var(--tinta); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.tarjeta__marca { position: absolute; z-index: 1; left: 0; right: 0; bottom: 9%; text-align: center; color: rgba(255,255,255,.8); font-weight: 800; font-size: calc(15 * var(--gu)); letter-spacing: .14em; text-transform: uppercase; }

/* ---------- panel de proyectos: sin cortes en títulos ni números ---------- */
.proy__titulo .pal { padding: .08em .06em .14em 0; margin-bottom: -.08em; }
.proy__num { height: 1.12em; line-height: 1.12; padding-top: .04em; }

/* ---------- servicios: sin tonos morados (paneles cerrados en gris + navy) ---------- */
.panel-serv:not(.activo) .panel-serv__fondo { filter: grayscale(1) brightness(.6); }
.panel-serv:not(.activo)::after { background: linear-gradient(180deg, rgba(5,16,66,.55), rgba(3,10,42,.92)); }

/* ---------- enfoque: ejemplos que rotan ---------- */
.collage__pieza img { transition: opacity .32s ease, transform .6s cubic-bezier(.16,1,.3,1); }
.collage__pieza.cambiando img { opacity: 0; transform: scale(1.05); }
.collage__pieza figcaption { transition: opacity .25s ease; }
.collage__pieza.cambiando figcaption { opacity: 0; }
.collage__marca { position: absolute; z-index: 30; left: 0; bottom: 3%; display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 99px;
  background: var(--navy); color: #fff; font-family: Montserrat, sans-serif; box-shadow: 0 14px 30px -10px rgba(5,16,66,.5); cursor: pointer; transition: transform .2s ease, background-color .2s ease; }
.collage__marca:hover { transform: translateY(-2px); background: var(--azul); }
.collage__marca span { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.collage__marca strong { font-size: 15px; font-weight: 900; letter-spacing: -.03em; text-transform: uppercase; min-width: 6.4em; }
.collage__marca i { display: flex; gap: 5px; }
.collage__marca b { width: 6px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.35); transition: width .4s cubic-bezier(.16,1,.3,1), background-color .3s; }
.collage__marca b.on { width: 18px; background: #fff; }

/* ---------- cursor de marca: punto exacto + aro suave, sin textos ---------- */
.cursor-tag { display: none !important; }
html.cursor-marca, html.cursor-marca * { cursor: none !important; }
.cur-punto, .cur-aro { position: fixed; left: 0; top: 0; z-index: 10001; pointer-events: none; opacity: 0; will-change: transform; }
html.cur-visible .cur-punto, html.cur-visible .cur-aro { opacity: 1; }
.cur-punto::before { content: ""; position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--cur, #173DED);
  transition: transform .25s cubic-bezier(.16,1,.3,1), background-color .25s; }
.cur-aro::before { content: ""; position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%; border: 1.6px solid var(--cur, #173DED);
  background: transparent; transition: transform .35s cubic-bezier(.16,1,.3,1), background-color .25s, border-color .25s, opacity .25s; }
/* flechas ‹ › para zonas de arrastre */
.cur-aro::after { content: ""; position: absolute; left: -9px; top: -4px; width: 18px; height: 8px; opacity: 0; transition: opacity .2s;
  background: var(--cur, #173DED);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 8'%3E%3Cpath d='M4 0L0 4l4 4M14 0l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 8'%3E%3Cpath d='M4 0L0 4l4 4M14 0l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
html[data-cur-tema="oscuro"] { --cur: #ffffff; }
html.cur-clic .cur-aro::before { transform: scale(1.55); background: color-mix(in srgb, var(--cur, #173DED) 16%, transparent); }
html.cur-clic .cur-punto::before { transform: scale(.6); }
html.cur-arrastre .cur-aro::before { transform: scale(1.7); }
html.cur-arrastre .cur-aro::after { opacity: 1; }
html.cur-arrastre .cur-punto::before { transform: scale(0); }
html.cur-abajo .cur-aro::before { transform: scale(.8); }
html.cur-abajo.cur-arrastre .cur-aro::before, html.cur-abajo.cur-clic .cur-aro::before { transform: scale(1.3); }

/* ---------- barra de scroll: más visible y con más grosor ---------- */
.regla { width: 26px; right: 16px; }
.regla__pista { right: 11px; width: 3px; border-radius: 3px; }
.regla__lleno { border-radius: 3px; }
.regla__indicador::before { right: 6.5px; top: -6px; width: 12px; height: 12px; box-shadow: 0 0 0 3px var(--c2); }
.regla__marca::before { right: 8px; width: 9px; height: 2px; border-radius: 2px; }
.regla__marca:hover::before { width: 15px; }
.regla__valor { right: 26px; padding: 3px 8px !important; border-radius: 99px; background: var(--c) !important; color: var(--c-txt, #fff) !important; font-size: 11px; letter-spacing: .02em; }
.regla__valor::after { opacity: .7; }
.regla { --c-txt: #ffffff; }
.regla[data-tema="oscuro"] { --c-txt: #173DED; }/* botón subir/bajar: blanco sobre fondos oscuros o azules, azul sobre claros */
.boton-scroll[data-tema="oscuro"] { background: var(--blanco); color: var(--azul); box-shadow: 0 10px 26px rgba(3,10,42,.35); }
.boton-scroll[data-tema="oscuro"] .boton-scroll__anillo .fondo { stroke: rgba(23,61,237,.18); }
.boton-scroll[data-tema="oscuro"] .boton-scroll__anillo .avance { stroke: var(--azul); }
.collage__marca span { display: none; }
.collage__marca { padding: 8px 14px; gap: 10px; }
/* unión header → galería: arriba el azul es exactamente el de la pestaña (sin sombra ni ruido que cambien el tono) */
.escena-proy__fija::before { background: radial-gradient(55% 45% at 50% 62%, rgba(255,255,255,.14), rgba(255,255,255,0) 70%); }
.escena-proy__fija::after { -webkit-mask-image: linear-gradient(transparent 0, #000 30%); mask-image: linear-gradient(transparent 0, #000 30%); }
.hero__muesca { display: block; margin-bottom: -1px; }
@media (max-width: 767px) { .hero__muesca { display: none; } }
/* anillo: tarjetas blancas con el logo en azul (solo marcas con identidad hecha en Kreatik) */
.escena-proy .tarjeta { background: #ffffff; box-shadow: 0 30px 60px -22px rgba(3,10,42,.55); }
.tarjeta::after, .tarjeta__fondo, .tarjeta__marca { display: none; }
.tarjeta .tarjeta__logo--tinta { --tinta: #173DED; inset: 28% 16%; }
/* anillo: portada vertical completa de cada marca (assets/portadas) */
.tarjeta__portada { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.escena-proy .tarjeta:has(.tarjeta__portada) { background: #0b1550; box-shadow: 0 30px 60px -22px rgba(3,10,42,.6), inset 0 0 0 1px rgba(255,255,255,.12); }

/* =====================================================================
   SIN TEXTOS RECORTADOS
   Montserrat Black con espaciado negativo dibuja la última letra un poco más allá de su caja:
   donde hay una caja o un «overflow: hidden» se le da aire a los lados para que no se corte.
   ===================================================================== */
/* recuadros resaltados (blancos y azules) */
.resalte, .resalte--blanco { padding-left: .2em; padding-right: .3em; }
.titulo__resalte { padding-right: calc(19 * var(--u)); }
.hm-caja { padding: 0 .3em 0 .22em; }
/* palabras que entran desde abajo (máscara con overflow) */
.pildora__txt { padding: 0 .16em; margin: 0 -.16em; }
.hm-pal { padding: .04em .12em .08em .06em; margin: 0 -.12em -.02em -.06em; }
.proy__titulo .pal { padding: .08em .14em .14em .08em; margin: 0 -.14em -.08em -.08em; }
.proy__num { padding: .04em .14em 0 .06em; margin-right: -.14em; }
/* menú del header: las píldoras toman el ancho de su texto (ya no se corta «Contáctanos») */
@media (min-width: 768px) {
  .menu { inset: auto; top: calc(86 * var(--u)); right: calc(84 * var(--u)); left: auto; display: flex; align-items: center; gap: calc(16 * var(--u)); }
  .menu .pildora { position: relative !important; top: auto; right: auto !important; width: auto !important; padding: 0 calc(22 * var(--u)); }
  .menu .pildora--oscura { padding: 0 calc(24 * var(--u)) 0 calc(20 * var(--u)); }
}
/* nombres de marca y etiquetas sobre tarjetas: que nunca se corten, si no caben bajan de línea */
.proy__tlabel strong, .sv-item__marca, .sv-reel figcaption strong, .es-ep strong, .pg-destacado__pie strong, .hm-capa strong, .tarjeta__marca { white-space: normal; letter-spacing: -.03em; padding-right: .1em; }

/* ---------- fondo de cuadrícula animada (js/cuadricula.js) ---------- */
[data-cuadricula]:not(.escena-proy__fija) { position: relative; isolation: isolate; }
.escena-proy__fija[data-cuadricula] { position: sticky; }   /* la escena de la galería debe seguir siendo «pegajosa» */
.cuadricula { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none;
 }
.escena-proy__fija > .cuadricula {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 38%, rgba(0, 0, 0, .55) 56%, rgba(0, 0, 0, .12) 76%, transparent 94%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 38%, rgba(0, 0, 0, .55) 56%, rgba(0, 0, 0, .12) 76%, transparent 94%);
}
[data-cuadricula]:not(.escena-proy__fija) > :not(.cuadricula):not(.carnet__lienzo):not(canvas) { position: relative; z-index: 1; }
.escena-proy__fija > .galeria { z-index: 1; }

/* ---------- «me gusta» con pulso (js/likes.js) ---------- */
.like { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px 0 10px; border: 0; border-radius: 99px; cursor: pointer;
  background: rgba(255,255,255,.94); color: var(--navy); font: 800 13px Montserrat, sans-serif; letter-spacing: -.01em; box-shadow: 0 8px 20px -10px rgba(3,10,42,.5);
  transition: transform .3s var(--curva), background-color .25s; }
.like:hover { transform: translateY(-2px); }
.like:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; }
.like__ico { position: relative; display: grid; place-items: center; width: 18px; height: 18px; }
.like__ico svg { width: 18px; height: 18px; fill: none; stroke: var(--azul); stroke-width: 2.2; stroke-linejoin: round; transition: fill .2s, stroke .2s; }
.like.on .like__ico svg { fill: var(--azul); stroke: var(--azul); }
.like.pulso .like__ico { animation: like-pulso .62s cubic-bezier(.34,1.56,.64,1); }
.like.pulso .like__ico::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--azul); animation: like-anillo .6s ease-out forwards; }
@keyframes like-pulso { 0% { transform: scale(1); } 25% { transform: scale(.7); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes like-anillo { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.like__chispas { position: absolute; left: 19px; top: 50%; width: 0; height: 0; pointer-events: none; }
.like__chispas i { position: absolute; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: var(--azul); transform: rotate(var(--a)) translateY(0); animation: like-chispa .62s ease-out forwards; }
.like__chispas i:nth-child(even) { background: #8EA4FF; width: 4px; height: 4px; }
@keyframes like-chispa { to { transform: rotate(var(--a)) translateY(-24px); opacity: 0; } }
.like__n { min-width: 1ch; font-variant-numeric: tabular-nums; }

/* la pestaña del header lleva la misma cuadrícula (alineada con la de la galería) */
.muesca-rejilla { position: absolute; z-index: 1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px);
  background-size: 48px 48px; }
@media (max-width: 767px) { .muesca-rejilla { display: none; } }
/* teléfono de la serie: enlace a la historia escrita del episodio */
.reel__ver--historia { margin-left: 6px; background: transparent !important; color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }

/* ---------- tarjetas transparentes y sistema Glass interactivo ---------- */
.testimonio, .plan:not(.plan--reco), .es-principio, .sv-pestanas, .ar-siguiente a, .fase, .pieza, .pg-filtros--claro .pg-filtro:not(.activo) {
  -webkit-backdrop-filter: blur(12px) saturate(1.25); backdrop-filter: blur(12px) saturate(1.25); }
.testimonio { position: relative; overflow: hidden; background: rgba(255,255,255,.07); }
.es-principio { position: relative; overflow: hidden; background: rgba(255,255,255,.86); }
.ar-siguiente a { background: rgba(255,255,255,.84); }
.plan { overflow: hidden; }
[data-tilt] { transform-style: preserve-3d; }

.k-glass {
  position: relative;
  border-radius: clamp(20px, 2vw, 26px);
  padding: clamp(22px, 2.8vw, 36px);
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  backdrop-filter: blur(14px) saturate(1.25);
  border: 1px solid rgba(23, 61, 237, .14);
  box-shadow: 0 22px 48px -28px rgba(5, 16, 66, .2), inset 0 1px 0 rgba(255, 255, 255, .96);
  transition: box-shadow .35s ease, border-color .3s ease, background-color .3s ease;
}
.k-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: var(--ga, 0);
  background: radial-gradient(380px circle at var(--gx, 50%) var(--gy, 50%), rgba(23, 61, 237, .09), transparent 65%);
  transition: opacity .35s ease;
}
.k-glass > * { position: relative; z-index: 1; }
.k-glass:hover {
  background: rgba(255, 255, 255, .94);
  border-color: rgba(23, 61, 237, .26);
  box-shadow: 0 28px 60px -24px rgba(23, 61, 237, .22), inset 0 1px 0 rgba(255, 255, 255, 1);
}
.k-glass--oscuro {
  background: rgba(5, 16, 66, .34);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 24px 52px -28px rgba(3, 10, 42, .56), inset 0 1px 0 rgba(255, 255, 255, .24);
}
.k-glass--oscuro::before {
  background: radial-gradient(380px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .16), transparent 65%);
}
.k-glass--oscuro:hover {
  background: rgba(5, 16, 66, .46);
  border-color: rgba(255, 255, 255, .36);
  box-shadow: 0 30px 62px -24px rgba(3, 10, 42, .72), inset 0 1px 0 rgba(255, 255, 255, .34);
}
.k-glass.rv.visto {
  transition: opacity .8s ease var(--rd, 0s), filter 1s ease var(--rd, 0s), box-shadow .35s ease, border-color .3s ease, background-color .3s ease;
}
.serie__texto.k-glass { padding: 18px 22px; border-radius: 20px; }
@media (prefers-reduced-motion: reduce) {
  .k-glass::before { display: none; }
}
