@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1272727;1,9..40,100..1272727&display=swap');

* {
    font-family: 'DM Sans', sans-serif;
    padding: 0;
    margin: 0;
}

body {
    background-color: #f2f2f2;
    cursor: crosshair;
}

.name_wrapper {
    display: flex;
    justify-content: end;
    flex-direction: column;
    align-items: end;
    background-image: url('../img/avatar.jpg');
    background-repeat: no-repeat;
    height: 400px;
    background-size: contain;
    width: 800px;
}



.name {
    background-image: url('../img/nombre_bg.png');
    background-size: cover;
    width: 100%;
    text-align: center;
    max-width: 500px;
    padding: 0px 10px;
}

.name>h1 {
    font-size: 4rem;
}


.name sup {
    font-size: 40px;
    color: #f6f5f1;
}

.subtitle {
    border-radius: 50px;
    width: 100%;
    max-width: 340px;
    background-color: #272727;
    padding: 5px 10px;
    text-align: center;
    margin: 20px;
}

.subtitle>span {
    letter-spacing: 10px;
    font-weight: 500;
    color: #f6f5f1;
}

nav {
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #272727;
}

nav>ul {
    display: flex;
}

li>a {
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 6px;
    color: #272727;
    padding:  5px 10px;
}

.nav_links>li > a:hover{

    color:#fff;
    background-color: #d599f1;
    border-radius: 50px;
    transition: background-color 1s;
}

li {
    list-style: none;
}

.group_wrapper {
    border: 1px solid #272727;
    background-color: #5464ed;
    border-radius: 50px;
    padding: 5px 15px;
}

.group_wrapper>a {
    color: #f2f1ec;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
}

nav>ul:first-child {
    justify-content: space-between;
    display: flex;
    width: 50%;
    text-transform: uppercase;
}


.main_wrapper {
    display: flex;
    justify-content: center;
    padding: 60px;
}

footer {
    background-color: #c7dddb;
    padding: 30px 50px;
    margin: 20px 50px;
    border-radius: 20px;
    text-align: center;
}

footer p {
    font-size: 15px;
    color: #004638;
}

.data_wrapper {
    background-color: #272727;
    margin: 20px 50px;
    border-radius: 20px;
    padding: 50px;
    color: #fff;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.data_col li {
    padding: 5px;
}

.data_title>strong {
    padding-bottom: 10px;
    font-size: 14px;
}


.footer_bttns>li>a {

    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 13px;

}

.footer_bttns>li {


    border-radius: 50px;
    padding: 5px 15px;
    margin: 10px 0px;


}

.footer_bttns>li:first-child {
    background-color: #dded59;
}

.footer_bttns>li:nth-child(2) {
    background-color: #d599f1;
}

.footer_bttns>li:nth-child(3) {
    background-color: #fc5b31;
}

.footer_bttns>li:nth-child(4) {
    background-color: #8db3ed;
}

.footer_bttns>li:nth-child(5) {
    background-color: #ff7494;
}

.member_card {
    display: flex;
}


.member_card:first-child {
    border: 1px solid #8db3ed;
    border-radius: 50px;
    max-width: 280px;
    width: 100%;
}

.member_card:nth-child(2) {
    border: 1px solid #dded59;
    border-radius: 50px;
    max-width: 280px;
    width: 100%;
}

.member_card:nth-child(3) {
    border: 1px solid #d599f1;
    border-radius: 50px;
    max-width: 280px;
    width: 100%;
}



.member_card>table {
    max-width: 280px;
    width: 100%;
}

.member_card>td:first-child {
    width: 100px;
}

.member_card:first-child .profile_img {
    display: block;
    border-radius: 48px 0px 0px 48px;
    border-right: 1px solid #8db3ed;
    width: 100px;
}

.member_card:nth-child(2) .profile_img {
    display: block;
    border-radius: 48px 0px 0px 48px;
    border-right: 1px solid #dded59;
    width: 100px;

}

.member_card:nth-child(3) .profile_img {
    display: block;
    border-radius: 48px 0px 0px 48px;
    border-right: 1px solid #d599f1;
    width: 100px;

}


.cell_img {
    width: 100px;
}

.member_card {
    margin: 10px;
}


.member_card>td:nth-child(2) {
    width: 100%;
}

.cell_name {
    width: 100%;
    padding: 0px 20px;
    color: #272727;
    font-weight: 500;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;

}

.cell_name>p {
    padding-bottom: 10px;
}

.cell_name>a {
    padding: 3px 10px;
    border-radius: 20px;
    color: #272727;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    width: 80%;
    text-align: center;
}

.member_card:first-child .cell_name>a {
    background-color: #8db3ed;
}

.member_card:nth-child(2) .cell_name>a {
    background-color: #dded59;
}

.member_card:nth-child(3) .cell_name>a {
    background-color: #d599f1;
}

.integrantes>h1 {
    text-align: center;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.cards_integrantes {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    padding: 50px;
    flex-wrap: wrap;
}


.card_nivel {
    border: 2px solid #f0d0ff;
    border-radius: 30px;
    width: 200px;
    padding: 20px;
    height: 350px;
}

.card_nivel ul>li {
    padding: 10px;
    border-bottom: 1px solid #f0d0ff;
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    color: #272727;
}

.card_nivel>h4 {
    padding: 10px;
    font-size: 30px;
    font-weight: 1000;

}

.materias {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
    padding: 60px;

}

.cards_wrapper {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    max-width: 1500px;
    flex-wrap: wrap;
    margin: 20px;
}


@media screen and (max-width: 900px) {
    nav {
        flex-direction: column;
    }

    nav>ul:first-child {
        width: 100%;
        padding-top: 30px;
    }

    nav>ul:nth-child(2) {
        padding-top: 20px;
    }

    .main_wrapper {
        padding: 20px;
    }

    .name_wrapper {
        background-position: top center;
        height: 80vh;
        align-items: center;
        width: 500px;
    }

    .name {
        padding: 0px;
    }

    .materias {
        padding: 20px;
    }

    .card_nivel {
        margin: 15px;
    }

    .data_wrapper {
        justify-content: center;
        text-align: center;
    }
    .data_col:nth-child(2){
        padding-top:20px;
    }
    .data_col:nth-child(3) {
        width: 100%;
        max-width: 215px;
        padding-top: 20px;
    }
}

@media screen and (max-width: 600px) {


    nav>ul:first-child {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    nav>ul:first-child>li {
        padding: 5px;
    }


    nav>ul:nth-child(2) {
        padding-top: 20px;
    }
}