@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    min-height: 100vh;
    display: grid;
    grid-template:
        "header header header" 75px
        "aside main side" 1fr
        "footer footer footer" 35px / 12% 1fr 12%;
    background-image: url(https://sfo3.digitaloceanspaces.com/e-fuente/e-fuentedevida.net/sistema_super_salones/super_salones/elrecurso/bg_5_mejora.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/*--------------------------HEADER--------------------------------*/

header {
    grid-area: header;
    background-color: #003077;
    padding: 0 30px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 290px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo .logolargo {
    width: 100%;
}

.logo .logoblanco {
    display: none;
}

.header_a {
    outline: none;
}

.header_btn {
    outline: none;
    border: 1px solid #fff;
    color: #fff;
    font-size: 17px;
    padding: 5px 10px;
    font-weight: bolder;
    border-radius: 8px;
    background-color: transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.header_btn:hover {
    background-color: #fff;
    color: #003077;
    transform: scale(1.07);
}

/*---------------------------MAIN--------------------------------*/

main {
    padding: 15px;

    grid-area: main;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 35px;
}

main h1 {
    text-align: center;
    color: #003077;
}

.container_edifi {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.container_a {
    text-decoration: none;
    outline: none;
}

.container_btn {
    width: 350px;
    height: 130px;
    font-size: 18px;
    font-weight: bolder;
    color: #003077;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0px 5px 15px -3px rgba(0, 0, 0, 0.315);
    border: none;
    outline: none;
    cursor: pointer;

    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: all 0.3s ease;
}

.container_btn:hover {
    color: #fff; /* color de fuente hover */
    transform: scale(1.06);
}

.container_btn::after {
    content: "";
    background: #003077; /* color de fondo hover */
    position: absolute;
    z-index: -1;
    padding: 16px 20px;
    display: block;
    left: -20%;
    right: -20%;
    top: 0;
    bottom: 0;
    transform: skewX(-45deg) scale(0, 1);
    transition: all 0.3s ease;
}

.container_btn:hover::after {
    transition: all 0.3s ease-out;
    transform: skewX(-45deg) scale(1, 1);
}



/*--------------------------FOOTER--------------------------------*/

footer {
    grid-area: footer;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 12px;
    background-color: #003077;
}

p span {
    color: #3dd2ff;
}

/*-------------------------MEDIAS QUERY---------------------------*/

@media screen and (max-width: 530px) {
    header {
        padding: 0 20px;
    }

    .logo {
        width: 200px;
    }

    .container_btn {
        width: 310px;
        height: 100px;
    }
}

@media screen and (max-width: 460px) {
    body {
        grid-template:
            "header header header" 75px
            "aside main side" 1fr
            "footer footer footer" 35px / 5% 1fr 5%;
    }

    header {
        padding: 0 15px;
    }

    .container_btn {
        width: 300px;
        height: 100px;
    }
}

@media screen and (max-width: 370px) {
    body {
        grid-template:
            "header header header" 75px
            "aside main side" 1fr
            "footer footer footer" 35px / 5% 1fr 5%;
    }
    
    .logo {
        width: 50px;
    }

    .logo .logolargo {
        display: none;
    }

    .logo .logoblanco {
        display: block;
        width: 100%;
    }

    .header_btn {
        font-size: 15px;
    }

    .container_btn {
        width: 260px;
        height: 100px;
    }
}

@media screen and (max-width: 330px) {
    body {
        grid-template:
            "header header header" 75px
            "aside main side" 1fr
            "footer footer footer" 35px / 2% 1fr 2%;
    }

    .container_btn {
        width: 260px;
        height: 100px;
        font-size: 15px;
    }
}

@media screen and (max-width: 310px) {
    .container_btn {
        width: 230px;
        height: 100px;
        font-size: 15px;
    }
}

@media screen and (max-width: 280px) {
    .container_btn {
        width: 210px;
        height: 90px;
        font-size: 14px;
    }

    footer {
        font-size: 10px;
    }
}