/* Reset y estilos base */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

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

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

.sr-only {
  position: absolute !important;
  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;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--c-ink);
  color: var(--c-white);
  font-weight: 600;
}
.skip-link:focus { top: 0.75rem; }

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  transition: transform var(--dur) var(--ease);
}

/* ---------- Tipografía editorial ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-gray-600);
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 3px;
  background: var(--c-blue);
}
.eyebrow--light { color: var(--c-white); }

.section-title {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 800;
  font-stretch: 110%;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-blue-ink);
}
.tag::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  background: currentColor;
  transform: skewX(-18deg);
}

/* Cabecera de sección: filete superior grueso, estilo revista */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.25rem;
  margin-bottom: clamp(2rem, 1.4rem + 2.5vw, 3.5rem);
  border-top: 3px solid var(--c-ink);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: none;
  min-height: 44px;
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--c-blue-ink);
  text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform 0.12s var(--ease);
}
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--sm { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.9375rem; }
.btn--lg { min-height: 54px; padding: 0.95rem 1.6rem; font-size: 1.0625rem; }

.btn--primary { background: var(--c-blue); color: var(--c-ink); }
.btn--primary:hover { background: var(--c-blue-bright); }

.btn--dark { background: var(--c-ink); color: var(--c-white); }
.btn--dark:hover { background: var(--c-blue); color: var(--c-ink); }

.btn--outline-light { border-color: rgba(255, 255, 255, 0.75); color: var(--c-white); }
.btn--outline-light:hover { background: var(--c-white); border-color: var(--c-white); color: var(--c-ink); }
