/* Revor — Design tokens */

/* Nota sobre @layer: el tema NO envuelve sus estilos en capas en cascada, y es */

/* Tipografía — Archivo (variable, eje wght 400–800) */
@font-face {
font-family: 'Archivo';
font-style: normal;
font-weight: 400 800;
font-stretch: 100%;
font-display: swap;
src: url('../fonts/archivo-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
  U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
  U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
font-family: 'Archivo';
font-style: normal;
font-weight: 400 800;
font-stretch: 100%;
font-display: swap;
src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
  U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
  U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    /* Color — marca */
  --revor-azul: #004b87;
  --revor-blanco: #ffffff;

  /* Escala primaria */
  --primary-50: #e6edf3;
  --primary-100: #bfd2e1;
  --primary-200: #8caec9;
  --primary-300: #598ab1;
  --primary-400: #266699;
  --primary-500: #004b87; /* = azul de marca */
  --primary-600: #004073;
  --primary-700: #00355f;
  --primary-800: #00294a;

  /* Neutrales */
  --neutral-50: #f5f7f9;
  --neutral-100: #e7ebef;
  --neutral-200: #c9d0d8;
  --neutral-400: #8a94a0;
  --neutral-600: #545e6b;
  --neutral-900: #1b2027;

  /* Estados */
  --state-success: #1e874b;
  --state-warning: #b26a00;
  --state-error: #c0392b;

    /* Color — roles semánticos */
  --color-text: var(--neutral-900);
  --color-text-muted: var(--neutral-600);
  --color-text-invert: var(--revor-blanco);
  --color-text-invert-muted: var(--primary-100);
  --color-heading: var(--primary-500);
  --color-heading-dark: var(--primary-800);

  --color-bg: var(--revor-blanco);
  --color-bg-subtle: var(--neutral-50);
  --color-bg-brand: var(--primary-500);
  --color-bg-deep: var(--primary-800);

  --color-border: var(--neutral-200);
  --color-border-brand: var(--primary-500);

  --color-link: var(--primary-500);
  --color-link-hover: var(--primary-700);

  --color-focus: var(--primary-300);

  --veil-brand: rgb(0 75 135 / 0.5);
  --veil-deep: rgb(0 41 74 / 0.65);

    /* Tipografía */
  --font-sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-variation: 'wdth' 100;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  --text-display: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); /* 36 → 56 */
  --text-h1: clamp(2rem, 1.5rem + 2vw, 3rem); /* 32 → 48 */
  --text-h2: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); /* 28 → 40 */
  --text-h3: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem); /* 22 → 28 */
  --text-h4: 1.25rem; /* 20 */
  --text-lg: 1.125rem; /* 18 */
  --text-base: 1rem; /* 16 */
  --text-sm: 0.875rem; /* 14 */
  --text-xs: 0.8125rem; /* 13 */

  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.55;
  --leading-relaxed: 1.7;

  --tracking-tight: -0.0225em; /* -1.08px sobre 48px */
  --tracking-normal: 0;
  --tracking-wide: 0.08em; /* Antetítulos en versalitas */

    /* Espaciado — escala de 4 */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Aire vertical entre secciones, proporcional al viewport. */
  --section-y: clamp(3rem, 1.5rem + 6vw, 6rem);

    /* Layout */
  --container: 1120px;
  --container-narrow: 760px; /* Cuerpo del artículo */
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --header-height: 80px;

    /* Formas */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  --border-width: 1px;

  --shadow-sm: 0 1px 2px rgb(27 32 39 / 0.06);
  --shadow-md: 0 4px 16px rgb(27 32 39 / 0.08);
  --shadow-lg: 0 12px 32px rgb(0 41 74 / 0.14);

    /* Decoración diagonal */
  --decor-cut: clamp(2.5rem, 6vw, 5.5rem);
  --decor-cut-sm: clamp(1.25rem, 3vw, 2.5rem);

    /* Movimiento */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 120ms;
  --duration: 220ms;
  --duration-slow: 420ms;

    /* Capas */
  --z-decor: 0;
  --z-content: 1;
  --z-sticky: 50;
  --z-header: 100;
  --z-overlay: 200;
}
