/* home.css — sistema visual "flyer" (spec 2026-07-06). NO lo cargan las páginas legacy. */
:root {
  --crema: #F0EEE8;
  --blanco: #FFFFFF;
  --tinta: #0A0A0A;
  --azul: #2563EB;
  --azul-oscuro: #1D4ED8;
  --gris: #57534E;
  --radio: 4px;
  --fuente-display: "Bricolage Grotesque", sans-serif;
  --fuente-texto: "DM Sans", sans-serif;
  --fuente-mono: "JetBrains Mono", monospace;
  --pad-seccion: clamp(64px, 9vw, 112px);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 68px; }
body { font-family: var(--fuente-texto); font-size: 17px; line-height: 1.55; color: var(--tinta); background: var(--crema); }
h1, h2, h3 { font-family: var(--fuente-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
.contenedor { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.seccion { padding: var(--pad-seccion) 0; }
.seccion--crema { background: var(--crema); }
.seccion--blanca { background: var(--blanco); }
/* Textura de puntos muy sutil en bloques claros: da profundidad sin ensuciar (Databricks/Glean). */
.seccion--blanca, .seccion--crema {
  background-image: radial-gradient(rgba(10,10,10,.05) 1px, transparent 1.6px);
  background-size: 24px 24px; background-position: center top;
}
.seccion--oscura { background: var(--tinta); color: var(--blanco); }
.seccion--azul { background: linear-gradient(135deg, var(--azul), var(--azul-oscuro)); color: var(--blanco); }
.eyebrow { font-family: var(--fuente-mono); font-weight: 500; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--azul); }
.titulo-seccion { font-size: clamp(36px, 5vw, 60px); margin: 14px 0 44px; }
.seccion--oscura .eyebrow, .seccion--azul .eyebrow { color: rgba(255,255,255,.75); }
.btn { position: relative; z-index: 0; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 24px; border-radius: var(--radio); font-family: var(--fuente-texto); font-weight: 600; font-size: 15.5px; text-decoration: none; border: 1px solid transparent; box-shadow: none; transition: background .18s ease, border-color .18s ease; }
.btn--primario { background: var(--azul); color: var(--blanco); }
.btn--primario:hover { background: var(--azul-oscuro); }
.btn--secundario { background: transparent; color: var(--tinta); border-color: rgba(10,10,10,.35); }
.btn--secundario:hover { border-color: var(--tinta); }
.seccion--oscura .btn--secundario, .seccion--azul .btn--secundario { color: var(--blanco); border-color: rgba(255,255,255,.4); }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(10,10,10,.16); font-size: 13.5px; background: var(--blanco); color: var(--tinta); }
html.js .reveal { opacity: 0; transform: translateY(24px); }
/* Cards suben con micro-escala (entrada con más carácter que un simple fade). */
html.js .sistema-cards .reveal, html.js .fundadores .reveal { transform: translateY(28px) scale(.965); }
/* Titulares con revelado de máscara (se destapan de abajo hacia arriba). */
html.js .t-mask { clip-path: inset(100% 0 0 0); will-change: clip-path; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .sistema-cards .reveal, html.js .fundadores .reveal { opacity: 1; transform: none; }
  html.js .t-mask { clip-path: none; }
}

/* == Nav (transparente sobre el hero oscuro; sólida crema al scrollear) == */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: transparent; border-bottom: 1px solid transparent; }
.nav-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.nav-logo img { display: block; filter: brightness(0) invert(1); transition: filter .3s ease; }
.nav-logo span { font-family: var(--fuente-display); font-weight: 700; font-size: 15px; letter-spacing: 0.01em; }
.nav-logo em { font-family: var(--fuente-mono); font-style: normal; font-weight: 500; color: rgba(255,255,255,.6); transition: color .3s ease; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: rgba(255,255,255,.92); font-size: 15px; font-weight: 500; text-decoration: none; transition: color .18s ease; }
.nav-links a:hover { color: #fff; }
/* Estado scrolleado: fondo crema + contenido oscuro. */
.nav--scroll .nav-logo { color: var(--tinta); }
.nav--scroll .nav-logo img { filter: none; }
.nav--scroll .nav-logo em { color: var(--gris); }
.nav--scroll .nav-links a { color: var(--tinta); }
.nav--scroll .nav-links a:hover { color: var(--azul); }
@media (max-width: 900px) {
  .nav-links { display: none; }
}

/* == Nav movil == */
.nav-burger {
  display: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-burger span { display: block; width: 20px; height: 2px; background: #fff; transition: background .3s ease; }
.nav--scroll .nav-burger span { background: var(--tinta); }
@media (max-width: 900px) {
  .nav-burger { display: flex; }
  .nav-links.abierta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--crema);
    border-bottom: 1px solid rgba(10, 10, 10, .1);
    z-index: 99;
  }
  .nav-links.abierta a { padding: 14px 20px; color: var(--tinta); }
}

/* == Hero (v4: las ondas horizontales de NODO FONDOS como fondo de TODO el hero) == */
.hero--v3 { position: relative; background: var(--tinta); color: var(--blanco); padding-top: calc(var(--pad-seccion) + 30px); padding-bottom: clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-fondo { position: absolute; inset: 0; background: url('brand_assets/flyer/bg-ondas-h.webp') center / cover no-repeat; filter: saturate(1.14) brightness(1.06); will-change: transform; }
/* Velo: oscuro arriba (legibilidad del titular), se abre al centro para dejar respirar el color de las ondas (estilo Glean). */
.hero-fondo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,8,15,.84) 0%, rgba(6,8,15,.44) 42%, rgba(6,8,15,.12) 72%, rgba(6,8,15,.32) 100%); }
.hero--v3 .contenedor { position: relative; z-index: 1; }
.hero-centro { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-centro .eyebrow { display: inline-flex; align-items: center; gap: 12px; color: #93B4F8; }
.eyebrow-linea { display: inline-block; width: 28px; height: 2px; background: currentColor; }
.hero--v3 h1 { font-size: clamp(50px, 7.5vw, 100px); letter-spacing: -0.03em; color: var(--blanco); margin-top: 20px; max-width: 15ch; text-wrap: balance; }
.acento { color: var(--azul); }
.hero--v3 .acento { color: #93B4F8; }
.hero-sub { font-size: clamp(18px, 2vw, 21px); color: rgba(255,255,255,.87); max-width: 52ch; margin: 24px 0 36px; }
.hero--v3 .btn--secundario { color: var(--blanco); border-color: rgba(255,255,255,.5); }
.hero--v3 .btn--secundario:hover { border-color: var(--blanco); }
.hero-acciones { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

.hero-media { position: relative; margin-top: clamp(48px, 6vw, 76px); }
/* Bloom azul detrás del panel: lo saca del "hueco negro" y lo cose a las ondas vibrantes. */
.hero-media::before {
  content: ''; position: absolute; left: 50%; top: -6%; transform: translateX(-50%);
  width: min(1160px, 92%); height: 82%;
  background: radial-gradient(58% 58% at 50% 28%, rgba(66,116,244,.55), rgba(37,99,235,.16) 46%, transparent 72%);
  filter: blur(52px); pointer-events: none; z-index: 0;
}
.hero-media .contenedor { position: relative; z-index: 1; }

.brain-panel {
  max-width: 1160px; margin: 0 auto;
  background: #06080F;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: 0 2px 3px rgba(0, 0, 0, .12), 0 18px 32px rgba(0, 0, 0, .35), 0 48px 96px rgba(0, 0, 0, .4);
}
.brain-top { display: flex; align-items: center; gap: 12px; padding: 13px 20px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .09); }
.brain-top .maqueta-titulo { color: rgba(255, 255, 255, .8); }
.brain-tabs { display: flex; gap: 6px; margin-left: 18px; }
.brain-tabs span { font-size: 12px; color: rgba(255, 255, 255, .55); padding: 5px 12px; border-radius: 999px; }
.brain-tabs span.activo { background: rgba(37, 99, 235, .3); color: #BFD3FF; }
.brain-top .maqueta-estado { color: #7EA6FF; }
.brain-escena { position: relative; aspect-ratio: 16 / 9.4; }
.brain-escena canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.brain-escena canvas:active { cursor: grabbing; }
.brain-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.brain-label { position: absolute; top: 0; left: 0; display: flex; flex-direction: column; gap: 1px; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); will-change: transform, opacity; }
.brain-label strong { font-family: var(--fuente-texto); font-weight: 700; font-size: 12px; letter-spacing: 0.02em; color: rgba(255, 255, 255, .95); white-space: nowrap; }
.brain-label span { font-family: var(--fuente-mono); font-size: 10.5px; color: rgba(190, 212, 255, .75); }
.brain-buscar { position: absolute; top: 18px; left: 18px; display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .15); font-size: 13px; color: rgba(255, 255, 255, .6); }
.brain-hint { position: absolute; top: 60px; left: 18px; font-family: var(--fuente-mono); font-size: 10.5px; color: rgba(255, 255, 255, .4); }
.brain-stats { position: absolute; left: 18px; bottom: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.brain-stat { font-family: var(--fuente-mono); font-size: 11px; color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; padding: 5px 12px; }
.brain-stat--vivo { color: #7EA6FF; }
.brain-corte { position: absolute; right: 18px; bottom: 20px; font-family: var(--fuente-mono); font-size: 10.5px; color: rgba(255, 255, 255, .35); }
@media (max-width: 700px) {
  .brain-tabs { display: none; }
  .brain-escena { aspect-ratio: 4 / 4.4; }
  .brain-hint { display: none; }
  .brain-corte { display: none; }
}

/* == Maqueta Brain == */
.maqueta {
  width: 100%;
  background: var(--blanco);
  border-radius: var(--radio);
  border: 1px solid rgba(10, 10, 10, .08);
  box-shadow: 0 2px 3px rgba(10, 10, 10, .02), 0 9px 13px rgba(10, 10, 10, .035), 0 32px 40px rgba(10, 10, 10, .05);
  overflow: hidden;
}
.maqueta-barra { display: flex; align-items: center; gap: 10px; padding: 14px 20px; background: var(--crema); border-bottom: 1px solid rgba(10, 10, 10, .08); }
.maqueta-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--azul); flex-shrink: 0; }
/* El punto "en operación" late suave: da señal de vida al producto. */
.maqueta-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37,99,235,.5); animation: dotPulse 2.6s cubic-bezier(.4,0,.6,1) infinite; }
@keyframes dotPulse { 0% { box-shadow: 0 0 0 0 rgba(37,99,235,.5); } 70% { box-shadow: 0 0 0 8px rgba(37,99,235,0); } 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); } }
@media (prefers-reduced-motion: reduce) { .maqueta-dot::after { animation: none; } }
.maqueta-titulo { font-family: var(--fuente-mono); font-size: 12px; font-weight: 500; color: var(--gris); letter-spacing: 0.02em; }
/* Nota: la maqueta de chat vieja (bubble crema) se reemplazó por .maqueta--app (3 paneles). */

/* Maqueta del producto que "responde": estados iniciales, revelados por home.js. */
html.js .maqueta--app .maqueta-pregunta,
html.js .maqueta--app .cita,
html.js .maqueta--app .ev-card,
html.js .maqueta--app .ev-foot { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  html.js .maqueta--app .maqueta-pregunta,
  html.js .maqueta--app .cita,
  html.js .maqueta--app .ev-card,
  html.js .maqueta--app .ev-foot { opacity: 1; }
}

/* Maqueta rica (hero v2): sidebar de proyectos + estado, como el producto real */
.maqueta--rica { box-shadow: 0 2px 3px rgba(0, 0, 0, .08), 0 18px 32px rgba(0, 0, 0, .3), 0 48px 96px rgba(0, 0, 0, .38); border-color: rgba(255, 255, 255, .14); }
.maqueta-estado { margin-left: auto; font-family: var(--fuente-mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--azul); }
.maqueta-cuerpo { display: grid; grid-template-columns: 176px 1fr; }
.maqueta-side { display: flex; flex-direction: column; gap: 4px; padding: 18px 14px; background: #FAF9F6; border-right: 1px solid rgba(10, 10, 10, .08); }
.maqueta-side-label { font-family: var(--fuente-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gris); margin: 10px 0 4px; }
.maqueta-side-label:first-child { margin-top: 0; }
.maqueta-side-item { font-size: 12.5px; line-height: 1.4; color: var(--gris); padding: 6px 8px; border-radius: var(--radio); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.maqueta-side-item.activo { background: rgba(37, 99, 235, .1); color: var(--azul); font-weight: 600; }
@media (max-width: 560px) {
  .maqueta-cuerpo { grid-template-columns: 1fr; }
  .maqueta-side { display: none; }
}

/* == Texturas de sección (recursos NODO FONDOS bajo velo) == */
.seccion--textura-fluido { position: relative; }
.seccion--textura-fluido::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(8, 9, 12, .86), rgba(8, 9, 12, .92)), url('brand_assets/flyer/bg-fluido.webp') center / cover no-repeat; }
.seccion--textura-fluido .contenedor { position: relative; }
.seccion--azul.seccion--textura-flujo { background: linear-gradient(135deg, rgba(37, 99, 235, .9), rgba(29, 78, 216, .88)), url('brand_assets/flyer/bg-flujo.webp') center / cover no-repeat; }

/* == Franja logos == */
.franja-logos { padding: 60px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.franja-logos .eyebrow { text-align: center; margin: 0 0 34px; color: rgba(255, 255, 255, .62); }
/* Cinta de logos que se desplaza en loop; se difumina en los bordes y se pausa al hover. */
.logos-marquee {
  overflow: hidden;
  /* La máscara aísla el grupo de blend; el fondo tinta le devuelve el backdrop negro
     que necesita el mix-blend-mode: screen para tumbar los recuadros oscuros de los logos. */
  background: var(--tinta);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
/* El fondo tinta va en el track porque su transform animado crea el grupo de blend aislado. */
.logos-track { display: flex; width: max-content; background: var(--tinta); animation: logos-marquee 40s linear infinite; }
.logos-marquee:hover .logos-track { animation-play-state: paused; }
.logos-set { display: flex; align-items: center; flex-shrink: 0; gap: clamp(52px, 6vw, 92px); padding: 0 clamp(26px, 3vw, 46px); }
/* invert vuelve la marca oscura → blanca y su fondo → negro, que desaparece con screen;
   así todos los logos flotan al mismo peso óptico sobre la franja. */
.logos-set img {
  height: 62px; width: auto; max-width: 200px; object-fit: contain;
  opacity: .74; mix-blend-mode: screen;
  filter: grayscale(1) invert(1) brightness(1.9) contrast(1.35);
  transition: opacity .3s ease, transform .3s cubic-bezier(.22,1,.36,1);
}
.logos-set img:hover { opacity: 1; transform: translateY(-3px); }
/* RISE y Sanz ya son claros/transparentes: no se invierten. */
.logos-set img[src*="cl-rise"],
.logos-set img[src*="cl-sanz"] { filter: grayscale(1) brightness(1.7); }
/* Ajuste fino de peso óptico por lockup (unos traen tagline, otros no). */
.logos-set img[src*="cl-eleva"] { height: 54px; }
.logos-set img[src*="cl-rise"] { height: 40px; }
.logos-set img[src*="cl-277home"] { height: 54px; }
.logos-set img[src*="cl-sanz"] { height: 56px; }
@keyframes logos-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .logos-track { animation: none; width: 100%; justify-content: center; }
  .logos-set:last-child { display: none; }
}

/* == Sistema NODO == */
.sistema-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card-sis {
  background: var(--blanco);
  border: 1px solid rgba(10, 10, 10, .1);
  border-radius: var(--radio);
  padding: 28px 26px 30px;
  transition: transform .28s cubic-bezier(.22,1,.36,1), border-color .28s ease, box-shadow .28s ease;
}
.card-sis:hover { transform: translateY(-4px); border-color: rgba(37, 99, 235, .45); box-shadow: 0 12px 28px rgba(37, 99, 235, .1); }
.card-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: var(--radio);
  background: rgba(37, 99, 235, .09); color: var(--azul); margin-bottom: 20px;
  transition: background .28s ease, color .28s ease;
}
.card-ico svg { width: 24px; height: 24px; }
.card-sis:hover .card-ico { background: var(--azul); color: #fff; }
.card-sis h3 { font-size: 19px; margin-bottom: 10px; }
.card-sis p { color: var(--gris); font-size: 15.5px; line-height: 1.55; }
@media (max-width: 760px) {
  .sistema-cards { grid-template-columns: 1fr; }
}

.cerebro-barra {
  position: relative;
  margin-top: 20px;
  background: linear-gradient(90deg, var(--azul), var(--azul-oscuro));
  border-radius: var(--radio);
  padding: 20px 24px;
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.cerebro-barra::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: linear-gradient(rgba(37, 99, 235, 0), rgba(37, 99, 235, .5));
}
.cerebro-nombre { display: flex; align-items: center; gap: 12px; }
.cerebro-nombre img { display: block; filter: brightness(0) invert(1); }
.cerebro-nombre div { display: flex; flex-direction: column; gap: 2px; }
.cerebro-nombre strong { font-family: var(--fuente-display); font-weight: 600; font-size: 17px; }
.cerebro-nombre span { font-size: 13.5px; color: rgba(255, 255, 255, .75); }
.cerebro-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip--barra { background: transparent; border: 1px solid rgba(255, 255, 255, .45); color: var(--blanco); }
@media (max-width: 760px) {
  .cerebro-barra { flex-direction: column; align-items: flex-start; }
  .cerebro-chips { width: 100%; }
}

.fuentes-fila {
  position: relative;
  margin-top: 20px;
  border: 1px solid rgba(10, 10, 10, .12);
  border-radius: var(--radio);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.fuentes-fila::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: linear-gradient(rgba(37, 99, 235, 0), rgba(37, 99, 235, .5));
}
.fuentes-label { font-family: var(--fuente-mono); text-transform: uppercase; color: var(--gris); font-size: 12.5px; letter-spacing: 0.08em; font-weight: 500; margin-right: 4px; }

/* == Statement == */
.statement { position: relative; overflow: hidden; }
.statement .contenedor { position: relative; z-index: 1; }
/* Halo azul suave que respira detrás del texto: da vida sin ensuciar el blanco. */
.statement::before {
  content: ''; position: absolute; top: 50%; left: 2%; width: 620px; height: 620px;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(37,99,235,.22), rgba(37,99,235,.07) 44%, transparent 70%);
  filter: blur(24px); pointer-events: none; z-index: 0;
  animation: statement-glow 8s ease-in-out infinite;
}
@keyframes statement-glow {
  0%, 100% { transform: translate(0, -50%) scale(1); opacity: .85; }
  50% { transform: translate(9%, -54%) scale(1.22); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .statement::before { animation: none; } }
.statement-texto { font-family: var(--fuente-display); font-weight: 500; font-size: clamp(34px, 4.8vw, 58px); line-height: 1.15; color: var(--gris); max-width: 22ch; }
.statement-texto em { font-style: normal; color: var(--azul); }
.statement-texto .w { display: inline-block; }

/* == Chat con citas: header + réplica del producto NODO Brain (3 paneles) == */
.chat-seccion .eyebrow { color: #93B4F8; }
.chat-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.chat-head .titulo-seccion { color: var(--blanco); margin: 14px 0 18px; }
.chat-lede { font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .74); max-width: 62ch; }

.maqueta--app { background: #080B12; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,.3), 0 30px 80px rgba(0,0,0,.5); }
.app-barra { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: rgba(255,255,255,.03); border-bottom: 1px solid rgba(255,255,255,.08); }
.app-barra .maqueta-titulo { color: rgba(255,255,255,.82); }
.app-barra-tab { font-size: 12px; color: rgba(255,255,255,.5); padding: 4px 11px; border-radius: 6px; white-space: nowrap; }
.app-barra-tab.activo { background: rgba(37,99,235,.22); color: #BFD3FF; }
.app-barra .maqueta-estado { margin-left: auto; color: #7EA6FF; }

.app-cuerpo { display: grid; grid-template-columns: 208px 1fr 300px; }
.app-side, .app-ev { display: flex; flex-direction: column; padding: 20px 16px; }
.app-side { gap: 3px; background: rgba(255,255,255,.02); border-right: 1px solid rgba(255,255,255,.07); }
.app-side-label { font-family: var(--fuente-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.4); margin: 14px 0 4px; }
.app-side-label:first-child { margin-top: 0; }
.app-side-item { font-size: 12.5px; color: rgba(255,255,255,.6); padding: 6px 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-side-item--activo { background: rgba(37,99,235,.16); color: #BFD3FF; font-weight: 500; }

.app-conv { padding: 26px 30px 30px; display: flex; flex-direction: column; min-height: 380px; }
.app-eyebrow { font-family: var(--fuente-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.app-pregunta { font-family: var(--fuente-display); font-weight: 500; font-size: clamp(20px, 2.1vw, 27px); line-height: 1.2; letter-spacing: -.01em; color: var(--blanco); margin: 8px 0 20px; }
.app-resp-label { display: inline-flex; align-self: flex-start; align-items: center; gap: 7px; font-family: var(--fuente-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #7EA6FF; margin-bottom: 16px; }
.app-resp-label svg { width: 15px; height: 15px; }
.app-conv .maqueta-respuesta p { font-size: 15.5px; line-height: 1.65; color: rgba(255,255,255,.86); }
.app-conv .maqueta-respuesta strong { color: #fff; font-weight: 600; }
.cita { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin: 0 2px; border-radius: 5px; background: rgba(37,99,235,.24); color: #93B4F8; font-family: var(--fuente-mono); font-size: 11px; font-weight: 600; text-decoration: none; vertical-align: 1px; }

.app-ev { border-left: 1px solid rgba(255,255,255,.07); }
.app-ev .app-side-label { margin: 0 0 4px; }
.ev-card { display: flex; gap: 10px; padding: 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 6px; background: rgba(255,255,255,.02); margin-top: 10px; }
.ev-num { flex-shrink: 0; width: 18px; height: 18px; border-radius: 5px; background: rgba(37,99,235,.24); color: #93B4F8; font-family: var(--fuente-mono); font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.ev-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ev-txt strong { font-size: 12.5px; color: rgba(255,255,255,.9); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-txt span { font-size: 11.5px; line-height: 1.4; color: rgba(255,255,255,.5); }
.ev-txt em { font-family: var(--fuente-mono); font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,.36); font-style: normal; margin-top: 3px; }
.ev-foot { margin-top: auto; padding-top: 18px; font-family: var(--fuente-mono); font-size: 10.5px; color: rgba(255,255,255,.4); }

.app-input { padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); }
.app-input-bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(255,255,255,.03); }
.app-clip { color: rgba(255,255,255,.4); font-size: 17px; line-height: 1; }
.app-ph { flex: 1; font-size: 13.5px; color: rgba(255,255,255,.42); }
.app-send { flex-shrink: 0; width: 30px; height: 30px; border-radius: 7px; background: var(--azul); color: #fff; display: flex; align-items: center; justify-content: center; }
.app-send svg { width: 15px; height: 15px; }

@media (max-width: 900px) {
  .app-cuerpo { grid-template-columns: 1fr 258px; }
  .app-side { display: none; }
}
@media (max-width: 620px) {
  .app-cuerpo { grid-template-columns: 1fr; }
  .app-ev { border-left: none; border-top: 1px solid rgba(255,255,255,.07); }
  .app-conv { min-height: 0; padding: 22px 20px 24px; }
  .app-barra-tab { display: none; }
}

/* == Statement + compromisos (2 columnas, sin espacio muerto) == */
.statement .contenedor { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.statement-texto { max-width: 20ch; }
.claims { display: flex; flex-direction: column; gap: 28px; }
.claim { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; }
.claim-num { grid-row: 1 / 3; font-family: var(--fuente-mono); font-size: 13px; font-weight: 500; color: var(--azul); padding-top: 2px; }
.claim h3 { font-size: 18.5px; color: var(--tinta); }
.claim p { font-size: 15px; color: var(--gris); margin-top: 8px; line-height: 1.55; }
@media (max-width: 900px) {
  .statement .contenedor { grid-template-columns: 1fr; gap: 44px; }
  .statement-texto { max-width: 22ch; }
}

/* == Caso Vega (reseña como héroe + banda de métricas limpia) == */
.caso-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: clamp(32px, 4vw, 52px); }
.caso-head .eyebrow { margin: 0; }
.caso-logo { display: block; height: 32px; width: auto; filter: grayscale(1) contrast(1.4); mix-blend-mode: multiply; opacity: .85; }

.caso { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(36px, 5vw, 64px); align-items: stretch; }
/* La foto ya no manda la altura: se amarra a la de la cita (img absoluta, sin altura intrínseca). */
.caso-foto { position: relative; border-radius: var(--radio); overflow: hidden; min-height: 300px; }
.caso-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* La cita: héroe editorial con comilla gigante en acento. */
.caso-cita { position: relative; display: flex; flex-direction: column; justify-content: center; margin: 0; padding-top: 8px; }
.caso-cita::before { content: '\201C'; position: absolute; top: -0.34em; left: -0.04em; font-family: var(--fuente-display); font-weight: 700; font-size: clamp(110px, 13vw, 168px); line-height: 1; color: rgba(37, 99, 235, .15); pointer-events: none; z-index: 0; }
.caso-cita blockquote { position: relative; z-index: 1; font-family: var(--fuente-display); font-weight: 500; font-size: clamp(24px, 2.9vw, 38px); line-height: 1.22; letter-spacing: -.015em; color: var(--tinta); margin: 0; }
.caso-cita figcaption { display: flex; align-items: center; gap: 16px; margin-top: clamp(28px, 4vw, 40px); }
.caso-cita figcaption img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.caso-cita figcaption strong { display: block; font-family: var(--fuente-display); font-weight: 600; font-size: 17.5px; color: var(--tinta); }
.caso-cita figcaption em { display: block; font-style: normal; font-family: var(--fuente-mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--gris); margin-top: 5px; }

/* Métricas: banda horizontal con reglas finas (números duros como evidencia). */
.caso-metricas { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(36px, 4vw, 56px); border-top: 1px solid rgba(10, 10, 10, .16); padding-top: clamp(28px, 3.5vw, 40px); }
.metrica { padding-left: clamp(24px, 3vw, 40px); border-left: 1px solid rgba(10, 10, 10, .12); }
.metrica:first-child { padding-left: 0; border-left: none; }
.metrica strong { display: block; font-family: var(--fuente-display); font-weight: 500; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -.02em; color: var(--tinta); }
.metrica span { display: block; margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--gris); max-width: 24ch; }
@media (max-width: 860px) {
  .caso { grid-template-columns: 1fr; gap: 28px; }
  .caso-foto { min-height: 0; height: 280px; overflow: hidden; order: -1; }
  .caso-metricas { grid-template-columns: 1fr; padding-top: 28px; }
  .metrica { padding-left: 0; border-left: none; }
  .metrica + .metrica { margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(10, 10, 10, .1); }
}
@media (max-width: 560px) {
  .caso-head { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* == Como trabajamos (índice editorial estilo Palantir: nombres gigantes + reglas finas + índice mono) == */
.proceso { list-style: none; padding: 0; margin-top: 8px; }
.proceso-fila {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: baseline;
  gap: 24px; padding: clamp(24px, 3.4vw, 40px) 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
  transition: padding-left .45s cubic-bezier(.22,1,.36,1);
}
.proceso-fila:last-child { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.proceso-fila::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--azul); transition: width .55s cubic-bezier(.22,1,.36,1); }
.proceso-txt h3 { font-family: var(--fuente-display); font-weight: 500; font-size: clamp(30px, 4.6vw, 60px); letter-spacing: -.02em; line-height: 1.02; color: var(--blanco); transition: color .35s ease; }
.proceso-txt p { font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .62); max-width: 56ch; margin-top: 12px; }
.proceso-idx { font-family: var(--fuente-mono); font-size: 13px; letter-spacing: 0.04em; color: #93B4F8; align-self: start; padding-top: 10px; }
.proceso-fila:hover { padding-left: clamp(12px, 1.6vw, 24px); }
.proceso-fila:hover::after { width: 100%; }
.proceso-fila:hover .proceso-txt h3 { color: #CFE0FF; }
.proceso + .btn--secundario { margin-top: 48px; }
@media (hover: none) {
  .proceso-fila:hover { padding-left: 0; }
  .proceso-fila:hover::after { width: 0; }
}

/* == Fundadores == */
.fundadores { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 48px); }
.fundador { display: flex; align-items: flex-start; gap: 24px; }
.fundador img { width: 120px; height: 148px; border-radius: var(--radio); object-fit: cover; object-position: top; flex-shrink: 0; filter: grayscale(1); transition: filter .4s ease; }
.fundador:hover img { filter: grayscale(0); }
.fundador-info { display: flex; flex-direction: column; padding-top: 6px; }
.fundador-info strong { font-family: var(--fuente-display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
.fundador-cargo { font-family: var(--fuente-mono); font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--azul); margin: 8px 0 14px; }
.fundador-info p { font-size: 15px; line-height: 1.55; color: var(--gris); }
@media (max-width: 700px) {
  .fundadores { grid-template-columns: 1fr; }
  .fundador img { width: 96px; height: 118px; }
}

.modelos-strip { margin-top: 64px; text-align: center; }
.modelos-label { font-family: var(--fuente-mono); font-weight: 500; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gris); margin-bottom: 20px; }
.modelos-logos { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 40px; }
.modelos-logos svg { height: 22px; width: auto; filter: grayscale(1) opacity(.55); }

/* == Cierre == */
.btn--blanco { background: var(--blanco); color: var(--azul); }
.btn--blanco:hover { background: var(--crema); }
.cierre { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cierre h2 { font-size: clamp(30px, 4vw, 44px); max-width: 24ch; color: var(--blanco); }
.cierre-acciones { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 36px; }
.cierre-mail { color: var(--blanco); font-size: 15.5px; font-weight: 600; text-decoration: none; }
.cierre-tels { font-family: var(--fuente-mono); font-size: 13.5px; color: rgba(255, 255, 255, .7); margin-top: 24px; }
@media (max-width: 560px) {
  .cierre-acciones { flex-direction: column; gap: 16px; }
}

/* == Contacto con formulario == */
.contacto-final { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.contacto-intro h2 { font-size: clamp(28px, 3.6vw, 42px); max-width: 16ch; color: var(--blanco); }
.contacto-lede { color: rgba(255, 255, 255, .85); margin-top: 18px; font-size: 16px; line-height: 1.55; max-width: 42ch; }
.contacto-canales { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.contacto-canales a { color: var(--blanco); font-size: 15.5px; font-weight: 600; text-decoration: none; width: fit-content; }
.contacto-canales a:hover { text-decoration: underline; }
.contacto-final .cierre-tels { margin-top: 20px; }

.form-nodo { position: relative; background: var(--blanco); border-radius: 10px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 24px 60px rgba(0, 0, 0, .22); display: flex; flex-direction: column; gap: 12px; }
.form-nodo-titulo { font-family: var(--fuente-display); font-weight: 600; font-size: 18px; color: var(--tinta); margin-bottom: 2px; }
.form-nodo input, .form-nodo textarea { width: 100%; padding: 13px 14px; border: 1px solid #E2E0DA; border-radius: var(--radio); font-family: var(--fuente-texto); font-size: 15px; color: var(--tinta); background: var(--crema); transition: border-color .15s, background .15s; }
.form-nodo input::placeholder, .form-nodo textarea::placeholder { color: #9A968E; }
.form-nodo input:focus, .form-nodo textarea:focus { outline: none; border-color: var(--azul); background: var(--blanco); }
.form-nodo textarea { resize: vertical; min-height: 74px; }
.form-nodo .btn--blanco { border: 1px solid var(--azul); color: var(--azul); margin-top: 4px; }
.form-nodo .btn--blanco:hover { background: var(--azul); color: var(--blanco); }
.formc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.formc-error { display: none; color: #DC2626; font-size: 13.5px; }
.formc-ok { display: none; color: var(--tinta); font-size: 15px; font-weight: 600; }
.form-nodo-privacy { font-size: 12.5px; color: var(--gris); margin-top: 2px; }
.form-nodo-privacy a { color: var(--azul); }
@media (max-width: 820px) {
  .contacto-final { grid-template-columns: 1fr; gap: 32px; }
}

/* == Footer == */
.pie { background: var(--tinta); color: rgba(255, 255, 255, .65); }
.pie-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 72px 0 48px; }
.pie-col { display: flex; flex-direction: column; gap: 10px; }
.pie-col h4 { font-family: var(--fuente-mono); font-weight: 500; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-bottom: 4px; }
.pie-col a { color: rgba(255, 255, 255, .9); font-size: 14.5px; text-decoration: none; }
.pie-col a:hover { color: var(--blanco); }
.pie-final { border-top: 1px solid rgba(255, 255, 255, .12); font-family: var(--fuente-mono); font-size: 11.5px; color: rgba(255, 255, 255, .45); padding: 24px 0; }
@media (max-width: 760px) {
  .pie-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .pie-grid { grid-template-columns: 1fr; }
}

/* == Interacciones y micro-animaciones == */
.nav { transition: background .3s ease, border-color .3s ease, box-shadow .3s ease; }
.nav--scroll { background: var(--crema); border-bottom-color: rgba(10,10,10,.08); box-shadow: 0 1px 0 rgba(10,10,10,.04), 0 8px 24px rgba(10,10,10,.06); }

/* Costura oscuro→claro: filo de luz tenue en el borde superior de los bloques oscuros. */
.seccion--oscura { box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }

.btn { transition: background .18s ease, border-color .18s ease, transform .22s cubic-bezier(.22,1,.36,1), box-shadow .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primario:hover { box-shadow: 0 10px 26px rgba(37,99,235,.34); }
.btn--blanco:hover { box-shadow: 0 10px 26px rgba(0,0,0,.18); }

/* Sheen: un brillo diagonal cruza el botón primario al pasar el cursor. */
.btn--primario::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 55%; height: 100%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.42), transparent);
  transform: skewX(-18deg); transition: left .6s ease; pointer-events: none;
}
.btn--primario:hover::after { left: 150%; }
/* Fill-wipe: el botón secundario se rellena de abajo hacia arriba al hover. */
.btn--secundario::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(10,10,10,.06);
  transform: translateY(102%); transition: transform .42s cubic-bezier(.22,1,.36,1);
}
.btn--secundario:hover::before { transform: translateY(0); }
.hero--v3 .btn--secundario::before, .seccion--oscura .btn--secundario::before, .seccion--azul .btn--secundario::before { background: rgba(255,255,255,.14); }
@media (prefers-reduced-motion: reduce) {
  .btn--primario::after, .btn--secundario::before { display: none; }
}

/* Nav links: subrayado azul que se dibuja al hover. */
.nav-links a { position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -5px; height: 1.5px; width: 0; background: var(--azul); transition: width .28s cubic-bezier(.22,1,.36,1); }
.nav-links a:hover::after { width: 100%; }
@media (max-width: 900px) { .nav-links a::after { display: none; } }

/* Entrada del hero: eyebrow → título → sub → botones en cascada al cargar (una vez). */
@keyframes heroUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
html.js .hero-centro > * { opacity: 0; animation: heroUp .8s cubic-bezier(.22,1,.36,1) forwards; }
html.js .hero-centro > .eyebrow { animation-delay: .05s; }
html.js .hero-centro > h1 { animation-delay: .16s; }
html.js .hero-centro > .hero-sub { animation-delay: .30s; }
html.js .hero-centro > .hero-acciones { animation-delay: .42s; }
@media (prefers-reduced-motion: reduce) {
  html.js .hero-centro > * { opacity: 1; animation: none; }
}
