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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base); /* 18px — no el default de 16px */
  line-height: 1.75;
  color: var(--color-gris-texto);
  background-color: var(--color-fondo);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol { list-style: none; }

button, input, textarea { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-gris-texto);
}

/* letter-spacing negativo en títulos — diferencia diseñador vs default IA */
h1 {
  font-size: clamp(var(--text-3xl), 6vw, var(--text-4xl));
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--text-xl);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.container {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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