/* Estilos específicos para artículos */

.article-main {
    padding: 2rem 0 4rem;
    min-height: 80vh;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.article-category {
    background: var(--accent-glow);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

.article-date, .article-reading-time {
    color: var(--text-muted);
}

.article-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text);
    line-height: 1.2;
}

.article-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.article-body {
    line-height: 1.8;
    color: var(--text);
}

.article-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--text);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
}

.article-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text);
}

.article-body p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.article-body ul, .article-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.article-body strong {
    color: var(--text);
    font-weight: 600;
}

/* Tabla de comparación */
.comparison-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: var(--bg);
    color: var(--text);
    font-weight: 600;
}

.comparison-table td {
    color: var(--text-muted);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* Footer del artículo */
.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.article-tags {
    margin-bottom: 2rem;
}

.tag {
    display: inline-block;
    background: var(--surface);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin: 0.25rem 0.5rem 0.25rem 0;
    border: 1px solid var(--border);
}

.article-navigation {
    text-align: center;
}

.back-to-articles {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--accent);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.back-to-articles:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

/* Responsive para artículos */
@media (max-width: 768px) {
    .article-main {
        padding: 1rem 0 2rem;
    }
    
    .article-header {
        margin-bottom: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .article-body h2 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem;
    }
    
    .comparison-table {
        font-size: 0.875rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
    }
}
