.grid-productos{
    padding: 48px 20px;
    background-color: var(--black);
    color: var(--white);
}
.grid-productos-grid{
    display: flex;
    /*grid-template-columns: repeat(4, minmax(auto, 1fr));
    grid-template-columns: repeat(auto-fill, minmax(362px, 1fr));*/
    flex-wrap: wrap;
    grid-gap: 20px;
    max-width: var(--acotado-grande);
    margin: 0 auto;
}
.contenido-producto {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 320px;
    max-width: 415px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    border: 1px solid var(--black);
}
.contenido-producto:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black);
    opacity: 20%;
}
.contenido-producto .h4:hover {
    border-bottom: 2px solid var(--red);
    width: fit-content;
}
.grid-productos-grid a {
    color: var(--white);
    position: relative;
    width: calc((100% - 60px) / 4);
}
.grid-productos-contenedor h2 {
    max-width: var(--acotado-grande);
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 24px;
}
.titulo-producto {
    color: var(--white);
    z-index: 1;
    font-size: 24px;
    font-weight: 500;
    line-height: 30px;
    max-width: 359px;
}
/* Responsive */
@media only screen and (max-width: 768px) {
    .grid-productos {
        padding: 24px 16px;
    }
    .contenido-producto {
        min-height: 220px;
        max-width: 100%;
    }
    .grid-productos-contenedor {
        padding-top: 0;
    }
    .grid-productos-grid a:not(.grid-productos-grid a:last-child) {
        display: block;
        max-width: 100%;
    }
    .grid-productos-grid {
        grid-template-columns: 1fr;
    }
    .grid-productos-grid a {
        min-width: 100%;
    }
    .contenido-producto {
        background-size: cover;
    }
}
@media only screen and (min-width: 768px) and (max-width: 994px) {
    .grid-productos-grid a {
        min-width: calc((100% - 50px) / 3);
    }

}

