.carousel {
    position: relative;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.carousel .list .item {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel .list .item.active {
    opacity: 1;
    z-index: 2;
}

.carousel .list .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*filter: brightness(0.7) contrast(1.1);*/
    transition: all 0.8s ease;
}

.carousel .list .item.active img {
    filter: brightness(1) contrast(1.01);
    transform: scale(1.05);
}

.carousel .list .item .content {
    position: absolute;
    top: 20%;
    left: 8%;
    transform: translateY(-50%);
    max-width: 600px;
    z-index: 3;
}

.carousel .list .item .title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    text-shadow: rgba(0, 0, 0, 0.62) 4px 4px 5px;
}

.carousel .list .item .title::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel .list .item.active .title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.carousel .list .item.active .title::before {
    width: 100%;
    transition-delay: 0.8s;
}

/* Thumbnails mejoradas */
.thumbnail {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 100;
    padding: 20px;
}

.thumbnail .item {
    width: 120px;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.thumbnail .item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.thumbnail .item:hover::before {
    opacity: 1;
}

.thumbnail .item.active {
    transform: scale(1.1) translateY(-10px);
    border-color: #3268aa;
    box-shadow: 0 20px 40px rgba(78, 205, 196, 0.4);
}

.thumbnail .item:hover {
    transform: scale(1.05) translateY(-5px);
    border-color: rgba(255, 255, 255, 0.6);
}

.thumbnail .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.thumbnail .item:hover img {
    transform: scale(1.1);
}

.thumbnail .item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 15px 10px 10px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 3;
}

.thumbnail .item:hover .overlay {
    transform: translateY(0);
}

/* Botones de navegación mejorados */
.arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 10;
    pointer-events: none;
}

.arrows button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    color: white;
    font-size: 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    pointer-events: all;
    position: relative;
    overflow: hidden;
}

.arrows button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.arrows button:hover::before {
    width: 100px;
    height: 100px;
}

.arrows button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.15);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.arrows button:active {
    transform: scale(0.95);
}

/* Indicadores de progreso */
.progress-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 100;
    justify-content: center;
    align-items: center;
    padding: 8px 25px;
}

.progress-indicators .indicator {
    width: 60px;
    height: 5px;
    background: rgba(255, 255, 255, 0.455);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-indicators .indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, #3182ce, #00b4d8);
    transition: height 0.3s ease;
}

.progress-indicators .indicator.active::before {
    height: 100%;
}

/* Animaciones de entrada y salida */
.carousel.transitioning .list .item {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel.transitioning .list .item.exiting {
    opacity: 0;
    transform: scale(0.95);
}

.carousel.transitioning .list .item.entering {
    opacity: 1;
    transform: scale(1);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .carousel .list .item .title {
        font-size: 1.5rem;
    }

    .carousel .list .item .content {
        left: 5%;
        max-width: 90%;
    }

    .thumbnail {
        gap: 15px;
        padding: 15px;
    }

    .thumbnail .item {
        width: 80px;
        height: 120px;
    }

    .arrows {
        padding: 0 20px;
    }

    .arrows button {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
}

@media screen and (max-width: 768px) {
    .arrows button{
        width: 40px;
        height: 40px;
        font-size: 12px;
    }

    .carousel .list .item .title {
        font-size: 1.2rem;
    }

    .thumbnail{
        bottom: 16px;
    }

    .thumbnail .item {
        width: 65px;
        height: 95px;
    }

    .progress-indicators{
        bottom: 5px;
        gap: 8px;
    }

    .progress-indicators .indicator{
        width: 45px;
        height: 4px;
    }
}