/*Portada*/


.blog-container-cover{
    width: 100%;
    height: 90vh;
    position: relative;
    margin-top: 0;
    background-image: url(../img/IMG_0797.gif);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-bottom-right-radius:10em;
}

.blog-container-cover:before{
    content: '';
    width: 100%;
    height: 100%;
    background:  #91298c3d;
    position: absolute;
    top: 0;
    left: 0;
    border-bottom-right-radius:10em;
}

.container-info-cover{
    max-width: 800px;
    height: 100%;
    margin: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items:center;
    position: relative;
    z-index: 1;
    padding: 20px;
}

.container-info-cover h1{
    font-size: 60px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 40px;
}

.search-container {
    position: relative;
    width: 600px;
    margin: 0 auto 30px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container-info-cover .search-form {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    position: relative;
}

.container-info-cover .search-input {
    width: 100%;
    padding: 20px 60px 20px 30px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 18px;
    outline: none;
    transition: all 0.3s ease;
    position: relative;
}

.container-info-cover .search-input:focus {
    border-color: #91298c;
    box-shadow: 0 4px 20px rgba(145, 41, 140, 0.2);
    background: #ffffff;
}

.container-info-cover .search-input::placeholder {
    color: #666;
    font-style: italic;
}

.container-info-cover .search-form::after {
    content: '\f002';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #91298c;
    font-size: 20px;
    pointer-events: none;
}

#box-search {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 0 0 30px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 3;
    display: none;
    max-height: 400px;
    overflow-y: auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(145, 41, 140, 0.1);
}

#box-search li {
    list-style: none;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(145, 41, 140, 0.1);
    transition: all 0.3s ease;
}

#box-search li:last-child {
    border-bottom: none;
}

#box-search li a {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

#box-search li a i {
    margin-right: 12px;
    color: #91298c;
    font-size: 14px;
    opacity: 0.8;
}

#box-search li:hover {
    background: rgba(145, 41, 140, 0.05);
}

#box-search li a:hover {
    color: #91298c;
}

#box-search li a:hover i {
    opacity: 1;
}

/* Estilizar la barra de scroll del predictivo */
#box-search::-webkit-scrollbar {
    width: 8px;
}

#box-search::-webkit-scrollbar-track {
    background: rgba(145, 41, 140, 0.05);
    border-radius: 4px;
}

#box-search::-webkit-scrollbar-thumb {
    background: rgba(145, 41, 140, 0.2);
    border-radius: 4px;
}

#box-search::-webkit-scrollbar-thumb:hover {
    background: rgba(145, 41, 140, 0.3);
}

#cover-ctn-search {
    display: none;
}

.container-info-cover p{
    color: #fff;
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 30px;
}

/*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: #e2e2e2;
    border-radius: 5px;
    cursor: pointer;
}

.container-category label:hover{
    opacity: 0.8;
}



/*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: #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 50px;
    font-size: 16px;
    background: #46a2fd;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.post button:hover{
    opacity: 0.9;
}


/*sistema de filtrado*/

[value="TODOS"]:checked ~ .posts .post[data-category]{
    display: block;
}

[value="SUBLIMACION"]:checked ~ .posts .post:not([data-category~="SUBLIMACION"]),
[value="DTF"]:checked ~ .posts .post:not([data-category~="DTF"]),
[value="VINILO"]:checked ~ .posts .post:not([data-category~="VINILO"]),
[value="DISEÑO"]:checked ~ .posts .post:not([data-category~="DISEÑO"]),
[value="PRODUCTOS"]:checked ~ .posts .post:not([data-category~="PRODUCTOS"]),
[value="PREGUNTASFRECUENTES"]:checked ~ .posts .post:not([data-category~="PREGUNTASFRECUENTES"]),
[value="IDEAS"]:checked ~ .posts .post:not([data-category~="IDEAS"]){
    display: none;
}

[value="TODOS"]:checked ~ .container-category [for="TODOS"],
[value="SUBLIMACION"]:checked ~ .container-category [for="SUBLIMACION"],
[value="DTF"]:checked ~ .container-category [for="DTF"],
[value="VINILO"]:checked ~ .container-category [for="VINILO"],
[value="DISEÑO"]:checked ~ .container-category [for="DISEÑO"],
[value="PRODUCTOS"]:checked ~ .container-category [for="PRODUCTOS"],
[value="PREGUNTASFRECUENTES"]:checked ~ .container-category [for="PREGUNTASFRECUENTES"],
[value="IDEAS"]:checked ~ .container-category [for="IDEAS"]{
    background: #91298cec;
    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);
    }
    .blog-container-cover{
        height: 70vh;
        border-bottom-right-radius:3em;
    }
    .blog-container-cover:before{
        border-bottom-right-radius:3em;
    }
    .container-info-cover h1 {
        font-size: 40px;
        margin-bottom: 30px;
    }
    .search-container {
        width: 90%;
        max-width: 600px;
    }
    .container-info-cover .search-input {
        padding: 15px 50px 15px 20px;
        font-size: 16px;
    }
    .container-info-cover .search-form::after {
        right: 20px;
        font-size: 18px;
    }
    #box-search {
        width: 90%;
        max-width: 600px;
    }
}

@media screen and (max-width: 580px){
    .posts{
        grid-template-columns: repeat(1, 1fr);
    }
    .container-info-cover h1 {
        font-size: 32px;
        
    }
    .container-info-cover p {
        font-size: 16px;
    }
}