/* === NUEVO DISEÑO CARRUSEL SOLUCIONES (REPLICA) === */

#paneles-carousel-section {
    padding: 40px 0 40px 0;
    background-color: #f9f9f9;
    /* Tema claro */
    height: 850px;
}

#paneles-carousel-section .section-title {
    color: var(--color-texto-oscuro);
    /* Título oscuro para tema claro */
}

#paneles-carousel-section .section-subtitle {
    color: #666666;
    /* Subtítulo gris para tema claro */
}

/* Wrapper for gradients and swiper */
.carousel-wrapper {
    position: relative;
    width: 100%;
    margin-top: 10px;
    /* Drastically reduced top margin */
    height: auto;
    overflow: hidden;
    /* Clip everything outside this wrapper as requested */
    padding: 10px 0;
    /* Minimal padding */
    height: 430px;
}

/* Side Gradients */
.carousel-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 20;
    pointer-events: none;
}

#paneles-carousel-section .fade-left {
    left: 0;
    background: linear-gradient(to right, #f9f9f9 0%, rgba(249, 249, 249, 0) 100%);
    z-index: 40;
    height: 420px;
}

#paneles-carousel-section .fade-right {
    right: 0;
    background: linear-gradient(to left, #f9f9f9 0%, rgba(249, 249, 249, 0) 100%);
    z-index: 40;
    height: 420px;
}

/* Swiper Container */
.paneles-carousel {
    width: 100%;
    overflow: visible;
    /* Allowed inside wrapper */
    padding-bottom: 20px;
    /* Reduced padding */
    position: relative;
    z-index: 25;
    /* Establish stacking context above gradients for container content if needed */
}

/* Slide Styling - 3:4 Ratio */
.paneles-carousel .swiper-slide {
    width: 300px;
    height: 400px;
    /* 3:4 Aspect Ratio */
    position: relative;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 0.5;
    transform: scale(0.85);
    z-index: 1;
}

/* Active Slide State */
.paneles-carousel .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
}

/* --- CARD STRUCTURE --- */
.finish-card {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: #4a4a4a;
    /* Grey background requested */
    border-radius: 15px;
    overflow: hidden;
}

/* Layer 1: Title (Behind) */
.finish-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    /* Space for revealed title */
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    z-index: 1;
    /* Opacity managed by lift */
}

.finish-title h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    /* White text requested */
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Layer 2: Image Container */
.finish-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    /* Matching radius */
    background-color: #4a4a4a;
    /* No white border */
    padding: 0;
    /* Remove padding */
    z-index: 5;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.finish-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Lift Effect */
.paneles-carousel .swiper-slide-active .finish-image-container {
    transform: translateY(-70px);
    /* Slide up to show title */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* --- NAVIGATION BUTTONS --- */
.paneles-carousel .swiper-button-next,
.paneles-carousel .swiper-button-prev {
    font-weight: bold;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1000;
    /* Significantly increased z-index to be above gradients */
}

/* Adjust button position */
.carousel-wrapper .swiper-button-next {
    right: 40px;
}

.carousel-wrapper .swiper-button-prev {
    left: 40px;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.5rem;
}



@media (min-width: 992px) {
    .carousel-wrapper {
        width: 100%;
        max-width: 1200px;
        margin: 40px auto;
    }

}

@media (max-width: 768px) {

    .carousel-fade {
        width: 20px;

    }

    .paneles-carousel .swiper-button-next,
    .paneles-carousel .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .carousel-wrapper .swiper-button-next {
        right: 10px;
    }

    .carousel-wrapper .swiper-button-prev {
        left: 10px;
    }
}