#menu-principal{
    max-width: 100%;
    position: fixed;
    top: 2em;
    right: 15%;
    left: 15%;
    box-shadow: inset 50px 50px 25px 25px var(--bg-base);
}
#mp-contenedor{
    padding: .75em 2.5em;
    max-width: 100%;
    background-color: var(--bg-cajas);
    border: var(--borde-cajas-1);
    display: grid;
    grid-template-columns: 1fr repeat(2, auto);
    align-items: center;
    border-radius: 8px;
}
#contenedor-logotipo{
    min-width: 100px;
    max-width: 165px;
    svg{
        display: block;
        width: 100%;
        height: auto;
    }
    svg,
    svg *{
        transition: .25s ease-in-out;
    }
    svg:hover{
        .text_innov{
            fill: var(--acento);
        }
        #text_adn,
        #cadena-adn{
            fill: var(--neutral);
        }
    }
    svg *{
        cursor: pointer;
    }
    & *{
        cursor: pointer;
    }
}
#contenedor-opciones{
    padding: 0 2.5em;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(4, auto);
    column-gap: 1.5em;
}
#contenedor-opciones button,
#contenedor-acceso button{
    background: none;
    color: var(--blanco-1);
    font-size: 1.15em;
    transition: .25s ease-in-out;
}
#contenedor-opciones button{
    font-weight: 400;
    border: none;
    &:hover{
        color: var(--acento);
    }
}
#contenedor-acceso button{
    padding: .75em 1.75em;
    border: var(--borde-cajas-1);
    border-radius: 8px;
    &:hover{
        background-color: var(--acento);
        border: var(--borde-cajas-2);
    }
}
.btn-menu-activo{
    color: var(--acento) !important;
}
/* menú móvil */
#mp-hamburguesa{
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 2.6em;
    height: 2.6em;
    background: none;
    border: 1px solid var(--blanco-2);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .25s ease-in-out;
    span{
        display: block;
        width: 1.3em;
        height: 2px;
        background-color: var(--neutral);
        border-radius: 2px;
        transition: .25s ease-in-out;
        &:not(:last-child){
            margin-bottom: 5px;
        }
    }
    &:hover{
        border-color: var(--acento);
    }
}
#mp-hamburguesa[aria-expanded="true"]{
    span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
    span:nth-child(2){ opacity: 0; }
    span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
}
/* menú móvil */
#mp-modal{
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
    &.mp-abierto{
        display: flex;
    }
}
#mp-modal-fondo{
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, .75);
    backdrop-filter: blur(4px);
}
#mp-modal-panel{
    position: relative;
    width: 88%;
    max-width: 380px;
    padding: 3em 2em 2.5em;
    background-color: var(--bg-footer);
    border: var(--borde-cajas-1);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    animation: mpModalAparecer .25s ease;
}
#mp-modal-cerrar{
    position: absolute;
    top: 1em;
    right: 1em;
    width: 2.2em;
    height: 2.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    color: var(--blanco-1);
    font-size: 1.4em;
    line-height: 1;
    border: 1px solid var(--blanco-2);
    border-radius: 50%;
    cursor: pointer;
    transition: .25s;
    &:hover{
        border-color: var(--acento);
        color: var(--acento);
    }
}
#mp-modal-opciones{
    margin-top: 1em;
    display: flex;
    flex-direction: column;
    a{
        padding: .9em 0;
        color: var(--blanco-1);
        font-size: 1.25em;
        font-weight: 500;
        text-align: center;
        text-decoration: none;
        border-bottom: 1px solid var(--blanco-3);
        transition: color .25s;
        &:last-child{
            border-bottom: none;
        }
        &:hover{
            color: var(--acento);
        }
    }
    .mpm-activo{
        color: var(--acento);
    }
}
#mp-modal-acceder{
    margin-top: 1.5em;
    padding: .9em;
    background-color: var(--acento);
    color: var(--neutral);
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: opacity .2s;
    &:hover{
        opacity: .85;
    }
}
@keyframes mpModalAparecer{
    from{ opacity: 0; transform: translateY(.5em); }
    to{ opacity: 1; transform: translateY(0); }
}
body.mp-bloqueado{
    overflow: hidden;
}
/* responsive */
@media (max-width: 1100px){
    #mp-contenedor{
        padding: .75em 1.5em;
    }
    #contenedor-opciones{
        padding: 0 1em;
        column-gap: .75em;
    }
}
@media (max-width: 1000px){
    #menu-principal{
        left: 4%;
        right: 4%;
    }
}
@media (max-width: 768px){
    #menu-principal{
        left: 3%;
        right: 3%;
        top: 1em;
    }
    #mp-contenedor{
        padding: .6em 1.1em;
        grid-template-columns: 1fr auto;
    }
    #contenedor-logotipo{
        min-width: 0;
        max-width: 120px;
    }
    #contenedor-opciones,
    #contenedor-acceso{
        display: none;
    }
    #mp-hamburguesa{
        display: flex;
    }
}
@media (max-width: 768px){
    #mp-hamburguesa{
        width: 44px;
        height: 44px;
        flex: none;
    }
}
