/* ════════════════════════════════════════════════════════════════
   TeleDesk Landing v2 — "Presencia Tangible"
   HTML/CSS estático. Sin frameworks. Sin JS de presentación.
   Solo transform/opacity en animaciones. AA verificado.
   ════════════════════════════════════════════════════════════════ */

/* ── Fuente display (self-hosted, un solo archivo) ─────────────── */
@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/instrument-sans-var.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: normal;
  font-display: optional;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Tokens ────────────────────────────────────────────────────── */
:root {
  /* Marca */
  --brand-700: #6d28d9;
  --brand-600: #7c3aed;
  --brand-500: #8b5cf6;
  --brand-400: #a78bfa;
  --brand-300: #c4b5fd;
  --brand-200: #ddd6fe;
  --brand-100: #ede9fe;

  /* Bandas oscuras (violeta-negro, nunca #000) */
  --ink-950: #0a0613;
  --ink-900: #130c22;
  --ink-800: #1d1433;
  --line-dark: rgba(237, 233, 254, 0.10);
  --line-dark-strong: rgba(237, 233, 254, 0.16);
  --text-dark-hi: #f2eefb;
  --text-dark-mid: #a9a1bd;
  --text-dark-low: #6f6887; /* solo decorativo dentro de visuales aria-hidden */

  /* Bandas claras (papel con tinte violeta) */
  --paper: #faf9fc;
  --surface: #ffffff;
  --line: #e9e5f2;
  --text: #17122b;
  --muted: #5d5772;

  /* Semánticos */
  --online: #059669;
  --warn-text: #92400e;
  --warn-bg: #fffbeb;
  --warn-line: #fde68a;

  /* Glow (solo dark) */
  --glow-brand: rgba(124, 58, 237, 0.16);

  /* Tipografía */
  --font-display: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --text-hero: clamp(2.375rem, 1.2rem + 5.2vw, 4.25rem);
  --text-h2: clamp(1.75rem, 1.25rem + 2.2vw, 2.625rem);
  --text-h3: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --text-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);

  /* Ritmo */
  --space-section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --space-head: clamp(2.5rem, 2rem + 2vw, 4rem);

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.45, 0, .55, 1);
  --dur-fast: 150ms;
  --dur-base: 200ms;
  --dur-slow: 300ms;
}

/* ── Base ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html { -webkit-text-size-adjust: 100%; }

/* el header sticky no debe tapar el inicio de sección al navegar por anclas */
section[id] { scroll-margin-top: 88px; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--brand-100); color: var(--brand-700); }

.container { max-width: 1120px; margin: 0 auto; padding-inline: clamp(1.25rem, 4vw, 2rem); }
.container-narrow { max-width: 740px; margin: 0 auto; padding-inline: clamp(1.25rem, 4vw, 2rem); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
}

.skip-link {
  position: absolute; top: -48px; left: 1rem; z-index: 200;
  background: var(--brand-600); color: #fff;
  padding: .625rem 1.25rem; border-radius: 0 0 10px 10px;
  font: 600 .875rem/1.2 var(--font-body); text-decoration: none;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus-visible { top: 0; }

:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }
.band-dark :focus-visible { outline-color: var(--brand-300); }

/* ── Botones ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .6875rem 1.5rem; border-radius: 10px;
  font: 600 .9375rem/1.2 var(--font-body); letter-spacing: .01em;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  min-height: 44px;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) ease,
              background-color var(--dur-fast) ease,
              border-color var(--dur-fast) ease,
              color var(--dur-fast) ease;
}
.btn:active { transform: translateY(0) scale(.985); }

.btn-primary {
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  color: #fff;
  box-shadow: 0 1px 2px rgba(23, 18, 43, .2), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -6px rgba(124, 58, 237, .55), inset 0 1px 0 rgba(255, 255, 255, .18);
}
/* en banda oscura el botón primario emite un halo en reposo */
.band-dark .btn-primary {
  box-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 0 28px -8px rgba(124, 58, 237, .45),
              inset 0 1px 0 rgba(255, 255, 255, .18);
}
.band-dark .btn-primary:hover {
  box-shadow: 0 6px 24px -6px rgba(124, 58, 237, .6), 0 0 36px -8px rgba(124, 58, 237, .5),
              inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary .btn-arrow { transition: transform var(--dur-fast) var(--ease-out); }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }

.btn-secondary {
  background: var(--surface); color: var(--text);
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(23, 18, 43, .05);
}
.btn-secondary:hover { border-color: var(--brand-300); color: var(--brand-700); }

.btn-secondary-dark {
  background: rgba(255, 255, 255, .06); color: var(--text-dark-hi);
  border-color: var(--line-dark-strong);
}
.btn-secondary-dark:hover { background: rgba(255, 255, 255, .1); }

.btn-lg { padding: .8125rem 1.875rem; border-radius: 12px; font-size: 1rem; }
.btn-xl { padding: .9375rem 2.25rem; border-radius: 13px; font-size: 1.0625rem; }

/* ── Header ────────────────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 249, 252, .86); /* fallback sin color-mix */
  background: color-mix(in oklab, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: .5625rem; text-decoration: none; color: var(--text); }
.logo-name {
  font-family: var(--font-display);
  font-size: 1.125rem; font-weight: 650; letter-spacing: -.02em;
}

.header-nav { display: flex; align-items: center; gap: 1.625rem; }
.nav-link {
  text-decoration: none; color: var(--muted);
  font-size: .9375rem; font-weight: 500;
  text-underline-offset: 6px; text-decoration-color: var(--brand-400);
  transition: color var(--dur-fast) ease;
}
.nav-link:hover { color: var(--text); text-decoration: underline; }
.header-nav .btn { padding: .5rem 1.125rem; font-size: .875rem; min-height: 40px; }

/* ── Bandas ────────────────────────────────────────────────────── */
.band-dark {
  background: var(--ink-950);
  color: var(--text-dark-hi);
  position: relative;
  box-shadow: inset 0 1px 0 rgba(167, 139, 250, .12); /* entrada al dark desde light */
}
/* costura: hilo de luz al salir de la banda oscura */
.band-seam {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: 2;
  background: linear-gradient(90deg, transparent 5%, rgba(167, 139, 250, .4) 50%, transparent 95%);
  pointer-events: none;
}
.band-dark::after {
  /* grain sutil: solo bandas oscuras */
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: .035;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.band-dark > * { position: relative; z-index: 1; }

/* ── Secciones compartidas ─────────────────────────────────────── */
section { padding-block: var(--space-section); }
section.section-tight { padding-block: calc(var(--space-section) * .75); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .625rem;
  font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--brand-700);
  margin-bottom: .875rem;
}
.eyebrow::before {
  content: '';
  width: 20px; height: 1px;
  background: currentColor; opacity: .5;
}
.band-dark .eyebrow { color: var(--brand-400); }

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 620;
  letter-spacing: -.025em;
  line-height: 1.12;
  margin-bottom: 1.125rem;
  text-wrap: balance;
}
.section-sub {
  font-size: var(--text-lead);
  color: var(--muted);
  line-height: 1.65;
  max-width: 58ch;
}
.band-dark .section-sub { color: var(--text-dark-mid); }
.section-head { margin-bottom: var(--space-head); }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero { padding-block: clamp(4rem, 3rem + 4vw, 6.5rem); overflow: hidden; }
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 90% at 75% 40%, var(--glow-brand) 0%, transparent 60%),
    radial-gradient(ellipse 50% 45% at 12% 92%, rgba(109, 40, 217, .07) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(124, 58, 237, .08);
  border: 1px solid rgba(167, 139, 250, .22);
  color: var(--brand-300);
  padding: .3125rem .875rem .3125rem .625rem;
  border-radius: 100px;
  font-size: .8125rem; font-weight: 500;
  margin-bottom: 1.75rem;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--online);
  animation: badge-pulse 2.5s var(--ease-in-out) infinite;
}
@keyframes badge-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 655;
  line-height: 1.04;
  letter-spacing: -.035em;
  margin-bottom: 1.375rem;
  color: var(--text-dark-hi);
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand-300); /* fallback */
  background: linear-gradient(100deg, var(--brand-300), var(--brand-400));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: var(--text-lead);
  color: var(--text-dark-mid);
  line-height: 1.65;
  margin-bottom: 2.25rem;
  max-width: 48ch;
}

.hero-ctas { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.hero-hint { margin-top: 1rem; font-size: .8125rem; color: var(--text-dark-mid); }

/* ── Hero visual: el plano vivo ────────────────────────────────── */
.hero-visual {
  position: relative;
  min-height: 460px;
  display: flex; align-items: center; justify-content: center;
}

.stage {
  perspective: 1400px;
  perspective-origin: 50% 30%;
  width: 100%;
  display: flex; justify-content: center;
  position: relative;
}
/* piso de luz: ancla el plano al suelo */
.stage::after {
  content: '';
  position: absolute; left: 50%; bottom: -6%;
  width: 78%; height: 22%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(124, 58, 237, .14), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
  z-index: -1;
}

.plane {
  width: min(560px, 96%);
  aspect-ratio: 16 / 11;
  transform: rotateX(52deg) rotateZ(-38deg);
  transform-style: preserve-3d;
  position: relative;
  background:
    linear-gradient(rgba(167, 139, 250, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 139, 250, .08) 1px, transparent 1px),
    linear-gradient(160deg, #161028, #0d0818);
  background-size: 36px 36px, 36px 36px, 100% 100%;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  box-shadow:
    0 60px 90px -40px rgba(0, 0, 0, .8),
    0 0 60px -24px var(--glow-brand),
    inset 0 1px 0 rgba(167, 139, 250, .14); /* canto iluminado */
}

/* Zonas sobre el plano */
.zone {
  position: absolute;
  background: rgba(124, 58, 237, .07);
  border: 1px solid rgba(167, 139, 250, .22);
  border-radius: 12px;
}
.zone-label {
  position: absolute; top: 7px; left: 8px;
  display: inline-flex; align-items: center;
  padding: 2px 7px;
  background: rgba(10, 6, 19, .55);
  border: 1px solid rgba(167, 139, 250, .14);
  border-radius: 5px;
  font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: #8b82a6;
  user-select: none;
}
.zone-foco    { top: 8%;  left: 6%;  width: 42%; height: 44%; }
.zone-standup { top: 10%; right: 6%; width: 38%; height: 40%;
                box-shadow: inset 0 0 24px rgba(124, 58, 237, .12); }
.zone-cafe    { bottom: 8%; left: 8%; width: 34%; height: 30%; }

/* Anillo de proximidad (en el plano, ventana sincronizada 22s) */
.prox-ring {
  position: absolute;
  left: 56%; top: 18%;
  width: 130px; height: 80px;
  border: 1.5px solid rgba(167, 139, 250, .55);
  border-radius: 50%;
  background: rgba(124, 58, 237, .08);
  opacity: 0;
  animation: prox-window 22s var(--ease-in-out) infinite;
}
.prox-ring-pulse {
  position: absolute; inset: -6px;
  border: 1px solid rgba(167, 139, 250, .35);
  border-radius: 50%;
  animation: prox-pulse 2.6s var(--ease-in-out) infinite alternate;
}
@keyframes prox-window {
  0%, 26% { opacity: 0; }
  30%, 54% { opacity: .9; }
  58%, 100% { opacity: 0; }
}
@keyframes prox-pulse {
  from { transform: scale(1); opacity: .8; }
  to   { transform: scale(1.12); opacity: .3; }
}

/* Actores: wrapper anima el paseo; inner contra-rota para "pararse" */
.actor {
  position: absolute;
  width: 32px; height: 32px;
  transform-style: preserve-3d;
}
@media (prefers-reduced-motion: no-preference) {
  .actor { will-change: transform; }
}
/* sombra de contacto pegada al suelo (sin contra-rotación) */
.actor::before {
  content: '';
  position: absolute; left: 50%; top: 60%;
  width: 26px; height: 10px;
  margin-left: -13px;
  background: rgba(0, 0, 0, .45);
  border-radius: 50%;
  filter: blur(3px);
}
.actor-inner {
  position: absolute; inset: 0;
  transform: rotateZ(38deg) rotateX(-52deg);
  transform-origin: 50% 100%;
}
.actor-chip {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font: 800 11px/1 var(--font-body); color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .55);
  position: relative;
}
.actor-chip::after {
  content: '';
  position: absolute; bottom: -1px; right: -1px;
  width: 9px; height: 9px;
  background: var(--online);
  border-radius: 50%;
  border: 2px solid var(--ink-950);
}

/* Barras de voz (visibles solo en la ventana de proximidad) */
.voice {
  position: absolute; top: -16px; left: 50%;
  display: flex; gap: 2px; align-items: flex-end;
  transform: translateX(-50%);
  opacity: 0;
  animation: prox-window 22s var(--ease-in-out) infinite;
}
.voice span {
  width: 3px; height: 10px; border-radius: 2px;
  background: var(--brand-300);
  transform-origin: bottom;
  animation: voice-bar .55s var(--ease-in-out) infinite alternate;
}
.voice span:nth-child(2) { animation-duration: .68s; }
.voice span:nth-child(3) { animation-duration: .82s; }
@keyframes voice-bar { from { transform: scaleY(.3); } to { transform: scaleY(1); } }

/* Posiciones y paseos */
.actor-p { left: 26%; top: 58%; animation: walk-p 22s var(--ease-in-out) infinite; }
.actor-a { left: 72%; top: 24%; animation: walk-a 22s var(--ease-in-out) infinite; }
.actor-m { left: 18%; top: 22%; animation: walk-m 27s var(--ease-in-out) infinite; }
.actor-r { left: 20%; top: 76%; animation: walk-r 31s var(--ease-in-out) infinite; }

.actor-p .actor-chip { background: var(--brand-600); }
.actor-a .actor-chip { background: #0d9488; }
.actor-m .actor-chip { background: #b45309; }
.actor-r .actor-chip { background: #be185d; }

/* profundidad: los actores más lejanos de cámara se ven algo menores */
.actor-a .actor-inner, .actor-m .actor-inner { scale: .92; }
.actor-r .actor-inner { scale: 1.04; }

/* P camina a la zona standup, conversa (28–55%) y vuelve */
@keyframes walk-p {
  0%, 18%   { transform: translate(0, 0); }
  28%, 55%  { transform: translate(190px, -118px); }
  68%, 88%  { transform: translate(50px, -20px); }
  100%      { transform: translate(0, 0); }
}
/* A merodea dentro de standup y recibe a P */
@keyframes walk-a {
  0%, 20%   { transform: translate(0, 0); }
  30%, 52%  { transform: translate(-18px, 12px); }
  64%, 86%  { transform: translate(10px, -8px); }
  100%      { transform: translate(0, 0); }
}
@keyframes walk-m {
  0%, 22%  { transform: translate(0, 0); }
  36%, 58% { transform: translate(46px, 26px); }
  72%, 90% { transform: translate(12px, -10px); }
  100%     { transform: translate(0, 0); }
}
@keyframes walk-r {
  0%, 25%  { transform: translate(0, 0); }
  42%, 60% { transform: translate(38px, -16px); }
  78%, 92% { transform: translate(-8px, 8px); }
  100%     { transform: translate(0, 0); }
}

/* UI flotante fuera del plano */
.float-card {
  position: absolute;
  background: rgba(19, 12, 34, .78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-dark-strong);
  border-radius: 14px;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .7);
  z-index: 5;
}

.presence-panel {
  top: 2%; right: 0;
  width: 186px;
  padding: .875rem 1rem;
  animation: float-1 9s var(--ease-in-out) infinite alternate;
}
.presence-title {
  font-size: 11px; font-weight: 700;
  color: var(--text-dark-hi);
  letter-spacing: .02em;
  margin-bottom: .625rem;
}
.presence-row {
  display: flex; align-items: center; gap: .5rem;
  font-size: 11px; color: var(--text-dark-mid);
  padding-block: .25rem;
}
.presence-row .pa {
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 9px/1 var(--font-body); color: #fff;
  flex-shrink: 0; position: relative;
}
.presence-row .pa::after {
  content: '';
  position: absolute; bottom: -1px; right: -1px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--online); border: 1.5px solid rgba(19, 12, 34, .9);
}
.presence-row .p-zone { margin-left: auto; color: #8b82a6; font-size: 10px; }

.audio-toast {
  bottom: 6%; left: -2%;
  display: flex; align-items: center; gap: .5625rem;
  padding: .6875rem .9375rem;
  font-size: 12px; font-weight: 600; color: var(--text-dark-hi);
  opacity: 0;
  animation: toast-window 22s var(--ease-in-out) infinite;
}
.audio-toast svg { color: var(--brand-400); flex-shrink: 0; }
.toast-eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.toast-eq span {
  width: 2.5px; height: 10px; border-radius: 2px; background: var(--brand-400);
  transform-origin: bottom;
  animation: voice-bar .55s var(--ease-in-out) infinite alternate;
}
.toast-eq span:nth-child(2) { animation-duration: .68s; }
.toast-eq span:nth-child(3) { animation-duration: .82s; }
@keyframes toast-window {
  0%, 28%  { opacity: 0; transform: translateY(8px); }
  32%, 54% { opacity: 1; transform: translateY(0); }
  58%, 100% { opacity: 0; transform: translateY(8px); }
}
@keyframes float-1 { from { transform: translateY(0); } to { transform: translateY(-10px); } }

/* ── Problema: split sticky + lista editorial ──────────────────── */
.problem-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
}
.problem-split .section-head { margin-bottom: 0; position: sticky; top: 96px; }

.friction-list { list-style: none; }
.friction {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.25rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
}
.friction:last-child { border-bottom: 1px solid var(--line); }
.friction-num {
  font-family: var(--font-display);
  font-weight: 430;
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  color: var(--brand-400);
  line-height: 1.3;
  transition: color var(--dur-base) ease;
}
.friction:hover .friction-num { color: var(--brand-600); }
.friction h3 {
  font-family: var(--font-display);
  font-size: 1.125rem; font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: .375rem;
}
.friction p { font-size: .9375rem; color: var(--muted); line-height: 1.6; }

/* Comparativa honesta de una pregunta */
.compare {
  margin-top: var(--space-head);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}
.compare-q {
  font-family: var(--font-display);
  font-size: 1.0625rem; font-weight: 600;
  letter-spacing: -.01em;
  padding: 1.375rem 1.75rem;
  border-bottom: 1px solid var(--line);
}
.compare-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.compare-cell { padding: 1.375rem 1.75rem; }
.compare-cell + .compare-cell { border-left: 1px solid var(--line); }
.compare-cell p { font-size: .9375rem; color: var(--muted); }
.compare-cell .compare-tool {
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: .5rem;
}
.compare-cell.is-teledesk {
  background: var(--brand-100);
  box-shadow: inset 0 0 0 1px var(--brand-300);
}
.compare-cell.is-teledesk .compare-tool { color: var(--brand-700); }
.compare-cell.is-teledesk p { color: var(--text); font-weight: 600; }

/* CTA de convicción tras la comparativa */
.compare-cta {
  margin-top: 1.5rem;
  text-align: center;
}
.compare-cta a {
  display: inline-flex; align-items: center; gap: .375rem;
  color: var(--brand-700);
  font-size: .9375rem; font-weight: 600;
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color var(--dur-fast) ease;
}
.compare-cta a:hover { text-decoration: underline; }
.compare-cta .btn-arrow { transition: transform var(--dur-fast) var(--ease-out); }
.compare-cta a:hover .btn-arrow { transform: translateX(3px); }

/* ── Features: bento ───────────────────────────────────────────── */
.band-surface { background: var(--surface); border-block: 1px solid var(--line); }

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.bento-cell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(23, 18, 43, .04), 0 12px 32px -16px rgba(109, 40, 217, .07),
              inset 0 1px 0 #fff;
  transition: border-color var(--dur-base) ease,
              box-shadow var(--dur-slow) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.bento-cell:hover {
  transform: translateY(-2px);
  border-color: var(--brand-200);
  box-shadow: 0 1px 2px rgba(23, 18, 43, .04), 0 20px 44px -18px rgba(109, 40, 217, .16),
              inset 0 1px 0 #fff;
}
.cell-proximity { grid-column: span 7; grid-row: span 2; display: flex; flex-direction: column; }
.cell-presence  { grid-column: span 5; grid-row: span 2; display: flex; flex-direction: column; }
.cell-third     { grid-column: span 4; }

.bento-cell h3 {
  font-family: var(--font-display);
  font-size: var(--text-h3); font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: .5rem;
}
.bento-cell > p { font-size: .9375rem; color: var(--muted); line-height: 1.6; }

.icon-chip {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(180deg, #f3effc, var(--brand-100));
  border: 1px solid var(--brand-200);
  box-shadow: inset 0 1px 0 #fff;
  color: var(--brand-700);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}

/* Mini-diagrama de proximidad (celda grande) */
.proximity-diagram {
  margin-top: auto;
  padding-top: 2rem;
  position: relative;
  height: 150px;
  display: flex; align-items: center; justify-content: center;
}
.pd-floor {
  position: absolute; inset: 1.5rem 0 0;
  background:
    linear-gradient(rgba(124, 58, 237, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, .06) 1px, transparent 1px);
  background-size: 28px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.pd-pair { position: relative; display: flex; align-items: center; gap: 1.625rem; }
.pd-chip {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font: 800 13px/1 var(--font-body); color: #fff;
  position: relative; z-index: 1;
  box-shadow: 0 3px 12px rgba(23, 18, 43, .18);
}
.pd-chip::after {
  content: '';
  position: absolute; bottom: 0; right: 0;
  width: 10px; height: 10px;
  background: var(--online); border-radius: 50%;
  border: 2px solid var(--paper);
}
.pd-ring {
  position: absolute; inset: -16px -22px;
  border: 1.5px solid var(--brand-400);
  border-radius: 100px;
  background: rgba(124, 58, 237, .05);
  animation: prox-pulse 2.6s var(--ease-in-out) infinite alternate;
}
.pd-voice { display: flex; gap: 2.5px; align-items: flex-end; position: relative; z-index: 1; }
.pd-voice span {
  width: 3.5px; height: 14px; border-radius: 2px;
  background: var(--brand-500);
  transform-origin: bottom;
  animation: voice-bar .55s var(--ease-in-out) infinite alternate;
}
.pd-voice span:nth-child(2) { animation-duration: .68s; }
.pd-voice span:nth-child(3) { animation-duration: .82s; }
.pd-caption {
  position: absolute; bottom: .625rem; left: 0; right: 0;
  text-align: center;
  font-size: .75rem; color: var(--muted);
}

/* Mini panel de presencia (celda lateral) */
.presence-mini {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex; flex-direction: column; gap: .375rem;
}
.presence-mini .pm-row {
  display: flex; align-items: center; gap: .625rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .625rem .875rem;
  font-size: .8125rem; color: var(--text);
}
.pm-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--online); flex-shrink: 0; }
.pm-zone { margin-left: auto; color: var(--muted); font-size: .75rem; }

/* ── Cómo funciona: timeline dark ──────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  position: relative;
  list-style: none;
  counter-reset: step;
}
.steps::before {
  content: '';
  position: absolute; top: 22px;
  left: calc(16.66% - 1rem); right: calc(16.66% - 1rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-dark-strong) 15%, var(--line-dark-strong) 85%, transparent);
}
.step { position: relative; padding-top: 3.5rem; }
.step-num {
  position: absolute; top: 0; left: 0;
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 460;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--brand-400);
  background: var(--ink-950);
  padding-right: .75rem;
  z-index: 1;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.125rem; font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text-dark-hi);
  margin-bottom: .625rem;
}
.step p { font-size: .9375rem; color: var(--text-dark-mid); line-height: 1.65; }

/* ── Una sola standup ──────────────────────────────────────────── */
.standup-inner {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}
.standup-inner > * { min-width: 0; }
.standup-list { list-style: none; margin-top: 1.75rem; display: flex; flex-direction: column; gap: 1rem; }
.standup-list li {
  display: flex; gap: .875rem; align-items: flex-start;
  font-size: .9688rem; color: var(--text); line-height: 1.55;
}
.standup-check {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-100); color: var(--brand-700);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: .125rem;
}
.standup-cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(23, 18, 43, .04), 0 12px 32px -16px rgba(109, 40, 217, .07),
              inset 0 1px 0 #fff;
  transition: border-color var(--dur-base) ease, box-shadow var(--dur-slow) var(--ease-out);
}
.standup-cta:hover {
  border-color: var(--brand-200);
  box-shadow: 0 1px 2px rgba(23, 18, 43, .04), 0 20px 44px -18px rgba(109, 40, 217, .16),
              inset 0 1px 0 #fff;
}
.standup-cta h3 {
  font-family: var(--font-display);
  font-size: 1.1875rem; font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: .625rem;
}
.standup-cta > p { font-size: .9375rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.5rem; }
.standup-cta .micro { margin-top: .875rem; margin-bottom: 0; font-size: .8125rem; }

/* refuerzo del camino a producción, subordinado a la demo */
.standup-app-link {
  margin-top: 1.25rem;
  padding-top: 1.125rem;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  color: var(--muted);
}
.standup-app-link a {
  display: inline-flex; align-items: center; gap: .25rem;
  margin-left: .375rem;
  color: var(--brand-700);
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 4px;
}
.standup-app-link a:hover { text-decoration: underline; }
.standup-app-link a:hover .btn-arrow { transform: translateX(3px); }
.standup-app-link .btn-arrow { transition: transform var(--dur-fast) var(--ease-out); }

/* ── Para quién es / para quién no ─────────────────────────────── */
.fit-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
.fit-head {
  font-family: var(--font-display);
  font-size: 1.0625rem; font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 1.125rem;
}
.fit-head-yes { color: var(--text); }
.fit-head-no { color: var(--muted); }
.fit-list { list-style: none; display: flex; flex-direction: column; }
.fit-list li {
  display: flex; gap: .875rem; align-items: flex-start;
  padding-block: .9375rem;
  border-top: 1px solid var(--line);
  font-size: .9375rem; color: var(--muted); line-height: 1.6;
}
.fit-list li:last-child { border-bottom: 1px solid var(--line); }
.fit-icon {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: .125rem;
}
.fit-icon-yes { background: #d1fae5; color: var(--online); }
.fit-icon-no { background: #f1eef8; color: var(--muted); }

/* ── Confianza: ledger ─────────────────────────────────────────── */
.trust-split {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.trust-list { list-style: none; display: flex; flex-direction: column; }
.trust-item {
  display: flex; gap: .875rem; align-items: flex-start;
  padding-block: 1.0625rem;
  border-top: 1px solid var(--line);
}
.trust-item:last-child { border-bottom: 1px solid var(--line); }
.trust-check {
  width: 22px; height: 22px; border-radius: 50%;
  background: #d1fae5; color: var(--online);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: .125rem;
}
.trust-item p { font-size: .9375rem; color: var(--muted); line-height: 1.55; }
.trust-item strong { color: var(--text); font-weight: 600; }

.honesty-card {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: 16px;
  padding: 1.75rem;
}
.honesty-card .eyebrow { color: var(--warn-text); margin-bottom: .75rem; }
.honesty-card p { font-size: .9375rem; color: var(--warn-text); line-height: 1.65; }
.honesty-card a { color: inherit; font-weight: 600; text-underline-offset: 3px; }
.honesty-sign { margin-top: 1rem; font-size: .875rem; font-style: italic; opacity: .85; }

/* ── FAQ ───────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }

.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.25rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.0625rem; font-weight: 600;
  letter-spacing: -.01em;
  list-style: none;
  user-select: none;
  transition: color var(--dur-fast) ease;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.faq-list summary:hover,
.faq-list summary:active { color: var(--brand-700); }
.faq-list details[open] summary { color: var(--brand-700); }

/* apertura animada sin JS (progressive enhancement) */
.faq-list details::details-content {
  block-size: 0; overflow: clip;
  transition: block-size var(--dur-slow) var(--ease-out),
              content-visibility var(--dur-slow) allow-discrete;
}
.faq-list details[open]::details-content { block-size: auto; }

.faq-chevron { flex-shrink: 0; color: var(--muted); transition: transform var(--dur-base) var(--ease-out); }
details[open] .faq-chevron { transform: rotate(180deg); }

.faq-body { padding-bottom: 1.375rem; font-size: .9375rem; color: var(--muted); line-height: 1.65; max-width: 62ch; }
.faq-body a { color: var(--brand-700); text-underline-offset: 3px; }

/* ── CTA final: cierre teatral ─────────────────────────────────── */
.final-cta { overflow: hidden; border-bottom: none; }
.final-backdrop {
  position: absolute; inset: -20% -10%; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.final-plane {
  width: min(760px, 110%);
  aspect-ratio: 16 / 11;
  transform: rotateX(52deg) rotateZ(-38deg) scale(1.6);
  background:
    linear-gradient(rgba(167, 139, 250, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 139, 250, .08) 1px, transparent 1px),
    linear-gradient(160deg, #161028, #0d0818);
  background-size: 36px 36px, 36px 36px, 100% 100%;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  opacity: .18; /* sin blur: el velo radial logra el efecto a coste cero */
}
.final-veil {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, transparent, var(--ink-950) 78%);
  pointer-events: none;
}
.final-content { position: relative; z-index: 2; text-align: center; }
.final-content .section-title { color: var(--text-dark-hi); max-width: 22ch; margin-inline: auto; }
.final-content .section-sub { margin: 0 auto 2.5rem; }
.final-ctas { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; align-items: flex-start; }
.final-path { display: flex; flex-direction: column; align-items: center; gap: .5625rem; }
.final-path small { font-size: .8125rem; color: var(--text-dark-mid); }

/* ── Footer ────────────────────────────────────────────────────── */
footer {
  background: var(--ink-950);
  color: var(--text-dark-mid);
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--line-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 5fr 2.5fr 2.5fr 2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 2.5rem;
}
.footer-logo {
  display: inline-flex; align-items: center; gap: .5625rem;
  text-decoration: none; color: var(--text-dark-hi);
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 600;
}
.footer-tagline {
  font-size: .875rem; line-height: 1.6;
  max-width: 34ch;
  margin-top: .875rem;
}
.footer-status {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1.125rem;
  font-size: .8125rem; color: var(--text-dark-mid);
  border: 1px solid var(--line-dark);
  border-radius: 100px;
  padding: .25rem .75rem;
}
.footer-head {
  font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-dark-hi);
  margin-bottom: 1rem;
}
.footer-col { display: flex; flex-direction: column; gap: .625rem; }
.footer-col a {
  color: var(--text-dark-mid); text-decoration: none;
  font-size: .875rem;
  width: fit-content;
  transition: color var(--dur-fast) ease;
}
.footer-col a:hover { color: var(--text-dark-hi); }
.footer-copy {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: .8125rem;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .hero-inner { grid-template-columns: 1fr 1fr; }
  .bento-cell { grid-column: span 6 !important; grid-row: auto !important; }
  .cell-proximity { grid-column: span 12 !important; }
  .steps { grid-template-columns: 1fr; gap: 2.25rem; }
  .steps::before {
    top: 0; bottom: 0; left: 21px; right: auto; width: 1px; height: auto;
    background: linear-gradient(180deg, transparent, var(--line-dark-strong) 10%, var(--line-dark-strong) 90%, transparent);
  }
  .step { padding-top: 0; padding-left: 4rem; }
  .step-num { padding-right: 0; padding-bottom: .5rem; }
}

@media (max-width: 767px) {
  .nav-link, .header-nav .btn-secondary { display: none; }

  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { min-height: 0; margin-top: -.5rem; }
  .stage { padding-block: 1.5rem 2.5rem; }
  .plane { width: min(440px, 92%); transform: rotateX(40deg) rotateZ(-30deg); }
  .presence-panel { display: none; }
  .audio-toast { left: 2%; bottom: 0; }

  .problem-split { grid-template-columns: 1fr; }
  .problem-split .section-head { position: static; }

  .compare-row { grid-template-columns: 1fr; }
  .compare-cell + .compare-cell { border-left: none; border-top: 1px solid var(--line); }

  .standup-inner { grid-template-columns: 1fr; }
  .trust-split { grid-template-columns: 1fr; }
  .fit-split { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 479px) {
  .btn { white-space: normal; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .standup-cta { padding: 1.5rem; }
  .standup-cta .btn { width: 100%; }
  .final-ctas { flex-direction: column; align-items: center; }
  .final-ctas .btn { width: 100%; max-width: 320px; }
  .bento-cell { grid-column: span 12 !important; }
  .friction { grid-template-columns: 2.5rem 1fr; gap: .875rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }

  /* paseo de P más corto para el plano reducido */
  @keyframes walk-p {
    0%, 18%   { transform: translate(0, 0); }
    28%, 55%  { transform: translate(120px, -76px); }
    68%, 88%  { transform: translate(34px, -14px); }
    100%      { transform: translate(0, 0); }
  }
}

/* ── Forced colors / alto contraste ────────────────────────────── */
@media (forced-colors: active) {
  .btn, .bento-cell, .compare, .float-card, .standup-cta, .honesty-card { border: 1px solid CanvasText; }
  .badge-dot, .pm-dot, .presence-row .pa { forced-color-adjust: none; }
}

/* ── Fallback iOS: proyección 2.5D equivalente sin preserve-3d ──── */
/* Safari iOS aplana preserve-3d en escenarios conocidos (overflow +
   border-radius + presión de memoria). En vez de detectar el bug, se
   elimina: en WebKit-iOS el plano usa la matriz afín exacta de la
   proyección ortográfica de rotateX(52°)·rotateZ(-38°), y los chips la
   inversa. La coreografía de 22s opera en el espacio del plano y se
   proyecta idéntica. */
@supports (-webkit-touch-callout: none) {
  .stage { perspective: none; }
  .plane {
    transform: matrix(0.788, -0.379, 0.616, 0.485, 0, 0);
    transform-style: flat;
  }
  .actor { transform-style: flat; }
  .actor-inner { transform: matrix(0.789, 0.616, -1.002, 1.281, 0, 0); }
  .final-plane { transform: matrix(0.788, -0.379, 0.616, 0.485, 0, 0) scale(1.6); }

  @media (max-width: 767px) {
    /* equivalente de rotateX(40°)·rotateZ(-30°) */
    .plane { transform: matrix(0.866, -0.383, 0.5, 0.663, 0, 0); }
    .actor-inner { transform: matrix(0.866, 0.5, -0.653, 1.131, 0, 0); }
  }
}

/* ── Reduced motion: frame estático que cuenta la historia ─────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  /* P y A juntos en standup, conversación visible */
  .actor-p { transform: translate(190px, -118px) !important; }
  .prox-ring, .voice, .audio-toast { opacity: .85 !important; }
  .audio-toast { transform: translateY(0) !important; }
  .voice span:nth-child(1) { transform: scaleY(.5); }
  .voice span:nth-child(2) { transform: scaleY(.9); }
  .voice span:nth-child(3) { transform: scaleY(.4); }
  .toast-eq span:nth-child(1) { transform: scaleY(.5); }
  .toast-eq span:nth-child(2) { transform: scaleY(.9); }
  .toast-eq span:nth-child(3) { transform: scaleY(.4); }
  .pd-voice span:nth-child(1) { transform: scaleY(.55); }
  .pd-voice span:nth-child(2) { transform: scaleY(.95); }
  .pd-voice span:nth-child(3) { transform: scaleY(.45); }
}

/* frame estático en plano reducido: paseo corto de P */
@media (max-width: 479px) and (prefers-reduced-motion: reduce) {
  .actor-p { transform: translate(120px, -76px) !important; }
}
