/* ============================
   Novedades Styles
   ============================ */

/* Card de Novedad */
.novedad-card {
    background-color: white;
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    transition: box-shadow 0.3s ease;
}

.novedad-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.novedad-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.novedad-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.novedad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.novedad-card:hover .novedad-image img {
    transform: scale(1.05);
}

.novedad-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.novedad-category {
    font-size: 14px;
    font-weight: 600;
    color: #3F649C;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.novedad-title {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    line-height: 1.3;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.novedad-excerpt {
    font-size: 15px;
    color: #5C5C5C;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.novedad-link {
    font-size: 14px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    transition: color 0.2s ease;
}

.novedad-link:hover {
    color: rgba(0, 0, 0, 0.8);
    text-decoration: underline;
}

/* Página de Novedades */
.novedades-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 991px) {
    .novedades-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .novedades-grid {
        grid-template-columns: 1fr;
    }

    .novedad-title {
        font-size: 16px;
    }
}

/* Legacy styles - mantener compatibilidad */
.CardNovedad__link {
    text-decoration: none;
    color: #515151;
}

.CardNovedad__category {
    color: #0043BA;
    font-size: 14px;
    font-weight: 400;
}

.CardNovedad__title {
    color: #131F2D;
    font-size: 20px;
    font-weight: 600;
}

.CardNovedad__short-description {
    color: #131F2D;
    font-size: 16px;
    font-weight: 400;
}

.CardNovedad__container-links {
    display: flex;
    align-items: center;
    position: absolute;
    width: 90%;
    bottom: 25px;
}

.CardNovedad__read-more {
    font-weight: 400;
    font-size: 16px;
}