body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Merriweather', serif;
    font-family: 'Montserrat', sans-serif;
}

.grid-container {
    max-width: 90%;
    margin: auto;
}

.grid-container2 {
    max-width: 100%;
    margin: auto;
}

a {
    text-decoration: none;
    cursor: pointer;
}

/* PANTALLA CARGA */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* MENU */

.menu {
    width: 100%;
    height: 60px;
    display: grid;
    align-items: center;
    grid-template-columns: repeat(2, 50%);
    background-color: #193783;
}

.logo-menu {
    display: grid;
    grid-column: 1/2;
    padding: 10px 50px;
    width: 30px;
}


.nav {
    display: grid;
    grid-column: 2/2;
    align-self: center;
    justify-self: end;
}

nav ul li {
    display: inline-block;
    margin: 0 5px;
}

.nav-menu {
    width: 600px;
    list-style: none;
}

.nav-menu a {
    font-size: 15px;
    margin-right: 20px;
    color: #ffffff;
}

.nav-menu li a:hover {
    color: #ffcc00;
}

.checkbtn {
    font-size: 30px;
    color: #fff;
    float: right;
    line-height: 80px;
    margin-right: 40px;
    cursor: pointer;
    display: none;
}

#check {
    display: none;
}


/* BANNER */

.MainBanner {
    align-items: center;
    background: url(/img/Portadas/Portada.jpg) 50% no-repeat;
    background-size: cover;
    display: flex;
    height: 550px;
    justify-content: flex-start;
    max-height: 600px;
    overflow: hidden;
    width: 100%;
}

.MainBanner .content {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    width: 50%;
}

.h1-banner {
    display: none;
    color: #ffffff;
    text-align: center;
    font-size: 34px;
}

.p-banner {
    display: none;
    color: #ffffff;
    text-align: center;
    font-size: 20px;
}

.btn3 {
    display: none;
}

/* CARDS */

.cards-container {
    display: grid;
    width: 100%;
    justify-content: center;
    grid-template-columns: repeat(3, 400px);
    min-height: 330px;
    padding: 50px;
    position: relative;
    gap: 50px;
}

.card-child1 {
    grid-column: 1/2;
    grid-row: 1/2;
}

.card-child2 {
    grid-column: 2/3;
    grid-row: 1/2;
}

.card-child3 {
    grid-column: 3/3;
    grid-row: 1/2;
}

.card {
    display: grid;
    justify-self: center;
    align-self: center;
    transition: 0.3s;
    width: 350px;
    height: 400px;
    border-radius: 5%;
}

.card:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.4);
    transform: scale(1.03);
}

.img-card {
    border-radius: 5%;
}

.container {
    padding: 2px 16px;
}

.card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    transition: width 0.3s ease-in-out;
    z-index: -1;
}

.card:hover:before {
    width: 100%;
}

.card:active {
    transform: scale(0.95);
}

/* FOOTER */

footer {
    width: 100%;
    display: grid;
    justify-content: center;
    grid-template-rows: 1fr 1fr;
    margin-top: 100px;
}

.footer-container {
    display: grid;
    grid-row: 50% 50%;
    justify-items: center;
}

.logo-footer {
    display: flex;
    align-items: center;
    width: 40px;

}


.redes-container {
    display: grid;
    grid-template-columns: repeat(3, 30px);
    gap: 40px;
    height: 40px;
    margin: auto;
}

.face {
    display: flex;
    width: 100%;
    grid-column: 1/2;
}

.insta {
    display: flex;
    width: 100%;
    grid-column: 2/3;
}

.whats {
    display: flex;
    width: 100%;
    grid-column: 3/3;
}

@media (max-width: 1280px) {

    /*CARDS*/

    .cards-container {
        grid-template-columns: auto;
        grid-template-rows: auto;
        width: auto;
    }

    .card-child1 {
        grid-column: 1/2;
        grid-row: 1/1;
    }

    .card-child2 {
        grid-column: 2/2;
        grid-row: 1/1;
    }

    .card-child3 {
        grid-column: 1/2;
        grid-row: 2/2;
    }

    .card-child4 {
        grid-column: 2/2;
        grid-row: 2/2;
    }

    .card-child5 {
        grid-column: 1/2;
        grid-row: 3/3;
    }



}

@media (max-width: 980px) {

    .nav-menu {
        width: 350px;
        height: 100vh;
        list-style: none;
        justify-content: center;
        align-items: center;
        z-index: 4;
    }

    .fas {
        z-index: 6;
    }

    .checkbtn {
        display: grid;
        justify-self: end;
        align-self: center;
    }

    ul {
        position: fixed;
        justify-self: center;
        width: 100%;
        height: 100vh;
        background: #193783;
        left: -100%;
        margin-top: -15px;
        text-align: center;
        transition: all .5s;
        z-index: 6;
    }

    nav ul li {
        display: block;
        margin: 50px 0;
        line-height: 30px;
    }

    nav ul li a {
        font-size: 20px;
    }

    li a:hover,
    li a.active {
        background: none;
        color: #ffffff;
    }

    #check:checked~ul {
        left: 0;
    }

    .grid-container {
        grid-template-columns: 100%;
        grid-template-rows: 2fr;
    }

    /*BANNER */

    .MainBanner {
        background: url(/img/Portadas/Portada.jpg) 50% no-repeat;
        background-size: cover;
        justify-content: center;
    }

    /*CARDS*/

    .cards-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        width: auto;
    }

    .card-child1 {
        grid-column: 1/2;
        grid-row: 1/2;
    }

    .card-child2 {
        grid-column: 1/2;
        grid-row: 2/3;
    }

    .card-child3 {
        grid-column: 1/2;
        grid-row: 3/4;
    }

    .card-child4 {
        grid-column: 1/2;
        grid-row: 4/5;
    }

    .card-child5 {
        grid-column: 1/2;
        grid-row: 5/5;
    }

}

@media (max-width: 750px) {

    .nav-menu {
        width: 90.5%;
        height: 100vh;
        list-style: none;
        justify-content: center;
        align-items: center;
        z-index: 4;
    }

    ul {
        position: fixed;
        justify-self: center;
        width: 100%;
        height: 100vh;
        background: #193783;
        left: -130%;
        margin-top: -15px;
        text-align: center;
        transition: all .5s;
        z-index: 6;
    }

    .MainBanner {
        background: url(/img/Portadas/Portada.jpg) 50% no-repeat;
        background-size: cover;
        justify-content: center;
    }

    .MainBanner {
        height: 370px;
    }

    .h1-banner {
        color: #ffffff;
        text-align: center;
        font-size: 24px;
    }

    .p-banner {
        color: #ffffff;
        text-align: center;
        font-size: 18px;
    }

}