/* Nosotros: evidencia medible, pagina propia */

html.ns-root,
html.ns-root body {
  background-color: #1f7350;
  color: #f4fff7;
}

body.ns-page {
  min-height: 100vh;
  min-height: 100dvh;
  background-image:
    radial-gradient(ellipse 58% 46% at 14% 18%, rgba(198, 255, 220, 0.22), transparent 62%),
    radial-gradient(ellipse 42% 38% at 92% 84%, rgba(255, 206, 140, 0.12), transparent 58%),
    radial-gradient(ellipse 70% 50% at 50% 120%, rgba(0, 0, 0, 0.22), transparent 62%),
    linear-gradient(165deg, #2f9468 0%, #1f7350 46%, #14543a 100%);
  background-attachment: fixed;
}

body.ns-page ::selection {
  background: #d8ffe8;
  color: #0e3d2c;
}

body.ns-page .site-header {
  background: rgba(236, 246, 237, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

body.ns-page .nav-link.is-current {
  color: var(--gb-dark);
}

body.ns-page .nav-link.is-current::after {
  width: 100%;
}

.ns-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ns-sky::after {
  content: "";
  position: absolute;
  inset: -20%;
  opacity: 0.16;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
  mix-blend-mode: overlay;
}

.ns-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.55;
}

.ns-orb-a {
  width: 340px;
  height: 340px;
  left: -80px;
  bottom: 8%;
  background: radial-gradient(circle, rgba(210, 255, 226, 0.55), transparent 68%);
  animation: nsDrift 22s ease-in-out infinite;
}

.ns-orb-b {
  width: 420px;
  height: 420px;
  right: -120px;
  top: 28%;
  background: radial-gradient(circle, rgba(120, 220, 160, 0.35), transparent 70%);
  animation: nsDrift 28s ease-in-out infinite reverse;
}

.ns-orb-c {
  width: 220px;
  height: 220px;
  left: 42%;
  top: 18%;
  background: radial-gradient(circle, rgba(255, 236, 196, 0.28), transparent 68%);
  animation: nsDrift 18s ease-in-out infinite;
}

.ns-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 480px;
  height: 480px;
  margin: -240px 0 0 -240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210, 255, 224, 0.2), transparent 68%);
  opacity: 0;
  transition: opacity 0.45s ease;
  mix-blend-mode: screen;
}

.ns-glow.is-on {
  opacity: 1;
}

@keyframes nsDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(28px, -22px, 0) scale(1.06); }
}

.ns-main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  padding: 128px max(28px, 6vw) max(28px, env(safe-area-inset-bottom));
}

.ns-panel,
.ns-origin {
  width: min(1140px, 100%);
  margin-inline: auto;
}

.ns-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(244, 255, 247, 0.82);
}

.ns-title {
  margin: 16px 0 0;
  max-width: 16em;
  font-family: "Source Serif 4", Georgia, serif;
  font-style: italic;
  font-weight: 560;
  font-size: clamp(2.15rem, 3.4vw + 0.85rem, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #f7fff8;
  text-shadow: 0 18px 40px rgba(6, 32, 20, 0.22);
}

.ns-line {
  display: block;
}

.ns-line-em {
  font-weight: 650;
}

.ns-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 34px;
  margin-top: clamp(36px, 6vh, 68px);
}

.ns-stat {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  padding: 4px 2px 8px;
  margin: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
  border-radius: 12px;
  user-select: none;
}

.ns-stat:focus-visible {
  outline: 2px solid rgba(247, 255, 248, 0.9);
  outline-offset: 8px;
}

.ns-stat-rule {
  display: block;
  height: 1.5px;
  margin-bottom: 18px;
  background: rgba(247, 255, 248, 0.72);
  transform: scaleX(0);
  transform-origin: left center;
}

.ns-num {
  display: block;
  min-height: 1em;
}

.ns-num-value {
  display: inline-block;
  font-family: "Source Serif 4", Georgia, serif;
  font-style: normal;
  font-weight: 560;
  font-size: clamp(3rem, 4.2vw + 0.6rem, 4.9rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  color: #ffffff;
}

.ns-stat[data-prefix="+"] .ns-num-value {
  min-width: 3.15ch;
}

.ns-stat:not([data-prefix="+"]) .ns-num-value {
  min-width: 2.15ch;
}

.ns-stat.is-landed .ns-num-value {
  animation: nsSettle 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.ns-gauge {
  display: block;
  width: min(100%, 148px);
  height: 2px;
  margin-top: 16px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
  overflow: visible;
}

.ns-gauge-fill {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.25), #f4fff8);
  transform: scaleX(0);
  transform-origin: left center;
  box-shadow: 0 0 14px rgba(220, 255, 232, 0.45);
  position: relative;
}

.ns-gauge-fill::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  transform: translate(50%, -50%);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}

.ns-stat.is-landed .ns-gauge-fill::after {
  animation: nsPing 0.85s ease;
}

.ns-label {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(244, 255, 247, 0.84);
}

.ns-stat:hover .ns-num-value,
.ns-stat:focus-visible .ns-num-value {
  text-shadow: 0 0 22px rgba(220, 255, 232, 0.45);
}

.ns-origin {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(28px, 5vh, 48px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 255, 248, 0.92);
}

.ns-origin svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  overflow: visible;
}

.ns-origin circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-dasharray: 52;
  stroke-dashoffset: 52;
}

.ns-kicker,
.ns-line,
.ns-label,
.ns-origin {
  opacity: 0;
  transform: translateY(16px);
}

html.ns-play .ns-kicker {
  animation: nsRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.12s forwards;
}

html.ns-play .ns-title .ns-line:first-of-type {
  animation: nsRise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.24s forwards;
}

html.ns-play .ns-line-em {
  animation: nsRise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

html.ns-play .ns-stat:nth-child(1) .ns-stat-rule { animation: nsDraw 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards; }
html.ns-play .ns-stat:nth-child(2) .ns-stat-rule { animation: nsDraw 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.66s forwards; }
html.ns-play .ns-stat:nth-child(3) .ns-stat-rule { animation: nsDraw 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.77s forwards; }
html.ns-play .ns-stat:nth-child(4) .ns-stat-rule { animation: nsDraw 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.88s forwards; }

html.ns-play .ns-stat:nth-child(1) .ns-label { animation: nsRise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards; }
html.ns-play .ns-stat:nth-child(2) .ns-label { animation: nsRise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.82s forwards; }
html.ns-play .ns-stat:nth-child(3) .ns-label { animation: nsRise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.94s forwards; }
html.ns-play .ns-stat:nth-child(4) .ns-label { animation: nsRise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.06s forwards; }

html.ns-play .ns-origin {
  animation: nsRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.72s forwards;
}

html.ns-play .ns-origin circle {
  animation: nsDrawCircle 1s ease 0.95s forwards;
}

html.ns-still .ns-kicker,
html.ns-still .ns-line,
html.ns-still .ns-label,
html.ns-still .ns-origin {
  opacity: 1;
  transform: none;
}

html.ns-still .ns-stat-rule {
  transform: none;
}

html.ns-still .ns-gauge-fill {
  transform: none;
}

html.ns-still .ns-origin circle {
  stroke-dashoffset: 0;
}

@keyframes nsRise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes nsDraw {
  to { transform: scaleX(1); }
}

@keyframes nsDrawCircle {
  to { stroke-dashoffset: 0; }
}

@keyframes nsSettle {
  0% { transform: translateY(8px) scale(0.96); }
  100% { transform: none; }
}

@keyframes nsPing {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.65); }
  100% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
}

@media (max-width: 760px) {
  .ns-stats {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
}

@media (max-width: 860px) {
  .ns-main {
    padding-top: 104px;
  }
}

@media (max-width: 560px) {
  .ns-main {
    padding-right: 22px;
    padding-left: 22px;
  }

  .ns-stats {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .ns-title {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .ns-num-value {
    font-size: 3.5rem;
  }

  .ns-origin {
    letter-spacing: 0.16em;
  }
}

@media (max-height: 740px) and (min-width: 761px) {
  .ns-main {
    padding-top: 108px;
    padding-bottom: 22px;
  }

  .ns-title {
    font-size: clamp(2.15rem, 3.6vw, 3.45rem);
  }

  .ns-num-value {
    font-size: clamp(2.5rem, 3.8vw, 3.7rem);
  }

  .ns-stats {
    margin-top: 28px;
    gap: 20px 28px;
  }

  .ns-stat-rule {
    margin-bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ns-orb,
  .ns-stat.is-landed .ns-num-value,
  .ns-stat.is-landed .ns-gauge-fill::after {
    animation: none;
  }

  .ns-kicker,
  .ns-line,
  .ns-label,
  .ns-origin,
  .ns-stat-rule,
  .ns-gauge-fill,
  .ns-origin circle {
    animation: none;
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
  }
}
