/* Estilos para el botón flotante */ 

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index:5000;
    width: 150px;
    transition:0.2s all ease;
}

.whatsapp-button:hover {
    width: 180px; 
}


/* Estructura del encabezado */

header{
    position:fixed;
    width: 100%;
    align-items: flex-start;
    padding:0;
    box-sizing: border-box;
    z-index:4900;
}

.header-area{
    display:flex;
    justify-content: center;
    max-width: 1456px;
    overflow: hidden;
    margin:0;
    box-sizing: border-box;
}

.header-wrap{
    width: 100%;
}

#sp-main-menu{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100vh;
    width: 250px;
    max-width: 2040px;
    align-items: start;
    padding: 40px;
    row-gap: 20px;
    background-color: white;
    margin: 0;
    transition: all ease-in-out 0.4s;
    box-sizing: border-box;
    
    position:fixed;
    left:-250px;
}

#sp-main-menu.activo{
    left:0;
    box-shadow: 10px 0 10px rgba(0, 0, 0, 0.1); /* Sombra sutil */
}

#sp-mobile-menu{
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    row-gap: 20px;
    margin: 20px;
    border-radius: 20px;
    transition: all ease-in-out 0.4s;
    box-sizing: border-box;
    
    background-color: rgba(255,255,255,0.95);
    backdrop-filter: blur(4px);
}


#sp-main-menu ul{
    flex-direction: column;
    justify-content: flex-start;
    row-gap: 15px;
}

#sp-main-menu ul li a{
    font-size: 1rem;
    font-weight: 500;
}


/* Cambios para tablet y PC */

@media only screen and (min-width: 920px) {
    
    header{
         padding:0 10px;
    }
    
    .header-area{
        margin:10px auto 0 auto;
        padding:10px 10px 20px 10px;
    }
    
    #sp-main-menu{
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: auto;
        width: 100%;
        overflow: hidden;
        padding: 15px 25px;
        border-radius: 20px;
        background-color: rgba(255,255,255,0.95);
        backdrop-filter: blur(4px);
        
        position:relative;
        left:auto;
    }

    #sp-main-menu ul{
        flex-direction: row;
    }

    #sp-main-menu ul li a{
        font-size: 0.9rem;
        font-weight: 400;
    }
    
    /* Comportamiento al scrollerar en desktop */
  
    .header-area.scrolled > #sp-main-menu{
        max-width: 1140px;
        border-radius:50px;
        box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1); /* Sombra sutil */
        mix-blend-mode: multiply; /* Aplica el modo de fusión multiplicar */
    }

    .header-area.scrolled > #sp-main-menu:hover{
        max-width: 1160px;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1); /* Sombra sutil */
    }

}

/* Comportamiento al scrollerar en desktop */
  
.header-area.scrolled > #sp-mobile-menu{
    border-radius:50px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1); /* Sombra sutil */
    mix-blend-mode: multiply; /* Aplica el modo de fusión multiplicar */
}



/* Secciones */

.header-wrap-section4{
    gap:5px;
}

/* Secciones */

.header-wrap-section4{
    gap:5px;
}

/* Navegador */

.nav-menu{
    display: flex;
    gap:30px;
    list-style: none;
    padding:0;
}

/* Menú nivel 1 */

.nav-menu li a{
    font-family: var(--font2);
    color:var(--color_texto);
    font-size:0.9rem;
}

.nav-menu li a:hover{
    color:var(--color1);
}

.nav-menu li{
    margin-block-end: 0;
}

.sp .boton-contacto{
    background-color: var(--color2);
    border: var(--color2) solid 2px;
    color:white;
    font-size:0.8rem;
    padding:10px 20px;
    border-radius:20px;
    transition:all ease-in-out 0.4s;
}

.sp .boton-contacto:hover{
    background-color: white;
    color:var(--color2);
}

/* Menú nivel 2 */

.nav-menu li ul{
    list-style: none;
    position: absolute;
    padding-left: 0;
    display:none;
}