.carousel-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.carousel-controls button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.carousel-controls button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

@media (max-width: 600px) {
    /* Ajusta las imágenes dentro del carrusel */
    .carousel-image-item img {
        width: 100%; /* Se asegura que ocupe todo el ancho disponible */
        height: auto; /* Mantiene la relación de aspecto original */
    }

    /* Ajusta las imágenes dentro del contenedor de anuncios también si es necesario */
    .ad-image-item img {
        width: 100%; /* Ocupa todo el ancho disponible */
        height: auto;
    }
    .carousel-slide img {
        width: 100%;
        height: 65%;
        object-fit: fill;
    }
    .carousel-container {
        position: relative;
        width: 100%;
        
      
        overflow: hidden;
        
    }
}
