/* ===== GOEXPRESS LUXURY CAROUSELS 2026 ===== */

/* Cascade Layers para control de especificidad */
@layer reset, base, components, utilities, overrides;

@layer components {

/* Contenedor Principal */
.products-carousel-wrapper,
.testimonials-carousel-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding: 2rem 0;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

/* El Carrusel (Ventana de visualización) */
.products-carousel,
.testimonials-carousel {
    width: 100%;
    overflow: visible;
    padding: 4rem 0;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

/* Track (El que se mueve) */
.carousel-track {
    display: flex;
    gap: 20px; /* Gap reducido para móviles para coincidir con JS */
    padding: 0;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
    align-items: center;
}

/* Tarjetas Individuales (Slides) */
.product-card-slide,
.testimonial-card-slide {
    flex: 0 0 85vw; /* Por defecto casi todo el ancho en móvil */
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    scale: 0.9;
    opacity: 0.3;
    filter: blur(8px);
    pointer-events: none;
    z-index: 1;
}

/* Estado ACTIVO (La del centro) */
.product-card-slide.active,
.testimonial-card-slide.active {
    flex: 0 0 85vw;
    scale: 1.1;
    opacity: 1;
    filter: blur(0);
    z-index: 10;
    pointer-events: auto;
}

/* Estado PREV y NEXT (Las de los lados en Escritorio) */
@media (min-width: 1024px) {
    .carousel-track {
        gap: 40px;
    }

    .products-carousel,
    .testimonials-carousel {
        mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    }

    .product-card-slide,
    .testimonial-card-slide {
        flex: 0 0 320px; /* Ancho fijo en escritorio */
    }

    .product-card-slide.active,
    .testimonial-card-slide.active {
        flex: 0 0 320px;
        scale: 1.2; /* Resalta más en escritorio */
    }

    .product-card-slide.prev,
    .product-card-slide.next,
    .testimonial-card-slide.prev,
    .testimonial-card-slide.next {
        opacity: 0.6;
        scale: 0.9;
        filter: blur(2px);
        pointer-events: auto;
    }
}

/* Ajustes específicos para Testimonios (un poco más anchos) */
@media (min-width: 1024px) {
    .testimonial-card-slide {
        flex: 0 0 500px;
    }
    .testimonial-card-slide.active {
        flex: 0 0 500px;
    }
}

/* Tarjetas Reales (Contenido) */
.product-card,
.testimonial-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
}

/* Controles de Lujo */
.carousel-controls-luxury {
    position: absolute;
    top: 50%;
    left: 1rem;
    right: 1rem;
    translate: 0 -50%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 100;
    width: calc(100% - 2rem);
}

@media (min-width: 1440px) {
    .carousel-controls-luxury {
        left: -80px;
        right: -80px;
        width: calc(100% + 160px);
    }
}

.control-btn {
    pointer-events: auto;
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-full);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    scale: 1;
    rotate: 0deg;
}

.control-btn:hover {
    background: var(--gradient-primary);
    scale: 1.1;
    rotate: 5deg;
    box-shadow: var(--shadow-glow);
    border-color: transparent;
}

/* Indicadores */
.carousel-indicators {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.carousel-indicator.active {
    width: 40px;
    background: var(--gradient-primary);
}

}
