/* Reset, tipografía y utilidades mínimas. */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h-compacto) + var(--s-4));
}

/* Sin smooth en la escena fija: ScrollTrigger mide moviendo el scroll y el smooth lo desfasa. */
@media (prefers-reduced-motion: no-preference) {
  html:not(.motion-full) {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--fondo);
  color: var(--tinta);
  font-family: var(--font-texto);
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

img {
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--bosque);
  text-underline-offset: 3px;
}

[hidden] {
  display: none;
}

:focus-visible {
  outline: 2px solid var(--foco);
  outline-offset: 2px;
}

/* Tipografía */
h1,
h2,
h3 {
  font-family: var(--font-titulo);
  font-weight: 500;
  text-wrap: balance;
}

h1 em,
h2 em {
  font-style: italic;
  color: var(--bosque);
}

.seccion__titulo {
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -.01em;
  font-variation-settings: "opsz" 96;
}

@media (min-width: 1024px) {
  .seccion__titulo {
    font-size: clamp(32px, 1.6vw + 18px, 46px);
  }
}

p {
  max-width: 65ch;
}

.bajada {
  font-size: 18px;
  line-height: 29px;
}

.nota {
  font-size: 14px;
  line-height: 21px;
  color: var(--tinta-suave);
}

.eyebrow {
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tinta-suave);
}

/* Utilidades */
.contenedor {
  width: 100%;
  max-width: calc(var(--ancho-max) + var(--gutter-izq) + var(--gutter-der));
  margin-inline: auto;
  padding-left: var(--gutter-izq);
  padding-right: var(--gutter-der);
}

.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;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: calc(env(safe-area-inset-top) + var(--s-2));
  left: var(--gutter-izq);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-campo);
  background: var(--tinta);
  color: var(--fondo);
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}
