body article{
    padding: 0px;
}

.relative{
    position: relative;
    height: 460px;
}

.relative img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
    /* opacity: 0.7; */
    transition: opacity 0.2s ease-in-out;
    object-position: 80% 50%;
}

.relative img:hover{
    opacity: 0.8;
}

.absolute{
    position: absolute;
    color:white;
    bottom: 15%;
    /* background-color: black; */
    /* background-color: rgba(0,0,0,.6); */
    background-color: rgba(68,88,120,.7);
    /* rgb(148, 3, 21) */
    /* opacity: 0.5; */
    width: 100%;
    padding: 10px;
    font-size: 0.8em;
    text-align: justify;
}

.absolute p{
    opacity: 1;
}

.absolute p:first-child{
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 3em;
    /* color: #940315; */
}

.absolute p:nth-child(2n){
    font-size: 1.2em;
    font-weight: bold;
}

footer .fas{
    bottom: 0px;
}

footer .footer-index{
    /* display: block; */
    display: grid;
    /* grid-template-columns: repeat(2, 1fr); */
    grid-template-columns: 25% 1fr;
    align-items: center;
    justify-items: center;
    font-size: 0.8em;
}

footer .footer-index div:nth-child(3n){
    grid-column: 1 / span 2;
    grid-row: 2 / span 1;
}

footer .footer-index p{
    text-align: center;
}

footer .footer-index .logos{
    height: 30px;
}
    
footer .footer-index .logos img{
    height: 100%;
    padding: 0 2px;
    color: white;
    font-size: 1.2em;
}

footer .footer-index .logos{
    -webkit-filter: invert(1);
    filter: invert(1);
}

footer .footer-index .contacto p{
    display: inline-block;
    padding: 0 5px;
}

@media (min-width: 576px){
    body article{
        min-height: 465px;
    }
    .relative{
        height: 465px;
    }
    .absolute{
        padding: 30px;
        font-size: 1.2em;
    }

    footer .fas{
        bottom: 1px;
    }

    footer .footer-index{
        font-size: 1em;
        grid-template-columns: repeat(2, 1fr);
    }

    footer .footer-index .logos{
        height: 60px;
    }

    footer .footer-index .logos img{
        padding: 0 10px;
    }
}

@media (min-width:768px){
    footer .footer-index{
        /* padding: 0 30px; */
        width: 80%;
        margin: 5px auto;
        grid-template-columns: repeat(3, 1fr);
        /* grid-template-rows: repeat(1, 1fr); */
    }

    footer .footer-index div:nth-child(3n){
        grid-column: 3;
        grid-row: 1;
    }

    footer .footer-index .contacto p{
        display: block;
    }
}