/* ============================================================
   NOSOTROS — Diseño de Claude Design (Nosotros.dc.html)
   ============================================================ */

@keyframes nsFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.ns { background: var(--ec-white); color: var(--ec-ink); }

/* ---------- Hero ---------- */
.ns-hero { position: relative; overflow: hidden; background: var(--ec-navy); color: var(--ec-white); }
.ns-hero__blob {
  position: absolute; right: -20%; top: -55%; width: 80%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(28,128,189,.5), rgba(28,128,189,0));
  animation: ecDriftA 24s ease-in-out infinite; pointer-events: none;
}
.ns-hero__inner {
  position: relative; max-width: 1280px; margin: 0 auto;
  padding: calc(80px + clamp(48px, 8vh, 112px)) var(--gutter) clamp(64px, 10vh, 112px);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); align-items: center;
}
@media (min-width: 960px) { .ns-hero__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.ns-hero__eyebrow { color: var(--ec-blue-soft); animation: ecRise .7s var(--ease-out) both; }
.ns-hero__title {
  margin-top: 18px;
  font-family: var(--fh); font-weight: 700;
  font-size: clamp(38px, 5.2vw, 76px); line-height: 1.02; letter-spacing: -.028em;
  color: var(--ec-white); text-wrap: balance;
  animation: ecRise .8s var(--ease-out) .1s both;
}
.ns-hero__title span { color: var(--ec-blue-soft); }
.ns-hero__lead {
  margin-top: 28px; max-width: 540px;
  font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--ec-on-navy-dim); text-wrap: pretty;
  animation: ecRise .8s var(--ease-out) .22s both;
}
.ns-hero__fotos {
  position: relative; justify-self: center; width: 100%; max-width: 440px; aspect-ratio: 1;
  animation: ecRise 1s var(--ease-out) .3s both;
}
.ns-hero__foto { position: absolute; height: auto; border-radius: 50%; }
.ns-hero__foto--a { left: 0; top: 0; width: 66%; box-shadow: 0 0 0 8px var(--ec-blue); animation: nsFloat 8s ease-in-out infinite; }
.ns-hero__foto--b { right: 0; bottom: 0; width: 56%; box-shadow: 0 0 0 8px var(--ec-blue-soft); animation: nsFloat 9s ease-in-out 1.2s infinite; }

/* ---------- Secciones ---------- */
.ns-sec { padding: clamp(72px, 10vw, 120px) 0; }
.ns-sec--white { background: var(--ec-white); }
.ns-sec--soft { background: var(--ec-card); }
.ns-sec--blue { background: var(--ec-blue); color: var(--ec-white); }
.ns-eyebrow--white { color: var(--ec-white); }
.ns-h2 {
  margin-top: 16px; max-width: 820px;
  font-family: var(--fh); font-weight: 700;
  font-size: clamp(32px, 4.2vw, 56px); line-height: 1.08; letter-spacing: -.02em;
  color: var(--ec-navy); text-wrap: balance;
}
.ns-h2--on-dark { color: var(--ec-white); }

/* Historia */
.ns-linea { position: relative; margin-top: clamp(40px, 5vw, 64px); }
.ns-linea__pista { position: absolute; left: 0; right: 0; top: 19px; height: 2px; background: var(--ec-border); }
.ns-linea__avance { position: absolute; left: 0; top: 19px; height: 2px; width: 4%; background: var(--ec-blue); transition: width .7s var(--ease); }
.ns-linea__hitos { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ns-hito {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 0 8px 0 0; border: 0; background: transparent; cursor: pointer; text-align: left;
}
.ns-hito__dot { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--ec-white); }
.ns-hito__dot span {
  width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--ec-blue); background: var(--ec-white);
  transition: width .3s, height .3s, background .3s;
}
.ns-hito.is-pasado .ns-hito__dot span { background: var(--ec-blue); }
.ns-hito.is-on .ns-hito__dot span { width: 26px; height: 26px; }
.ns-hito__anio { font-family: var(--fh); font-weight: 700; font-size: clamp(16px, 2vw, 26px); color: var(--ec-muted); transition: color .3s; }
.ns-hito.is-on .ns-hito__anio { color: var(--ec-navy); }
.ns-hito:focus-visible { outline: none; }
.ns-hito:focus-visible .ns-hito__dot { box-shadow: 0 0 0 3px rgba(28,128,189,.35); }
.ns-hito-texto { margin-top: 32px; min-height: 150px; }
.ns-hito-texto > div { max-width: 720px; }
.ns-hito-texto > div.is-entrando { animation: ecRise .45s var(--ease-out) both; }
.ns-hito-texto h3 { font-family: var(--fh); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); color: var(--ec-navy); }
.ns-hito-texto p { margin-top: 12px; font-size: 18px; line-height: 1.6; }

/* Equipo */
.ns-equipo {
  margin-top: clamp(40px, 5vw, 56px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px;
}
.ns-persona {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: center;
  padding: 28px; border-radius: 10px; background: var(--ec-white);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .3s, box-shadow .3s;
}
.ns-persona:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(20,24,44,.12); }
.ns-persona img { display: block; width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.ns-persona h3 { font-family: var(--fh); font-weight: 700; font-size: 22px; color: var(--ec-navy); }
.ns-persona__rol { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--ec-blue); }
.ns-persona p { margin-top: 10px; font-size: 15px; line-height: 1.55; }
@media (max-width: 480px) {
  .ns-persona { grid-template-columns: 88px minmax(0, 1fr); gap: 18px; padding: 22px; }
  .ns-persona img { width: 88px; height: 88px; }
}

/* Cuatro unidades */
.ns-unidades {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: clamp(28px, 3vw, 40px);
}
.ns-unidades > div { border-top: 2px solid var(--ec-white); padding-top: 20px; }
.ns-unidades h3 { font-family: var(--fh); font-weight: 700; font-size: 22px; color: var(--ec-white); }
.ns-unidades p { margin-top: 10px; font-size: 16px; line-height: 1.55; }

/* Números */
.ns-numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: clamp(28px, 3vw, 48px); }
.ns-numeros > div { border-top: 2px solid var(--ec-navy); padding-top: 22px; }
.ns-num {
  font-family: var(--fh); font-weight: 700;
  font-size: clamp(44px, 4.4vw, 64px); line-height: 1; letter-spacing: -.02em;
  color: var(--ec-blue); font-variant-numeric: tabular-nums;
}
.ns-numeros p { margin-top: 12px; font-size: 16px; line-height: 1.5; }
.ns-premios {
  margin-top: clamp(48px, 6vw, 80px); padding-top: 28px; border-top: 1px solid var(--ec-border);
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px;
}
.ns-premios img { display: block; height: 96px; width: auto; }
.ns-premios > div { max-width: 620px; }
.ns-premios p { margin-top: 8px; font-size: 17px; line-height: 1.55; }

@media (prefers-reduced-motion: reduce) {
  .ns-hero__blob, .ns-hero__eyebrow, .ns-hero__title, .ns-hero__lead, .ns-hero__fotos,
  .ns-hero__foto--a, .ns-hero__foto--b, .ns-hito-texto > div.is-entrando { animation: none; }
  .ns-linea__avance { transition: none; }
}
