/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-md);
  color: var(--text-primary);
  background-color: var(--surface-bg);
  min-height: 100vh;
}

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

ul, ol {
  list-style: none;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* ── Tipografía ────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
}

h1 {
  font-size: var(--text-2xl);
  line-height: var(--leading-2xl);
}

h2 {
  font-size: var(--text-xl);
  line-height: var(--leading-xl);
}

h3 {
  font-size: var(--text-lg);
  line-height: var(--leading-lg);
}

p {
  color: var(--text-secondary);
  line-height: var(--leading-md);
}

/* ── Utilidades ────────────────────────────────────────────────── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Responsive breakpoints (mobile-first) ─────────────────────── */
@media (min-width: 768px) {
  h1 {
    font-size: var(--text-2xl);
  }
}
