/* Estilos para la vista de post individual */
.single-post-section {
    padding: 4rem 0;
    background-color: var(--white);
}

.post-header {
    margin-bottom: 3rem;
    text-align: center;
}

.post-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gray-500);
    font-size: 0.95rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-meta span::before {
    content: "•";
    color: var(--secondary);
    font-weight: bold;
    margin-right: 0.5rem;
}

.post-meta span:first-child::before {
    content: none;
}

.post-category {
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.post-title {
    font-size: 2.5rem;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 0;
}

.post-image {
    margin-bottom: 3rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.post-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    max-width: 800px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 8px;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: var(--primary);
    margin: 2.5rem 0 1.5rem;
}

.post-content h2 {
    font-size: 1.8rem;
}

.post-content h3 {
    font-size: 1.5rem;
}

.post-content h4 {
    font-size: 1.3rem;
}

.post-content blockquote {
    border-left: 4px solid var(--secondary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--gray-500);
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

/* Posts relacionados */
.related-posts {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--gray-200);
}

.related-title {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.related-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--secondary), transparent);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.related-image {
    height: 200px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-post-title {
    font-size: 1.1rem;
    color: var(--primary);
    padding: 1rem 1rem 0.5rem;
    margin: 0;
    line-height: 1.4;
}

.related-post-date {
    display: block;
    padding: 0 1rem 1rem;
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* Media Queries */
@media (max-width: 991px) {
    .post-title {
        font-size: 2rem;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .single-post-section {
        padding: 3rem 0;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .post-content h2 {
        font-size: 1.5rem;
    }
    
    .post-content h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .post-title {
        font-size: 1.7rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .related-image {
        height: 180px;
    }
}