/**
 * Tierra de Gracia | Jerarquía Tipográfica Editorial
 */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  color: var(--color-text);
  letter-spacing: -0.015em;
  margin-top: 0;
  text-wrap: balance;
}

h1, .h1 {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

h2, .h2 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h3, .h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h4, .h4 {
  font-size: var(--font-size-lg);
  font-weight: 600;
}

p {
  margin-top: 0;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

p:last-child {
  margin-bottom: 0;
}

/* Títulos de Sección */
.section-header {
  margin-bottom: var(--spacing-xl);
  max-width: 780px;
}

.section-header.text-center {
  margin-left: auto;
  margin-right: auto;
}

.section-header-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.section-tag, .section-tag--terracota {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: 0.65rem;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background-color: var(--color-gold);
}

.section-title {
  font-size: var(--font-size-3xl);
  margin-bottom: 0.85rem;
  color: var(--color-text);
}

.section-desc {
  font-size: var(--font-size-md);
  color: var(--color-text-muted);
  max-width: 660px;
  margin: 0 auto;
  line-height: 1.65;
}

.section-header:not(.text-center) .section-desc {
  margin-left: 0;
}

/* Énfasis con Gradiente Cálido Metálico */
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

/* Citas y Prosa Editorial */
blockquote, .story-quote {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  font-style: italic;
  line-height: 1.55;
  color: var(--color-text);
  border-left: 3px solid var(--color-primary);
  padding: 0.75rem 0 0.75rem 1.75rem;
  margin: var(--spacing-lg) 0;
  background: var(--color-primary-subtle);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.typography-prose {
  font-size: var(--font-size-base);
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.typography-prose p {
  margin-bottom: 1.4rem;
}

.typography-prose h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
  font-size: var(--font-size-xl);
}

.typography-prose ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.typography-prose li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* Modificadores de Texto */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-sm { font-size: var(--font-size-sm); }
.text-xs { font-size: var(--font-size-xs); }
.text-muted { color: var(--color-text-muted); }
.text-primary { color: var(--color-primary); }
.text-gold { color: var(--color-gold); }
.font-bold { font-weight: 700; }
.font-serif { font-family: var(--font-display); }
