/* =========================================
   BLOG HERO
========================================= */

.blog-hero {
    padding: 170px 0 90px;
    background:
        linear-gradient(
            135deg,
            #f5f9ff 0%,
            #ffffff 60%,
            #edf5ff 100%
        );
}


.blog-hero-content {
    max-width: 850px;
}


.section-label {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #0d62ad;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.5px;
}


.section-label span {
    width: 35px;
    height: 3px;

    background: #0d62ad;

    border-radius: 20px;
}


.blog-hero h1 {
    margin-top: 22px;

    color: #172b4d;

    font-size: 58px;
    font-weight: 700;

    line-height: 1.1;
}


.blog-hero h1 strong {
    display: block;

    color: #0d62ad;
}


.blog-hero p {
    max-width: 700px;

    margin-top: 25px;

    color: #64748b;

    font-size: 18px;

    line-height: 1.8;
}


/* =========================================
   ARTÍCULO DESTACADO
========================================= */

.featured-blog {
    padding: 80px 0;

    background: #ffffff;
}


.featured-blog-card {
    display: grid;

    grid-template-columns: 1fr 1fr;

    min-height: 460px;

    overflow: hidden;

    border-radius: 25px;

    background: #ffffff;

    box-shadow:
        0 15px 50px rgba(23, 43, 77, 0.1);
}


.featured-blog-image {
    min-height: 400px;

    overflow: hidden;
}


.featured-blog-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.featured-blog-content {
    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 60px;
}


.blog-category,
.blog-card-category {
    display: inline-block;

    width: fit-content;

    padding: 7px 12px;

    color: #0d62ad;

    background: #eaf4ff;

    border-radius: 30px;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;
}


.featured-blog-content h2 {
    margin-top: 20px;

    color: #172b4d;

    font-size: 36px;

    font-weight: 700;

    line-height: 1.25;
}


.featured-blog-content p {
    margin-top: 18px;

    color: #64748b;

    line-height: 1.8;
}


.blog-meta {
    display: flex;

    gap: 25px;

    margin-top: 20px;

    color: #94a3b8;

    font-size: 13px;
}


.blog-read-button {
    display: inline-flex;

    align-items: center;

    gap: 15px;

    width: fit-content;

    margin-top: 30px;

    padding: 14px 24px;

    background: #0d62ad;

    color: #ffffff !important;

    border-radius: 10px;

    text-decoration: none !important;

    font-weight: 700;

    transition: 0.3s;
}


.blog-read-button:hover {
    transform: translateY(-3px);

    background: #083f75;
}


/* =========================================
   SECCIÓN BLOG
========================================= */

.blog-section {
    padding: 100px 0;

    background: #f6f9fc;
}


.blog-section-header {
    display: flex;

    align-items: end;

    justify-content: space-between;

    margin-bottom: 50px;
}


.blog-section-header h2 {
    margin-top: 18px;

    color: #172b4d;

    font-size: 42px;

    font-weight: 700;
}


.blog-section-header h2 strong {
    color: #0d62ad;
}


.view-all {
    color: #0d62ad;

    text-decoration: none !important;

    font-weight: 700;
}


.blog-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 30px;
}


/* =========================================
   TARJETAS
========================================= */

.blog-card {
    overflow: hidden;

    background: #ffffff;

    border-radius: 20px;

    transition:
        transform 0.3s,
        box-shadow 0.3s;

    box-shadow:
        0 8px 30px rgba(23, 43, 77, 0.06);
}


.blog-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 20px 45px rgba(23, 43, 77, 0.12);
}


.blog-card-image {
    position: relative;

    height: 220px;

    overflow: hidden;
}


.blog-card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s;
}


.blog-card:hover .blog-card-image img {
    transform: scale(1.08);
}


.blog-card-category {
    position: absolute;

    left: 20px;
    bottom: 20px;

    background: #ffffff;
}


.blog-card-content {
    padding: 28px;
}


.blog-date {
    color: #94a3b8;

    font-size: 12px;

    font-weight: 600;
}


.blog-card h3 {
    margin-top: 12px;

    color: #172b4d;

    font-size: 21px;

    font-weight: 700;

    line-height: 1.4;
}


.blog-card p {
    margin-top: 14px;

    color: #64748b;

    font-size: 14px;

    line-height: 1.7;
}


.blog-card a {
    display: inline-flex;

    gap: 10px;

    margin-top: 15px;

    color: #0d62ad;

    text-decoration: none !important;

    font-weight: 700;
}


/* =========================================
   CTA
========================================= */

.blog-cta {
    padding: 90px 0;

    background:
        linear-gradient(
            135deg,
            #083f75,
            #0d62ad
        );
}


.blog-cta-content {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 50px;
}


.blog-cta .section-label {
    color: #a9d5ff;
}


.blog-cta .section-label span {
    background: #a9d5ff;
}


.blog-cta h2 {
    max-width: 650px;

    margin-top: 20px;

    color: #ffffff;

    font-size: 42px;

    font-weight: 700;
}


.blog-cta p {
    margin-top: 15px;

    color: rgba(255, 255, 255, 0.75);

    font-size: 17px;
}


.blog-cta-button {
    display: inline-flex;

    align-items: center;

    gap: 15px;

    padding: 18px 30px;

    background: #ffffff;

    color: #0d62ad !important;

    border-radius: 12px;

    text-decoration: none !important;

    font-weight: 700;

    white-space: nowrap;

    transition: 0.3s;
}


.blog-cta-button:hover {
    transform: translateY(-4px);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 991px) {

    .blog-hero h1 {
        font-size: 46px;
    }

    .featured-blog-card {
        grid-template-columns: 1fr;
    }

    .featured-blog-image {
        height: 350px;
    }

    .blog-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .blog-cta-content {
        flex-direction: column;

        align-items: flex-start;
    }

}


@media (max-width: 768px) {

    .blog-hero {
        padding: 130px 0 70px;
    }

    .blog-hero h1 {
        font-size: 38px;
    }

    .featured-blog-content {
        padding: 35px 25px;
    }

    .featured-blog-content h2 {
        font-size: 28px;
    }

    .blog-section {
        padding: 70px 0;
    }

    .blog-section-header {
        flex-direction: column;

        align-items: flex-start;

        gap: 20px;
    }

    .blog-section-header h2 {
        font-size: 32px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-cta {
        padding: 70px 0;
    }

    .blog-cta h2 {
        font-size: 32px;
    }

}