/*
* Estilos para el botón Scroll To Top
* Ubicación: /modules/scrolltotop/views/css/scrolltotop.css
*/

.scroll-to-top-btn {
    position: fixed;
    z-index: 999;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: #007cba;
    color: white;
    border: none;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Posiciones */
.scroll-to-top-btn.stt-bottom-right {
    bottom: 20px;
    right: 20px;
}

.scroll-to-top-btn.stt-bottom-left {
    bottom: 20px;
    left: 20px;
}

.scroll-to-top-btn.stt-top-right {
    top: 20px;
    right: 20px;
}

.scroll-to-top-btn.stt-top-left {
    top: 20px;
    left: 20px;
}

/* Tamaños */
.scroll-to-top-btn.stt-small {
    width: 40px;
    height: 40px;
}

.scroll-to-top-btn.stt-small svg {
    width: 24px;
    height: 24px;
}

.scroll-to-top-btn.stt-medium {
    width: 50px;
    height: 50px;
}

.scroll-to-top-btn.stt-medium svg {
    width: 32px;
    height: 32px;
}

.scroll-to-top-btn.stt-large {
    width: 70px;
    height: 70px;
}

.scroll-to-top-btn.stt-large svg {
    width: 42px;
    height: 42px;
}

/* Estilos */
.scroll-to-top-btn.stt-circle {
    border-radius: 50%;
}

.scroll-to-top-btn.stt-square {
    border-radius: 0;
}

.scroll-to-top-btn.stt-rounded {
    border-radius: 8px;
}

/* Efectos hover */
.scroll-to-top-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.scroll-to-top-btn:active {
    transform: translateY(0);
}

/* Animaciones */
.scroll-to-top-btn.show {
    display: flex !important;
    animation: fadeInUp 0.3s ease;
}

.scroll-to-top-btn.hide {
    animation: fadeOutDown 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .scroll-to-top-btn.stt-bottom-right {
        bottom: 15px;
        right: 15px;
    }
    
    .scroll-to-top-btn.stt-bottom-left {
        bottom: 15px;
        left: 15px;
    }
    
    .scroll-to-top-btn.stt-top-right {
        top: 15px;
        right: 15px;
    }
    
    .scroll-to-top-btn.stt-top-left {
        top: 15px;
        left: 15px;
    }
    
}