/* ===============================================
   ESTILOS PARA ARTÍCULOS INDIVIDUALES DEL BLOG
   =============================================== */

.article-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
    padding-top: 40px;
    padding-bottom: 80px;
}

/* Artículo Principal */
.blog-article {
    background: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Cabecera del Artículo */
.article-header {
    padding: 50px 60px 30px;
    background: linear-gradient(to bottom, #f8f9fa 0%, white 100%);
}

.article-category {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.article-header h1 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 25px;
    color: var(--dark);
}

.article-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    color: var(--gray);
    font-size: 0.95rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item i {
    color: var(--primary);
}

/* Imagen Destacada */
.article-featured-image {
    width: 100%;
    height: 450px;
    margin: 0;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contenido del Artículo */
.article-content {
    padding: 50px 60px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-content .lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: #555;
    line-height: 1.7;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--gray-light);
}

.article-content h2 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-top: 50px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary);
}

.article-content h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-top: 35px;
    margin-bottom: 15px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 25px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 12px;
}

.article-content strong {
    color: var(--dark);
    font-weight: 600;
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.3s;
}

.article-content a:hover {
    color: var(--primary-dark);
}

/* Cajas Especiales */
.article-callout,
.article-warning,
.article-tip {
    padding: 25px;
    margin: 35px 0;
    border-radius: var(--border-radius-sm);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.article-callout {
    background: #fff8e1;
    border-left: 5px solid #ffc107;
}

.article-warning {
    background: #ffebee;
    border-left: 5px solid #f44336;
}

.article-tip {
    background: #e3f2fd;
    border-left: 5px solid #2196f3;
}

.article-callout i,
.article-warning i,
.article-tip i {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.article-callout i { color: #ffc107; }
.article-warning i { color: #f44336; }
.article-tip i { color: #2196f3; }

/* Destacado Final */
.article-highlight {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    padding: 40px;
    margin: 50px 0;
    border-radius: var(--border-radius-md);
    border-left: 5px solid var(--primary);
}

.article-highlight h3 {
    margin-top: 0;
    color: var(--primary-dark);
}

/* CTA del Artículo */
.article-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 50px;
    text-align: center;
    margin: 50px 0;
    border-radius: var(--border-radius-md);
}

.article-cta h3 {
    margin: 0 0 15px 0;
    font-size: 2rem;
    color: white;
}

.article-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.article-cta .cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.article-cta .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Compartir en Redes */
.article-share {
    padding-top: 40px;
    border-top: 2px solid var(--gray-light);
    margin-top: 50px;
}

.article-share h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.share-buttons {
    display: flex;
    gap: 15px;
}

.share-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.whatsapp { background: #25d366; }

/* Artículos Relacionados */
.related-articles {
    padding: 50px 60px;
    background: #f8f9fa;
    border-top: 3px solid var(--gray-light);
}

.related-articles h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--dark);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.related-card {
    background: white;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-card h4 {
    padding: 20px 20px 10px;
    margin: 0;
    font-size: 1.1rem;
}

.related-card h4 a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s;
}

.related-card h4 a:hover {
    color: var(--primary);
}

.related-card p {
    padding: 0 20px 20px;
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* Sidebar del Artículo */
.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Responsive */
@media (max-width: 1024px) {
    .article-main {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .article-header {
        padding: 40px 30px 20px;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-featured-image {
        height: 300px;
    }
    
    .article-content {
        padding: 40px 30px;
        font-size: 1rem;
    }
    
    .article-content .lead {
        font-size: 1.15rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-cta {
        padding: 35px 25px;
    }
    
    .article-cta h3 {
        font-size: 1.6rem;
    }
    
    .related-articles {
        padding: 40px 30px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .article-header h1 {
        font-size: 1.6rem;
    }
    
    .article-meta {
        gap: 15px;
        font-size: 0.85rem;
    }
    
    .article-content {
        padding: 30px 20px;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
    
    .article-sidebar {
        grid-template-columns: 1fr;
    }
}
