/* ==========================================================================
   base.css — reset, tokens (variables), tipografía global
   ========================================================================== */

:root {
  /* Color */
  --color-blue: #507DBD;
  --color-blue-dark: #3A5F94;
  --color-green: #00805D;
  --color-green-dark: #00563F;
  --color-ink: #14213B;
  --color-bg: #F6F8FA;
  --color-white: #FFFFFF;
  --color-border: #E1E6EC;

  /* Tipografía */
  --font-heading: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;

  /* Espaciado */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  /* Forma */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(20, 33, 59, 0.06);
  --shadow-md: 0 12px 32px rgba(20, 33, 59, 0.10);

  /* Layout */
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); }
h2 { font-size: clamp(1.6rem, 2.5vw + 1rem, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 var(--space-2); }

a {
  color: var(--color-blue-dark);
  text-decoration: none;
}

a:hover { color: var(--color-green); }

ul, ol { padding-left: 1.2em; }

img { max-width: 100%; height: auto; display: block; }

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

/* Etiquetas tipo "eyebrow" — IBM Plex Mono, evoca ficha técnica */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: var(--space-1);
}

/* Foco visible accesible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 2px;
}

::selection {
  background: var(--color-blue);
  color: var(--color-white);
}
