/* Nexio — página en construcción. Tokens de Nexio Design System. */
@font-face { font-family: 'Ibrand'; src: url('fonts/Ibrand.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('fonts/SatoshiRegular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('fonts/SatoshiMedium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('fonts/SatoshiBold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --green-950: #042021;
  --green-900: #093026;
  --green-400: #265B4C;
  --green-300: #99BFA4;
  --green-100: #E0F2E2;
  --yellow: #FFD100;
  --font-display: 'Ibrand', 'Satoshi', system-ui, sans-serif;
  --font-body: 'Satoshi', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: 0.15s ease;
  --x: 0%;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--green-950); }
body {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--green-950);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Plano técnico: cuadrícula fina + viñeta */
.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  background-image:
    linear-gradient(rgba(153,191,164,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(153,191,164,.07) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
}
.page::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 38%, transparent 30%, var(--green-950) 92%);
}
.page > * { position: relative; }

.label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-300);
}

/* Barra superior */
.top { display: flex; justify-content: space-between; gap: 16px; }

/* Escenario del logo */
.stage {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 0 20px;
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
}
.logo-box {
  position: relative;
  width: min(86vw, 920px);
  aspect-ratio: 2814 / 1238;
}
.logo-box::before, .logo-box::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--green-300);
  opacity: .55;
}
.logo-box::before { top: -14px; left: -14px; border-right: 0; border-bottom: 0; }
.logo-box::after { bottom: -14px; right: -14px; border-left: 0; border-top: 0; }

.logo { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill-rule: evenodd; clip-rule: evenodd; stroke-linejoin: round; }
#nx .reg { stroke-dasharray: none; }
.logo--draft { fill: none; stroke: var(--green-300); stroke-width: 1.2; stroke-dasharray: 5 5; opacity: .8; }
.logo--final { fill: #fff; clip-path: inset(0 calc(100% - var(--x)) 0 0); }

/* Barra escáner (es la "/" del isotipo) */
.scan {
  position: absolute;
  top: -22px; bottom: -22px;
  left: var(--x);
  width: 0;
  pointer-events: none;
}
.scan__bar {
  position: absolute; top: 0; bottom: 0; left: -3px;
  width: 6px;
  border-radius: 9999px;
  background: var(--green-300);
}
.logo-tag {
  position: absolute;
  top: calc(100% + 26px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
}
.logo-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
.logo-tag b { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }

/* Información */
.info {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px 64px;
  align-items: end;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 0 8px;
  border-top: 1px solid rgba(153,191,164,.18);
}
h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -.01em;
}
.lead { margin-top: 16px; max-width: 460px; color: rgba(255,255,255,.72); }

.actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  border-radius: 9999px;
  background: var(--green-100);
  color: var(--green-900);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  font-family: inherit;
  transition: background var(--ease), transform var(--ease);
}
.btn:hover { background: #fff; }
.btn:focus-visible, .link:focus-visible { outline: 1.5px solid var(--green-300); outline-offset: 3px; }
.btn svg { transition: transform var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.link {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(153,191,164,.5);
  padding-bottom: 2px;
  transition: border-color var(--ease), color var(--ease);
}
.link:hover { color: var(--green-300); border-color: var(--green-300); }

/* Contador */
.counter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cell {
  padding: 16px 8px 12px;
  border: 1px solid rgba(153,191,164,.22);
  border-radius: 16px;
  text-align: center;
}
.cell strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 48px;
  font-variant-numeric: tabular-nums;
}
.cell span { display: block; margin-top: 4px; }
.counter-done { grid-column: 1 / -1; font-family: var(--font-display); font-size: 25px; line-height: 32px; }

/* Progreso: conecta · optimiza · escala */
.progress { margin-top: 24px; }
.progress__track { height: 2px; background: rgba(153,191,164,.2); border-radius: 2px; overflow: hidden; }
.progress__fill { height: 100%; width: var(--x); background: var(--green-300); }
.words { margin-top: 14px; display: flex; justify-content: space-between; gap: 8px; }
.word { display: flex; align-items: center; gap: 8px; color: rgba(153,191,164,.4); transition: color var(--ease); }
.word::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; transition: background var(--ease); }
.word.on { color: var(--green-300); }
.word.now { color: #fff; }
.word.now::before { background: var(--yellow); }

.foot { margin-top: 28px; display: flex; justify-content: space-between; gap: 16px; color: rgba(255,255,255,.4); font-size: 13px; width: 100%; max-width: 1120px; margin-left: auto; margin-right: auto; }

/* Móvil */
@media (max-width: 820px) {
  .page { padding: 20px 24px; background-size: 40px 40px; text-align: center; }
  .top { flex-direction: column; align-items: center; gap: 6px; }
  .info { grid-template-columns: 1fr; gap: 32px; padding-top: 28px; }
  .lead { margin-left: auto; margin-right: auto; }
  .actions { justify-content: center; }
  .words { justify-content: center; gap: 20px; }
  .foot { align-items: center; }
  .stage { padding: 28px 0 44px; }
  .btn { width: 100%; justify-content: center; }
  .foot { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
