* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: 'Libre Baskerville';
}

body {
    background-image: url("./imagenes/background.png");
    background-color: ghostwhite;
    padding: 90px 0px 0px;
    min-height: 100vh;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

header {
    box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.92);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    transition: 0.6s;
    display: flex;
    line-height: 70px;
    z-index: 1;
}

header .logo {
    color: white;
    font-size: 40px;
    font-weight: 70px;
    text-decoration: none;
    font-family: 'Neucha';
    text-transform: uppercase;
    user-select: none;
}

header .nav {
    position: relative;
    line-height: 80px;
    transition: 0.6s;
    transition-property: line-height;
}

header.sticky .nav {
    line-height: 90px;

}

header .nav .menu {
    position: relative;
    display: flex;
    justify-content: center;
    list-style: none;
    user-select: none;
    cursor: pointer;
}

.menu-item>a {
    color: white;
    font-size: 18px;
    text-decoration: none;
    margin: 0px 0px;
    padding: 0px 10px;
    cursor: pointer;
    line-height: 60px;
}

.menu-item>a:hover {
    color: rgb(103, 184, 231);
    transition: 0.4s;
}

/* SUBMENU CONTACTO */

.menu-item .sub-menu {
    position: fixed;
    background-color: #263238;
    top: 80px;
    line-height: 20px;
    list-style: none;
    border-radius: 5px 5px 10px 10px;
    box-shadow: 0 5px 25px rgb(0 0 0 / 20%);
    pointer-events: none;
    transform: translateY(0px);
    opacity: 0;
    transition: 0.3s;
    transition-property: transform, opacity;
    box-shadow: 0px 5px 16px -4px rgba(0, 0, 0, 0.92);
}

header.sticky .menu-item .sub-menu {
    top: 90px;
}

.menu-item:hover .sub-menu {
    pointer-events: all;
    transform: translateY(0px);
    opacity: 1;
}

.menu-item .sub-menu .sub-item {
    position: relative;
    padding: 24px 17px;
    cursor: pointer;
    box-shadow: inset 0px -30px 5px -30px rgba(12, 12, 12, 0.2);
    border-radius: 5px 5px;
}

.menu-item .sub-menu .sub-item a {
    color: white;
    font-size: 15px;
    text-decoration: none;
    padding: 10px 10px;
}

.menu-item .sub-menu .sub-item:hover {
    background-color: rgb(103, 184, 231);
}

.menu-item .sub-menu .sub-item:last-child:hover {
    border-radius: 5px 5px 10px 10px;
}

.menu-btn {
    display: none;
}

@media (max-width: 850px) {
    header .nav .menu {
        display: block;
        position: fixed;
        background-color: rgb(76, 86, 97);
        min-width: 10px;
        height: 100vh;
        top: 0;
        right: -100%;
        padding: 90px 0px;
        overflow-y: auto;
        transition: 0.7s;
        transition-property: right,visibility;
        box-shadow: 00px 0px 15px 0px rgba(0, 0, 0, 0.75);
        cursor: default;
    }
    
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        backdrop-filter: blur(1px);
        -webkit-backdrop-filter: blur(1px);
        visibility: hidden;
        opacity: 0;
    }
    header .nav .menu.active .nav-overlay{
        transition: 0.8s;
        transition-property: left, ;
        visibility: visible;
        opacity: 1;
        transform: translateX(-200px);
    }

    header.sticky .nav {
        line-height: 80px;
    }

    header .nav .menu.active {
        right: 0;
        visibility: visible;
        width: 200px;
    }

    .menu.active .menu-item .sub-menu .sub-item:hover {
        background-color: rgb(103, 184, 231);
        color: black;
    }

    .menu.active .menu-item .sub-menu .sub-item a:hover {
        color: black;
    }

    .menu-item .sub-menu {
        opacity: 1;
        position: relative;
        top: 0;
        transform: translateX(0px);
        background-color: rgba(12, 12, 12, 0.2);
        border-radius: 5px;
        overflow: hidden;
        display: none;
        width: 140px;
        margin-left:30px;
    }
    
    header.sticky .menu-item .sub-menu {
        top: 0px;
    }


    .menu-item:hover .sub-menu {
        transform: translateX(0px);
    }
    
    .menu-item .sub-menu .sub-item {
        /* box-shadow: none; */
        padding: 20px 0px;
    }

    .menu-item .sub-menu .sub-item:hover {
        background: none;
    }

    .menu-item .sub-menu .sub-item a:hover {
        color: rgb(108, 199, 202);
        transition: 0.3s;
    }

    .close-btn {
        position: absolute;
        background: url(iconos/close.png) no-repeat;
        width: 40px;
        height: 40px;
        background-size: 40px;
        background-position: center;
        top: 0;
        left: 0;
        margin: 10px;
        cursor: pointer;
        display: block;
    }
    
    .menu-btn {
        background: url(iconos/menu.png) no-repeat;
        width: 40px;
        height: 40px;
        background-size: 30px;
        background-position: center;
        cursor: pointer;
        display: block;
    }

    header {
        padding: 6px 25px;
    }

    header.sticky {
        padding: 3px 15px;
    }
}

main {
    flex: 1 0 auto;
}

.ancla:before {
    display: block;
    content: " ";
    margin-top: -95px;
    height: 110px;
    visibility: hidden;
}

.carousel {
    margin: 0px;
    height: 450px;
}

.carousel .carousel-item {
    height: 400px;
    width: 300px;
    margin: 25px 0px;
}


h1 {
    margin-top: 15px;
    font-size: 35px;
    margin-bottom: 0;
}

#linea1 {
    border-color: black;
    border-width: 2px 0px 0px 0px;
    margin: 20px 0px 15px;
}

img {
    border-radius: 5px;
}

#linea2 {
    border-color: black;
    border-width: 2px 0px 0px 0px;
    margin: 15px 0px 20px;
}

h2 {
    margin: 0;
    font-size: 35px;
    text-align: center;
}

#info {
    text-align: center;
    margin-top: 5px;
}

.mapa {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0px;
    margin-top: 20px;
}

.mapa iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

footer {
    margin-top: 20px;
    width: 100%;

}

#ir-arriba {
    border-radius: 10px 10px 10px 10px;
    -moz-border-radius: 10px 10px 10px 10px;
    -webkit-border-radius: 10px 10px 10px 10px;
    -webkit-box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.75);
    box-shadow: 00px 0px 15px 0px rgba(0, 0, 0, 0.75);
    display: none;
    padding: 10px 15px 10px 15px;
    background: rgb(76, 86, 97);
    font-size: 10px;
    color: rgb(255, 255, 255);
    cursor: pointer;
    position: fixed;
    bottom: 20px;
    right: 20px;
}