/* =========================================================
   TODO4PC BLOG
========================================================= */

.u4-blog-hero {
    padding: 46px 0 40px;
    background:
        radial-gradient(circle at 88% 20%, rgba(13, 193, 180, .18), transparent 30%),
        linear-gradient(135deg, #081d42, #0d3470);
    color: #fff;
}

.u4-blog-hero h1 {
    margin: 8px 0 10px;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.05;
}

.u4-blog-hero p {
    max-width: 700px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 17px;
    line-height: 1.7;
}

.u4-blog-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #53dfd2;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.u4-blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 26px;
}

.u4-blog-categories a {
    padding: 9px 15px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: .2s ease;
}

.u4-blog-categories a:hover,
.u4-blog-categories a.is-active {
    border-color: #24cabb;
    background: #24cabb;
    color: #06263f;
}

.u4-blog-page {
    padding-top: 30px;
    padding-bottom: 55px;
}

.u4-blog-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    overflow: hidden;
    margin-bottom: 34px;
    border: 1px solid #e5eaf0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(27, 47, 77, .10);
}

.u4-blog-featured-image {
    min-height: 410px;
    background: #eaf0f5;
}

.u4-blog-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.u4-blog-featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 38px;
}

.u4-blog-featured-content h2 {
    margin: 14px 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
}

.u4-blog-featured-content h2 a,
.u4-blog-card h3 a,
.u4-blog-related h3 a {
    color: #10233d;
    text-decoration: none;
}

.u4-blog-featured-content p,
.u4-blog-card p {
    color: #6c7888;
    line-height: 1.7;
}

.u4-blog-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 7px 11px;
    border-radius: 7px;
    background: #e8fbf8;
    color: #078d81;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-decoration: none;
    text-transform: uppercase;
}

.u4-blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: #8793a3;
    font-size: 12px;
}

.u4-blog-readmore {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    align-self: flex-start;
    margin-top: 24px;
    padding: 12px 17px;
    border-radius: 9px;
    background: #0f3f82;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.u4-blog-layout,
.u4-blog-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 30px;
    align-items: start;
}

.u4-blog-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 18px;
}

.u4-blog-section-head span {
    color: #0eb4a5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.u4-blog-section-head h2 {
    margin: 3px 0 0;
    color: #11243c;
    font-size: 25px;
}

.u4-blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.u4-blog-card {
    overflow: hidden;
    border: 1px solid #e5eaf0;
    border-radius: 14px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.u4-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(30, 52, 82, .10);
}

.u4-blog-card-image {
    display: block;
    height: 215px;
    overflow: hidden;
    background: #edf2f6;
}

.u4-blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.u4-blog-card:hover .u4-blog-card-image img {
    transform: scale(1.04);
}

.u4-blog-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #9da9b6;
    font-size: 45px;
}

.u4-blog-card-body {
    padding: 20px;
}

.u4-blog-card h3 {
    margin: 12px 0 8px;
    font-size: 20px;
    line-height: 1.3;
}

.u4-blog-card p {
    margin: 0 0 15px;
    font-size: 14px;
}

.u4-blog-pagination {
    margin-top: 30px;
}

.u4-blog-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.u4-blog-pagination .page-numbers {
    display: inline-flex;
    min-width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid #dde4eb;
    border-radius: 8px;
    background: #fff;
    color: #17385f;
    text-decoration: none;
}

.u4-blog-pagination .current,
.u4-blog-pagination a:hover {
    border-color: #0eb4a5;
    background: #0eb4a5;
    color: #fff;
}

.u4-blog-sidebar > .u4-sidebar {
    position: sticky;
    top: 20px;
}

.u4-blog-single-hero {
    padding: 42px 0 44px;
    background:
        radial-gradient(circle at 90% 10%, rgba(17, 198, 181, .16), transparent 34%),
        #f3f7fb;
    border-bottom: 1px solid #e2e8ef;
}

.u4-blog-single-hero-inner {
    max-width: 980px;
}

.u4-blog-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    color: #8190a1;
    font-size: 12px;
}

.u4-blog-breadcrumbs a {
    color: #557087;
    text-decoration: none;
}

.u4-blog-single-hero h1 {
    max-width: 970px;
    margin: 14px 0 15px;
    color: #10233d;
    font-size: clamp(31px, 5vw, 52px);
    line-height: 1.08;
}

.u4-blog-lead {
    max-width: 850px;
    color: #657487;
    font-size: 18px;
    line-height: 1.7;
}

.u4-blog-author-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 23px;
}

.u4-blog-author-line img {
    border-radius: 50%;
}

.u4-blog-author-line strong,
.u4-blog-author-line span {
    display: block;
}

.u4-blog-author-line span {
    margin-top: 3px;
    color: #7e8b9a;
    font-size: 12px;
}

.u4-blog-author-line b {
    padding: 0 5px;
}

.u4-blog-single-layout {
    padding-top: 34px;
    padding-bottom: 60px;
}

.u4-blog-article {
    min-width: 0;
}

.u4-blog-cover {
    overflow: hidden;
    margin: 0 0 24px;
    border-radius: 16px;
    background: #eaf0f5;
}

.u4-blog-cover img {
    display: block;
    width: 100%;
    height: auto;
}

.u4-blog-cover figcaption {
    padding: 10px 14px;
    color: #7a8795;
    font-size: 12px;
}

.u4-blog-share {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.u4-blog-share span {
    margin-right: 4px;
    color: #718092;
    font-size: 12px;
    font-weight: 700;
}

.u4-blog-share a {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid #dce4eb;
    border-radius: 50%;
    color: #34516e;
    text-decoration: none;
}

.u4-blog-share a:hover {
    border-color: #0eb4a5;
    background: #0eb4a5;
    color: #fff;
}

.u4-blog-entry {
    padding: 30px;
    border: 1px solid #e4e9ef;
    border-radius: 15px;
    background: #fff;
    color: #33475b;
    font-size: 16px;
    line-height: 1.85;
}

.u4-blog-entry h2,
.u4-blog-entry h3,
.u4-blog-entry h4 {
    color: #10233d;
    line-height: 1.25;
}

.u4-blog-entry h2 {
    margin-top: 34px;
    font-size: 27px;
}

.u4-blog-entry h3 {
    margin-top: 28px;
    font-size: 22px;
}

.u4-blog-entry img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.u4-blog-entry a {
    color: #087fbe;
}

.u4-blog-entry pre {
    overflow: auto;
    padding: 17px;
    border-radius: 9px;
    background: #10233d;
    color: #eaf2f9;
}

.u4-blog-entry blockquote {
    margin: 24px 0;
    padding: 18px 20px;
    border-left: 4px solid #10b8a8;
    background: #effaf8;
    color: #365d5a;
}

.u4-blog-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.u4-blog-tags a {
    padding: 7px 10px;
    border-radius: 7px;
    background: #edf3f7;
    color: #4d6479;
    font-size: 12px;
    text-decoration: none;
}

.u4-blog-author-box {
    display: flex;
    gap: 18px;
    margin-top: 28px;
    padding: 24px;
    border: 1px solid #e2e8ee;
    border-radius: 14px;
    background: #f7fafc;
}

.u4-blog-author-box img {
    flex: 0 0 auto;
    border-radius: 50%;
}

.u4-blog-author-box span {
    color: #0aa99b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.u4-blog-author-box h3 {
    margin: 3px 0 7px;
}

.u4-blog-author-box p {
    margin: 0 0 8px;
    color: #6e7b89;
    line-height: 1.6;
}

.u4-blog-author-box a {
    color: #0c70a9;
    font-size: 13px;
    font-weight: 700;
}

.u4-blog-related {
    margin-top: 34px;
}

.u4-blog-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.u4-blog-related-grid article {
    min-width: 0;
}

.u4-blog-related .u4-blog-card-image {
    height: 135px;
    border-radius: 10px;
}

.u4-blog-related h3 {
    margin: 9px 0 4px;
    font-size: 15px;
    line-height: 1.35;
}

.u4-blog-related article > span {
    color: #8a97a5;
    font-size: 11px;
}

.u4-blog-empty {
    padding: 55px 25px;
    border: 1px dashed #cbd5df;
    border-radius: 14px;
    text-align: center;
}

.u4-blog-empty i {
    color: #9ba9b8;
    font-size: 44px;
}

/* Compatibilidad habitual con el modo oscuro del theme. */
body.u4-dark .u4-blog-featured,
body.u4-dark .u4-blog-card,
body.u4-dark .u4-blog-entry,
body.dark-mode .u4-blog-featured,
body.dark-mode .u4-blog-card,
body.dark-mode .u4-blog-entry {
    border-color: #293b4e;
    background: #172838;
}

body.u4-dark .u4-blog-featured-content h2 a,
body.u4-dark .u4-blog-card h3 a,
body.u4-dark .u4-blog-section-head h2,
body.u4-dark .u4-blog-single-hero h1,
body.u4-dark .u4-blog-entry h2,
body.u4-dark .u4-blog-entry h3,
body.dark-mode .u4-blog-featured-content h2 a,
body.dark-mode .u4-blog-card h3 a,
body.dark-mode .u4-blog-section-head h2,
body.dark-mode .u4-blog-single-hero h1,
body.dark-mode .u4-blog-entry h2,
body.dark-mode .u4-blog-entry h3 {
    color: #f3f7fb;
}

@media (max-width: 980px) {
    .u4-blog-featured {
        grid-template-columns: 1fr;
    }

    .u4-blog-featured-image {
        min-height: 330px;
    }

    .u4-blog-layout,
    .u4-blog-single-layout {
        grid-template-columns: 1fr;
    }

    .u4-blog-sidebar > .u4-sidebar {
        position: static;
    }
}

@media (max-width: 700px) {
    .u4-blog-hero {
        padding: 34px 0 30px;
    }

    .u4-blog-featured-content {
        padding: 24px;
    }

    .u4-blog-featured-image {
        min-height: 230px;
    }

    .u4-blog-grid {
        grid-template-columns: 1fr;
    }

    .u4-blog-card-image {
        height: 210px;
    }

    .u4-blog-entry {
        padding: 21px;
        font-size: 15px;
    }

    .u4-blog-related-grid {
        grid-template-columns: 1fr;
    }

    .u4-blog-related .u4-blog-card-image {
        height: 190px;
    }

    .u4-blog-author-box {
        align-items: flex-start;
    }
}

/* TODO4PC - Modo oscuro real basado en data-u4-theme. */
html[data-u4-theme="dark"] .u4-blog-card,
html[data-u4-theme="dark"] .u4-blog-featured,
html[data-u4-theme="dark"] .u4-blog-entry {
    background: #172839;
    border-color: #2a3b4a;
    color: #c8d3de;
}
html[data-u4-theme="dark"] .u4-blog-card h3 a,
html[data-u4-theme="dark"] .u4-blog-featured-content h2 a,
html[data-u4-theme="dark"] .u4-blog-entry h2,
html[data-u4-theme="dark"] .u4-blog-entry h3 {
    color: #f4f7fa;
}
html[data-u4-theme="dark"] .u4-blog-card p,
html[data-u4-theme="dark"] .u4-blog-meta,
html[data-u4-theme="dark"] .u4-blog-card-body {
    color: #aebbc8;
}
html[data-u4-theme="dark"] .u4-blog-card-image {
    background: #12202d;
}
