.carousel {
    overflow: hidden;
}

.carousel-item {
    position: relative;
    transition: transform 3s ease-in-out, opacity 1.5s ease-in-out;
}

.carousel-item img {
    width: 100%;
    height: auto;
    max-height: 100vh;
    object-fit: cover;
    filter: grayscale(100%);
    transform: scale(1);
    transition: filter 1.5s ease-in-out, transform 1.5s ease-in-out;
    display: block;
    position: relative;
    z-index: 1;
}

.highlight {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(0%);
    clip-path: circle(0px at 50% 50%);
    transition: clip-path 3s ease-in-out;
    z-index: 2;
    pointer-events: none;
}

/* Efecto activado */
.carousel-item.active img {
    filter: grayscale(0%);
    transform: scale(0.95);
}

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

/* RESPONSIVE - Tablets y móviles */
@media (max-width: 768px) {
    .carousel-item img {
        height: auto;
        max-height: 75vh;
        object-fit: cover;
        filter: grayscale(100%);
    }

    .carousel-item.active img {
        filter: grayscale(0%);
    }

    .highlight {
        clip-path: circle(0px at 50% 50%);
    }

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

@media (max-width: 480px) {
    .carousel-item img {
        max-height: 60vh;
        filter: grayscale(100%);
    }

    .carousel-item.active img {
        filter: grayscale(0%);
    }

    .highlight {
        clip-path: circle(0px at 50% 50%);
    }

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