/* 
Archivo: estilos-grilla-blog.css
Descripción: Estilos personalizados para "Grilla Blog - Loop ".
Autor: Nexbu
Fecha: 07 Julio 2025
*/
/*** Blog ***/
/* Filtro */
.barra-filtros {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}
/* Grilla - Loop */
.home #contenedor-posts .post-item {
    display: none;
}
.home #contenedor-posts .post-item:nth-child(-n+4) {
    display: block;
} 
.grilla-blog {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px 20px;
    width: 100%;
}
.post-item {
    border-radius: 10px;
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.10);
}
.imagen-post {
    border-radius: 10px 10px 0 0;
    height: 275px;
    overflow: hidden;
}
.imagen-post img {
    height: 275px!important;
    object-fit: cover;
    transition: .4s;
    width: 100%!important;
}
.post-item:hover .imagen-post img {
    transform: scale(1.1);
    transition: .4s;
}
.contenido-post {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}
.contenido-post h3 {
    font-size: var(--e-global-typography-text-font-size) !important;
    font-weight: 400!important;
    margin: 0;
}
.contenido-post p {
    color: var(--e-global-color-99fe8c2);
    font-size: var(--e-global-typography-3cebcb3-font-size);
    margin: 0!important;
}
.contenido-post a {
    color: var(--e-global-color-primary)!important;
}
/* Botones categorías */
button.btn-categoria {
    background-color: transparent!important;
    border-width: 0;
    color: var( --e-global-color-text )!important;
}
.btn-categoria.active, .selec-blog {
    background-color: #F4F8F7!important;
}
/* Filtro */
#limpiar-filtros {
    border-radius: 50px;
    background-color: var(--e-global-color-primary);
    color: var(--e-global-color-accent);
    cursor: pointer;
    display: none;
    float: right;
    font-size: var(--e-global-typography-5f8873a-font-size);
    font-weight: 600;
    margin-bottom: 30px;
    padding: 10px 20px;
}
.filtro-select {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    font-size: var( --e-global-typography-5f8873a-font-size );
    width: 235px;
}
.selec-blog {
    border-width: 0;
    border-radius: 50px;
    font-size: var( --e-global-typography-accent-font-size );
    width: 140px;
}
/* Slider banner blog */
.slide-color {
    align-items: flex-end;
    color: #fff;
    display: flex;
    background: linear-gradient(180deg, rgba(102, 102, 102, 0.50) 0%, rgba(0, 0, 0, 0.50) 100%);
    height: 600px;
    padding-bottom: 120px;
    position: relative;
}
.hero-content {
    display: grid;
    margin: 0 auto;
    max-width: 1140px;
}
.btn-tag-post {
    border: 1px solid #fff;
    border-radius: 50px;
    color: #fff;
    display: inline-block;
    padding: 8px 16px;
    margin-right: 10px;
}
.btn-tag-post:last-child {
    margin-right: 0;
}
.etiquetas-post {
    margin-bottom: 20px;
}
.slide-titulo {
    color: #fff!important;
    font-size: var( --e-global-typography-c950770-font-size )!important;
}
/* Bullet */
.hero-slider .owl-dots {
    bottom: 30px;
    margin-top: 20px;
    position: absolute;
    text-align: center;
    width: 100%;
}
.hero-slider .owl-dot {
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.70)!important;
    height: 8px;
    margin: 0 4px;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 8px
}
.hero-slider .owl-dot.active, .hero-slider .owl-dot:hover {
    background-color: #fff!important;
    cursor: pointer;
}
/* Compartir */
.compartir a.elementor-icon:hover path {
    stroke: #fff !important;
}
/* Grilla blog más artículos */
article.elementor-post {
    flex-direction: row!important;
    gap: 16px;
}
article.elementor-post:hover img, article.elementor-post img {
    transition: .4s!important;
}
article.elementor-post:hover img {
    transform: scale(1.2)!important;
}
.elementor-post__thumbnail {
    overflow: hidden;
}
a.elementor-post__thumbnail__link {
    width: 35%!important;
}
.elementor-post__text {
    display: flex!important;
    gap: 8px;
    justify-content: center;
    width: 65%!important;
}
.elementor-post__thumbnail {
    border-radius: 10px;
}
span.elementor-post-author {
    font-size: 0;
}
span.elementor-post-author:before {
    content: "SID Latam ·";
    font-size: var( --e-global-typography-5f8873a-font-size );
    margin-right: 5px;
}
h3.elementor-post__title {
    order: 2;
}
.elementor-post__excerpt {
    order: 3;
}
article.elementor-post:hover h3 a {
    color: var( --e-global-color-primary )!important;
}
.elementor-post__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/*** Fin: Blog ***/

/*** Responsive ***/
/* Pórtatil */
@media (max-width: 1366px) {
    /* Imagen */
    .imagen-post, .imagen-post img {
        height: 220px!important;
    }
    /* Banner hero */
    .hero-content {
        max-width: 88%;
    }
    /* Filtro */
    .barra-filtros {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 15px;
        margin-bottom: 20px;
    }
    .filtro-categorias {
        width: 100%;
    }
    #limpiar-filtros {
        padding: 8px 10px;
        position: absolute;
        top: 50px;
        right: 0;
    }
    /* Filtro home */
    .home .filtro-select {
        display: none;
    }
}
/* Tablet */
@media (max-width: 1024px) {
    /* Imagen */
    .imagen-post, .imagen-post img {
        height: 200px!important;
    }
    article.elementor-post:hover img {
        left: calc(0% + 1px)!important;
        transform: scale(1.6)!important;
        top: calc(0% + 1px)!important;
    }
    .elementor-post__text {
        gap: 2px;
    }
    /* Banner hero */
    .hero-content {
        max-width: 90%;
    }
    /* Grilla */
    .grilla-blog {
        grid-template-columns: repeat(3, 1fr);
    }
    .home #contenedor-posts .post-item:nth-child(-n+4) {
        display: none;
    }
    .home #contenedor-posts .post-item:nth-child(-n+3) {
        display: block;
    }
}
/* Mobile */
@media (max-width: 767px) {
    /* Banner hero */
    .hero-content {
        max-width: 88%;
    }
    .slide-color {
        height: 500px;
        padding-bottom: 80px;
    }
    /* Grilla */
    .grilla-blog {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }
    .home .grilla-blog {
        margin-top: 15px;   
    }
    .home #contenedor-posts .post-item:nth-child(-n+4) {
        display: block;
    }
    /* Filtro */
    .barra-filtros {
        justify-content: space-between;
        margin-bottom: 0;
    }
    button.btn-categoria {
        margin-bottom: 5px;
    }
    .filtro-select {
        justify-content: space-between;
        margin-bottom: 20px;
        width: auto;
    }
    #limpiar-filtros {
        margin-bottom: 20px;
        padding: 4px 8px;
        position: relative;
        top: 0;
    }
    .selec-blog {
        width: 120px;
    }
    /* Imagen */
    .imagen-post, .imagen-post img {
        height: 120px!important;
    }
    /* Contenido */
    .contenido-post {
        gap: 6px;
        padding: 10px;
    }
}
/*** Fin: Responsive ***/