/* ==========================================
   TIPOGRAFÍA
   ========================================== */

/* Body */
body {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
}

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

h1 {
    font-size: var(--font-size-4xl);
}

h2 {
    font-size: var(--font-size-3xl);
}

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

h4 {
    font-size: var(--font-size-xl);
}

h5 {
    font-size: var(--font-size-lg);
}

h6 {
    font-size: var(--font-size-base);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Párrafos */
p {
    line-height: var(--line-height-relaxed);
}

p + p {
    margin-top: var(--space-md);
}

/* Links */
a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-fast);
}

a:hover {
    color: var(--accent-color-light);
    border-bottom-color: var(--accent-color);
}

/* Strong & Emphasis */
strong, b {
    font-weight: var(--font-weight-bold);
}

em, i {
    font-style: italic;
}

/* Code */
code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background-color: var(--bg-secondary);
    padding: 0.2em 0.4em;
    border-radius: var(--border-radius-sm);
}

pre {
    font-family: var(--font-mono);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
    background-color: var(--bg-secondary);
    padding: var(--space-lg);
    border-radius: var(--border-radius-md);
    overflow-x: auto;
    margin: var(--space-md) 0;
}

pre code {
    background-color: transparent;
    padding: 0;
}

/* Blockquote */
blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: var(--space-lg);
    margin: var(--space-lg) 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* Lists */
ul, ol {
    margin: var(--space-md) 0;
    padding-left: var(--space-xl);
}

li {
    margin-bottom: var(--space-sm);
}

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

/* Horizontal rule */
hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: var(--space-xl) 0;
}

/* Small */
small {
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
}

/* Text utilities */
.text-muted {
    color: var(--text-secondary);
}

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

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

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

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

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

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

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

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

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

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

.font-semibold {
    font-weight: var(--font-weight-semibold);
}

.font-normal {
    font-weight: var(--font-weight-regular);
}

.font-light {
    font-weight: var(--font-weight-light);
}
