/* ============================================================
   PRISMA · nosotros.css (2026-10-08)
   Nosotros contada para una reunión: hero, Procesos, Escala, Equipo,
   Expertos, De estudio a sistema, Tecnologías y Prisma Cultural Fund.
   Las maquetas que se mueven (tablero de procesos, sistemas propios,
   gráfica de crecimiento, anillo del fondo cultural) siguen el lenguaje
   de las de prisma-360: tarjeta grande, frase en dos tonos y una pieza de
   interfaz en bucle. El movimiento lo da js/nosotros.js; aquí solo los
   estados (.is-on, .is-run…) y sus transiciones.
   ============================================================ */

/* El campo de líneas del hero llega después de 'load' (js/nosotros.js):
   entra fundido en lugar de aparecer de golpe. */
.page-hero .hero__canvas canvas { animation: nx-hero-in 1.4s var(--ease-ui) both; }
@keyframes nx-hero-in { from { opacity: 0; } }

/* ---------- Encabezados en dos tonos ---------- */
.nx-head { display: grid; gap: 22px; max-width: 1040px; margin-bottom: clamp(36px, 6vh, 64px); }
.nx-say {
  font-size: clamp(1.55rem, 2.55vw, 2.5rem); font-weight: 500;
  line-height: 1.14; letter-spacing: -0.024em;
  color: var(--text-on-ink); text-wrap: pretty;
}
.nx-say span { color: var(--text-on-ink-2); }
.nx-say--note { max-width: 34ch; margin-top: clamp(48px, 8vh, 96px); }
.nx-body {
  margin-top: clamp(18px, 2.6vh, 26px); max-width: 46ch;
  font-size: var(--fs-lead); line-height: 1.6; color: var(--text-on-ink); text-wrap: pretty;
}
.nx-body--2 { color: var(--text-on-ink-2); }

/* ---------- Tarjetas ---------- */
.nx-card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: clamp(22px, 2.2vw, 32px);
  border: 1px solid rgb(var(--fg-rgb) / .07);
  background: linear-gradient(180deg, rgb(var(--fg-rgb) / .05), rgb(var(--fg-rgb) / .02));
  padding: clamp(24px, 3vw, 44px);
}
/* el resplandor de abajo de las tarjetas de prisma-360 */
.nx-card::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  left: 30%; right: -20%; bottom: -45%; height: 85%;
  background: radial-gradient(closest-side, rgb(var(--orange-rgb) / .11), transparent);
}
.nx-card__say {
  max-width: 24ch;
  font-size: clamp(1.25rem, 1.85vw, 1.75rem); font-weight: 500;
  line-height: 1.18; letter-spacing: -0.02em; color: var(--text-on-ink-2);
}
.nx-card__say b { font-weight: 500; color: var(--text-on-ink); }
.nx-card__label {
  font-size: .76rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-on-ink-2);
}

.nx-bento { display: grid; gap: clamp(14px, 1.6vw, 22px); }
/* Dos tarjetas a lo ancho (2026-10-08): el tablero con su frase al lado y,
   debajo, los 13 sistemas propios en filas. */
@media (min-width: 1000px) {
  .nx-card--board { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
  .nx-card--board .nx-fit { margin-top: 0; }
}

/* Una maqueta se dibuja a su ancho de diseño (data-fit) y js/nosotros.js
   la escala al de la tarjeta: se ve igual en un teléfono y en una pantalla
   de sala de reuniones. */
.nx-fit { position: relative; margin-top: clamp(24px, 4vh, 40px); }
.nx-fit > * { width: var(--fw, 640px); transform-origin: 0 0; }

/* ---------- Ventana de interfaz ---------- */
.nx-win {
  background: #141416; color: var(--text-on-ink);
  border: 1px solid rgb(var(--fg-rgb) / .1); border-radius: 18px; overflow: hidden;
  box-shadow: 0 34px 70px -34px rgb(0 0 0 / .9);
  font-size: 13px; line-height: 1.3;
}
.nx-win__bar {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid rgb(var(--fg-rgb) / .08);
}
.nx-win__bar b { font-weight: 500; }

/* ---------- 1 · Tablero de procesos ---------- */
.nx-board__phase {
  margin-left: auto; padding: 5px 11px; border-radius: 999px;
  background: rgb(var(--orange-rgb) / .14); color: var(--orange);
  font-size: 11.5px; font-weight: 500; white-space: nowrap;
  transition: background-color .35s var(--ease-ui), color .35s var(--ease-ui);
}
.nx-board.is-done .nx-board__phase { background: var(--orange); color: var(--ink); }
.nx-board__body { padding: 14px 14px 16px; }
.nx-board__cols, .nx-lane__row, .nx-board__revs {
  display: grid; grid-template-columns: .95fr 1.2fr 1.1fr 1.1fr .7fr;
}
.nx-board__cols span {
  padding: 0 0 10px 14px;
  font-size: 9.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: rgb(var(--fg-rgb) / .42); white-space: nowrap;
}
.nx-board__cols span:first-child { padding-left: 8px; }
.nx-board__lanes { position: relative; }
.nx-board__revs { position: absolute; inset: 0; pointer-events: none; }
.nx-board__revs i { position: relative; }
.nx-board__revs i + i { border-left: 1px dashed rgb(var(--fg-rgb) / .16); }
.nx-board__revs em {
  position: absolute; left: 0; top: 50%; z-index: 1;
  transform: translate(-50%, -50%) rotate(-90deg);
  padding: 2px 7px; border-radius: 4px; background: #141416;
  font-style: normal; font-size: 8.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: rgb(var(--fg-rgb) / .34); white-space: nowrap;
  transition: color .35s var(--ease-ui);
}
.nx-board__revs em.is-hit { color: var(--orange); }
.nx-lane { position: relative; padding: 10px 0 12px; border-top: 1px solid rgb(var(--fg-rgb) / .07); }
.nx-lane__name {
  display: block; width: min(var(--w, 30%), 15%); height: 6px; margin: 0 0 12px 8px;
  border-radius: 4px; background: rgb(var(--fg-rgb) / .14);
}
.nx-lane__row > div { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 6px 0 14px; }
.nx-lane__row > div:first-child { padding-left: 8px; }
.nx-chip { display: grid; gap: 4px; width: 26px; font-style: normal; }
.nx-chip b {
  display: grid; place-items: center; width: 24px; height: 18px; border-radius: 5px;
  background: rgb(var(--fg-rgb) / .07); color: rgb(var(--fg-rgb) / .3);
  font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background-color .35s var(--ease-ui), color .35s var(--ease-ui);
}
.nx-chip s { display: block; height: 3px; border-radius: 2px; background: rgb(var(--fg-rgb) / .09); transition: background-color .35s var(--ease-ui); }
.nx-chip s + s { width: 68%; }
.nx-chip.is-on b { background: var(--orange); color: #fff; animation: nx-pop .5s var(--ease-snap); }
.nx-chip.is-on s { background: rgb(var(--fg-rgb) / .26); }
@keyframes nx-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.12); } 100% { transform: none; } }
.nx-board__head {
  position: absolute; left: 0; top: -4px; bottom: 0; width: 2px; z-index: 2; pointer-events: none;
  background: linear-gradient(var(--orange), rgb(var(--orange-rgb) / 0));
  box-shadow: 0 0 14px rgb(var(--orange-rgb) / .6);
  opacity: 0; transition: opacity .4s var(--ease-ui);
}
.nx-board.is-run .nx-board__head { opacity: 1; }
/* Teléfono: una semana menos y el tablero más grande (a 660 px de diseño
   quedaba a la mitad y los pasos no se leían) */
@media (max-width: 640px) {
  .nx-fit--board { --fit: 470; }
  .nx-board .nx-board__cols, .nx-board .nx-lane__row, .nx-board .nx-board__revs { grid-template-columns: 1fr 1.25fr 1.15fr .8fr; }
  .nx-board__cols span:nth-child(4), .nx-lane__row > div:nth-child(4), .nx-board__revs i:nth-child(4) { display: none; }
}

/* ---------- 2 · Sistemas propios (iconos de cristal) ---------- */
.nx-apps { position: relative; margin-top: clamp(26px, 4vh, 40px); }
/* filas centradas: 7 por fila en escritorio, 5 en tableta y 3 en teléfono;
   la última fila incompleta queda al centro */
.nx-apps__list {
  --per: 3; --gx: 8px;
  position: relative; z-index: 1; width: 100%;
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(22px, 3vh, 34px) var(--gx);
}
.nx-apps__list > .nx-app { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gx)) / var(--per)); }
@media (min-width: 640px) { .nx-apps__list { --per: 5; --gx: 12px; } }
@media (min-width: 1000px) { .nx-apps__list { --per: 7; --gx: 16px; } }
.nx-app { display: grid; justify-items: center; align-content: start; gap: 10px; text-align: center; }
.nx-app__ico {
  --ico: clamp(52px, 4.6vw, 64px);
  display: grid; place-items: center; width: var(--ico); height: var(--ico); border-radius: 26%;
  color: rgb(var(--fg-rgb));
  background: linear-gradient(155deg, rgb(255 255 255 / .18) 0%, rgb(255 255 255 / .06) 50%, rgb(255 255 255 / .04) 100%);
  -webkit-backdrop-filter: blur(12px) saturate(1.7);
  backdrop-filter: blur(12px) saturate(1.7);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .34),
    inset 0 0 0 1px rgb(255 255 255 / .1),
    inset 0 -14px 20px -16px rgb(255 255 255 / .2),
    0 14px 28px -16px rgb(0 0 0 / .9);
  transition: transform .55s var(--ease-enter);
}
.nx-app__ico svg {
  width: 60%; height: 60%; overflow: visible;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / .25));
}
.nx-app__ico svg * { vector-effect: non-scaling-stroke; }
.nx-app__ico .f { fill: currentColor; stroke: none; }
.nx-app__ico .d { opacity: .5; }
.nx-app__ico .t { font-family: var(--f-text); font-size: 17px; font-weight: 300; letter-spacing: -.02em; fill: currentColor; stroke: none; }
.nx-app__name { font-size: .8rem; line-height: 1.25; color: var(--text-on-ink-2); text-wrap: balance; transition: color .4s var(--ease-ui); }
.nx-app.is-on .nx-app__ico { transform: translateY(-4px); }
.nx-app.is-on .nx-app__name { color: var(--text-on-ink); }
/* la luz que va de icono en icono, detrás del cristal */
.nx-apps__orb {
  position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none;
  width: var(--ow, 44px); height: var(--ow, 44px); border-radius: 50%;
  background: linear-gradient(140deg, var(--tangerine) 0%, var(--orange) 72%);
  box-shadow: 0 0 28px rgb(var(--orange-rgb) / .4);
  opacity: 0;
  transition: transform .9s var(--ease-enter), opacity .5s var(--ease-ui), width .4s, height .4s;
}
.nx-apps.is-ready .nx-apps__orb { opacity: 1; }

/* ---------- 3 · Escala y gráfica ---------- */
.nx-split { display: grid; gap: clamp(36px, 5vw, 84px); align-items: center; }
.nx-split__text .kicker { margin-bottom: 22px; }
@media (min-width: 1000px) { .nx-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.nx-chart { margin: 0; padding: clamp(18px, 2.4vw, 34px) clamp(12px, 1.8vw, 26px) clamp(12px, 1.6vw, 22px); }
.nx-chart svg { display: block; width: 100%; height: auto; overflow: hidden; transition: opacity .6s var(--ease-ui); }
.nx-chart__grid path { fill: none; stroke: rgb(var(--fg-rgb) / .12); stroke-width: 1; }
.nx-chart__grid .g { stroke-dasharray: 3 6; transition: stroke .45s var(--ease-ui); }
.nx-chart__grid .g.is-on { stroke: rgb(var(--orange-rgb) / .42); }
.nx-chart__grid .y27 { stroke-dasharray: 2 7; }
.nx-chart__y text { text-anchor: end; font: 500 13px var(--f-text); fill: rgb(var(--fg-rgb) / .38); transition: fill .45s var(--ease-ui); }
.nx-chart__y text.is-on { fill: var(--text-on-ink); }
.nx-chart__x text { text-anchor: middle; font: 500 13px var(--f-text); fill: rgb(var(--fg-rgb) / .45); transition: fill .45s var(--ease-ui); }
.nx-chart__x text.is-on { fill: var(--orange); }
.nx-chart__area { fill: url(#nx-area-g); }
.nx-chart__line { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; }
.nx-chart__rocket { filter: drop-shadow(0 0 7px rgb(var(--orange-rgb) / .85)); }
.nx-chart__dots circle {
  fill: #141416; stroke: var(--orange); stroke-width: 2.5;
  opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.4);
  transition: opacity .3s var(--ease-ui), transform .5s var(--ease-snap);
}
.nx-chart__dots circle.is-on { opacity: 1; transform: none; }
.nx-chart__q { text-anchor: middle; font: 600 24px var(--f-text); letter-spacing: .1em; fill: var(--orange); opacity: 0; transition: opacity .6s var(--ease-ui); }
.nx-chart__q.is-on { opacity: 1; }

/* ---------- 6 · De estudio a sistema ---------- */
.nx-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 5vh, 52px) clamp(18px, 3vw, 44px);
  padding-top: clamp(28px, 5vh, 48px); border-top: 1px solid var(--line-on-ink);
}
@media (min-width: 1000px) { .nx-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.nx-stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 14px; }
.nx-stat dd {
  font-size: clamp(2.8rem, 5.4vw, 4.8rem); font-weight: 400; line-height: 1; letter-spacing: -0.035em;
  color: var(--text-on-ink); font-variant-numeric: tabular-nums;
}
.nx-stat dt { max-width: 30ch; font-size: .95rem; line-height: 1.5; color: var(--text-on-ink-2); text-wrap: pretty; }
.nx-stat dt b { display: block; margin-bottom: 2px; font-size: 1.06rem; font-weight: 500; color: var(--text-on-ink); }

/* ---------- 8 · Prisma Cultural Fund ---------- */
.nx-fundcard { display: grid; justify-items: center; align-content: center; gap: 24px; min-height: clamp(330px, 32vw, 440px); }
.nx-ring { position: relative; width: clamp(190px, 17vw, 236px); aspect-ratio: 1; }
.nx-ring svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.nx-ring__bg { fill: none; stroke: rgb(var(--fg-rgb) / .1); stroke-width: 6; }
.nx-ring__fg { fill: none; stroke: var(--orange); stroke-width: 6; stroke-linecap: round; transition: filter .4s var(--ease-ui); }
.nx-ring.is-full .nx-ring__fg { filter: drop-shadow(0 0 8px rgb(var(--orange-rgb) / .75)); }
.nx-ring__c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; }
.nx-ring__c b { font-size: clamp(1.6rem, 2.3vw, 2.05rem); font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.nx-ring__c span { font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--text-on-ink-2); }
.nx-fundcard__out {
  display: inline-flex; align-items: center; gap: 12px; padding: 7px 18px 7px 7px; border-radius: 999px;
  background: rgb(var(--fg-rgb) / .06); border: 1px solid rgb(var(--fg-rgb) / .1);
  font-size: .95rem; color: var(--text-on-ink);
  opacity: 0; transform: translateY(10px) scale(.96);
  transition: opacity .5s var(--ease-ui), transform .6s var(--ease-snap);
}
.nx-fundcard__out.is-on { opacity: 1; transform: none; }
.nx-fundcard__out b { font-weight: 500; }
.nx-fundcard__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: var(--ink); }
.nx-fundcard__ico svg { width: 18px; height: 18px; fill: currentColor; }
.nx-projs { display: grid; gap: clamp(14px, 1.6vw, 22px); margin-top: clamp(48px, 8vh, 96px); }
@media (min-width: 860px) { .nx-projs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nx-proj {
  display: grid; align-content: start; gap: clamp(24px, 3.4vh, 36px);
  padding: clamp(24px, 3vw, 44px); border-radius: clamp(22px, 2.2vw, 32px);
  border: 1px solid rgb(var(--fg-rgb) / .08); background: rgb(var(--fg-rgb) / .03);
}
.nx-proj__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 16px clamp(24px, 3vw, 44px); min-height: 44px; }
.nx-proj__logos img { display: block; width: auto; height: var(--lh, 30px); max-width: 190px; }
@media (max-width: 640px) { .nx-proj__logos img { height: calc(var(--lh, 30px) * .82); } }
.nx-proj p { max-width: 46ch; font-size: var(--fs-lead); line-height: 1.6; color: var(--text-on-ink); text-wrap: pretty; }
.nx-fund__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: clamp(24px, 4vh, 40px); }
.nx-fund__foot p { font-size: .95rem; color: var(--text-on-ink-2); }

/* ---------- Reconocimientos (2026-10-17) ----------
   Lista con filete entre premios: el año a la izquierda, el resultado en
   naranja, el premio, quién lo otorga y, a la derecha, el certificado o la
   foto. Lo escribe scripts/generate.js desde site.json → about.awards. */
.nx-awards__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-on-ink); }
.nx-award {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 0;
  padding: clamp(24px, 4vh, 38px) 0; border-bottom: 1px solid var(--line-on-ink);
}
.nx-award__year { font-size: .95rem; font-weight: 500; color: var(--text-on-ink-2); font-variant-numeric: tabular-nums; }
.nx-award__body { display: grid; align-content: start; gap: 8px; min-width: 0; }
.nx-award__result { font-size: .76rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.nx-award__name {
  font-size: clamp(1.3rem, 2vw, 1.85rem); font-weight: 500; line-height: 1.16; letter-spacing: -0.02em;
  color: var(--text-on-ink); text-wrap: balance;
}
.nx-award__by { font-size: .98rem; line-height: 1.5; color: var(--text-on-ink-2); }
.nx-award__who { font-size: .98rem; line-height: 1.5; color: var(--text-on-ink-2); }
.nx-award__who a { color: var(--text-on-ink); text-decoration: underline; text-decoration-color: rgb(var(--fg-rgb) / .3); text-underline-offset: 4px; }
.nx-award__who a:hover { color: var(--orange); text-decoration-color: currentColor; }
.nx-award__link {
  justify-self: start; margin-top: 6px;
  font-size: .95rem; font-weight: 500; color: var(--text-on-ink);
  text-decoration: underline; text-decoration-color: rgb(var(--fg-rgb) / .3); text-underline-offset: 4px;
  transition: color .2s var(--ease-ui), text-decoration-color .2s var(--ease-ui);
}
.nx-award__link:hover { color: var(--orange); text-decoration-color: currentColor; }
.nx-award__link span { display: inline-block; margin-left: 4px; }
.nx-award__img {
  display: block; justify-self: start; width: min(100%, 280px); overflow: hidden;
  border-radius: 10px; border: 1px solid rgb(var(--fg-rgb) / .1); background: rgb(var(--fg-rgb) / .04);
  transition: transform .4s var(--ease-ui), border-color .2s var(--ease-ui);
}
.nx-award__img img { display: block; width: 100%; height: auto; }
.nx-award__img:hover { transform: translateY(-3px); border-color: rgb(var(--orange-rgb) / .5); }
.nx-award__link:focus-visible, .nx-award__img:focus-visible, .nx-award__who a:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
@media (min-width: 760px) {
  .nx-award { grid-template-columns: 7.5rem minmax(0, 1fr) auto; gap: 0 clamp(24px, 3vw, 48px); align-items: start; }
  .nx-award__year { padding-top: 2px; }
  .nx-award__img { width: clamp(180px, 20vw, 260px); }
}

/* ---------- Movimiento reducido: todo quieto y completo ---------- */
@media (prefers-reduced-motion: reduce) {
  .nx-chip.is-on b { animation: none; }
  .nx-app__ico, .nx-apps__orb, .nx-chart svg, .nx-fundcard__out, .nx-award__img { transition: none; }
  .nx-award__img:hover { transform: none; }
}
