/* Bexlo design system: base (reset, tipografía, layout). */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  padding: 0.75rem 1.25rem; background: var(--text); color: var(--bg); border-radius: var(--radius-pill);
}
.skip-link:focus { top: 12px; }

/* Layout */
.wrap { padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--raised { background: var(--bg-2); }

/* Titulares: un único nivel de entrada por sección, sin etiquetas encima */
.h-hero, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  text-wrap: balance;
}
.h-hero { font-size: var(--fs-hero); line-height: 0.95; }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -0.03em; }
.accent { color: var(--brand); }

/* Nivel intermedio entre titular y texto */
.lead {
  font-size: var(--fs-lead);
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.45;
  max-width: 38ch;
  margin-top: 1.25rem;
  text-wrap: pretty;
}
.muted { color: var(--text-2); }
.small { font-size: var(--fs-small); }

.section-head { display: grid; gap: 0; margin-bottom: clamp(40px, 6vw, 88px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
