
/*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-size: 20px;
    background: #f1f1f1;
    border-radius: 5px;
    cursor: pointer;
}

.container-category label:hover{
    opacity: 0.8;
    background: #adc762;
    scale: 1.08;
}



/*Post - Publicaciones*/

.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: #ffffff;
    box-shadow: 0 0 20px -8px black;
    border-radius: 10px;
    overflow: hidden;
    padding-bottom: 20px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

.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;
}





/*sistema de filtrado
*/

[value="TODOS"]:checked ~ .posts .post[data-category]{
    display: block;
}

[value="HTML"]:checked ~ .posts .post:not([data-category~="HTML"]),
[value="CB"]:checked ~ .posts .post:not([data-category~="CB"]),
[value="HB"]:checked ~ .posts .post:not([data-category~="HB"]),
[value="C2P"]:checked ~ .posts .post:not([data-category~="C2P"]),
[value="C4P"]:checked ~ .posts .post:not([data-category~="C4P"]),
[value="C6P"]:checked ~ .posts .post:not([data-category~="C6P"]),
[value="C8P"]:checked ~ .posts .post:not([data-category~="C8P"]),

[value="H2P"]:checked ~ .posts .post:not([data-category~="H2P"]),
[value="H4P"]:checked ~ .posts .post:not([data-category~="H4P"]),
[value="H6P"]:checked ~ .posts .post:not([data-category~="H6P"]),
[value="H8P"]:checked ~ .posts .post:not([data-category~="H8P"]){
    display: none;
}

[value="TODOS"]:checked ~ .container-category [for="TODOS"],
[value="CB"]:checked ~ .container-category [for="CB"],
[value="HB"]:checked ~ .container-category [for="HB"],
[value="C2P"]:checked ~ .container-category [for="C2P"],
[value="C4P"]:checked ~ .container-category [for="C4P"],
[value="C6P"]:checked ~ .container-category [for="C6P"],
[value="C8P"]:checked ~ .container-category [for="C8P"],

[value="H2P"]:checked ~ .container-category [for="H2P"],
[value="H4P"]:checked ~ .container-category [for="H4P"],
[value="H6P"]:checked ~ .container-category [for="H6P"],
[value="H8P"]:checked ~ .container-category [for="H8P"]{
    background: #cb6e35;
    color: #fff;
}
@media screen and (max-width: 1200px){
    .posts{
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 900px){
    .posts{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 580px){
    .posts{
        grid-template-columns: repeat(1, 1fr);
    }
}


#ClasH,
#ClasCab {
    display: none;
}

.activo {
    background-color: aqua; /* Cambia 'color_que_quieras' al color que desees */
}