:root{
    --color: #111111;
    --fuentePrincipal: 'Roboto', sans-serif;
    --colorFondo: rgb(250,250,250);
    --colorEnlace: rgb(0, 55, 107);
}

html{
    box-sizing: border-box;    
}

*, *:before, *:after{
    box-sizing: inherit;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.ttf');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Light.ttf');
    font-weight: 300;
    font-style: normal;
 }

body{
    color: var(--color);
    background-color: var(--colorFondo);
    font-family: var(--fuentePrincipal);
    font-weight: 400;
}

a{
    text-decoration: none;
    color: var(--colorEnlace);
}

img{
    max-width: 100%;
    display: block;
}

.contenedor{
    max-width: 975px;
    margin: 0 auto;
    padding: 0 20px; 
    background-color: rgb(250, 250, 250);          
}

.header{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 2rem;
}

.header h1{
    font-size: 28px;
    font-weight: 300;
    margin: 0;
}

.header p{
    margin: 0;
}

.logo-header{
    display: flex;
}

.logo-header figure{
    margin-left: auto;
    padding: 1rem;
    background-color: #ffffff;
    border: 1px solid rgb(177, 177, 177);
    border-radius: 50%;  
    display: flex;
    justify-content: center;
    align-items: center;  
}

.logo-header img{
    max-width: 100px;
    width: 100%;   
}

.titulo-header{
    display: flex;
    align-items: center;
}

.header .contenido-header{
    grid-column: 1/ 3; 
    grid-row: 2 / 3;
    margin: 0 auto;
}

@media (min-width: 768px){
    .header .contenido-header{
        grid-column: 2/ 3; 
        grid-row: 2 / 3;
        margin: 0;
    }
}

.contenido-header p{
    font-size: 12px;
}

.contenido-header a{
    font-size: 14px;
}

.aviso{
    margin: 0 auto 2rem;
    width: 100%;
    text-align: center;
}

.cards-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.card-item img{
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: center center;
    filter: grayscale(0);
    transition: 0.5s;
}

.card-item img:hover{
    -webkit-filter: grayscale(0%);
    filter: grayscale(80%);
}


.footer{
    background-color: var(--color);
    padding: 1rem;
}