/* ===================================================== */
/* Pagina 404 - Flecha ir al TOP */
/* ===================================================== */

/* 👉 Pagina 404 */
.custom-404{
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.custom-404__box{
    width: 100%;
    max-width: 700px;
    text-align: center;
    padding: 50px 30px;
    border-radius: 20px;
    background: linear-gradient(135deg, #161616, #2b153d);
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

.custom-404__code{
    font-size: 120px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 20px;
    color: white;
}

.custom-404 h1{
    margin: 0 0 20px;
    font-size: 36px;
    color: white;
}

.custom-404 p{
    margin: 0 auto 30px;
    max-width: 500px;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255,255,255,.8);
}

.custom-404__btn{
    display: inline-block;
    padding: 14px 28px;
    border-radius: 12px;
    background: #7c3aed;
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: transform .2s ease;
}

.custom-404__btn:hover{
    transform: translateY(-2px);
}
/* Clase Nativa de Wordpress (alto del body para 404) */
    body.footer-on-bottom #wrapper {
        min-height: 80vh;
    }

@media (max-width: 768px){

    .custom-404__code{
        font-size: 80px;
    }

    .custom-404 h1{
        font-size: 28px;
    }

    .custom-404 p{
        font-size: 16px;
    }
    
}

/* 👉 Flecha ir al top del sitio */
.scroll-top-btn svg{
    width: 22px;
    height: 22px;
    display: block;
}

.scroll-top-btn{
    
    all: unset; /* unset borra TODO lo heredado por el tema actual para después reaplicar el css mío */
    padding: 8px;
    background-color: rgb(52, 52, 133);
    opacity: 0.6;
    position: fixed;
    right: 30px;
    bottom: 13px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 7;
}

.scroll-top-btn polyline{
    fill: none;
    stroke: white;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* oculto por defecto y sin clicks */
.scroll-top-btn{
    visibility: hidden;
    transform: translateY(20px);
    pointer-events: none;
    transition:
        opacity .25s ease,
        transform .25s ease,
        visibility .25s ease;
}

/* visible al scrollear */
.scroll-top-btn.show{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* micro animación hover */
.scroll-top-btn:hover{
    opacity: 1;
    transform: translateY(-3px);
}

.scroll-top-btn:hover svg{
    transform: translateY(-1px);
    transition: transform .2s ease;
}