.blog-hero {
    position: relative;
    height: 50vh; 
    min-height: 500px;
    background-color: var(--azul-intra, #003366);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.blog-hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.blog-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease-in-out, visibility 1.5s;
}

.blog-hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 51, 102, 0.6) 0%, rgba(0, 25, 50, 0.3) 100%);
    z-index: 2;
}

.blog-hero-content {
    position: relative;
    z-index: 3;
}

.blog-hero h1 {
    color: var(--blanco, #ffffff);
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

@media (max-width: 992px) {
    .blog-hero h1 {
        font-size: 2.5rem;
    }
}

.blog-section {
    padding: 80px 5%;
    background-color: #ffffff;
}

.blog-title {
    color: var(--azul-intra, #003366);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 auto 15px auto;
    position: relative;
    display: block;
    text-align: center;
}

.blog-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 70px;
    height: 3px;
    background-color: var(--rojo-intra, #cc0000);
}

.blog-lead {
    font-size: 1.15rem;
    color: #4b5563;
    max-width: 900px;
    margin: 25px auto 40px auto;
    line-height: 1.8;
    text-align: center;
}

.blog-filtro-scroll {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px !important;
}

.blog-filtro-chip {
    background-color: #f8fafc;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-filtro-chip:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}

.blog-filtro-chip.active {
    background-color: var(--azul-intra, #003366);
    color: #ffffff;
    border-color: var(--azul-intra, #003366);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.25);
}

.blog-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 30px !important;
    justify-content: start !important;
    width: 100% !important;
    transition: opacity 0.3s ease;
}

.blog-item {
    display: flex !important;
    width: 100% !important;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.blog-card {
    width: 100% !important;
    max-width: 380px !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 51, 102, 0.08) !important;
    border-top: 5px solid var(--azul-intra, #003366) !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12) !important;
    border-top-color: var(--rojo-intra, #cc0000) !important;
}

.blog-img-wrapper {
    width: 100% !important;
    height: 210px !important;
    overflow: hidden !important;
    background-color: #f1f5f9;
}

.blog-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.blog-badge {
    display: inline-block;
    background-color: #f1f5f9;
    color: var(--azul-intra, #003366);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--azul-intra, #003366);
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-content p {
    color: #64748b;
    font-size: 1.15rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}

.blog-btn-leer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--azul-intra, #003366);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.2s ease, gap 0.2s ease;
    align-self: flex-start;
}

.blog-btn-leer:hover {
    color: var(--rojo-intra, #cc0000);
    gap: 12px;
}

.blog-sin-resultados {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #64748b;
    font-size: 1.15rem;
}