/*============================== carousel ============================*/
.container-carousel {
    border-bottom: 5px solid var(--color-brand-tan);
    width: 100%;
    max-width: 1400px;
    overflow: hidden;
    margin: auto;
    transition: transform 0.3s ease;
}

/* ITEM DEL CARRUSEL */
.carousel-item {
    height: clamp(220px, 42vw, 600px);
    overflow: hidden;
}

/* IMAGEN */
.carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;

    /* suavidad */
    transition: transform 0.5s ease;
}

/* CAPTION */
.carousel-caption {
    background: rgba(49, 27, 20, 0.7);
    border-radius: 15px;
    padding: 20px;
    border-left: 5px solid var(--color-brand-accent);

    /* mejora leve sin cambiar diseño */
    backdrop-filter: blur(2px);
}

.carousel-caption h5 {
    color: var(--color-brand-tan);
    font-weight: bold;
}

@media (max-width: 767px) {
    #carouselExampleCaptions .carousel-item {
        height: clamp(190px, 58vw, 320px);
    }

    .container-carousel:hover,
    #carouselExampleCaptions .carousel-item:hover img {
        transform: none;
    }
}

@media (hover: hover) and (pointer: fine) {
    .container-carousel:hover {
        transform: scale(1.01);
    }

    .carousel-item:hover img {
        transform: scale(1.03);
    }
}

@media (prefers-reduced-motion: reduce) {
    .container-carousel,
    .carousel-item img {
        transition: none;
    }
}
