/* Estilos base del documento */
body {
  font-family: var(--font-base);
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
}

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

h1 {
  font-size: var(--font-size-xxxl);
  margin-bottom: var(--spacing-lg);
}

h2 {
  font-size: var(--font-size-xxl);
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-sm);
}

h4 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-sm);
}

h5 {
  font-size: var(--font-size-md);
  margin-bottom: var(--spacing-xs);
}

h6 {
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-xs);
}

/* Media queries para responsividad */
@media (max-width: 768px) {
  h1 {
    font-size: var(--font-size-xxl);
  }
  
  h2 {
    font-size: var(--font-size-xl);
  }
}

/* Estilos de párrafo */
p {
  margin-top: 0;
  margin-bottom: var(--spacing-md);
}

p.lead {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
}

p.small {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

/* Links */
a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-link-hover);
  text-decoration: none;
}

a.no-underline:hover {
  text-decoration: none;
}

/* Estilos destacados */
.subtitle, .frase, blockquote {
  font-family: var(--font-destacados);
  font-style: italic;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
}

.category-label, .caption, .credito {
  font-family: var(--font-categorias);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-secondary);
}

/* Clases utilitarias para texto */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-uppercase {
  text-transform: uppercase;
}

.text-italic {
  font-style: italic;
}

.text-bold {
  font-weight: var(--font-weight-bold);
}

.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Colores de texto */
.text-primary {
  color: var(--color-gen);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-success {
  color: var(--color-success);
}

.text-error {
  color: var(--color-error);
}

.text-warning {
  color: var(--color-warning);
}

/* Listas */
ul, ol {
  margin-top: 0;
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-xl);
}

ul li, ol li {
  margin-bottom: var(--spacing-xs);
}