/* Estilos para posts del blog */
:root {
    --blog-primary: #6f42c1;
    --blog-secondary: #5327a3;
    --blog-light: #f8f9fa;
    --blog-dark: #343a40;
    --blog-gray: #6c757d;
    --blog-border: #e9ecef;
}

/* Estilos del encabezado del post */
.blog-header {
    background: linear-gradient(135deg, rgba(43, 89, 195, 0.9), rgba(19, 60, 85, 0.9)), 
                var(--header-bg, url('https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?auto=format&fit=crop&w=1920&q=80'));
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0 60px;
    margin-bottom: 2rem;
    text-align: center;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-meta {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.blog-meta i {
    margin-right: 0.25rem;
}

.blog-meta span {
    margin-right: 1.5rem;
}

/* Estilos del contenido */
.blog-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    color: var(--blog-dark);
}

.blog-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--blog-dark);
}

.blog-content ul, 
.blog-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.25rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-content blockquote {
    border-left: 4px solid var(--blog-primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--blog-gray);
}

.blog-content a {
    color: var(--blog-primary);
    text-decoration: none;
    border-bottom: 1px dotted var(--blog-primary);
    transition: all 0.2s ease;
}

.blog-content a:hover {
    color: var(--blog-secondary);
    border-bottom: 1px solid var(--blog-secondary);
}

/* Tarjeta de autor */
.author-card {
    background-color: var(--blog-light);
    border-radius: 8px;
    padding: 2rem;
    margin: 3rem 0;
    border: 1px solid var(--blog-border);
}

.author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1.5rem;
}

.author-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--blog-dark);
}

.author-bio {
    color: var(--blog-gray);
    margin-bottom: 0.75rem;
}

.social-icons a {
    color: var(--blog-dark);
    font-size: 1.2rem;
    margin-right: 1rem;
    transition: color 0.2s ease;
}

.social-icons a:hover {
    color: var(--blog-primary);
}

/* Posts relacionados */
.related-posts {
    margin: 3rem 0;
}

.related-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--blog-dark);
}

.related-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.related-img {
    height: 180px;
    object-fit: cover;
}

/* Comentarios */
.comments-section {
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--blog-border);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Botón de compartir */
.share-buttons {
    margin: 2rem 0;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    margin-right: 0.75rem;
    font-size: 0.9rem;
    transition: opacity 0.2s ease;
}

.share-btn:hover {
    opacity: 0.9;
    color: white;
}

.share-btn i {
    margin-right: 0.5rem;
}

.share-facebook {
    background-color: #3b5998;
}

.share-twitter {
    background-color: #1da1f2;
}

.share-linkedin {
    background-color: #0077b5;
}

.share-pinterest {
    background-color: #bd081c;
}

/* TOC */
.toc {
    background-color: var(--blog-light);
    border: 1px solid var(--blog-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: sticky;
    top: 100px;
}

.toc-title {
    font-size: 1.2rem;
    color: var(--blog-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.toc-list {
    list-style-type: none;
    padding-left: 0;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    color: var(--blog-gray);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
    display: block;
    padding: 0.25rem 0;
}

.toc-list a:hover {
    color: var(--blog-primary);
}

.toc-list .toc-sub {
    padding-left: 1rem;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Responsive */
@media (max-width: 767.98px) {
    .blog-header {
        padding: 100px 0 40px;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .toc {
        position: static;
        margin-top: 2rem;
    }
    
    .author-card {
        text-align: center;
    }
    
    .author-image {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}
