/* ===========================
   TIPOGRAFÍA
   =========================== */

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tipografía fluida global */
h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: var(--spacing-lg);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: var(--spacing-sm);
}

h4 {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  line-height: 1.4;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

p {
  font-size: clamp(0.9375rem, 2.5vw, 1.125rem);
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
}

p:last-child {
  margin-bottom: 0;
}

/* Section Titles */
.section-title {
  font-size: clamp(1.75rem, 5vw, 2.7rem);
  font-weight: 700;
  color: #E6F0F7;
  text-align: center;
  letter-spacing: -0.015em;
  margin-bottom: var(--spacing-xl);
}

.section-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  line-height: 1.6;
}

.projects-title {
  color: var(--color-accent);
  margin-bottom: var(--spacing-2xl);
}

/* Media queries para pantallas medianas */
@media (min-width: 1024px) and (max-width: 1366px) {
  h1 {
    font-size: clamp(1.875rem, 4vw, 2.8rem);
  }

  h2 {
    font-size: clamp(1.375rem, 3vw, 2rem);
  }

  h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  }

  .section-title {
    font-size: clamp(1.625rem, 3.5vw, 2rem);
  }

  .section-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
  }
}
