/* ==========================================================================
   ESTILOS BASE
   Tipografía, body y elementos globales
   ========================================================================== */

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-primary);
  background-color: var(--color-bg);
}

/* ----- Headings ----- */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
}

h1 {
  font-size: clamp(var(--font-size-4xl), 5vw, var(--font-size-6xl));
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-4xl));
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
}

h4 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
}

p {
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
}

/* ----- Container ----- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-8);
  }
}

/* ----- Section ----- */
.section {
  padding: var(--space-16) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-24) 0;
  }
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-12);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
}

/* ----- Utilidades ----- */
.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;
}

.bg-light {
  background-color: var(--color-blue-50);
}

.bg-dark {
  background-color: var(--color-brand-dark);
  color: var(--color-text-on-dark);
}

.bg-dark p {
  color: var(--color-text-on-dark-muted);
}

.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4 {
  color: var(--color-text-on-dark);
}
