:root {
  --bg: #0b0b0d;
  --surface: #111114;
  --surface-2: #17171c;
  --surface-3: #1f1f26;
  --line: #26262e;
  --line-soft: #1c1c22;
  --text: #f4f4f5;
  --text-2: #a1a1aa;
  --text-3: #6b6b75;
  --accent: #f4f4f5;
  --accent-ink: #0b0b0d;
  --ok: #4ade80;
  --warn: #fbbf24;
  --err: #f87171;
  --info: #60a5fa;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 40px rgb(0 0 0 / 45%);
  --ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--text-3);

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);

  --header-h: 84px;
  --max-w: 1180px;
  --t-fast: 140ms cubic-bezier(0.22, 1, 0.36, 1);
  --t: 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Foto de la imprenta como fondo fijo, atenuada para mantener legibilidad. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url('/assets/background.png') center / cover no-repeat fixed;
  opacity: 0.55;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 15% -10%, rgb(27 27 34 / 45%) 0%, transparent 60%),
    radial-gradient(700px 420px at 95% 0%, rgb(22 22 27 / 35%) 0%, transparent 55%),
    linear-gradient(180deg, rgb(11 11 13 / 25%) 0%, rgb(11 11 13 / 55%) 55%, rgb(11 11 13 / 78%) 100%);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem);
}

h2 {
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
}

h3 {
  font-size: 1.05rem;
}

p {
  color: var(--text-2);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--text);
  color: var(--bg);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 99px;
  border: 2px solid var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
