@import url("AmaticSC_Regular/stylesheet.css");
/*Portada*/


.blog-container-cover{
    width: 100%;
    height: 500px;
    position: relative;
    margin-top: 80px;
    background-color: #FFFFFF;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.blog-container-cover:before{
    content: '';
    width: 100%;
    height: 100%;
    background: rgba rgba(255,255,255,1.00);
    position: absolute;
    top: 20;
    left: 0;
}

.container-info-cover{
    max-width: 800px;
    height: 500px;
    margin: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.container-info-cover h1{
	font-size: 52px;
	font-weight: 400;
	color: rgba(255,91,91,1);
	margin-bottom: 20px;
	font-family: "AmaticSC Regular";
	font-style: normal;
}

.container-info-cover p{
    color: rgba(255,91,91,1);
    font-size: 38px;
    font-weight: 400;
    font-family: "AmaticSC Regular";
    font-style: normal;
}

/*Contenedor de categorias*/

input[type="radio"]{
    display: none;
}

.container-category{
    width: 100%;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}

.container-category label{
    padding: 6px 40px;
    margin: 10px;
    font-family: "AmaticSC Regular";
    font-size: 26px;
    background: #FFFFFF;
    color: #787878;
    border-radius: 5px;
    cursor: pointer;
}

.container-category label:hover{
    opacity: 0.8;
    font-family: "AmaticSC Regular";
    font-size: 26px;
    background: #e2e2e2;
    color: #787878;
    font-weight: 400;
}



/*Post - Productos*/

.container-post{
    max-width: 1200px;
    margin: auto;
}

.posts{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;

    margin-top: 20px;
    padding: 20px;
}

.posts .post{
    background: #fff;
    box-shadow: 0 0 20px -20px black;
    border-radius: 6px;
    overflow: hidden;
    padding-bottom: 20px;
}

.post .ctn-img{
    width: 100%;
}

.post .ctn-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post h2{
    font-size: 18px;
    margin-top: 20px;
    padding: 0px 20px;
}

.post span{
    display: block;
    margin-top: 10px;
    padding: 0px 20px;
}

.ctn-tag{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    margin-left: 16px;
    margin-top: 10px;
}

.ctn-tag li{
    list-style: none;
    font-size: 14px;
    margin: 4px;
    padding: 6px 10px;
    background: #e8e8e8;
    cursor: default;
}


.post button{
    margin-top: 20px;
    margin-left: 20px;
    padding: 10px 10px;
	font-family: "AmaticSC Regular";
    font-size: 32px;
    background: #FFFFFF;
    color: #787878;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.post button:hover{
    opacity: 0.9;
}

.post hr{
    margin-top: 10px;
	margin-right: 20px;
	margin-left: 20px;
    border: none;
    height: 2px;
    background: #c0c0c07a;
}


/*sistema de filtrado*/

[value="TODOS"]:checked ~ .posts .post[data-category]{
    display: block;
}

[value="Alimentación"]:checked ~ .posts .post:not([data-category~="Alimentación"]),
[value="Aceite de oliva"]:checked ~ .posts .post:not([data-category~="Aceite de oliva"]),
[value="Aceite de girasol"]:checked ~ .posts .post:not([data-category~="Aceite de girasol"]),
[value="Aceitunas"]:checked ~ .posts .post:not([data-category~="Aceitunas"]),
[value="Huevos"]:checked ~ .posts .post:not([data-category~="Huevos"]),
[value="Leche"]:checked ~ .posts .post:not([data-category~="Leche"]),
[value="Leche condensada"]:checked ~ .posts .post:not([data-category~="Leche condensada"]),
[value="Mantequilla"]:checked ~ .posts .post:not([data-category~="Mantequilla"]),
[value="Margarina"]:checked ~ .posts .post:not([data-category~="Margarina"]),
[value="Pizzas"]:checked ~ .posts .post:not([data-category~="Pizzas"]),
[value="Quesos"]:checked ~ .posts .post:not([data-category~="Quesos"]),
[value="Queso de untar"]:checked ~ .posts .post:not([data-category~="Queso de untar"]),
[value="Queso freso"]:checked ~ .posts .post:not([data-category~="Queso fresco"]),
[value="Sal"]:checked ~ .posts .post:not([data-category~="Sal"]),
[value="Vinagre"]:checked ~ .posts .post:not([data-category~="Vinagre"]),
[value="Yogures"]:checked ~ .posts .post:not([data-category~="Yogures"]),
[value="Bebé"]:checked ~ .posts .post:not([data-category~="Bebé"]),
[value="Bebidas"]:checked ~ .posts .post:not([data-category~="Bebidas"]),
[value="Higiene"]:checked ~ .posts .post:not([data-category~="Higiene"]),
[value="Hogar"]:checked ~ .posts .post:not([data-category~="Hogar"]),
[value="Mascotas"]:checked ~ .posts .post:not([data-category~="Mascotas"]){
    display: none;
}

[value="TODOS"]:checked ~ .container-category [for="TODOS"],
[value="Alimentación"]:checked ~ .container-category [for="Alimentación"],
[value="Aceite de oliva"]:checked ~ .container-category [for="Aceite de oliva"],
[value="Aceite de girasol"]:checked ~ .container-category [for="Aceite de girasol"],
[value="Aceitunas"]:checked ~ .container-category [for="Aceitunas"],
[value="Huevos"]:checked ~ .container-category [for="Huevos"],
[value="Leche"]:checked ~ .container-category [for="Leche"],
[value="Leche condensada"]:checked ~ .container-category [for="Leche condensada"],
[value="Mantequilla"]:checked ~ .container-category [for="Mantequilla"],
[value="Margarina"]:checked ~ .container-category [for="Margarina"],
[value="Pizzas"]:checked ~ .container-category [for="Pizzas"],
[value="Quesos"]:checked ~ .container-category [for="Quesos"],
[value="Queso de untar"]:checked ~ .container-category [for="Queso de untar"],
[value="Queso fresco"]:checked ~ .container-category [for="Queso fresco"],
[value="Sal"]:checked ~ .container-category [for="Sal"],
[value="Vinagre"]:checked ~ .container-category [for="Vinagre"],
[value="Yogures"]:checked ~ .container-category [for="Yogures"],
[value="Bebé"]:checked ~ .container-category [for="Bebé"],
[value="Bebidas"]:checked ~ .container-category [for="Bebidas"],
[value="Higiene"]:checked ~ .container-category [for="Higiene"],
[value="Hogar"]:checked ~ .container-category [for="Hogar"],
[value="Mascotas"]:checked ~ .container-category [for="Mascotas"]{
    background: #e2e2e2;
    color: #787878;
}

@media screen and (max-width: 2400px){
    .posts{
        grid-template-columns: repeat(1, 1fr);
    }
}

@media screen and (max-width: 900px){
    .posts{
        grid-template-columns: repeat(1, 1fr);
    }
}

@media screen and (max-width: 580px){
    .posts{
        grid-template-columns: repeat(1, 1fr);
    }
}
