/* Estilos para la sección de artículos relacionados */

.related-articles {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.related-articles .container {
    width: 100%;
    margin: 0;
    padding: 0 !important;
    display: flex;
    justify-content: center;
    max-width: none !important;
}

.related-articles-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin: 20px auto;
    text-align: center;
    display: block;
    width: 1000px;
    max-width: 1000px;
    flex-shrink: 0;
}

.related-articles-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.related-articles-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: nowrap;
    margin: 30px auto 0 auto;
    width: 100%;
    max-width: 960px;
}

.related-article-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 280px;
    max-width: 320px;
}

.related-article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.related-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.related-article-card:hover::before {
    width: 6px;
}

.related-article-category {
    display: block;
    background: linear-gradient(135deg, #ff8c00 0%, #ffa500 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 auto 15px auto;
    box-shadow: 0 2px 4px rgba(255, 140, 0, 0.3);
    text-align: center;
    width: fit-content;
}

.related-article-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}

.related-article-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.related-article-title a:hover {
    color: #667eea;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
    .related-articles-wrapper {
        margin: 15px auto;
        padding: 30px;
        width: 90%;
        max-width: 900px;
    }
    
    .related-articles-grid {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .related-article-card {
        flex: 1;
        min-width: 250px;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .related-articles-wrapper {
        margin: 10px auto;
        padding: 20px;
        width: 95%;
        max-width: 500px;
    }
    
    .related-articles-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .related-articles-grid {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin: 20px auto 0 auto;
    }
    
    .related-article-card {
        padding: 15px;
        flex: 1;
        min-width: 250px;
        max-width: 400px;
    }
    
    .related-article-title {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .related-articles-wrapper {
        margin: 5px auto;
        padding: 15px;
        width: 98%;
        max-width: 400px;
    }
    
    .related-articles-title {
        font-size: 20px;
    }
    
    .related-article-card {
        padding: 12px;
    }
    
    .related-article-title {
        font-size: 14px;
    }
}
