/* ============================================
   SWIPER CENTRADO - VERSION 9.0 DEFINITIVA
   Probado en vivo - Brother approved ✅
   ============================================ */

.swiper-productos {
    width: 100%;
    padding-top: 40px;
    padding-bottom: 50px;
    overflow: visible;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.swiper-productos .swiper-wrapper {
    display: flex;
    align-items: center;
}

/* Slides Inactivos: Casi invisibles para foco total en el centro */
.swiper-productos .swiper-slide {
    width: 320px !important;
    margin-right: 20px !important;
    height: auto;
    opacity: 0.12 !important;
    /* Muy baja opacidad */
    filter: blur(4px) grayscale(100%) !important;
    /* Desenfoque y blanco y negro */
    transform: scale(0.85);
    transform-origin: center center;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
}

/* Slide ACTIVO - !important para ganar la batalla de especificidad */
.swiper-productos .swiper-slide-active {
    opacity: 1 !important;
    filter: none !important;
    transform: scale(1.03) !important;
    z-index: 20 !important;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.swiper-productos .swiper-slide .producto-card {
    height: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.swiper-productos .swiper-slide-active .producto-card {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-color: rgba(6, 182, 212, 0.5);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.swiper-productos .swiper-slide-active .producto-btn {
    background: #0f172a;
    color: white;
    border-color: #0f172a;
    transform: scale(1.05);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Botones de Navegacion */
.swiper-button-prev-prod,
.swiper-button-next-prod {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #1e293b;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease-in-out;
    user-select: none;
}

.swiper-button-prev-prod:hover,
.swiper-button-next-prod:hover {
    background: #1e293b;
    color: white;
    transform: translateY(-50%) scale(1.05);
}

.swiper-button-prev-prod:active,
.swiper-button-next-prod:active {
    background: #0f172a;
    color: white;
    transform: translateY(-50%) scale(0.95);
}

.swiper-button-prev-prod:focus,
.swiper-button-next-prod:focus {
    outline: none;
}

.swiper-button-prev-prod {
    left: 20px;
    right: auto;
}

.swiper-button-next-prod {
    right: 20px;
    left: auto;
}

/* ============================================
   MOBILE - PROBADO EN VIVO ✅
   Centrado perfecto y estable
   ============================================ */
@media (max-width: 768px) {
    .swiper-button-prev-prod {
        left: 5px;
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .swiper-button-next-prod {
        right: 5px;
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    /* CRITICO: Forzar configuración correcta del contenedor */
    .swiper-productos {
        width: 100% !important;
        margin: 0 auto !important;
        left: 0 !important;
        right: 0 !important;
        position: relative !important;
        overflow: hidden !important;
        padding: 40px 0 50px !important;
    }

    /* Slides con ancho fijo para centrado estable */
    .swiper-productos .swiper-slide {
        width: 280px !important;
        margin-left: 0 !important;
        margin-right: 20px !important;
        /* COINCIDE CON spaceBetween: 20 en JS */
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Slide activo completamente visible */
    .swiper-productos .swiper-slide-active {
        opacity: 1 !important;
        transform: scale(1) !important;
        filter: none !important;
    }

    /* Slides inactivos casi invisibles */
    .swiper-productos .swiper-slide:not(.swiper-slide-active) {
        opacity: 0.1 !important;
    }
}