/* ============================================================
   TOKENS · Jonathan Lifschitz — Portfolio
   Paleta derivada del logo JL (navy + degradé violeta→cian)
   ============================================================ */

:root {
  /* ---- Marca (del logo) ---- */
  --brand-navy:        #16203a;  /* la "J" — tinta oscura de marca */
  --brand-navy-soft:   #26324f;
  --brand-violet:      #6b4bff;  /* arranque del glow */
  --brand-blue:        #4361ff;
  --brand-cyan:        #21c1ff;  /* cierre del glow */

  /* Degradé de marca (la "L" luminosa) */
  --grad-brand: linear-gradient(120deg, var(--brand-violet) 0%, var(--brand-blue) 48%, var(--brand-cyan) 100%);
  --grad-brand-soft: linear-gradient(120deg, rgba(107,75,255,.14) 0%, rgba(33,193,255,.14) 100%);
  --grad-text: linear-gradient(100deg, #7a5bff 0%, #4f74ff 45%, #21c1ff 100%);

  /* ---- Neutrales (base clara, elegante) ---- */
  --bg:            #fbfbfd;  /* fondo general */
  --bg-elevated:   #ffffff;  /* cards / superficies */
  --bg-sunken:     #f3f4f8;  /* secciones hundidas */
  --bg-ink:        #0d1220;  /* secciones oscuras (footer / hero acento) */
  --bg-ink-soft:   #131a2c;

  --ink:           #10152a;  /* headings */
  --ink-body:      #3a4058;  /* cuerpo */
  --ink-muted:     #697088;  /* metadata (AA ≈4.9:1 sobre blanco) */
  --ink-faint:     #787e94;  /* captions / hints */
  --on-ink:        #eef1f8;  /* texto sobre fondo oscuro */
  --on-ink-muted:  #9aa2bd;

  --line:          #e7e9f1;  /* bordes / divisores */
  --line-strong:   #d6d9e6;
  --line-ink:      rgba(255,255,255,.10); /* borde sobre oscuro */

  /* Acento sólido accesible (para links/estados, AA sobre blanco) */
  --accent:        #4f39d6;
  --accent-strong: #3f2cc0;
  --accent-cyan-ink: #0a7ea8; /* cian oscurecido para texto AA */

  /* ---- Sombras ---- */
  --shadow-xs: 0 1px 2px rgba(16,21,42,.05);
  --shadow-sm: 0 2px 8px rgba(16,21,42,.06);
  --shadow-md: 0 12px 32px -12px rgba(16,21,42,.18);
  --shadow-lg: 0 32px 64px -24px rgba(16,21,42,.28);
  --shadow-glow: 0 20px 60px -20px rgba(79,57,214,.45);

  /* ---- Tipografía (DM Sans) ---- */
  --font-display: "DM Sans", system-ui, sans-serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Escala fluida (clamp) */
  --step--1: clamp(.82rem, .8rem + .1vw, .9rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.1rem);
  --step-1:  clamp(1.2rem, 1.12rem + .4vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.35rem + .75vw, 2.05rem);
  --step-3:  clamp(1.7rem, 1.45rem + 1.2vw, 2.4rem);
  --step-4:  clamp(1.85rem, 1.45rem + 1.7vw, 2.625rem); /* títulos de sección — máx 42px */
  --step-5:  clamp(2.5rem, 1.95rem + 3.2vw, 4.4rem);

  /* ---- Espaciado / layout ---- */
  --space-2xs: .5rem;
  --space-xs: .75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6.5rem;
  --space-3xl: 9rem;

  --maxw: 1200px;
  --maxw-narrow: 760px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --nav-h: 74px;

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: .25s;
  --dur: .5s;
  --dur-slow: .9s;
}
