/* ==========================
   NOVEDADES
========================== */

.novedades-section {
    padding: 70px 0;
    background: #fff;
}

.novedades-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 35px;
}

.novedades-carousel {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    flex: 1;
    padding: 10px 3px 20px;
}

.novedades-carousel::-webkit-scrollbar {
    display: none;
}

/* TARJETAS */

.novedad-card {
    flex: 0 0 calc((100% - 44px) / 3);
    min-width: 0;
    scroll-snap-align: start;
    cursor: pointer;
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(0,0,0,0.09);
    transition: transform .3s, box-shadow .3s;
}

.novedad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 7px 20px rgba(0,0,0,0.14);
}

.novedad-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.novedad-card-content {
    padding: 20px;
}

.novedad-card-fecha {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.novedad-card-texto {
    font-size: 14px;
    line-height: 1.6;
    color: #444;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.novedad-card-leer {
    display: inline-block;
    margin-top: 15px;
    font-size: 13px;
    color: #78927c;
    font-weight: 600;
}

/* FLECHAS */

.novedades-arrow {
    border: none;
    background: #f4f4f4;
    color: #555;
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s;
}

.novedades-arrow:hover {
    background: #e5e5e5;
}

.novedades-arrow i {
    font-size: 28px;
}

/* MODAL */

.novedades-modal {
    max-height: 85%;
    max-width: 750px;
    width: 90%;
    border-radius: 5px;
}

.novedad-modal-fecha {
    color: #999;
    font-size: 13px;
    margin-bottom: 10px;
}

.novedades-modal h4 {
    font-size: 25px;
    margin-bottom: 20px;
}

.novedad-modal-imagen {
    display: block;
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    margin-bottom: 25px;
}

.novedad-modal-texto {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    white-space: pre-line;
}

.novedad-modal-link {
    margin-top: 30px;
}

.novedad-modal-link .btn {
    background: #78927c;
}

/* RESPONSIVE */

@media (max-width: 992px) {
    .novedad-card {
        flex: 0 0 calc((100% - 22px) / 2);
    }
}

@media (max-width: 600px) {

    .novedades-section {
        padding: 45px 0;
    }

    .novedades-wrapper {
        gap: 8px;
    }

    .novedad-card {
        flex: 0 0 100%;
    }

    .novedad-card img {
        height: 220px;
    }

    .novedades-arrow {
        width: 32px;
        min-width: 32px;
        height: 32px;
    }

    .novedades-arrow i {
        font-size: 24px;
    }

    .novedades-modal {
        width: 95%;
    }

}