/* =====================================================================
   02 · BASE — reset, tipografía y utilidades
   ===================================================================== */

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

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

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Sin scroll horizontal accidental (también en Safari/iOS antiguos).
     hidden en <body> se traslada a la ventana y no rompe los sticky. */
  overflow-x: hidden;
}

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

img {
  height: auto;
}

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

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

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure,
address {
  margin: 0;
  padding: 0;
  font-style: normal;
}

ul,
ol {
  list-style: none;
}

/* ---------------------------------------------------------------------
   JERARQUÍA EDITORIAL — Inter (incluida en assets/fonts, sin CDN)
     H1–H5 → Inter Black (900) · H6–H7 → Inter Bold (700) · P → Inter Regular
   Cada nivel tiene una clase gemela (.t-h1 … .t-h7) para usar el estilo
   sin cambiar la semántica (p. ej. el "01" de Servicios usa .t-h3).
   Los colores los da cada sección según su fondo.
   --------------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-900-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-ext-900-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

h1, .t-h1,
h2, .t-h2,
h3, .t-h3,
h4, .t-h4,
h5, .t-h5 {
  font-family: var(--font-body);
  font-weight: 900;
  text-wrap: balance;
}

h6, .t-h6,
.t-h7 {
  font-family: var(--font-body);
  font-weight: 700;
}

h1, .t-h1 {
  font-size: var(--fs-h1);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

h2, .t-h2 {
  font-size: var(--fs-h2);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

h3, .t-h3 {
  font-size: var(--fs-h3);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

h4, .t-h4 {
  font-size: var(--fs-h4);
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

h5, .t-h5 {
  font-size: var(--fs-h5);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h6, .t-h6 {
  font-size: var(--fs-h6);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.t-h7 {
  font-size: var(--fs-h7);
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

p {
  font-weight: 400;
  text-wrap: pretty;
}

/* Texto escaneable: negritas estratégicas dentro de párrafos */
p strong {
  font-weight: 700;
}

.display {
  text-transform: uppercase;
}

.eyebrow {
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  max-width: var(--measure);
  font-size: var(--fs-lead);
  line-height: 1.45;
}

.t-primary { color: var(--c-primary); }
.t-accent { color: var(--c-accent); }
.t-white { color: var(--c-white); }

/* Accesibilidad */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--c-primary);
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

/* Lenis (scroll suave) */
html.lenis,
html.lenis body {
  height: auto;
}

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

.lenis.lenis-stopped {
  overflow: hidden;
}
