.cf-blog {
    width: 100%;
}

/* ==========================
   GRID
========================== */

.cf-blog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: stretch;
}

.cf-blog__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
}

/* ==========================
   IMAGEN
========================== */

.cf-blog__image {
    width: 100%;
    aspect-ratio: 2.5 / 2;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.cf-blog__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* ==========================
   ETIQUETA
========================== */
.cf-blog__etiqueta {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

.cf-blog__etiqueta h5 {
    margin: 0;
    padding: 8px 15px;

    border-radius: 20px;

    font-size: 13px;
    font-weight: 700;
    line-height: 1;

    box-shadow: 0 3px 10px rgba(0,0,0,.15);
}

/* ==========================
   COLORES CATEGORÍAS
========================== */
/* Agricultura */
.cf-blog__etiqueta__Agricultura h5,
.cf-blog__etiqueta__Agriculture h5{
    background:#d7f4c9;
    color:#2f6b16;
}

/* Tendencias */
.cf-blog__etiqueta__Tendencias h5,
.cf-blog__etiqueta__Trends h5{
    background:#f5b387;
    color:#e8620a;
}

/* Tecnología */
.cf-blog__etiqueta__Tecnología h5,
.cf-blog__etiqueta__Tecnologia h5,
.cf-blog__etiqueta__Technology h5{
    background:#e4d4ff;
    color:#6a38a5;
}

/* Insumos */
.cf-blog__etiqueta__Insumos h5,
.cf-blog__etiqueta__Supplies h5{
    background:#a3bde0;
    color:#202f44;
}


/* ==========================
   CONTENIDO TARJETA
========================== */

.cf-blog__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-top: 15px;
}

.cf-blog__card-title {
    margin: 0 0 12px;
    color: #01a800;
    line-height: 1.3;
}

.cf-blog__excerpt {
    line-height: 1.5;
    margin-bottom: 15px;
}

.cf-blog__excerpt:empty {
    display: none;
}

/* ==========================
   LINK VER MÁS
========================== */

.linkBlog {
    margin-top: auto;
}

.linkBlog a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 44px;
    background: #01a800;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all .3s ease;
}

.linkBlog a:hover {
    background: #01a800;
}

/* ==========================
   DETALLE
========================== */

.cf-blog-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.cf-blog-detail {
    flex: 1;
    min-width: 0;
}

.cf-blog-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.cf-blog-detail__image {
    float: left;
    width: 380px;
    margin: 0 40px 25px 0;
}

.cf-blog-detail__image img {
    width: 100%;
    display: block;
    border-radius: 12px;
}

.cf-blog-detail__title {
    margin-bottom: 25px;
    color: #01a800;
}

.cf-blog-detail__content {
    line-height: 1.8;
}

/* ==========================
   CONTENIDO ARTÍCULO
========================== */

.cf-blog-detail__content img {
    border-radius: 8px;
    margin: 10px 0;
    max-width: 100%;
    height: auto;
}

.cf-blog-detail__content img.banner,
.cf-blog-detail__content img.cf-blog-detail__banner {
    max-height: 200px;
    object-fit: cover;
    margin: 13px 0;
}

.cf-blog-detail__content h1,
.cf-blog-detail__content h2,
.cf-blog-detail__content h3,
.cf-blog-detail__content h4 {
    color: #01a800;
    margin-top: 20px;
    margin-bottom: 12px;
}

.cf-blog-detail__content p {
    margin-bottom: 12px;
}

.cf-blog-detail__content ul {
    list-style: disc;
    padding-left: 19px;
    margin-bottom: 12px;
}

.cf-blog-detail__content ul li {
    line-height: 1.5;
    margin-bottom: 6px;
}

.cf-blog-detail__content ul li::marker {
    color: var(--main-econexia);
}

.cf-blog-detail__content ol {
    padding-left: 22px;
    margin-bottom: 12px;
}

.cf-blog-detail__content a {
    color: var(--main-econexia);
    text-decoration: underline;
}

/* ==========================
   FILTROS BLOG
========================== */
.blog-filtros{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:40px;
    margin:50px 0 70px;
    flex-wrap:wrap;
}

.blog-filtros .titulos.negros{
    margin:0;
    color:#24364b;
    font-size:46px;
    font-weight:700;
}

.contenidoslista__filtroselector{
    display:flex;
    align-items:center;
    gap:16px;
    flex-wrap:wrap;
    margin:0;
}

.contenidoslista__filtroselector a{
    display:flex;
    align-items:center;
    justify-content:center;

    min-width:140px;
    height:42px;

    padding:0 24px;

    border:1px solid #01a800;
    background:#fff;

    color:#01a800;
    font-size:15px;
    font-weight:500;
    text-decoration:none;

    transition:all .3s ease;
}

.contenidoslista__filtroselector a:hover{
    background:#01a800;
    color:#fff;
}

.contenidoslista__filtroselector a.activa{
    background:#01a800;
    border-color:#01a800;
    color:#fff;
    font-weight:700;
}
/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 1200px) {

    .cf-blog__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {

    .cf-blog-layout {
        display: block;
    }

    .cf-blog-sidebar {
        width: 100%;
        margin-top: 40px;
    }

    .cf-blog-detail__image {
        float: none;
        width: 100%;
        margin: 0 0 25px;
    }

    .cf-blog__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .cf-blog__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cf-blog__etiqueta h5 {
        max-width: 180px;
        font-size: 13px;
    }
}

.cf-blog-pagination{
    width:100%;
    display:flex;
    justify-content:center;
    margin:50px 0;
}

.cf-blog-pagination .turn-ul{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;

    list-style:none;
    padding:0;
    margin:0;
}

.cf-blog-pagination .turn-ul li{
    list-style:none;
}

#paginador{
    display:flex;
    align-items:center;
    gap:12px;
}

/* Flechas */
.first,
.pagerprev,
.pagernext,
.end{
    width:42px;
    height:42px;

    display:flex;
    align-items:center;
    justify-content:center;

    border:1px solid #d9d9d9;
    border-radius:50%;

    cursor:pointer;
    font-weight:600;

    color:#01a800;
    background:#fff;
}

/* Números */
#paginador span{
    width:42px;
    height:42px;

    display:flex;
    align-items:center;
    justify-content:center;

    border:1px solid #d9d9d9;
    border-radius:50%;

    background:#fff;
    color:#01a800;

    font-weight:600;
    cursor:pointer;
}

#paginador span.active{
    background:#01a800;
    border-color:#01a800;
    color:#fff;
}

.first:hover,
.pagerprev:hover,
.pagernext:hover,
.end:hover,
#paginador span:hover{
    background:#f5f5f5;
}
