/*==================================================
        BARRA DE DESPLAZAMIENTO
==================================================*/

.scroll-indicador{

    position:fixed;

    top:50%;

    right:20px;

    transform:translateY(-50%);

    width:12px;

    height:280px;

    background:#2A1E17;

    border:1px solid rgba(255,255,255,.15);

    border-radius:50px;

    overflow:hidden;

    z-index:99999;

    cursor:pointer;

    box-shadow:
        0 8px 20px rgba(0,0,0,.35),
        inset 0 0 8px rgba(255,255,255,.08);

    transition:.30s;

}


.scroll-progreso{

    position:absolute;

    left:0;

    bottom:0;

    width:100%;

    height:0;

    background:linear-gradient(

        to top,

        #7a0000,

        #d62828,

        #ff5959

    );

    border-radius:50px;

    transition:height .15s linear;

    box-shadow:

        0 0 12px rgba(214,40,40,.70),

        inset 0 0 6px rgba(255,255,255,.20);

}


/*==================================================
        HOVER
==================================================*/

.scroll-indicador:hover{

    width:15px;

    box-shadow:
        0 0 18px rgba(214,40,40,.45),
        inset 0 0 10px rgba(255,255,255,.15);

}

/*==================================================
        MARCAS
==================================================*/

.scroll-indicador::before{

    content:"";

    position:absolute;

    left:2px;

    right:2px;

    top:25%;

    height:2px;

    background:rgba(255,255,255,.35);

    box-shadow:

        0 70px rgba(255,255,255,.35),

        0 140px rgba(255,255,255,.35);

    z-index:5;

}

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

@media(max-width:768px){

    .scroll-indicador{

        display:none;

    }

}

/* ==================================================
   BOTÓN VOLVER ARRIBA
================================================== */

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 24px;
    z-index: 99998;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #2a1e17;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease,
        background 0.25s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: #c62828;
}

.scroll-indicador:focus-visible,
.back-to-top:focus-visible {
    outline: 3px solid rgba(198, 40, 40, 0.45);
    outline-offset: 4px;
}

@media (max-width: 768px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-indicador,
    .scroll-progreso,
    .back-to-top {
        transition: none !important;
    }
}
