/* ─── TOKENS ──────────────────────────────────────────── */
:root {
  --ink:  #1A1A18;
  --ow:   #F5F4F0;
  --ow2:  #EEECE7;
  --dark: #0F0F0E;
  --ac:   #2B4F8C;
  /* Azul acento CLARO — SOLO decorativo o sobre fondo oscuro: pulsos del logo,
     bordes, "Research" del hero. Sobre fondo claro da 3.9:1 → no usar como texto. */
  --acL:  #4A7AC4;
  /* Azul acento para TEXTO sobre fondo claro. #1E5EAD ya cumplía AA (5.85:1);
     profundizado a #1A5299 para margen AAA (7.0:1) sobre --ow (#F5F4F0). */
  --acL-lbg: #1A5299;
  /* Segundo acento — verde pino, SOLO en secciones claras (Enfoque, Servicios,
     Capacidades). Nunca junto al azul en el mismo componente. */
  --ac2: #245B5A;
  --ac2L: #7FB5AC; /* verde claro para texto sobre fondo oscuro */
  --im:   #5A5953; /* Ajustado desde #73726C para cumplir WCAG AA en fondo claro */
  --il:   #73726C; /* Ajustado desde #B4B2A9 para mejor visibilidad */
  --if:   #D3D1C7;
  --wh:   #FFFFFF;
  --accent-lightBg: #223F70;

  /* ── Escala de espaciado vertical — base-8 (múltiplos de 8px) ── */
  --space-xs:  8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 96px;
}

/* ── Fuentes fallback con anulación métrica (evita CLS al cargar las
      webfonts). size-adjust / ascent / descent calculados con fontTools
      (algoritmo capsize) desde los binarios reales de DM Sans, DM Serif
      Display, Arial y Georgia. Ver docs/plantillas/NOTAS y el commit. ── */
@font-face {
  font-family: 'DM Sans Fallback';
  src: local('Arial');
  size-adjust: 108.00%;
  ascent-override: 91.85%;
  descent-override: 28.70%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'DM Serif Fallback';
  src: local('Georgia');
  size-adjust: 102.24%;
  ascent-override: 101.33%;
  descent-override: 32.77%;
  line-gap-override: 0%;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  background: var(--dark); /* Evita la franja blanca al hacer overscroll o en pantallas muy altas */
}
body {
  font-family: 'DM Sans', 'DM Sans Fallback', -apple-system, sans-serif;
  background: var(--ow);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}


/* ─── NAV ─────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  /* Opacidad alta: con 0.6, sobre las secciones claras el blur aclaraba la
     barra y el logo perdía contraste. */
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 0.5px solid rgba(255,255,255,0.07);
  height: 56px;
  display: flex; align-items: center;
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 2.5rem;
  display: flex; align-items: center; width: 100%;
}
.nav-brand {
  font-family: 'DM Serif Display', 'DM Serif Fallback', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.025em; color: rgba(255,255,255,0.92);
  text-decoration: none; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0;
}
.nav-brand-line1 {
  display: flex; align-items: center; gap: 9px;
  font-size: 17px; line-height: 1;
}
.nav-logo-svg { display: block; flex-shrink: 0; }
.nav-word-analytical { letter-spacing: -0.03em; }
.nav-brand .brand-ar {
  display: block;
  color: var(--acL); /* mismo azul que el "Research" del hero */
  font-style: italic;
  font-size: 12px;
  letter-spacing: -0.02em; /* mismo tracking apretado del hero */
  padding-left: 31px;
  line-height: 1.4;
  opacity: 1.0;
}
.nav-links {
  display: flex; list-style: none; margin-left: 2.5rem; gap: 0;
}
.nav-links a {
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: rgba(255,255,255,0.75); text-decoration: none;
  padding: 0 16px; height: 56px;
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: color 260ms cubic-bezier(0.16,1,0.3,1),
              border-color 260ms cubic-bezier(0.16,1,0.3,1);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: rgba(255,255,255,0.9);
  border-color: var(--acL);
}
.nav-right { margin-left: auto; flex-shrink: 0; }

/* ── MENÚ MÓVIL ──────────────────────────────────────── */
/* En escritorio el envoltorio no existe para el layout: nav-links y
   nav-right siguen siendo hijos directos del flex de .nav-inner. */
.nav-menu { display: contents; }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 0; flex-shrink: 0;
}
.nav-toggle-bar {
  display: block; width: 20px; height: 1.5px;
  background: rgba(255,255,255,0.9);
  border-radius: 1px;
  transition: transform 220ms ease, opacity 180ms ease;
}
.nav.menu-open .nav-toggle-bar:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav.menu-open .nav-toggle-bar:last-child  { transform: translateY(-3.25px) rotate(-45deg); }
.nav-cta {
  font-size: 11px; font-weight: 500; letter-spacing: 0.05em;
  text-transform: uppercase; color: rgba(255,255,255,0.8);
  border: 0.5px solid rgba(255,255,255,0.2); padding: 8px 20px;
  text-decoration: none; border-radius: 40px;
  transition: background 260ms cubic-bezier(0.16,1,0.3,1),
              border-color 260ms cubic-bezier(0.16,1,0.3,1),
              color 260ms cubic-bezier(0.16,1,0.3,1),
              transform 260ms cubic-bezier(0.16,1,0.3,1);
}
.nav-cta:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
  transform: translateY(-2px);
}

/* ─── HERO ────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: #060608;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  justify-content: flex-end;
}

/* ── LAMP EFFECT ── cono de luz desde arriba */
.lamp-wrap {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 900px;
  height: 55vh;
  pointer-events: none;
  z-index: 1;
}
/* cono principal */
.lamp-cone {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 62% 78% at 50% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 62% 78% at 50% 0%, #000 30%, transparent 78%);
  background: conic-gradient(
    from 265deg at 50% 0%,
    transparent 0deg,
    rgba(43,79,140,0.18) 20deg,
    rgba(74,122,196,0.28) 30deg,
    rgba(74,122,196,0.28) 330deg,
    rgba(43,79,140,0.18) 340deg,
    transparent 360deg
  );
}
/* glow en la punta del cono */
.lamp-glow-top {
  position: absolute;
  top: -2px; left: 50%;
  transform: translateX(-50%);
  width: 280px; height: 6px;
  background: var(--acL);
  border-radius: 0 0 50% 50%;
  box-shadow:
    0 0 18px 6px rgba(74,122,196,0.8),
    0 0 60px 20px rgba(74,122,196,0.4),
    0 0 120px 40px rgba(43,79,140,0.2);
}
/* halo difuso debajo */
.lamp-halo {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 300px;
  background: radial-gradient(ellipse 55% 45% at 50% 0%,
    rgba(74,122,196,0.22) 0%,
    rgba(43,79,140,0.08) 50%,
    transparent 100%);
  filter: blur(2px);
}

/* Canvas partículas — ahora más sutil */
#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

/* Líneas verticales de grid */
.hero-grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  display: flex; justify-content: space-around; z-index: 1;
}
.hero-grid-line {
  width: 0.5px;
  background: linear-gradient(to bottom,
    rgba(255,255,255,0.06) 0%,
    rgba(255,255,255,0.04) 40%,
    transparent 100%);
}

/* Gradiente de fade bottom */
.hero-fade-bottom {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 260px; pointer-events: none; z-index: 2;
  background: linear-gradient(to top, #060608 20%, transparent);
}

/* Gradiente lateral derecho — texto ahora a la derecha */
.hero-fade-left {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(to left, rgba(6,6,8,0.72) 0%, transparent 52%);
}


/* ── CONTENIDO HERO ──────────────────────────────────── */
.hero-content {
  position: relative; z-index: 10;
  max-width: 1120px; margin: 0 auto;
  width: 100%;
  padding: 160px 2.5rem 88px clamp(280px, 33%, 470px);
}

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.2em;
  /* gris on-dark (decisión § 6.4): el azul queda como único acento, también en el hero */
  color: rgba(245,244,240,0.75);
  margin-bottom: var(--space-lg); display: flex; align-items: center; gap: 12px;
  opacity: 0; animation: fadeUp 0.6s 0.1s forwards;
}
.hero-eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: rgba(245,244,240,0.75);
  flex-shrink: 0;
}

/* Isotipo del lockup del hero — solo en móvil, donde el símbolo grande no cabe */
.hero-lockup-svg { display: none; }

.hero-wordmark {
  font-family: 'DM Serif Display', 'DM Serif Fallback', Georgia, serif;
  font-size: clamp(64px, 9.6vw, 132px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.018em;
  color: rgba(255,255,255,0.93);
  max-width: 900px;
  opacity: 0;
  filter: blur(22px);
  animation: blurReveal 1.4s 0.2s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-wordmark .wm-research {
  display: block;
  color: var(--acL);
  font-style: italic;
  opacity: 0;
  filter: blur(22px);
  animation: blurReveal 1.4s 0.42s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-h1 {
  font-family: 'DM Sans', 'DM Sans Fallback', sans-serif;
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 300;
  color: rgba(255,255,255,0.52);
  letter-spacing: 0.01em;
  line-height: 1.5;
  margin-top: 18px;
  max-width: 440px;
  opacity: 0;
  animation: fadeUp 0.6s 0.48s forwards;
}

/* línea divisoria fina bajo el wordmark */
.hero-wordmark-rule {
  width: 48px; height: 1px;
  background: var(--acL);
  margin: 28px 0 24px;
  opacity: 0; animation: fadeUp 0.5s 0.55s forwards;
}

.hero-sub-block {
  margin-bottom: 44px;
  max-width: 460px;
  opacity: 0; animation: fadeUp 0.7s 0.65s forwards;
}
.hero-sub {
  font-size: 16px; font-weight: 400;
  color: rgba(255,255,255,0.58); /* Aumentado desde 0.32 para legibilidad WCAG AA */
  line-height: 1.75;
}

.hero-actions {
  display: flex; align-items: center; gap: 20px;
  opacity: 0; animation: fadeUp 0.7s 0.75s forwards;
}
.btn-primary {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(255,255,255,0.92); color: #080808;
  padding: 14px 32px; border: none; border-radius: 40px;
  text-decoration: none; cursor: pointer; /* Cambiado desde none */
  display: flex; align-items: center; gap: 8px;
  transition: all 250ms cubic-bezier(0.16,1,0.3,1);
}
.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(255,255,255,0.12);
}
.btn-primary:active { transform: translateY(-1px) scale(0.99); }
.btn-primary-arrow {
  width: 14px; height: 14px;
  transition: transform 250ms;
}
.btn-primary:hover .btn-primary-arrow { transform: translate(2px, -2px); }

.btn-ghost {
  font-size: 13px; font-weight: 400;
  color: rgba(255,255,255,0.75); text-decoration: none;
  letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 6px;
  transition: color 250ms cubic-bezier(0.16,1,0.3,1),
              transform 250ms cubic-bezier(0.16,1,0.3,1);
}
.btn-ghost::after { content: '↗'; opacity: 0.5; transition: transform 250ms cubic-bezier(0.16,1,0.3,1); }
.btn-ghost:hover { color: rgba(255,255,255,0.92); transform: translateY(-1px); }
.btn-ghost:hover::after { transform: translate(2px,-2px); }

/* barra inferior del hero */
.hero-bar {
  position: relative; z-index: 10;
  background: rgba(255,255,255,0.03);
  border-top: 0.5px solid rgba(255,255,255,0.06);
  padding: 18px 0;
  opacity: 0; animation: fadeUp 0.5s 1.1s forwards;
}
.hero-bar-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 2.5rem;
  display: flex; align-items: center; gap: 40px;
}
.hero-bar-item {
  display: flex; align-items: center; gap: 10px;
}
.hero-bar-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--acL); flex-shrink: 0;
}
.hero-bar-text {
  font-size: 10px; color: rgba(255,255,255,0.2);
  letter-spacing: 0.06em; text-transform: uppercase;
  font-family: 'DM Mono', monospace;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes blurReveal {
  from { opacity: 0; filter: blur(22px); transform: translateY(12px); }
  to   { opacity: 1; filter: blur(0px);  transform: translateY(0); }
}

/* ─── SECCIÓN BASE ───────────────────────────────────── */
section { position: relative; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 2.5rem; }
.section-pad { padding: 112px 0; }

.eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.16em;
  /* Eyebrow en gris (decisión § 6.4): el azul queda como único acento */
  color: var(--im); margin-bottom: var(--space-md); display: block;
}
/* eyebrow sobre fondo oscuro: gris del nivel on-dark-2 (AA en los fondos oscuros) */
.team-section .eyebrow, .diff-section .eyebrow, .hero .eyebrow {
  color: rgba(245,244,240,0.75);
}
.section-title {
  font-family: 'DM Serif Display', 'DM Serif Fallback', Georgia, serif;
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 400; line-height: 1.06;
  letter-spacing: -0.028em;
}
.section-title em { font-style: italic; color: var(--ac); }

/* reveal on scroll */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1),
              transform 0.75s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── CLAIM / PROPUESTA DE VALOR ─────────────────────── */
.claim-section {
  background: var(--ow);
  padding: 80px 0;
  border-bottom: 0.5px solid var(--if);
}
.claim-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 2.5rem;
  display: grid; grid-template-columns: 1fr 2.4fr;
  gap: 6rem; align-items: center;
}
.claim-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--im); line-height: 1.8; /* Cambiado a --im para contraste WCAG AA */
}
.claim-quote {
  font-family: 'DM Serif Display', 'DM Serif Fallback', Georgia, serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400; line-height: 1.3;
  letter-spacing: -0.02em; color: var(--ink);
}
.claim-quote em { font-style: italic; color: var(--ac); }

/* ─── PILARES ────────────────────────────────────────── */
.pilares-section { background: var(--ow); padding: 80px 0 112px; }
.pilares-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
}
.pilar-item {
  padding: 2.5rem 2.5rem 2.5rem 0;
  border-right: 0.5px solid var(--if);
  position: relative;
}
.pilar-item:last-child { border-right: none; padding-right: 0; }
.pilar-item:not(:first-child) { padding-left: 2.5rem; }
.pilar-num { display: none; }
.pilar-item::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--ac2);
  margin-bottom: 24px;
  opacity: 0.85;
}
.pilar-title {
  font-size: 16px; font-weight: 500; color: var(--ink);
  margin-bottom: 12px; line-height: 1.3;
}
.pilar-body { font-size: 15px; color: var(--im); line-height: 1.7; max-width: 34em; }

/* ─── SERVICIOS ──────────────────────────────────────── */
.services-section { background: var(--ow2); padding: 112px 0; }
.services-header {
  display: grid; grid-template-columns: 5fr 4fr;
  gap: 6rem; align-items: end;
  padding-bottom: 64px; border-bottom: 0.5px solid var(--if);
  margin-bottom: 64px;
}
.services-header-copy {
  font-size: 15px; color: var(--im); line-height: 1.8; max-width: 400px;
  align-self: center;
}

/* lista de servicios estilo editorial */
.services-list { display: flex; flex-direction: column; gap: 0; position: relative; }

/* Card hover highlight — elemento deslizante */
.svc-highlight {
  position: absolute; left: -2rem; right: -2rem;
  background: rgba(43,79,140,0.06);
  border-left: 2px solid var(--acL);
  border-radius: 2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms, top 160ms cubic-bezier(0.16,1,0.3,1), height 160ms cubic-bezier(0.16,1,0.3,1);
  z-index: 0;
}

.svc-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 0;
  padding: 40px 0;
  border-bottom: 0.5px solid var(--if);
  align-items: start;
  cursor: default;
  position: relative; z-index: 1;
  transition: border-color 200ms;
}
.svc-row:first-child { border-top: 0.5px solid var(--if); }

.svc-num {
  font-family: 'DM Mono', monospace;
  font-size: 12px; color: var(--im); padding-top: 3px;
}
.svc-title {
  font-family: 'DM Serif Display', 'DM Serif Fallback', Georgia, serif;
  font-size: 24px; font-weight: 400;
  color: var(--ink); letter-spacing: -0.02em;
  line-height: 1.15; padding-right: 3rem;
  transition: color 300ms cubic-bezier(0.16,1,0.3,1);
}
/* Resalte del título al hover/focus de la fila (antes lo hacía JS inline) */
.svc-row:hover .svc-title,
.svc-row:focus-visible .svc-title { color: var(--acL-lbg); }
.svc-body { max-width: 62ch;
  font-size: 15.5px; color: var(--im);
  line-height: 1.75; padding-top: 4px;
}

/* ─── EQUIPO ─────────────────────────────────────────── */
/* ── IMAGEN TRANSICIÓN ───────────────────────────────── */
.img-break {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background: #0E1117;
}
.img-break-img {
  width: 100%;
  height: clamp(200px, 28vw, 420px);
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0.92;
}

.team-section {
  background: var(--dark); padding: 112px 0;
  position: relative; overflow: hidden;
}
.team-section::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 40%; height: 100%;
  background: linear-gradient(to left, rgba(43,79,140,0.06), transparent);
  pointer-events: none;
}

.team-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 72px;
}
.team-header .section-title { color: var(--ow); }
.team-header-sub {
  font-size: 14px; color: rgba(255,255,255,0.75);
  max-width: 280px; text-align: right; line-height: 1.7;
}

.team-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: rgba(255,255,255,0.07);
}
.team-card {
  background: var(--dark);
  padding: 3rem;
  transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1),
              background-color 450ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 450ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 450ms cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.02);
}
.team-card:hover, .team-card:focus-within {
  background: #151514;
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 2px rgba(101, 156, 239, 0.2);
  border-color: rgba(101, 156, 239, 0.2);
}

/* Retrato: eje central, se funde con el fondo oscuro de la sección */
.team-card--foto { text-align: center; }
.team-foto-wrap {
  width: clamp(150px, 15vw, 190px);
  margin: 0 auto 30px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 50%;
}
.team-foto {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) contrast(1.02);
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.team-card:hover .team-foto, .team-card:focus-within .team-foto { transform: scale(1.03); }
.team-card--foto .team-links { justify-content: center; }
.team-card--foto .team-bio { margin-inline: auto; max-width: 46ch; }

.team-cargo-tag {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.14em;
  color: #7DA0D5;
  padding: 6px 12px;
  border: 0.5px solid rgba(74,122,196,0.25);
  border-radius: 2px;
  margin-bottom: 24px;
}
.team-nombre {
  font-family: 'DM Serif Display', 'DM Serif Fallback', Georgia, serif;
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 400;
  color: var(--ow);
  margin-bottom: 8px;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.team-cargo {
  font-size: 12px; color: #7DA0D5;
  font-weight: 500; letter-spacing: 0.01em;
  margin-bottom: 24px;
}
.team-bio {
  font-size: 15px; color: rgba(255,255,255,0.75); /* Aumentado desde 0.4 para contraste WCAG AA */
  line-height: 1.75;
}
.team-links { margin-top: 22px; display: flex; gap: 18px; }
.team-links a {
  font-family: 'DM Mono', monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ac2L); text-decoration: none;
  border-bottom: 1px solid rgba(127,181,172,0.35);
  padding-bottom: 2px;
  transition: color 250ms cubic-bezier(0.16,1,0.3,1),
              border-color 250ms cubic-bezier(0.16,1,0.3,1);
}
.team-links a::after { content: ' ↗'; opacity: 0.6; }
.team-links a:hover { color: #fff; border-color: rgba(255,255,255,0.6); }

/* ─── CAPACIDADES ────────────────────────────────────── */
.cap-section { background: var(--ow2); padding: var(--space-xl) 0; border-top: 0.5px solid var(--if); }
.cap-declarativa {
  font-size: 13px; color: var(--im);
  line-height: 1.7; margin-top: 12px;
}

/* ─── CLAIM + DIFERENCIADORES (sección fusionada) ────── */
.diff-claim-header {
  max-width: 1120px; margin: 0 auto; padding: 0 2.5rem 56px;
  position: relative; z-index: 1;
  border-bottom: 0.5px solid rgba(255,255,255,0.12);
  margin-bottom: 56px;
}
.diff-claim-quote {
  font-family: 'DM Serif Display', 'DM Serif Fallback', Georgia, serif;
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 400; line-height: 1.3;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.88);
  max-width: 780px;
}
.diff-claim-quote em { font-style: italic; color: rgba(255,255,255,0.55); }

/* ─── DIFERENCIADORES ────────────────────────────────── */
.diff-section {
  background: var(--ac); padding: 80px 0;
  position: relative; overflow: hidden;
}
.diff-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.diff-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 2.5rem;
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}
.diff-item {
  padding: 2rem 3rem 2rem 0;
  border-right: 0.5px solid rgba(255,255,255,0.15);
}
.diff-item:last-child { border-right: none; padding-left: 3rem; padding-right: 0; }
.diff-item:nth-child(2) { padding-left: 3rem; }
.diff-arrow {
  font-size: 20px; color: rgba(255,255,255,0.3);
  margin-bottom: 16px; display: block;
}
.diff-text {
  font-family: 'DM Serif Display', 'DM Serif Fallback', Georgia, serif;
  font-size: 18px; font-weight: 400;
  color: var(--wh); line-height: 1.45;
  letter-spacing: -0.01em;
}

/* ─── CONTACTO ───────────────────────────────────────── */
.contact-section { background: var(--ow); padding: 128px 0; }
.contact-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 2.5rem;
  display: grid; grid-template-columns: 5fr 4fr;
  gap: 6rem; align-items: center;
}
.contact-left {}
.contact-headline {
  font-family: 'DM Serif Display', 'DM Serif Fallback', Georgia, serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400; line-height: 1.1;
  letter-spacing: -0.025em; color: var(--ink);
  margin-bottom: 20px;
}
.contact-sub {
  font-size: 15px; color: var(--im); line-height: 1.75;
  margin-bottom: 48px; max-width: 400px;
}
.contact-email-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 16px; font-weight: 500;
  color: var(--ac); text-decoration: none;
  border-bottom: 1px solid rgba(43,79,140,0.25);
  padding-bottom: 4px;
  transition: border-color 300ms cubic-bezier(0.16,1,0.3,1),
              gap 300ms cubic-bezier(0.16,1,0.3,1);
}
.contact-email-link:hover { border-color: var(--ac); gap: 18px; }
.contact-email-link::after { content: '→'; }

.contact-right {
  padding: 3rem;
  background: var(--ow2);
  border: 0.5px solid var(--if);
  border-radius: 4px;
}
.contact-right-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--im); margin-bottom: 28px; display: block;
}
.contact-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 12px; color: var(--im);
  padding: 7px 14px;
  border: 0.5px solid var(--if);
  border-radius: 4px; background: var(--wh);
  cursor: default;
}

/* ─── FOOTER ─────────────────────────────────────────── */
.footer {
  background: var(--dark);
  padding: 48px 0;
  border-top: 0.5px solid rgba(255,255,255,0.06);
}
.footer-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-lockup {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
}
.footer-logo-svg { display: block; flex-shrink: 0; }
.footer-wordmark {
  font-family: 'DM Serif Display', 'DM Serif Fallback', Georgia, serif;
  font-size: 19px; letter-spacing: -0.02em;
  color: rgba(255,255,255,0.92); line-height: 1.15;
}
.footer-wordmark em { font-style: italic; color: var(--acL); }
.footer-brand {
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.75); letter-spacing: -0.01em;
}
.footer-copy {
  font-size: 12px; color: rgba(255,255,255,0.75);
  font-family: 'DM Mono', monospace; letter-spacing: 0.04em;
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
/* ─── HERO SYMBOL ANIMADO ────────────────────────────────── */
.hero-symbol {
  position: absolute;
  left: max(24px, calc((100vw - 1120px) / 2 + 16px));
  top: 50%;
  transform: translateY(-54%);
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  animation: fadeUp 0.9s 0.55s forwards;
}

/* dots: hs-d6=pequeño+oscuro → hs-d1=grande+claro → focal */
.hs-d1,.hs-d2,.hs-d3,.hs-d4,.hs-d5,.hs-d6 {
  transform-box: fill-box; transform-origin: center;
}
.hs-d6 { animation: hsDot 3.4s ease-in-out infinite; animation-delay: 0.05s; }
.hs-d5 { animation: hsDot 3.4s ease-in-out infinite; animation-delay: 0.28s; }
.hs-d4 { animation: hsDot 3.4s ease-in-out infinite; animation-delay: 0.51s; }
.hs-d3 { animation: hsDot 3.4s ease-in-out infinite; animation-delay: 0.74s; }
.hs-d2 { animation: hsDot 3.4s ease-in-out infinite; animation-delay: 0.97s; }
.hs-d1 { animation: hsDot 3.4s ease-in-out infinite; animation-delay: 1.20s; }
@keyframes hsDot {
  0%, 100% { opacity: var(--op); transform: scale(1); filter: none; }
  7%        { opacity: 1; transform: scale(2.2); filter: brightness(3); }
  15%       { opacity: var(--op); transform: scale(1); filter: none; }
}
.hs-fg {
  transform-box: fill-box; transform-origin: center;
  animation: hsFocal 3.4s ease-out infinite; animation-delay: 1.46s;
}
@keyframes hsFocal {
  0%, 100% { transform: scale(1); filter: none; }
  8%        { transform: scale(1.5); filter: brightness(2); }
  18%       { transform: scale(1); filter: none; }
}
.hs-r1 {
  transform-box: fill-box; transform-origin: center;
  animation: hsRadar 3.4s ease-out infinite; animation-delay: 1.50s;
}
.hs-r2 {
  transform-box: fill-box; transform-origin: center;
  animation: hsRadar 3.4s ease-out infinite; animation-delay: 1.78s;
}
@keyframes hsRadar {
  0%   { transform: scale(1); opacity: 0.55; }
  55%  { transform: scale(3.5); opacity: 0; }
  100% { transform: scale(3.5); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  /* el panel debe seguir abriendo y cerrando, solo que sin transición */
  .nav-menu { transition: none; }
  #hero-canvas { display: none; }
  /* El símbolo NO se oculta: el hero le reserva 440px de padding y sin él
     queda un vacío (DIAGNOSTICO 9.2.3). Se muestra estático. */
  .hero-symbol { opacity: 1; animation: none; }
}

@media (max-width: 860px) {
  /* ── NAVEGACIÓN MÓVIL ──────────────────────────────── */
  .nav-toggle { display: flex; }
  .nav-menu {
    display: block;
    position: absolute; top: 56px; left: 0; right: 0;
    /* opaco: un panel translúcido deja leer el hero por detrás del CTA */
    background: var(--dark);
    border-bottom: 0.5px solid rgba(255,255,255,0.09);
    padding: 4px 1.5rem 20px;
    opacity: 0; visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
    max-height: calc(100vh - 56px); /* Evita desborde en landscape */
    overflow-y: auto; /* Permite scroll vertical interno si el menú es muy largo */
  }
  .nav.menu-open .nav-menu { opacity: 1; visibility: visible; transform: none; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a {
    height: auto; padding: 15px 0; font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-left: none;
  }
  .nav-links a:hover, .nav-links a.active { border-color: rgba(255,255,255,0.08); color: #fff; }
  .nav-right { margin-left: 0; }
  .nav-cta { display: flex; justify-content: center; margin-top: 16px; width: 100%; }

  .hero-content { padding: 120px 1.5rem 64px 1.5rem; }
  .hero-wordmark { font-size: clamp(38px, 12vw, 76px); }
  .hero-sub-block { max-width: 100%; margin-bottom: 32px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .btn-primary, .btn-ghost { justify-content: center; }
  
  .hero-symbol { display: none; }
  /* En móvil la marca se arma como lockup, igual que en la barra y el footer */
  .hero-lockup-svg {
    display: block;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.8s 0.15s forwards;
  }
  .claim-inner { grid-template-columns: 1fr; gap: 2rem; }
  .pilares-grid { grid-template-columns: 1fr; }
  .pilar-item { border-right: none; border-bottom: 0.5px solid var(--if); padding: 2rem 0; }
  .pilar-item:last-child { border-bottom: none; }
  .pilar-item:not(:first-child) { padding-left: 0; }
  .services-header { grid-template-columns: 1fr; gap: 2rem; }
  
  .svc-row { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .svc-num { font-size: 11px; margin-bottom: 4px; display: inline-block; }
  .svc-title { font-size: 20px; padding-right: 0; line-height: 1.2; }
  .svc-body { grid-column: 1; padding-top: 4px; font-size: 13.5px; }
  
  .team-grid { grid-template-columns: 1fr; }
  .team-card { padding: 2.2rem 1.5rem; }
  .team-foto-wrap { width: clamp(130px, 38vw, 165px); margin-bottom: 24px; }
  .team-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .team-header-sub { text-align: left; }
  
  .diff-inner { grid-template-columns: 1fr; }
  .diff-item { border-right: none; border-bottom: 0.5px solid rgba(255,255,255,0.12); padding: 2rem 0; }
  .diff-item:last-child { border-bottom: none; }
  .diff-item:nth-child(2) { padding-left: 0; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── FOCUS VISIBLE (ACCESIBILIDAD POR TECLADO) ────────── */
/* Focus-visible estético: anillo minimalista de acento con halo suave.
   --acL (#4A7AC4) cumple 3:1 non-text sobre --ow y es visible también sobre
   los fondos oscuros (nav, hero, equipo). Reemplaza el outline del navegador. */
a:focus-visible, button:focus-visible, .svc-row:focus-visible, .team-card:focus-visible {
  outline: 2px solid var(--acL);
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: 0 0 0 4px rgba(74,122,196,0.22);
  transition: box-shadow 200ms cubic-bezier(0.16,1,0.3,1);
}
a:focus, button:focus, .svc-row:focus, .team-card:focus { outline: none; }


/* ─── CAPACIDADES (reemplaza el carrusel de casos) ───── */
.cap-split-container {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
  margin-top: 56px;
  align-items: stretch;
}

/* Lista de botones */
.cap-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cap-btn {
  background: none;
  border: none;
  border-top: 0.5px solid var(--if);
  padding: 24px 16px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  transition: opacity 250ms, background-color 250ms, border-color 250ms;
}
.cap-btn-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--im);
  padding-top: 4px;
  transition: color 250ms;
}
.cap-btn-title {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--ink);
  line-height: 1.2;
  transition: color 250ms;
}

/* Hover y estados activos */
.cap-btn.active {
  border-top-color: var(--acL-lbg);
  background-color: rgba(43,79,140,0.02);
}
.cap-btn.active .cap-btn-num { color: var(--acL-lbg); }
.cap-btn.active .cap-btn-title { color: var(--acL-lbg); }

/* Opacidad atenuada para los no activos al hover de la lista */
.cap-list:hover .cap-btn:not(:hover):not(.active) {
  opacity: 0.45;
}

/* Panel de previsualización derecho */
.cap-showcase-panel {
  background: var(--wh);
  border: 0.5px solid var(--if);
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 440px;
  position: relative;
  overflow: hidden;
}

/* Área gráfica */
.cap-graphic-area {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 200px;
  margin-bottom: 24px;
}
.cap-svg-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 250ms ease, transform 250ms ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cap-svg-wrapper.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Área de detalles del texto */
.cap-detail-area {
  border-top: 0.5px solid var(--if);
  padding-top: 24px;
}
.cap-detail-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--acL-lbg);
  display: block;
  margin-bottom: 8px;
}
.cap-detail-title {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 8px;
}
.cap-detail-body {
  font-size: 14.5px;
  color: var(--im);
  line-height: 1.65;
}

/* Micro-animaciones para SVGs */
@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}
.pulse-node {
  animation: pulse 2s infinite ease-in-out;
  transform-origin: 140px 80px;
}

/* Soporte responsive en móviles */
@media (max-width: 860px) {
  .cap-split-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .cap-showcase-panel {
    min-height: 380px;
    padding: 24px;
  }
  .cap-btn {
    padding: 16px 8px;
  }
  .cap-btn-title {
    font-size: 18px;
  }
}

/* ── SELECTOR DE IDIOMA (ES / EN) ────────────────────── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 0.5px solid rgba(255,255,255,0.16);
  border-radius: 40px;
  padding: 2px;
  background: rgba(255,255,255,0.03);
}
.lang-btn {
  font-family: var(--font-mono, "DM Mono", monospace);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
  background: transparent;
  border: none;
  padding: 5px 9px;
  border-radius: 40px;
  cursor: pointer;
  transition: color 200ms ease, background 200ms ease;
  line-height: 1;
}
.lang-btn:hover {
  color: rgba(255,255,255,0.88);
}
.lang-btn.active {
  color: #fff;
  background: rgba(74,122,196,0.32);
}
