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;
}

/* MENU */

.menu {
    width: 100%;
    height: 60px;
    display: grid;
    align-items: center;
    grid-template-columns: repeat(2, 50%);
    background-color: #7c0013;
}

.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;
}

/* 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);
    }
}

/* BANNER */

.MainBanner {
    align-items: center;
    background: url(/img/Portada-Prueba.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%;
    }
/* DRIVE LINKS */

.drive-links {
    display: grid;
    width: 100%;
    height: 100%;
    grid-template-columns: 65% auto;
    justify-content: center;
    min-height: 330px;
    overflow: hidden;
    padding: 10px;
    position: relative;
    gap: 50px;
}

.anuncio-container {
    display: grid;
    justify-self: start;
    max-width: auto;
}

.img-anuncio {
    align-items: center;
    display: grid;
    justify-content: space-evenly;
    width: 100%;
}

.drive-container {
    display: grid;
    grid-template-rows: auto;
    gap: 10px;
    align-content: center;
}

.img-drive {
    display: flex;
    width: 300px;
    height: 120px;
    align-self: center;
    justify-self: center;
}

/* PLATAFORMA VIRTUAL */

.plataforma-container {
    display: grid;
    width: 95%;
    height: 700px;
    grid-template-columns: 40% auto;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
    min-height: 330px;
    overflow: hidden;
    padding: 10px;
    position: relative;
}

.txt-plataforma {
    display: grid;
    width: 100%;
    align-self: center;
    text-align: center;
}

.h1 {
    display: grid;
    justify-self: center;
}

.p-plataforma {
    width: 100%;
    justify-self: center;
    font-size: 17px;
}

.plataforma-img .plataforma-virtual {
    display: flex;
    align-self: center;
    justify-self: center;
    width: 90%;
    margin-left: 20px;
}

/* BOTONES */
.btn {
    margin: 0 0 0 100px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #7c0013;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

    .btn: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;
    }

    .btn:hover:before {
        width: 100%;
    }

    .btn:active {
        transform: scale(0.95);
    }

.btn2 {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #7c0013;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

    .btn2: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;
    }

    .btn2:hover:before {
        width: 100%;
    }

    .btn2:active {
        transform: scale(0.95);
    }

.btn3 {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #258319;
    color: #fff;
    border: none;
    font-size: 25px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 100%;
    justify-content: center;
    height: 50px;
    display: grid;
    grid-template-columns: 30% auto;
}

    .btn3: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;
    }

    .btn3:hover:before {
        width: 100%;
    }

    .btn3:active {
        transform: scale(0.95);
    }

.icon-b {
    display: flex;
    width: 30px;
}

.icon-b2 {
    display: none;
}

/* CARDS */

.grid-cards-g {
    padding: 10px;
}

.cards-container {
    display: grid;
    width: 100%;
    gap: 10px;
    justify-content: center;
    grid-template-columns: repeat(3, 400px);
    grid-template-rows: repeat(2, 500px);
    min-height: 330px;
    padding: 10px;
    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-child4 {
    grid-column: 1/2;
    grid-row: 2/2;
}

.card-child5 {
    grid-column: 2/3;
    grid-row: 2/2;
}

.card {
    display: grid;
    justify-self: center;
    justify-content: center;
    align-self: center;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    width: 350px;
    height: 450px;
    border-radius: 5%;
}

    .card:hover {
        box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    }

.img-card {
    border-radius: 5%;
}

.container {
    padding: 2px 16px;
}

/* FOOTER */

footer {
    width: 100%;
    height: auto;
    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) {
    .video {
        display: flex;
        width: 624px;
        height: 350px;
        margin-top: -100px;
        justify-self: center;
    }

    /*DRIVE*/

    .drive-links {
        gap: 30px;
    }

    .img-drive {
        justify-content: center;
        align-content: center;
    }

    .driveimg {
        width: 80%;
        height: 80%;
    }

    /*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) {
    .video {
        display: flex;
        width: 355px;
        height: 200px;
        justify-self: center;
        margin-top: -100px;
    }

    .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: #7c0013;
        left: -100%;
        margin-top: -15px;
        text-align: center;
        transition: all 0.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;
    }

    /*DRIVE*/

    .drive-links {
        gap: 30px;
    }

    .img-drive {
        justify-content: center;
    }

    .driveimg {
        width: 80%;
        height: 80%;
    }

    /*PLATAFORMA*/

    .plataforma-container {
        grid-template-columns: 1fr;
        grid-template-rows: 40% auto;
        justify-content: center;
        width: auto;
        height: 500px;
    }

    /*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: 100%;
        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: #7c0013;
        left: -130%;
        margin-top: -15px;
        text-align: center;
        transition: all 0.5s;
        z-index: 6;
    }

    .MainBanner {
        height: 370px;
    }

    .h1-banner {
        color: #ffffff;
        text-align: center;
        font-size: 24px;
    }

    .p-banner {
        color: #ffffff;
        text-align: center;
        font-size: 18px;
    }

    .btn3 {
        font-size: 16px;
        grid-template-columns: 55% auto;
    }

    .icon-b {
        display: none;
    }

    .icon-b2 {
        display: flex;
        width: 20px;
    }

    @media (max-width: 480px) {
        .nav-menu {
            width: 91%;
        }
    }
}


/* ESTILO MEJORADO CON ROJO OSCURO */
.btn:hover,
.btn2:hover {
    background-color: #5e0010;
}
