.carousel {
    scroll-snap-type: x mandatory;
    overflow: hidden;
}

.carousel-item {
    position: relative;
    overflow: hidden;
    scroll-snap-align: center;
    transition: transform 3s ease-in-out, opacity 1.5s ease-in-out;
}

/* Ajuste de imágenes para que todas tengan el mismo tamaño */
.carousel-item img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    filter: grayscale(100%);
    transform: scale(1);
    transition: filter 1.5s ease-in-out, transform 1.5s ease-in-out;
}

/* Imagen en color con efecto de expansión */
.highlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    filter: grayscale(0%);
    clip-path: circle(0px at 50% 50%);
    transition: clip-path 3s ease-in-out;
}

/* Activación del efecto al cambiar de imagen */
.carousel-item.active img {
    filter: grayscale(0%);
    transform: scale(0.95);
}

.carousel-item.active .highlight {
    clip-path: circle(150% at 50% 50%);
}

/* Responsivo */
@media (max-width: 768px) {
    .carousel-item img {
        height: 60vh;
        transform: scale(1.05);
    }
    .carousel-item.active img {
        transform: scale(1);
    }
}