/* Reset CSS básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #00162380;
    height: 48px;
    color: #ffffff;
    z-index: 7;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
}

.logo {
    display: flex;
    align-items: center;
    padding-left: 47px;
    padding-top: 8px;
    padding-bottom: 8px;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}
  
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    text-align: center;
}
  
.logo img {
    width: 35px; /* Ajustar el tamaño según sea necesario */
    margin-right: 10px;
}

nav {
    padding-right: 47px;
}

.list {
    list-style-type: none;
    display: flex;
    gap: 2rem;
}
  
.list li a {
    height: 48px;
    width: 100%;
    text-decoration: none;
    color: #d2d2d2;
    font-size: 14px;
    padding: 18px 0;
}

.list li a:hover{
    animation: graytowhite 0.4s ease-in-out forwards;
}

.blurred{
    backdrop-filter: blur(37px);
    -webkit-backdrop-filter: blur(37px);
}
  
.no-blur{
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.logo .brand {
    margin: 0;
    padding: 0.5rem;
    font-size: 16px;
    align-items: start;
    color: white;
    border: none;
}

@keyframes curtainOpen {
    20% {
        height: 0px;
    }
    100% {
        height: 300px;
    }
}

@keyframes curtainClose {
    10% {
        height: 450px;
    }
    100% {
        height: 0px;
    }
}

@keyframes graytowhite {
    10% {
        color: #d2d2d2;
    }
    100% {
        color: #ffffff;
    }
}

#servicesMenu {
    list-style-type: none;
    display: block;
    position: absolute;
    left: 0;
    background-color: #161617;
    width: 100vw;
    height: 0;
    overflow: hidden;
    top: 0;
    z-index: -1;
}





#close-submenu{
    display: none;
}

.space-list-vertical{
    padding: 78px 48px;
}

.list-vertical h2 {
    padding-bottom: 20px;
    color: #d2d2d2;
}

.list-vertical h2:hover {
    animation: graytowhite 0.4s ease-in-out forwards;
}

#cerrar-submenu{
    display: none;
    padding: 0;
}

#subtitulo-submenu{
    display: none;
}

#cerrar-submenu.visible{
    display: none;
    position: absolute;
    font-size: 27px;
    font-weight: 10;
    background-color: transparent;
    border: none;
    color: #ffffff;
    top: 15px;
    right: 20px;
    width: 30px;
    height: 30px;
}

.double-line-arrow {
    display: inline-block;
    position: relative;
    width: 15px;
    height: 15px;
    margin-right: 10px;
}

.double-line-arrow::before,
.double-line-arrow::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background-color: black;
}

.double-line-arrow::before {
    transform: rotate(45deg);
    left: 5px;
    top: 0;
}

.double-line-arrow::after {
    transform: rotate(-45deg);
    left: 5px;
    top: 0;
}

@media (min-width: 769px){
    .list li:hover #servicesMenu{
        display: block;
        animation: curtainOpen 0.3s ease-in-out forwards;
    }
}

@media (max-width: 768px) {

    @keyframes curtainOpen {
        0% {
            opacity: 0;
        }
        100% {
            opacity: 1;
        }
    }

    .logo{
        padding-left: 0;
        width: 100%;
        justify-content: center;
    }

    .logo img{
        margin: 0;
    }

    .logo h1 {
        display: none;
    }

    /* Menu Options */
    .bars__menu-open {
        width: 30px;
        height: 30px;
        position: absolute;
        top: 58px;
        right: 4%;
        margin-right: -10px;
        transform: translate(-50%, -50px);
        cursor: pointer;
    }

    .bars__menu-close {
        width: 30px;
        height: 30px;
        position: absolute;
        top: 58px;
        right: 0.4%;
        transform: translate(-50%, -50px);
        cursor: pointer;
    }
    
    .bars__menu-close {
        flex-direction: column;
    }

    .bars__menu-open, .bars__menu-close {
        display: block;
        outline: none;
        -webkit-tap-highlight-color: transparent;
    }

    .menu {
        opacity: 0;
        visibility: hidden;
        display: flex;
        flex-direction: column;
        align-items: start;
        position: fixed;
        /* top: -100%; */
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #000000;
        padding: 2rem;
    }
    
    .menu.visible {
        opacity: 1;
        visibility: visible;
        /* transform: translateY(0); */ /* Animación de desplazamiento */
    }

    /* Open Button*/
    .activeline1__bars-menu {
        transform: rotate(45deg) translate(-2px, 1px);
    }
  
    .activeline2__bars-menu {
        opacity: 0;
        margin-left: -30px;
    }
  
    .activeline3__bars-menu {
        transform: rotate(-45deg) translate(-4px, 2px);
    }

    .bars__menu-open span {
        display: block;
        width: 100%;
        height: 2px;
        background: #ffffff;
        border-radius: 10px;
        margin-top: 6px;
        transform-origin: 0px 100%;
        transition: all 200ms;
    }

    /* Close Button */
    .activeline11__bars-menu {
        transform: rotate(45deg) translate(-2px, 1px);
    }
  
    .activeline22__bars-menu {
        opacity: 0;
        margin-left: -30px;
    }
  
    .activeline33__bars-menu {
        transform: rotate(-45deg) translate(-4px, 2px);
    }

    .bars__menu-close span {
        display: block;
        width: 100%;
        height: 2px;
        background: #ffffff;
        border-radius: 10px;
        margin-top: 6px;
        transform-origin: 0px 100%;
        transition: all 200ms;
    }

    .list {
        flex-direction: column;
        align-items: start;
        gap: 2rem;
        padding-top: 4.5rem;
        padding-left: 1rem;
    }

    .list li a, .list li #abrir {
        font-weight: bold;
        font-size: 1.5rem;
        color: #ffffff;
    }

    #servicesMenu.visible{
        z-index: 99999;
        background-color: #000000;
    }

    .list-vertical h2{
        font-size: 24px;
        color: #ffffff;
        padding: 18px 0;
    }

    #cerrar-submenu.visible{
        display: flex;
        position: absolute;
        font-size: 27px;
        font-weight: 10;
        background-color: transparent;
        border: none;
        color: #ffffff;
        top: 15px;
        right: 20px;
        width: 30px;
        height: 30px;
    }

    .space-list-vertical{
        padding: 86px 48px;
    }

    #subtitulo-submenu{
        position: fixed;
        padding-top: 57px;
        padding-left: 48px;
        color: #777777;
    }


    #servicesMenu.visible {
        display: block;
        height: 100vh;
        animation: curtainOpen 0.3s ease-in-out forwards;
    }

    #subtitulo-submenu{
        display: none;
    }

    #subtitulo-submenu.visible{
        display: block;
    }
}