/*======================================*/
/* ========== BLOG GENERAL ============ */
/* =====================================*/
.blog-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border-top: 4px solid #c3c2c273; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.blog-card:hover {
    transform: translateY(-5px);
    border-top-color: #d90429; 
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.blog-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    background: #f8fafc;
    color: #d90429;
    border: 1px solid #e2e8f0;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.blog-content h5 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.blog-content p {
    font-size: 15px;
    color: #4a5568;
}

.blog-item {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out !important;
}

#sinResultados {
    transition: opacity 0.5s ease-in-out;
    opacity: 0; 
}

.filtro-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 5px;
    scrollbar-width: none;
}

.filtro-scroll::-webkit-scrollbar {
    display: none;
}

.filtro-chip {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none; 
    display: inline-block;
}

.filtro-chip:hover {
    background: #e2e8f0;
    text-decoration: none; 
}

.filtro-chip.active {
    background: #04294b; 
    color: #fff;
    border-color: #04294b;
    box-shadow: none; 
}

.filtro-chip:hover {
    background: #e2e8f0;
}

.filtro-chip.active {
    background: #04294b; 
    color: #fff;
    border-color: #04294b;
    box-shadow: 0 4px 10px rgba(0, 70, 135, 0.2);
}

/* ============================= */
/* ===== BOTÓN LEER MÁS CLEAN === */
/* ============================= */

.btn-blog {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #04294b;
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.btn-blog:hover {
    color: #d90429; 
    border-bottom: 2px solid #d90429;
}

.btn-blog i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.btn-blog:hover i {
    transform: translateX(4px);
}

#contenedorBlogs {
    min-height: 400px; 
}

.blog-item {
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* ========================================= */
/* ===== ANIMACIÓN DE FILTRO (NUEVO) ======= */
/* ========================================= */

@keyframes popInFiltro {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animar-filtro {
    animation: popInFiltro 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    opacity: 0; 
}