/*
 * Botón para volver arriba (partials/back-to-top.php), con las medidas del de WordPress en el blog: cuadro oscuro de
 * 40 px a 15 px de la orilla derecha. Espera abajo de la pantalla y sube a 40 px de la orilla de abajo con
 * back-to-top--visible, que pone js/components/back-to-top.js.
 */
.back-to-top {
    position: fixed;
    right: 15px;
    bottom: -45px;
    z-index: var(--z-back-to-top);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--fg-back-to-top);
    background: var(--bg-back-to-top);
    box-shadow: var(--shadow-back-to-top);

    /* Mientras espera abajo no recibe el foco */
    visibility: hidden;
    transition:
        bottom 0.3s,
        background-color 0.3s,
        visibility 0.3s;
}

.back-to-top--visible {
    bottom: 40px;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--bg-back-to-top-hover);
}
