.portada-novedad {
    background-color: rgba(255, 255, 255, 1);
    width: 100%;
    display: flex;
    justify-content: center;
}

.portada-section {
    background: url("../images/fondo-novedad.svg") no-repeat center center;
    background-size: cover;
    width: 100%;
    height: 534px;
    padding: 70px 0px 0px 0px;
    color: rgba(255, 255, 255, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.portada-content {
    width: 80%;
    display: flex;
    flex-direction: column;
}

.titulo-novedad {
    color: rgba(255, 255, 255, 1);
    font-size: 48px;
    display: flex;
    margin-bottom: 25px;
}

.texto-portada {
    color: rgba(255, 255, 255, 1);
    font-size: 20px;
    display: flex;
}

@media (max-width: 1439px) and (min-width: 1240px) {
    .portada-content {
        width: 61%;
    }
}

@media (max-width: 1239px) and (min-width: 905px) {
    .portada-content {
        width: 67%;
    }
}

@media (max-width: 904px) and (min-width: 600px) {
    .titulo-novedad {
        font-size: 24px;
    }

    .texto-portada {
        font-size: 16px;
    }

    .portada-content {
        width: 87%;
        margin-bottom: 90px;
    }
}

@media (max-width: 599px) and (min-width: 0px) {
    .titulo-novedad {
        font-size: 24px;
    }

    .texto-portada {
        font-size: 16px;
    }

    .portada-content {
        width: 88%;
        margin-bottom: 90px;
    }
}




.lista-novedad {
    display: flex;
    justify-content: center;
}

.novedad-card {
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 1);
    transition: 0.3s;
    height: 234px;
    width: 1128px;
    margin-top: 15px;
}

.novedad-card:hover {
    transform: scale(1.01);
}

.novedad-card .text-muted {
    font-size: 14px;
    line-height: 24px;
    margin-top: 8px;
}

.novedad-card h5 {
    font-size: 16px;
    line-height: 28px;
}

.novedad-card p.mb-0 {
    font-size: 16px;
}

.novedad-img {
    width: 300px;
    height: 186px;
    object-fit: cover;
}

.etiqueta {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
}

.novedad-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.sin-novedades {
    text-align: center;
    margin: 60px;
    color: rgba(24, 70, 85, 1);
    font-size: 16px;
}

@media (max-width: 2800px) and (min-width: 1441px) {
    .sin-novedades {
        margin-top: 42px;
    }
}

@media (max-width: 1440px) and (min-width: 905px) {
    .sin-novedades {
        margin-top: 42px;
    }
}

@media (max-width: 1439px) and (min-width: 1240px) {
    .novedad-card {
        height: 234px;
        width: 840px;
    }
}

@media (max-width: 1239px) and (min-width: 600px) {
    .novedad-card {
        height: 492px;
        width: 360px;
        flex-direction: column !important;
    }

    .novedad-img {
        width: auto;
        height: 170px;
    }
}

@media (max-width: 599px) and (min-width: 0px) {
    .novedad-card {
        height: 492px;
        width: 328px;
    }

    .novedad-img {
        width: auto;
        height: 170px;
    }
}

.truncate-title,
.truncate-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1439px) and (min-width: 1240px) {
    .truncate-title {
        -webkit-line-clamp: 2;
    }

    .truncate-description {
        -webkit-line-clamp: 2;
    }
}





.pag-novedad-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 45px;
}

.pag-novedad {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding-left: 0;
    list-style: none;
    position: relative;
}

.pag-novedad .numeros-novedad {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding-left: 0 ! important;
}

.pag-item-novedad {
    display: inline;
}

.pag-link-novedad {
    color: rgba(34, 74, 162, 1);
    padding: 12px 12px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pag-link-novedad:hover {
    color: rgba(34, 74, 162, 0.5);
}

.pag-link-novedad i {
    font-size: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pag-item-novedad.active .pag-link-novedad {
    background-color: rgba(238, 238, 238, 1);
    color: rgba(34, 74, 162, 1);
    border-color: rgba(238, 238, 238, 1);
    display: flex;
    justify-content: center;
}

.pag-item-novedad.disabled .pag-link-novedad {
    color: rgba(204, 204, 204, 1);
    pointer-events: none;
    background-color: none;
    display: flex;
    justify-content: center;
    background-color: transparent;
    border-bottom: 2px solid rgba(204, 204, 204, 1);
}

.pag-item-novedad.puntos .pag-link-novedad {
    border-bottom: none !important;
}

.nav-btn-novedad .pag-link-novedad {
    border-bottom: 2px solid rgba(34, 74, 162, 1);
    justify-content: center;
    transition: border-color 0.3s ease;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.nav-btn-novedad .pag-link-novedad:hover {
    border-bottom: 2px solid rgba(34, 74, 162, 0.5);
}

@media (max-width: 1239px) {
    .pag-link-novedad .text-nav-novedad {
        display: none;
    }
}





.btn-filtro {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    margin-right: 8px;
    background-color: rgba(255, 255, 255, 1);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid transparent;
}

.btn-filtro:hover {
    opacity: 0.85;
}

.btn-filtro:focus,
.btn-filtro:focus-visible,
.btn-filtro:active {
    outline: none;
    box-shadow: none;
    border: none !important;
    color: rgba(255, 255, 255, 1) !important;
}

.btn-filtro-todos {
    background-color: rgba(64, 64, 64, 1);
    color: rgba(255, 255, 255, 1);
    border-color: rgba(64, 64, 64, 1);
}

#filtros-etiquetas {
    margin: 32px auto 20px auto;
    max-width: 1128px;
}

#filtros-etiquetas button {
    padding: 8px 20px;
    border: 1px solid transparent;
}

.filtro-label {
    font-size: 16px;
    margin-right: 8px;
    align-self: center;
    color: rgba(64, 64, 64, 1);
}

@media (max-width: 1439px) and (min-width: 1240px) {
    #filtros-etiquetas {
        max-width: 830px;
    }
}

@media (max-width: 1239px) and (min-width: 750px) {
    #filtros-etiquetas {
        max-width: 700px;
    }
}

@media (max-width: 749px) and (min-width: 600px) {
    #filtros-etiquetas {
        max-width: 700px;
        margin-left: 20px;
    }
}

@media (max-width: 599px) and (min-width: 0px) {
    #filtros-etiquetas {
        margin-left: 20px;
    }
}




.buscador-novedad-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1169px;
    margin: 0px auto 20px auto;
    padding: 0 20px;
    margin-top: 45px;
}

.buscador-novedad {
    flex: 1 1 0px;
    position: relative;
}

.buscador-novedad input {
    width: 100%;
    padding: 10px 40px 10px 10px;
    border-radius: 12px;
    border: 1px solid rgba(204, 204, 204, 1);
    cursor: pointer;
}

.icono-borrar,
.icono-buscar {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
}

.icono-borrar {
    right: 50px;
    font-size: 24px;
}

.icono-buscar {
    right: 10px;
    background: linear-gradient(to right, rgba(8, 159, 228, 1), rgba(34, 74, 162, 1));
    color: rgba(255, 255, 255, 1);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 16px;
}

.dropdown-resultados {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 1);
    border: 1px solid rgba(204, 204, 204, 1);
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
}

.dropdown-resultados li {
    padding: 10px;
}

.dropdown-resultados li:hover {
    background-color: rgba(240, 240, 240, 1);
}

#ordenar-novedades {
    height: 46px;
    font-size: 16px;
}

.ordenar-novedades {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ordenar-label {
    font-size: 16px;
    color: rgba(64, 64, 64, 1);
}

.ordenar-novedades select.form-select {
    height: 40px;
    font-size: 16px;
    border-radius: 12px;
    border: 1px solid rgba(204, 204, 204, 1);
    cursor: pointer;
}

input:disabled,
select:disabled {
    background-color: rgba(245, 245, 245, 1);
    cursor: default !important;
    opacity: 0.6;
}

button:disabled {
    cursor: default !important;
    opacity: 0.6;
}

@media (max-width: 1439px) and (min-width: 1240px) {
    .buscador-novedad-wrapper {
        max-width: 873px;
    }
}

@media (max-width: 1239px) and (min-width: 905px) {
    .buscador-novedad-wrapper {
        max-width: 746px;
    }

    .buscador-novedad {
        flex: 1 1 0px;
    }
}

@media (max-width: 904px) and (min-width: 600px) {
    .buscador-novedad-wrapper {
        flex-direction: column;
        align-items: stretch;
        max-width: 746px;
    }

    .buscador-novedad {
        flex: 1 1 45px;
    }
}

@media (max-width: 749px) and (min-width: 600px) {
    .buscador-novedad-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .buscador-novedad {
        flex: 1 1 45px;
    }
}

@media (max-width: 599px) and (min-width: 0px) {
    .buscador-novedad-wrapper {
        flex-direction: column;
        align-items: stretch;
        max-width: 746px;
    }

    .buscador-novedad {
        flex: 0 0 0;
    }
}