/* ========================================
   POSTS RELACIONADOS - Single Post
======================================== */

.related-posts-section {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 1px solid var(--color-border);
}

.related-posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.related-posts-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0;
    font-family: var(--font-secondary);
}

.related-see-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.related-see-all:hover {
    gap: 10px;
}

.related-see-all svg {
    width: 16px;
    height: 16px;
}

/* Grid de posts relacionados */
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.related-post-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 51, 102, 0.12);
}

.related-card-link {
    display: block;
    text-decoration: none;
}

.related-card-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
    background-color: #f5f5f5;
}

.related-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-post-card:hover .related-card-image img {
    transform: scale(1.05);
}

.related-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-card-placeholder svg {
    color: #cccccc;
}

.related-card-content {
    padding: 20px 20px 30px;
}

.related-card-category {
    display: inline-block;
    color: var(--color-primary);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.related-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin: 0 0 8px 0;
    line-height: 1.3;
    font-family: var(--font-secondary);
}

.related-card-excerpt {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.5;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-post-card:last-child {
        display: none;
    }
}

@media (max-width: 768px) {
    .related-posts-section {
        margin-top: 40px;
        padding-top: 40px;
    }

    .related-posts-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .related-posts-title {
        font-size: 1.25rem;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .related-post-card:last-child {
        display: block;
    }
}