.carousel-container {
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease, filter 0.6s ease;
    opacity: 0.5;
    filter: brightness(0.9);
    cursor: grab;
    position: absolute;
    width: 65%;
    max-width: 900px;
    left: 0; right: 0; margin: auto;
    top: 0;
    z-index: 1;
}

.carousel-item.active {
    transform: scale(1) translateX(0);
    opacity: 1;
    filter: brightness(1);
    z-index: 10;
    cursor: default;
}

.carousel-item.left { transform: translateX(-55%) scale(0.85); z-index: 5; opacity: 0.6; }
.carousel-item.right { transform: translateX(55%) scale(0.85); z-index: 5; opacity: 0.6; }

/* FUSION ELEMENT */
.fusion-element {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    transition: all 0.5s ease;
}

.image-square {
    overflow: hidden;
    position: relative;
    z-index: 2;
    transition: all 0.5s ease;
    height: 100%;
    flex: 1;
}

.image-square img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }

.space { position: relative; z-index: 1; transition: all 0.5s ease; }

.glass-rectangle {
    padding: 30px;
    position: relative;
    z-index: 2;
    transition: all 0.5s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    flex: 2;
    
    /* FUERZA DEL BLUR */
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
}

.glass-rectangle.has-noise {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
}

.glass-content { height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.glass-content h2 { margin: 0 0 15px 0; line-height: 1.2; }
.glass-content p { line-height: 1.6; margin-bottom: 20px; }

.bottom-elements {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
}

/* Wrapper para multiples iconos */
.icons-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-item {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}
.icon-item:hover { transform: scale(1.1); }

.see-more-btn {
    border: none;
    padding: 10px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.see-more-btn:hover { transform: translateY(-2px); }

/* Efectos Hover Interactivos Desktop */
@media (min-width: 769px) {
    .carousel-item.active .fusion-element:hover .image-square { transform: translateX(8%); }
    .carousel-item.active .fusion-element:hover .glass-rectangle { transform: translateX(-4%); }
    .carousel-item.active .fusion-element:hover .space { flex-basis: 0 !important; }
    .carousel-item.active .fusion-element:hover .image-square img { transform: scale(1.08); }
}

/* NAVEGACIÓN */
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 20px; position: relative; z-index: 20; }
.nav-arrow { border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; padding: 0; border-radius: 50%; }
.nav-arrow:hover { transform: scale(1.1); }

/* Flechas Estilos */
.arrow-line { width: 30px; position: relative; }
.arrow-left .arrow-line::before { left: 0; top: -4px; transform: rotate(-45deg); transform-origin: left center; width: 10px; position: absolute; content: ''; }
.arrow-left .arrow-line::after { left: 0; bottom: -4px; transform: rotate(45deg); transform-origin: left center; width: 10px; position: absolute; content: ''; }
.arrow-right .arrow-line::before { right: 0; top: -4px; transform: rotate(45deg); transform-origin: right center; width: 10px; position: absolute; content: ''; }
.arrow-right .arrow-line::after { right: 0; bottom: -4px; transform: rotate(-45deg); transform-origin: right center; width: 10px; position: absolute; content: ''; }

.arrow-simple { width: 12px; height: 12px; border-style: solid; transform: rotate(45deg); display: block; }
.arrow-left .arrow-simple { transform: rotate(-135deg); margin-left: 5px; }
.arrow-right .arrow-simple { transform: rotate(45deg); margin-right: 5px; }

.dots-container { display: flex; gap: 10px; }
.dot { cursor: pointer; transition: all 0.3s ease; }
.dot.active { transform: scale(1.2); }

/* --- MOBILE --- */
@media (max-width: 768px) {
    .carousel-track { height: auto !important; min-height: 400px; }
    
    .carousel-item {
        width: 100%;
        position: relative;
        transform: none !important;
        opacity: 0; /* Oculto por defecto */
        margin-bottom: 20px;
        display: none;
        left: auto; right: auto;
    }

    /* Animación de Slide en Móvil */
    .carousel-item.active {
        display: block;
        opacity: 1;
        animation: mobileSlideIn 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    }

    .fusion-element { flex-direction: column; height: auto !important; }
    .image-square { width: 100%; height: 220px; flex: none !important; border-radius: 12px 12px 0 0 !important; }
    .space { display: none !important; }
    .glass-rectangle {
        width: 100%;
        border-radius: 0 0 12px 12px !important;
        flex: none !important;
        transform: translateY(-20px);
        margin-bottom: -20px;
    }
}

/* Keyframes para la animación móvil */
@keyframes mobileSlideIn {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}