/* ============ R&A · Nosotros (se apoya en home.css y servicio.css) ============ */

/* 2. manifiesto: la primera frase grande, el resto en columnas */
.n-manifiesto { position: relative; padding: 16vh 0 14vh; }
.n-manifiesto__lead {
  margin: 22px 0 clamp(48px, 9vh, 104px);
  font-size: clamp(2rem, 4.6vw, 5rem); line-height: 1.02; letter-spacing: -0.038em;
  font-weight: 650; font-variation-settings: "wght" 650; max-width: 12.32em; /* 22ch de Hanken */ text-wrap: balance;
}
.n-manifiesto__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 72px); padding-left: calc(min(13%, 200px) + 20px); }
.n-manifiesto__cols p { font-size: 1.125rem; line-height: 1.6; color: var(--gray); padding-top: 20px; border-top: 1.5px solid var(--ink); text-wrap: pretty; }

/* 3. socios: dos retratos grandes, cada uno con su marco */
.n-socios { position: relative; padding: 14vh 0 18vh; }
.n-socios__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 7vw, 128px); margin-top: clamp(56px, 9vh, 104px); padding: 0 16px 0 calc(min(13%, 200px) + 36px); }
.n-socio .firma__retrato { margin-bottom: 40px; }
.n-socio h3 { font-size: clamp(1.75rem, 2.8vw, 2.75rem); line-height: 1.02; letter-spacing: -0.03em; }
.n-socio__rol { margin-top: 6px; color: var(--orange-ink); font-weight: 650; }
.n-socio__bio { margin-top: 18px; color: var(--gray); font-size: 1.0625rem; line-height: 1.6; max-width: 32em; }
.n-socio__links { margin-top: 22px; display: flex; gap: 22px; align-items: center; }
.n-socio__links a:not(.link-go) { font-weight: 600; text-decoration: none; color: var(--gray); transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .n-socio__links a:not(.link-go):hover { color: var(--ink); } }

/* 4. el equipo detrás: hoja oscura */
.n-equipo { color: var(--white); padding: 26vh 0 20vh; }
.n-equipo__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.n-equipo .tag { color: var(--orange); }
.n-equipo h2 { font-size: clamp(2.375rem, 4.6vw, 4.75rem); line-height: 0.96; letter-spacing: -0.035em; margin: 18px 0 24px; }
.n-equipo .lead { color: var(--gray-d); }
.n-red { border-top: 1.5px solid var(--orange); padding-top: 22px; }
.n-red h3 { font-size: clamp(1.625rem, 2.4vw, 2.25rem); letter-spacing: -0.025em; line-height: 1.05; margin: 10px 0 14px; }
.n-red > p:not(.desk__seal) { color: var(--gray-d); }
.n-red .ticks li { color: var(--white); }

@media (max-width: 820px) {
  .n-manifiesto__cols, .n-socios__grid, .n-equipo__grid { grid-template-columns: 1fr; padding-left: 0; }
  .n-socios__grid { padding: 0; }
  /* el bloque del equipo es un .wrap: conserva el margen de 20 px de todo el sitio */
  .n-equipo__grid { padding-inline: var(--gut); }
}

/* 2b. tres ideas, una por pantalla (con JS y movimiento: la sección queda quieta y el scroll las recorre) */
.n-claves { padding: 0 var(--gut); }
.n-claves__list { list-style: none; margin: 0; padding: 0 0 0 calc(min(13%, 200px) + 20px); display: grid; gap: clamp(56px, 10vh, 112px); }
.n-clave { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 20px clamp(32px, 5vw, 96px); align-items: end; }
.n-clave__key {
  font-size: clamp(2.5rem, 6.2vw, 6.75rem); line-height: 0.94; letter-spacing: -0.045em;
  font-weight: 750; font-variation-settings: "wght" 750; text-wrap: balance;
}
.n-clave--num .n-clave__key > span { display: block; font-size: 1.55em; line-height: 0.85; color: var(--orange); font-variant-numeric: tabular-nums; letter-spacing: -0.055em; }
.n-clave--num .n-clave__key small { display: block; margin-top: 0.3em; font-size: 0.42em; line-height: 1.1; letter-spacing: -0.02em; font-weight: 650; }
.n-clave__txt { font-size: 1.125rem; line-height: 1.6; color: var(--gray); padding-top: 20px; border-top: 1.5px solid var(--ink); max-width: 30em; text-wrap: pretty; }
.n-claves__rail { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .js .n-claves { height: 300vh; padding: 0; }
  .js .n-claves__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; padding: var(--nav-h) var(--gut) 0; }
  .js .n-claves__list { gap: 0; }
  .js .n-clave { grid-area: 1 / 1; }
  /* cada idea: las letras entran de abajo ganando peso, el trazo la subraya y el párrafo abre con su línea naranja */
  .js .n-clave { pointer-events: none; }
  .js .n-clave.is-on { pointer-events: auto; }
  .js .n-clave__key { position: relative; width: fit-content; transform: translate3d(0, calc((0.5 - var(--lp, 0.5)) * 48px), 0); }
  .js .n-clave__key .kc {
    display: inline-block; opacity: 0; transform: translateY(0.55em); font-variation-settings: "wght" 250;
    transition: opacity 600ms ease, transform 1000ms var(--ease-out), font-variation-settings 1300ms var(--ease-out);
    transition-delay: calc(var(--i) * 34ms);
  }
  .js .n-clave.is-on .n-clave__key .kc { opacity: 1; transform: none; font-variation-settings: "wght" 750; }
  .js .n-clave.is-past .n-clave__key .kc { opacity: 0; transform: translateY(-0.45em); transition-duration: 380ms, 520ms, 300ms; transition-delay: calc(var(--i) * 8ms); }
  .js .n-clave--num .n-clave__key > span, .js .n-clave--num .n-clave__key small { opacity: 0; transform: translateY(0.3em); transition: opacity 500ms ease, transform 800ms var(--ease-out); }
  .js .n-clave--num.is-on .n-clave__key > span, .js .n-clave--num.is-on .n-clave__key small { opacity: 1; transform: none; }
  .js .n-clave--num.is-on .n-clave__key small { transition-delay: 250ms; }
  .js .n-clave__key::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -0.16em; height: 4px; background: var(--orange);
    transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--ease-in-out);
  }
  .js .n-clave.is-on .n-clave__key::after { transform: scaleX(1); transition-delay: 900ms; }
  .js .n-clave.is-past .n-clave__key::after { transform: scaleX(0); transform-origin: right; transition-delay: 0ms; }
  .js .n-clave__txt { opacity: 0; transform: translateY(24px); border-top-color: transparent; position: relative; transition: opacity 500ms ease, transform 700ms var(--ease-out); }
  .js .n-clave__txt::before { content: ""; position: absolute; left: 0; right: 0; top: -1.5px; height: 1.5px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 800ms var(--ease-in-out) 300ms; }
  .js .n-clave.is-on .n-clave__txt { opacity: 1; transform: none; transition-delay: 350ms; }
  .js .n-clave.is-on .n-clave__txt::before { transform: scaleX(1); }
  .js .n-claves__rail {
    display: flex; align-items: center; gap: 0; position: absolute; left: calc(var(--gut) + min(13%, 200px) + 20px); bottom: 10vh; width: 180px; height: 13px;
  }
  .js .n-claves__rail span { position: absolute; left: 6px; right: 6px; top: 5px; height: 3px; background: var(--rule); }
  .js .n-claves__rail span::after { content: ""; position: absolute; inset: 0; background: var(--orange); transform-origin: left; transform: scaleX(var(--p, 0)); }
  .js .n-claves__rail i { position: relative; z-index: 1; width: 13px; height: 13px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--ink); transition: background-color 300ms ease, box-shadow 300ms ease, transform 420ms var(--ease-out); }
  .js .n-claves__rail i + i { margin-left: auto; }
  .js .n-claves__rail i.is-on { background: var(--orange); box-shadow: inset 0 0 0 1.5px var(--orange); transform: scale(1.2); }
}
@media (max-width: 820px) {
  .n-claves__list { padding-left: 0; }
  .n-clave { grid-template-columns: 1fr; align-content: center; }
  /* celular: la misma idea por pantalla, con la frase grande arriba y el párrafo debajo */
  .js .n-claves__pin { align-items: center; padding: calc(var(--nav-h) + 12px) var(--gut) 12svh; }
  .n-clave__key { font-size: clamp(2.5rem, 11.5vw, 3.5rem); }
  .n-clave__txt { font-size: 1.0625rem; }
  .js .n-claves__rail { left: var(--gut); bottom: 6svh; width: 140px; }
}

.n-recorte { margin-bottom: 36px; }
.n-socio { scroll-margin-top: 96px; }   /* las firmas de las notas enlazan a #luis-raskovsky / #juan-raskovsky */
.vista-alta .js .n-claves__pin, .vista-alta.js .n-claves__pin { position: relative; height: auto; }   /* render de Google: ver home.css */
