@font-face {
    font-family: 'Designer';
    src: url(../fonts/Designer.otf);
}
@font-face {
    font-family: 'tommy';
    src: url(../fonts/MADE\ TOMMY\ ExtraBold_PERSONAL\ USE.otf);
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
}
    
nav {
    display: grid;
    grid-template: "logo menu  music language boton" 110px /
                    200px 1fr auto auto auto auto;
    z-index: 100;
    position: fixed;
    width: 100%;
    bottom: 81.5%;
}

nav div {
    display: flex;
    justify-content: right;
}
nav img {
    width: 25%;
    border-radius: 100%; 
    margin: 10px 0px 0px 50px;
    box-shadow: 5px 5px 30px black;
}

nav ul {
    list-style-type: none;
    display: flex;
    flex-wrap: nowrap;
    align-self: center;
    margin-bottom: 0px;
}

nav ul li {
    position: relative;
    white-space: nowrap;
}

.login-btn {
    
    margin: 0px 30px 0px 0px;
    font-size: 1.3rem;
    background: rgb(199, 233, 255);
    width: 40px;
    height: 30px;
    align-self: center;
    margin-left: 10px;
    
    border-radius: 10px;
    border: none;
    box-shadow: 5px 5px 30px black;

}
.login-btn:hover {

    box-shadow: 5px 5px 30px rgb(255, 255, 255);
}

.login-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-btn-layer {
    position: relative;
    right: 45%;
    bottom: 165px;
    display: none;
    margin: 0px 10px 0px 0px;
    font-size: 1.3rem;
    background: rgb(199, 233, 255);
    width: 40px;
    height: 30px;
    align-self: center;
    border-radius: 10px;
    border: none;
    box-shadow: 5px 5px 30px black;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.music-btn {
    margin: 0px 10px 0px 0px;
    font-size: 1.3rem;
    background: rgb(199, 233, 255);
    width: 40px;
    height: 30px;
    align-self: center;
    border-radius: 10px;
    border: none;
    box-shadow: 5px 5px 30px black;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.music-btn:hover, .music-btn-layer:hover {
    box-shadow: 5px 5px 30px rgb(255, 255, 255);
    transform: scale(1.1);
}

.music-btn.playing, .music-btn-layer.playing {
    background: rgb(135, 135, 234);
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(135, 135, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(135, 135, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(135, 135, 234, 0);
    }
}



ul li a {
    text-decoration: none;
    margin: 10px;
    font-size: 12px;
    color: rgb(184, 238, 255);
    text-shadow: 5px 5px 10px black;
    font-family: Designer;
    
    
}

ul li a:hover,
nav ul li:hover > a {
    color: rgb(228, 228, 228);
    text-shadow: 5px 5px 10px rgb(221, 221, 221);
    transition: ease-in-out 0.2s;
    transform: scale(1.1);    
}

.list-services {
    display: none;
    position: absolute;
    top: 100%;
    left: 0%;
    background: rgba(44, 62, 80, 0.95);
    border-radius: 10px;
    padding: 10px;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.list-services li {
    margin: 10px 0;
}

.list-services a {
    color: rgb(184, 238, 255);
    text-decoration: none;
    font-size: 15px;
    padding: 8px 15px;
    display: block;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.list-services a:hover {
    background: rgba(255, 255, 255, 0.1);
}

nav ul li:hover .list-services {
    display: block;
}

.layer ul li {
    display: none;
}

/* Add animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

nav ul li:hover .list-services {
    display: block;
    animation: fadeIn 0.3s ease;
}


.nav {
    position: relative;
    background: #2c3e50;
    height: 30vh;
  }
  

  .language-switch {
    grid-area: language;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 20px;
}

.language-switch a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.language-switch span {
    color: #fff;
    opacity: 0.5;
}

.language-switch a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-btn {
    display: none;
}
.menu-burger {
    display: none;
    grid-area: menu-burger;
    color: rgb(184, 238, 255);
    font-size: 25px;
    cursor: pointer;
    width: 10%;
    justify-self: end;
    transition: all 0.3s ease;
}

.menu-burger:hover {
    color: rgb(228, 228, 228);
    text-shadow: 5px 5px 10px rgb(221, 221, 221);
}



/* Resaltar el idioma activo */
html[lang="es"] .language-switch a[lang="es"],
html[lang="en"] .language-switch a[lang="en"] {
    background-color: rgba(255, 255, 255, 0.2);
}


  .wave {
    position: absolute;
    height: 127px;
    width: 100%;
    background: #2c3e50;
    bottom: 0;
    z-index: -1;
  }
  
  .wave::before, .wave::after {
    content: "";
    display: block;
    position: absolute;
    border-radius: 100% 50%;
  }
  
  .wave::before {
    width: 65%;
    height: 100%;
    background-color: #2c3e50;
    right: -5%;
    top: 30%;
    transform: rotate(1deg);
  }
  .wave::after {
    width: 60%;
    height: 110%;
    background-color: #2c3e50;
    left: -10%;
    top: 20%;
    transform: rotate(2deg);
  }

  @media screen and (max-width: 1680px) {
    nav {
        width: 100%;
        
        
    }
    #secOne {
        width: 40%;
    }

    
    
  }

  @media (max-width: 1024px) {
    nav {
        grid-template-columns: 150px minmax(300px, 1fr) auto auto;
        padding: 0 15px;
    }

    nav img {
        width: 60px;
        height: 60px;
    }

    nav ul {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    
    nav {
        grid-template: "logo language menu-burger" 70px / auto 1fr auto;
        padding: 10px;
        background: rgba(44, 62, 80, 0.98);
    }
    

    .menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100%;
        background: rgba(44, 62, 80, 0.98);
        transition: right 0.3s ease;
        z-index: 100;
        padding-top: 70px;
        display: flex; 
        flex-direction: column; 
        align-items: center;
    }

    nav img {
        width: 50px;
        height: 50px;
        margin: 0 0 0 15px;
    }

    .menu-burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: end;
        margin-right: 15px;
        z-index: 101; 
    }

    .login-btn,
    nav #menu {
        display: none;
    }

    nav ul {
        flex-direction: column;
        align-items: center; 
        padding: 20px;
        gap: 25px;
        width: 100%; 
    }

    nav #menu {
        display: none;
    }

    nav ul li {
        width: 100%; 
        text-align: center; 
    }

    

    .list-services {
        position: relative;
        left: 0;
        transform: none;
        width: 100%;
        text-align: center;
        background: rgba(44, 62, 80, 0.8);
        border-radius: 0;
        padding: 10px 0; 
        box-shadow: none; 
    }

    .menu-close {
        display: none;
    }

    

    #menu-btn:checked ~ .menu-burger .menu-open {
        display: none;
    }

    #menu-btn:checked ~ .menu-burger .menu-close {
        display: block;
    }

    #menu-btn:checked ~ .music-btn {
        display: flex;
        margin: 20px auto;
        position: static;
    }

    .layer {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.759);
        z-index: 99;
        display: none;
    }
    .layer ul {
        width: 100%;
    }
    .layer ul li {
        display: block;
        width: 100%;
    }

    .layer ul li a {
        width: 100%;
    }

    .layer ul li ul {
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(44, 62, 80, 0.95);
        border-radius: 10px;
        padding: 10px;
        width: 100%;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        animation: fadeIn 0.3s ease;
    }

    .layer ul li ul li a:hover {
        background-color: rgba(22, 22, 22, 0.375);
        width: 80%;
        margin: 0 auto;
    }
    
    .layer .login {
        margin-top: 400px;
    }

    .layer .login a {
        color: #fff;
        text-decoration: none;
        font-size: 18px;
        padding: 10px 100px;
        border-radius: 5px;
        transition: all 0.3s ease;
        background-color: #2c3e50;
    }

    


    #menu-btn:checked ~ .layer {
        display: block;
    }

    #menu-btn:checked ~ body,
    #menu-btn:checked ~ html {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    body:has(#menu-btn:checked) {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    .layer {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .music-btn {
        display: none;
    }

}
