/* General Styles */
body {
    background-color: #ffffff;
    color: #000;
}

header {
    background-color: #CFB53B;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    height: 140px;
    border-radius: 15px;
    padding: 0 20px;
}

.menu {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: center;
}

.menu a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    padding: 10px 15px;
    transition: 1s;
    margin: 10px;
    font-weight: bold;
}

.mostrarMenu,
.esconderMenu {
    font-size: 30px;
    cursor: pointer;
    display: none;
    transition: 0.5s;
}

#pagActual {
    background: #000000ce;
    color: #fff;
    border-radius: 10px;
}

.menu a:hover,
.mostrarMenu:hover,
.esconderMenu:hover {
    color: #fff;
    background-color: #000000ce;
    border-radius: 10px;
}

#check {
    display: none;
}

.volver-button {
    width: 60px;
    height: 60px;
    border-radius: 100%;
    position: fixed;
    display: none;
    bottom: 20px;
    right: 25px;
    opacity: 0.5;
    transition: opacity 5s ease;
    background-color: #7c7878;
    background-image: url(img/flechaArriba.png);
    background-size: 90%;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-color 1s;
    border: none;
    z-index: 1000;
}

.volver-button.show {
    display: block;
    pointer-events: auto;
    opacity: 0.7;
}

.volver-button:hover {
    background-color: #b45252;
}

/* Responsive Menu Styles */
@media only screen and (max-width: 760px) {
    .menu {
        position: fixed;
        width: 50%; /* Ocupa el 50% de la pantalla */
        height: 100%; /* Ocupa toda la altura de la pantalla */
        background: #CFB53B; /* Marrón claro */
        right: -100%;
        top: 0;
        text-align: center;
        padding: 20px 0px; /* Reducir el padding superior */
        z-index: 100;
        transition: 1s;
        border-radius: 0; /* Sin borde redondeado */
        overflow-y: auto; /* Permite el desplazamiento vertical si el contenido es demasiado alto */
        flex-direction: column;
        align-items: center;
        justify-content: flex-start; /* Alineación al principio */
    }

    .menu a {
        display: block;
        padding: 10px;
        margin: 15px 20px;
        color: #000; /* Cambiar el color del texto a negro para mejor visibilidad */
    }

    .mostrarMenu {
        display: block;
        position: absolute;
        right: 20px;
    }

    .esconderMenu {
        display: none;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    #check:checked ~ .menu {
        right: 0;
    }

    #check:checked ~ .mostrarMenu {
        display: none;
    }

    #check:checked ~ .esconderMenu {
        display: block;
    }

    .volver-button {
        background-color: #b452526b;
    }
}
