/* ==========================================================================
   RUWAY — BASE
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

@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;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-ink);
  background: var(--color-light);
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: var(--lh-tight);
  margin: 0;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0; }

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

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

/* Foco visible — accesibilidad */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  width: 100%;
}

/* Franjas que deben ir a todo el ancho de pantalla, sin tope máximo
   (header/nav) — padding lateral fijo de 24px, no proporcional. */
.container--fluid {
  width: 100%;
  padding-inline: 24px;
}

.section {
  padding-block: var(--sp-7);
}

.section--dark {
  background: var(--color-dark);
  color: var(--color-paper);
}

.section--secondary {
  background: var(--color-secondary);
  color: var(--color-paper);
}

.section--light {
  background: var(--color-light);
  color: var(--color-ink);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--color-accent);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 64px;
}

.section-head .eyebrow {
  color: currentColor; /* mismo color que el título y el párrafo, no el acento */
}

.section-head h2 {
  margin-top: var(--sp-2);
}

.section-head p {
  margin-top: 48px;
  font-size: 20px;
  opacity: 0.9;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
