*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    max-width: 500px;
    margin: auto;
}

header, section, div{
    background-color: #A2BAC1;
}

.cabecera{
    position: relative;
    padding: 50px;
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.logo{
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    height: 200px;
    width: 100%;
    background-color: #B0F8FF;
    clip-path: polygon(100% 0, 100% 80%, 50% 100%, 0 80%, 0 0);
}

.logo img{
    height: 100px;
}    

.foto{
    position: absolute;
    /* background-color: #B0F8FF; */
    border-radius: 100px;
    top: 148px;
}

.foto img{
    background-color: #B0F8FF;
    height: 130px;
    width: auto;
    border-radius: 100px;
}

.titulares{
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1{
    font-family: "Oswald", sans-serif;
    color: #004E6D;
    font-size: 1.5em;
    text-align: center;
}

h2{
    font-family: "PT Sans", sans-serif;
    color: #5A5958;
    font-size: 1.4em;
    font-weight: 700;
}

p{
    font-family: "PT Sans", sans-serif; 
    font-size: 1em;
    text-align: justify;
    color: black;
    padding-top: 20px;
    line-height: 18px;
}

.icon-prin{
    display: flex;
    justify-content: center;
}

.fb, .im{
    margin: 0 20px;
    height: 50px;
    width: auto;
    transition: 0.3s;
}

.fb:hover, .im:hover{
    height: 54px;
    transition: 0.3s;
}

.grid{
    margin-top: 20px;
    height: 200px;
    width: 90%;
    display: grid;
    align-items: center;
    justify-items: center;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    grid-gap: 7px;
}

.container-grid{
    display: flex;
    justify-content: center;
    width: 100%;
    height: 232px;
}

.grid div{
    background-color: #484848;
    border-radius: 15px;
    border: 3px solid #7e7e7e;
    align-items: center;
    width: 98%;
    height: 98%;
    transition: 0.3s;
    overflow: hidden;
}

.grid div:hover{
    width: 100%;
    height: 100%;
    transition: 0.3s;
}

.grid div a{
    margin-left: 3%;
    font-family: "PT Sans", sans-serif;
    font-weight: 600;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    
}

.grid div img{
    margin-left: 3%;
    width: 44px;
    height: 44px;
}

.caja-1{
    display: flex;
    justify-self: flex-start;
}

.caja-2{
    display: flex;
    justify-self: flex-start;
}

.caja-3{
    display: flex;
    justify-self: flex-start;
}

.caja-4{
    display: flex;
    justify-self: flex-start;
}

.caja-5{
    grid-row: 3;
    grid-column: -3/ -1;
    display: flex;
    justify-content: center;
    padding-right: 30px;
}

