/* ============================================================
   Nexvelia · Base
   Reset moderno + tipografía global + utilidades de layout.
   ============================================================ */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-16);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--r-sm);
}

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

ul, ol { list-style: none; }

/* Tipografía · escalado */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(var(--fs-40), 6vw, var(--fs-72)); letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: clamp(var(--fs-28), 4vw, var(--fs-48)); letter-spacing: -0.025em; }
h3 { font-size: var(--fs-24); }
h4 { font-size: var(--fs-18); font-weight: 500; }
p  { color: var(--ink); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-12);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}

.lead { font-size: var(--fs-18); color: var(--ink-muted); line-height: 1.6; max-width: var(--w-prose); }

/* Layout */
.container { max-width: var(--w-container); margin-inline: auto; padding-inline: var(--s-6); }
.container-narrow { max-width: var(--w-narrow); margin-inline: auto; padding-inline: var(--s-6); }

@media (min-width: 768px) {
  .container, .container-narrow { padding-inline: var(--s-8); }
}

.section { padding-block: clamp(var(--s-16), 10vw, var(--s-24)); }

/* Accesibilidad */
.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;
}
.skip-link {
  position: absolute; top: -40px; left: var(--s-4);
  background: var(--ink); color: var(--bg);
  padding: var(--s-2) var(--s-4); border-radius: var(--r-sm);
  z-index: 1000;
  transition: top var(--t-fast);
}
.skip-link:focus { top: var(--s-4); }
