/* ==========================================================================
   SPORTMETRIC 2.0 — BASE
   Reset, tipografía y primitivas de layout.
   ========================================================================== */

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

* {
  margin: 0;
}

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

body {
  font-family: var(--sm-font-sans);
  font-size: var(--sm-text-md);
  line-height: var(--sm-leading-normal);
  color: var(--sm-text);
  background-color: var(--sm-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

ul,
ol {
  padding: 0;
  list-style: none;
}

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

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-xs);
}

::selection {
  background: var(--sm-indigo-100);
  color: var(--sm-indigo-700);
}

/* --------------------------------------------------------------------------
   Tipografía
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  line-height: var(--sm-leading-tight);
  color: var(--sm-text);
  font-weight: var(--sm-weight-bold);
}

h1 { font-size: var(--sm-text-3xl); }
h2 { font-size: var(--sm-text-2xl); }
h3 { font-size: var(--sm-text-xl); }
h4 { font-size: var(--sm-text-lg); }

.eyebrow {
  display: inline-block;
  font-size: var(--sm-text-xs);
  font-weight: var(--sm-weight-bold);
  letter-spacing: var(--sm-tracking-wide);
  text-transform: uppercase;
  color: var(--sm-indigo-400);
  margin-bottom: var(--space-2);
}

.text-secondary { color: var(--sm-text-secondary); }
.text-muted { color: var(--sm-text-muted); }
.text-primary { color: var(--sm-primary); }
.text-accent-ink { color: var(--sm-accent-ink); }
.fw-medium { font-weight: var(--sm-weight-medium); }
.fw-semibold { font-weight: var(--sm-weight-semibold); }
.fw-bold { font-weight: var(--sm-weight-bold); }

.clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page__main {
  flex: 1;
  padding-top: var(--nav-height);
}

.section {
  padding: var(--space-12) 0;
}

.section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.section__title {
  font-size: var(--sm-text-xl);
  font-weight: var(--sm-weight-black);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.section__link {
  font-size: var(--sm-text-sm);
  font-weight: var(--sm-weight-semibold);
  color: var(--sm-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--duration-fast) var(--ease-out);
}

.section__link:hover {
  gap: 10px;
}

/* --------------------------------------------------------------------------
   Utilidades
   -------------------------------------------------------------------------- */

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.grow { flex: 1; }

@media (max-width: 767px) {
  :root {
    --sm-text-4xl: 2.1rem;
  }
  .container {
    padding: 0 var(--space-4);
  }
  .section {
    padding: var(--space-10) 0;
  }
}
