@font-face {
  font-family: 'Inter Tight';
  src: url('/fonts/inter-tight/inter-tight-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('/fonts/inter-tight/inter-tight-latin-ext-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF;
}
@font-face {
  font-family: 'Geist Pixel';
  src: url('/fonts/geist-pixel/geist-pixel-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Pixel';
  src: url('/fonts/geist-pixel/geist-pixel-latin-ext-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF;
}
@font-face {
  font-family: 'Silkscreen';
  src: url('/fonts/silkscreen/silkscreen-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #0d0e10;
  --ink-2: #3a3d42;
  --ink-3: #74787f;
  --ink-4: #a9adb3;
  --line: #e8e8e6;
  --line-2: #f1f1ef;
  --paper: #ffffff;
  --paper-2: #f7f7f5;

  /* Violeta de marca (la X del logo) + un color por núcleo */
  --brand: #A259FF;
  --brand-ink: #6A2BD9;   /* violeta oscuro para texto sobre blanco */
  --brand-soft: #F1E8FF;
  --c-nexo: var(--brand);
  --c-work: #C6F432;
  --c-eco: #8CC8FF;
  --c-balance: #FFC94D;
  --c-life: #FF9EDB;
  --accent: var(--c-nexo);

  --sans: 'Inter Tight', ui-sans-serif, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  /* Tipografía mixta: sans para leer, píxel para acentos y cifras, Silkscreen para etiquetas */
  --px: 'Geist Pixel', ui-monospace, 'SF Mono', Menlo, monospace;
  --mono: var(--px);
  --tag: 'Silkscreen', var(--px);

  /* Esquinas suaves; el píxel queda para tipografía y detalles */
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* Vidrio esmerilado */
  --glass: rgb(255 255 255 / .58);
  --glass-line: rgb(255 255 255 / .7);
  --glass-dark: rgb(20 14 32 / .42);
  --shadow-1: 0 1px 2px rgb(13 14 16 / .04), 0 6px 18px -6px rgb(13 14 16 / .10);
  --shadow-2: 0 2px 4px rgb(13 14 16 / .04), 0 24px 48px -16px rgb(13 14 16 / .18);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--brand); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.mono { font-family: var(--mono); }
.label {
  font-family: var(--tag);
  font-size: 10px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink-3);
}
/* Palabras en píxel dentro de titulares en sans */
.px { font-family: var(--px); font-weight: 400; letter-spacing: -.01em; }

/* Vidrio: tarjetas translúcidas con desenfoque sobre fondos de color */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
          backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid var(--glass-line);
  box-shadow: 0 1px 0 rgb(255 255 255 / .6) inset, 0 20px 50px -24px rgb(40 10 80 / .35);
}
.glass-dark {
  background: var(--glass-dark);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
          backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgb(255 255 255 / .12);
  color: #fff;
}
/* Detalle píxel: un cuadrito de color */
.pxdot { display: inline-block; width: 8px; height: 8px; background: var(--c, var(--brand)); box-shadow: 0 0 0 1px rgb(13 14 16 / .35); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Logo oficial: wordmark con la "x" violeta */
.logo { display: inline-flex; align-items: center; }
.logo-img { display: block; width: auto; height: 26px; }
.logo-lg .logo-img { height: 44px; }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-weight: 550;
  font-size: 15px;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--brand); color: var(--ink); }
.btn-brand { background: var(--brand); color: var(--ink); }
.btn-brand:hover { background: var(--ink); color: #fff; }
.btn .arrow { font-family: var(--px); }
.btn-paper { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }
.btn-paper:hover { box-shadow: var(--shadow-2); }
.btn-line { border-color: var(--line); background: #fff; }
.btn-line:hover { border-color: var(--ink-4); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Formularios */
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 550; color: var(--ink-2); }
.input {
  height: 46px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.input:hover { border-color: var(--ink-4); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgb(13 14 16 / .06); }
.form-error {
  margin: 0;
  min-height: 1.2em;
  font-size: 13px;
  color: #c2261d;
}

/* Toasts */
.toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 100; }
.toast {
  max-width: 360px;
  padding: 12px 16px;
  border-radius: var(--r);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  box-shadow: var(--shadow-2);
  animation: toast-in .35s var(--ease);
}
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* Revelado al hacer scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Color de núcleo por clase (la CSP no permite estilos en línea) */
.c-nexo { --c: var(--c-nexo); }
.c-work { --c: var(--c-work); }
.c-eco { --c: var(--c-eco); }
.c-balance { --c: var(--c-balance); }
.c-life { --c: var(--c-life); }

