* {
    box-sizing: border-box;
}

h1 {
    font-size: 3.5em;
}

h2 {
    font-size: 2.7em;
}

h3 {
    font-size: 2em;
}

p {
    font-size: 1.25em;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: rgb(245, 244, 244);
}

.container {
    max-width: 1400px;
    margin: auto;
}

.nombre {
    color: #37474F;
}

header {
    background-color: #E8F5E9;
}

header .logo {
    margin: auto;
    padding: 25px 30px;
    font-weight: bold;
    font-size: 1.5em;
    color: #4CAF50;
}

header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

header nav {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-bottom: 25px;
}

header a {
    text-decoration: none;
    padding: 5px 12px;
    font-weight: bold;
    color: #2E7D32;
}

header a:hover {
    color: #37474F;
}

#hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    min-height: 100vh;
    color: white;
    text-shadow: 2px 2px 4px #37474F;
    background-image: linear-gradient(0deg,
            rgba(0, 0, 0, 0.5),
            rgba(0, 0, 0, 0.5)),
        url("hero.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center bottom;
    margin-top: 35px;

}

#perfil .container {
    text-align: center;
    padding: 200px 12px;
}

#especialidad {
    background-color: #37474F;
    color: white;
    text-align: center;
}

#especialidad .container {
    padding: 50px 12px;
}

#especialidad p {
    display: none;
}

#especialidad .carta {
    background-position: center center;
    background-size: cover;
    padding: 50px;
    margin: 20px;
    border-radius: 12px;
}

.carta:first-child {
    background-image: linear-gradient(0deg,
            rgba(0, 0, 0, 0.5),
            rgba(0, 0, 0, 0.5)),
        url("nutricion.png");
    box-shadow: 2px 2px 1px rgba(20, 20, 20, 0.15);
}

.carta:nth-child(2) {
    background-image: linear-gradient(0deg,
            rgba(0, 0, 0, 0.5),
            rgba(0, 0, 0, 0.5)),
        url("deporte.png");
    box-shadow: 2px 2px 1px rgba(20, 20, 20, 0.15);
}

.carta:nth-child(3) {
    background-image: linear-gradient(0deg,
            rgba(0, 0, 0, 0.5),
            rgba(0, 0, 0, 0.5)),
        url("corporal.jpg");
    box-shadow: 2px 2px 1px rgba(20, 20, 20, 0.15);
}

#contacto {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    color: white;
    text-shadow: 2px 2px 4px #37474F;
    background-color: #E8F5E9;
    margin-top: 35px;
}

#contacto h2 {
    font-size: relative;
}

footer .container {
    color: rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: end;
}

@media (min-width:720px) {
    header .container {
        flex-direction: row;
        justify-content: space-between;
    }

    header nav {
        flex-direction: row;
        padding-bottom: 0;
        padding-right: 20px;
    }

    #perfil .container {
        display: flex;
        justify-content: center;
    }

    #perfil .texto {
        width: 50%;
        max-width: 500px;
        text-align: initial;
        padding: 0px 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: justify;
    }

    #perfil h2 {
        text-align: center;
    }

    #perfil .img-container {
        background-image:
            url("dr.olvera.jpg");
        background-size: cover;
        background-position: center center;
        border-radius: 50%;
        height: 400px;
        width: 300px;

    }

    #especialidad .caja {
        display: flex;
        justify-content: center;
    }

    #especialidad p {
        display: block;
        text-align: justify;
    }

    #especialidad .carta {
        padding: 15px;
    }

    #especialidad h3 {
        font-size: 1.3em;
    }

    #especialidad {
        box-shadow: 2px 2px 10px rgba(20, 20, 20, 0.35);
    }

}