.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 75px;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    margin: 0px auto;
    align-items: center;
    z-index: 9999;
}
.navweb {
    align-items: center;
    display: flex;
  }
.navweb a {
    margin: 0 20px;
    text-decoration: none;
    font-size: 18px;
    background-color: transparent;
    transition: 0.5s;
    font-weight: 500;
    color: black;
  }
.navweb a:hover {
    transition: 2s;
    border-bottom: 1px solid #000000;
  }
.btn-left {
    position: absolute;
    left: 30px;
    top: 25px;
}
.btn-left label {
    font-size: 21px;
    cursor: pointer;
    color: black;
}
#btn-menu{
    display: none;
}
.btn-menu {
    position: absolute;
    right: 30px;
    top: 25px;
}
.btn-menu label {
    font-size: 25px;
    cursor: pointer;
}
#btn-menu:checked ~ .directorio-menu {
    opacity: 1;
    visibility: visible;
}
#btn-menu:checked ~ .container-menu .dire-menu {
    transform: translateX(0%);
}
.btn-sherpa label{
    color: black;
}
.directorio-menu {
    position: absolute;
    height: 100vh;
    top: 0;
    left: 0;
    transition: all 500ms ease;
    opacity: 0;
    visibility: hidden;
    z-index: 25;
}
.dire-menu {
    width: 100%;
    max-width: 400px;
    background: white;
    height: 100vh;
    position: fixed; /* Cambiado de 'absolute' a 'fixed' */
    top: 75px; /* Ajustar según el alto del header */
    right: 0;
    transition: all 500ms ease;
  }
.dire-menu nav {
    transform: translateY(15%);
}
.dire-menu a {
    display: block;
    text-decoration: none;
    padding: 12px;
    color: black;
    border-left: 5px solid transparent;
    font-weight: 500;
}

.dire-menu nav a:hover {
    border-left: 5px solid #007bff;
}

.dire-menu label {
    position: absolute;
    right: 12px;
    top: 12px;
    color: #ffffff;
    cursor: pointer;
    font-size: 18px;
}
.submenu {
    max-height: 200px;
    overflow-y: auto;
    display: none; /* Se oculta por defecto */
    margin-left: 20px; /* Espacio para diferenciar del menú principal */
}

.submenu.show {
    display: block; /* Se muestra cuando se activa el submenú */
}

.titulo-item {
    display: block;
    padding: 1px;
    margin: 1px 0;
    text-decoration: none;
    color: #007bff;
    font-size: 11px;
    border: 0.5px solid #ddd;
    transition: background-color 0.3s, color 0.3s;
}

.titulo-item:hover {
    color: #007BFF;
}

@media only screen and (max-width: 600px) {
    .linksnav{
        display: none;
    }
}