/* =========================================================
   VANTYX — BASE
   Reinicio, tipografía, estructura y accesibilidad.
   ========================================================= */

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

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

body {
  margin: 0;
  background: var(--vx-graphite);
  color: var(--vx-white);
  font-family: var(--vx-font);
  font-size: var(--fs-base);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  margin: 0 0 var(--sp-4);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h2 { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: var(--fs-md); }

p { margin: 0 0 var(--sp-4); max-width: 64ch; }

a { color: var(--vx-electric-text); text-underline-offset: 3px; }
a:hover { color: var(--vx-white); }

ul, ol { margin: 0; padding: 0; }

button, input, select, textarea { font: inherit; color: inherit; }

/* ----- Accesibilidad ----- */
:focus-visible {
  outline: 3px solid var(--vx-electric-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--vx-white);
  color: var(--vx-graphite);
  border-radius: var(--r-ctl);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: var(--sp-4); }

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

/* ----- Estructura ----- */
.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 8vw, 112px); }
.section--deep { background: var(--vx-graphite-deep); }
.section--ruled { border-top: 1px solid var(--vx-line); }

/* ----- Respeto por quien reduce el movimiento ----- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
