/* ============================================================
   base.css — reset, tipografía global, utilidades de layout
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  background: var(--void);
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection {
  background: var(--ember);
  color: var(--void);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

p {
  max-width: 62ch;
}

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

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

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

ul, ol {
  list-style: none;
}

/* ---- Accesibilidad ---- */

.skip-link {
  position: fixed;
  top: -100%;
  left: var(--sp-4);
  z-index: calc(var(--z-preloader) + 1);
  padding: var(--sp-3) var(--sp-6);
  background: var(--ember);
  color: var(--void);
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: top var(--dur-fast) ease;
}

.skip-link:focus {
  top: var(--sp-4);
}

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

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

/* ---- Layout ---- */

.container {
  width: min(100% - 2 * var(--gutter), var(--max-w));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-pad);
}

.section--carbon {
  background: var(--carbon);
}

/* Cabecera de sección estándar */
.section-head {
  display: grid;
  gap: var(--sp-4);
  margin-bottom: clamp(2.5rem, 2rem + 3vw, 5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
}

.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--g-energy);
  flex-shrink: 0;
}

.section-title {
  font-size: var(--text-2xl);
}

.section-lede {
  color: var(--smoke);
  font-size: var(--text-lg);
  line-height: 1.5;
}

/* Palabra acento con flicker (ver motion.css) */
.accent {
  color: var(--ember);
}

/* Cifras en display */
.num {
  font-family: var(--font-display);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
