/**
 * Estilos para Shortcodes de Centros
 * 
 * @package Inventory_Core
 * @since 0.5.0
 */

/* ========================================
   SLIDER DE PROMOCIONES
   ======================================== */

/* Wrapper principal con espacio para flechas y puntos */
.slider-promociones-wrapper {
    width: 100%;
    position: relative;
    padding: 0 60px 50px 60px; /* Espacio para flechas laterales y puntos abajo */
}

/* Contenedor del slider */
.slider-promociones {
    width: 100%;
    position: relative;
    overflow: hidden; /* Oculta slides parciales */
}

/* Container de Swiper */
.slider-promociones .swiper-container {
    width: 100%;
    overflow: hidden;
}

/* Imágenes del slider */
.slider-promociones img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Enlaces con hover */
.slider-promociones .slider-link {
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.slider-promociones .slider-link:hover {
    opacity: 0.9;
}

/* FLECHAS DE NAVEGACIÓN - FUERA DEL SLIDER */
.swiper-button-prev-custom,
.swiper-button-next-custom {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.swiper-button-prev-custom {
    left: 0;
}

.swiper-button-next-custom {
    right: 0;
}

.swiper-button-prev-custom:hover,
.swiper-button-next-custom:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Iconos de flechas */
.swiper-button-prev-custom::after,
.swiper-button-next-custom::after {
    content: '';
    width: 12px;
    height: 12px;
    border-top: 2px solid #333;
    border-right: 2px solid #333;
}

.swiper-button-prev-custom::after {
    transform: rotate(-135deg);
    margin-left: 4px;
}

.swiper-button-next-custom::after {
    transform: rotate(45deg);
    margin-right: 4px;
}

/* Estado deshabilitado */
.swiper-button-prev-custom.swiper-button-disabled,
.swiper-button-next-custom.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* PAGINACIÓN - FUERA Y ABAJO DEL SLIDER */
.swiper-pagination-custom {
    position: relative;
    text-align: center;
    margin-top: 20px;
    padding-bottom: 10px;
}

.swiper-pagination-custom .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #333;
    opacity: 0.3;
    margin: 0 5px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.swiper-pagination-custom .swiper-pagination-bullet:hover {
    opacity: 0.5;
}

.swiper-pagination-custom .swiper-pagination-bullet-active {
    opacity: 1;
    background: #333;
    transform: scale(1.2);
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablets y móviles */
@media (max-width: 768px) {
    .slider-promociones-wrapper {
        padding: 0 40px 40px 40px;
    }
    
    .swiper-button-prev-custom,
    .swiper-button-next-custom {
        width: 36px;
        height: 36px;
    }
    
    .swiper-button-prev-custom::after,
    .swiper-button-next-custom::after {
        width: 10px;
        height: 10px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .slider-promociones-wrapper {
        padding: 0 30px 30px 30px;
    }
    
    .swiper-button-prev-custom,
    .swiper-button-next-custom {
        width: 32px;
        height: 32px;
    }
}
