/* Reset mínimo + tipografía y contenedores base compartidos por toda la página. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--grafito);
  background: var(--hueso);
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 var(--space-2);
}

p { margin: 0 0 var(--space-2); max-width: 65ch; }

img, video { max-width: 100%; display: block; }
img { height: auto; }
button, input, select { font: inherit; }
body { font-synthesis: none; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
section[id] { scroll-margin-top: 110px; }
.container { width: 100%; }

a { color: var(--azul-profundo); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.section {
  padding: var(--space-8) 0;
}

/* Foco de teclado visible en todo elemento interactivo, sin depender del
   estilo default del navegador (que a veces se pisa sin querer al estilar). */
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid var(--celeste-industrial);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
