.anuncios {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 40px 20px;
}

.anuncios__slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.anuncios__slides {
    position: relative;
    width: 100%;
}

.anuncios__slide {
    display: none;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

.anuncios__slide.is-active {
    display: block;
}

.anuncios__link {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.anuncios__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 500px;
    margin: 0;
    padding: 0;
    border: 0;
    object-fit: cover;
    border-radius: 20px;
}

.anuncios__button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.anuncios__button--prev {
    left: 15px;
}

.anuncios__button--next {
    right: 15px;
}

.anuncios__button:hover {
    background-color: rgba(0, 0, 0, 0.75);
    transform: translateY(-50%) scale(1.05);
}

.anuncios__button:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.anuncios__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
}

.anuncios__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: #b8b8b8;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.anuncios__dot.is-active {
    background-color: #333333;
    transform: scale(1.2);
}

.anuncios__dot:hover {
    transform: scale(1.2);
}

.anuncios__dot:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

@media (max-width: 992px) {
    .anuncios {
        padding: 35px 18px;
    }

    .anuncios__image {
        max-height: 450px;
    }
}

@media (max-width: 768px) {
    .anuncios {
        padding: 30px 15px;
    }

    .anuncios__button {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .anuncios__button--prev {
        left: 10px;
    }

    .anuncios__button--next {
        right: 10px;
    }

    .anuncios__image {
        max-height: 350px;
    }
}

@media (max-width: 480px) {
    .anuncios {
        padding: 25px 10px;
    }

    .anuncios__button {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .anuncios__button--prev {
        left: 8px;
    }

    .anuncios__button--next {
        right: 8px;
    }

    .anuncios__image {
        max-height: 280px;
    }

    .anuncios__dots {
        margin-top: 14px;
        gap: 6px;
    }

    .anuncios__dot {
        width: 8px;
        height: 8px;
    }
}
