/* Estilos para el slider swipejs */

.swipejs {
    position: relative;
    width: 100%;
    margin: 2rem 0;
    display: block !important;
}

/* Ocultar figuras originales de la galería cuando se activa el slider */
.swipejs > figure.wp-block-image {
    display: none !important;
}

.swipejs-wrapper {
    position: relative;
    width: 100%;
    min-height: 400px;
    overflow: hidden;
    display: block;
}

.swipejs-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    display: block;
}

.swipejs-track {
    display: flex;
    height: 100%;
    min-height: 400px;
    transition: transform 0.3s ease-out;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.swipejs-track:active {
    cursor: grabbing;
}

.swipejs-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.swipejs-slide img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Botones de navegación */
.swipejs-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.2s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0.6;
}

.swipejs-btn:hover {
    opacity: 1;
}

.swipejs-prev {
    left: 0.5rem;
}

.swipejs-next {
    right: 0.5rem;
}

/* Indicadores */
.swipejs-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
    z-index: 10;
}

.swipejs-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.swipejs-dot:hover {
    background: rgba(0, 0, 0, 0.5);
}

.swipejs-dot.active {
    background: rgba(0, 0, 0, 0.7);
    width: 20px;
    border-radius: 4px;
}

/* Estilos para móvil */
@media screen and (max-width: 768px) {
    .swipejs-wrapper,
    .swipejs-container,
    .swipejs-track,
    .swipejs-slide {
        min-height: 300px;
    }
    
    .swipejs-slide img {
        max-height: 400px;
    }
    
    .swipejs-btn {
        width: 32px;
        height: 32px;
        font-size: 1.25rem;
    }
    
    .swipejs-indicators {
        bottom: 0.5rem;
    }
    
    .swipejs-dot {
        width: 6px;
        height: 6px;
    }
    
    .swipejs-dot.active {
        width: 16px;
    }
}

/* Ajustes para pantallas muy pequeñas */
@media screen and (max-width: 480px) {
    .swipejs-wrapper,
    .swipejs-container,
    .swipejs-track,
    .swipejs-slide {
        min-height: 250px;
    }
    
    .swipejs-slide img {
        max-height: 300px;
    }
    
    .swipejs-btn {
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
    }
}