/* =========================================================
   VARIABLES
========================================================= */

:root {
    --primary: #0d62ad;
    --primary-dark: #083d70;
    --primary-light: #eaf4ff;

    --text: #1b2633;
    --text-light: #667085;

    --border: #e7edf3;

    --white: #ffffff;
    --bg: #f7f9fc;

    --shadow: 0 15px 45px rgba(13, 98, 173, 0.10);
}


/* =========================================================
   GENERAL
========================================================= */

.article-hero,
.article-section,
.related-articles {
    font-family: inherit;
}


/* =========================================================
   HERO
========================================================= */

.article-hero {
    position: relative;
    padding: 150px 0 90px;
    background:
        linear-gradient(
            135deg,
            #061f3a 0%,
            #0d62ad 55%,
            #1683dc 100%
        );

    overflow: hidden;
}


.article-hero::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    background: rgba(255,255,255,0.06);

    top: -250px;
    right: -150px;
}


.article-hero::after {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,0.10);

    bottom: -200px;
    left: -100px;
}


.article-hero-content {
    position: relative;
    z-index: 2;

    max-width: 950px;

    margin: auto;
}


/* VOLVER AL BLOG */

.article-back {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: rgba(255,255,255,0.75);

    text-decoration: none;

    font-size: 14px;

    margin-bottom: 35px;

    transition: 0.3s;
}


.article-back:hover {
    color: #ffffff;

    text-decoration: none;

    transform: translateX(-4px);
}


/* CATEGORÍA */

.article-category {
    display: inline-block;

    padding: 8px 16px;

    border-radius: 30px;

    background: rgba(255,255,255,0.12);

    border: 1px solid rgba(255,255,255,0.15);

    color: #ffffff;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.5px;

    margin-bottom: 25px;
}


/* TITULO */

.article-hero h1 {
    color: #ffffff;

    font-size: clamp(38px, 5vw, 68px);

    line-height: 1.08;

    font-weight: 700;

    max-width: 950px;

    margin-bottom: 30px;
}


.article-hero h1 strong {
    display: block;

    color: #8fd0ff;

    font-weight: 700;
}


/* INTRO */

.article-intro {
    max-width: 800px;

    font-size: 20px;

    line-height: 1.7;

    color: rgba(255,255,255,0.80);

    margin-bottom: 45px;
}


/* AUTOR */

.article-author {
    display: flex;

    align-items: center;

    gap: 15px;

    flex-wrap: wrap;
}


.author-avatar {
    width: 52px;
    height: 52px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #ffffff;

    color: var(--primary);

    font-weight: 800;
}


.author-info {
    display: flex;

    flex-direction: column;
}


.author-info strong {
    color: #ffffff;

    font-size: 15px;
}


.author-info span {
    color: rgba(255,255,255,0.65);

    font-size: 13px;
}


.article-date {
    margin-left: auto;

    color: rgba(255,255,255,0.70);

    font-size: 14px;

    display: flex;

    align-items: center;

    gap: 8px;
}


/* =========================================================
   SECCIÓN DEL ARTÍCULO
========================================================= */

.article-section {
    padding: 100px 0;

    background: #ffffff;
}


.article-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 760px)
        300px;

    gap: 80px;

    align-items: start;
}


/* =========================================================
   CONTENIDO
========================================================= */

.article-content {
    font-size: 17px;

    line-height: 1.85;

    color: #4c5a68;
}


.article-content p {
    margin-bottom: 25px;
}


.article-lead {
    font-size: 21px;

    line-height: 1.75;

    color: #253444;

    font-weight: 500;

    padding-bottom: 40px;

    border-bottom: 1px solid var(--border);

    margin-bottom: 55px !important;
}


/* =========================================================
   BLOQUES
========================================================= */

.article-block {
    display: grid;

    grid-template-columns: 70px 1fr;

    gap: 25px;

    margin-bottom: 75px;
}


.article-number {
    width: 55px;
    height: 55px;

    border-radius: 16px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 17px;

    font-weight: 800;

    border: 1px solid #d8eaff;
}


.article-block h2 {
    color: var(--text);

    font-size: 30px;

    font-weight: 700;

    line-height: 1.25;

    margin-bottom: 25px;
}


/* =========================================================
   HIGHLIGHT
========================================================= */

.article-highlight {
    display: flex;

    gap: 18px;

    padding: 25px;

    margin-top: 30px;

    background: #f3f9ff;

    border-left: 4px solid var(--primary);

    border-radius: 10px;
}


.article-highlight i {
    color: var(--primary);

    font-size: 22px;

    margin-top: 4px;
}


.article-highlight div {
    display: flex;

    flex-direction: column;

    gap: 5px;
}


.article-highlight strong {
    color: var(--text);
}


/* =========================================================
   QUOTE
========================================================= */

.article-content blockquote {
    margin: 30px 0;

    padding: 25px 30px;

    background: #f7f9fc;

    border-left: 4px solid var(--primary);

    font-size: 21px;

    font-style: italic;

    font-weight: 600;

    color: var(--text);
}


/* =========================================================
   LISTAS
========================================================= */

.article-content ul {
    padding-left: 20px;

    margin-bottom: 30px;
}


.article-content ul li {
    margin-bottom: 10px;
}


/* =========================================================
   CHECKLIST
========================================================= */

.article-checklist {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 14px;

    margin-top: 30px;
}


.article-checklist div {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 16px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: #ffffff;

    font-size: 14px;

    color: var(--text);
}


.article-checklist i {
    color: var(--primary);
}


/* =========================================================
   QUESTIONS
========================================================= */

.article-questions {
    display: grid;

    gap: 14px;

    margin-top: 30px;
}


.article-questions div {
    display: flex;

    align-items: center;

    gap: 15px;

    padding: 18px 20px;

    background: #f7faff;

    border: 1px solid #e4eef8;

    border-radius: 12px;

    color: var(--text);

    font-weight: 500;
}


.article-questions i {
    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--primary);

    color: #ffffff;
}


/* =========================================================
   CONCLUSIÓN
========================================================= */

.article-conclusion {
    margin-top: 90px;

    padding: 60px;

    border-radius: 25px;

    background:
        linear-gradient(
            135deg,
            #06284b,
            #0d62ad
        );

    color: #ffffff;

    position: relative;

    overflow: hidden;
}


.article-conclusion::after {
    content: "";

    position: absolute;

    width: 250px;
    height: 250px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,0.10);

    right: -100px;
    bottom: -100px;
}


.article-conclusion > * {
    position: relative;

    z-index: 2;
}


.article-conclusion > span {
    display: inline-block;

    color: #8fd0ff;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 15px;
}


.article-conclusion h2 {
    color: #ffffff;

    font-size: 38px;

    line-height: 1.2;

    margin-bottom: 30px;
}


.article-conclusion h2 strong {
    color: #8fd0ff;
}


.article-conclusion p {
    color: rgba(255,255,255,0.78);
}


/* FIRMA */

.article-signature {
    margin-top: 40px;

    display: flex;

    flex-direction: column;

    gap: 5px;
}


.signature-line {
    width: 50px;

    height: 3px;

    background: #8fd0ff;

    margin-bottom: 10px;
}


.article-signature strong {
    color: #ffffff;
}


.article-signature span {
    color: rgba(255,255,255,0.65);

    font-size: 14px;
}


/* =========================================================
   COMPARTIR
========================================================= */

.article-share {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding-top: 45px;

    margin-top: 50px;

    border-top: 1px solid var(--border);
}


.article-share span {
    color: var(--text-light);

    font-size: 14px;
}


.article-share div {
    display: flex;

    gap: 10px;
}


.article-share a {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--primary-light);

    color: var(--primary);

    text-decoration: none;

    transition: 0.3s;
}


.article-share a:hover {
    background: var(--primary);

    color: #ffffff;

    transform: translateY(-3px);
}


/* =========================================================
   SIDEBAR
========================================================= */

.article-sidebar {
    position: sticky;

    top: 120px;

    display: flex;

    flex-direction: column;

    gap: 25px;
}


/* AUTOR CARD */

.author-card {
    padding: 35px 28px;

    border: 1px solid var(--border);

    border-radius: 18px;

    background: #ffffff;

    box-shadow: var(--shadow);

    text-align: center;
}


.author-card-avatar {
    width: 75px;
    height: 75px;

    margin: 0 auto 20px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #1683dc
        );

    color: #ffffff;

    font-size: 23px;

    font-weight: 800;
}


.author-card h3 {
    color: var(--text);

    font-size: 19px;

    margin-bottom: 12px;
}


.author-card p {
    color: var(--text-light);

    font-size: 14px;

    line-height: 1.7;

    margin-bottom: 22px;
}


.author-card a {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--primary);

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;
}


/* CTA SIDEBAR */

.article-sidebar-cta {
    padding: 32px 28px;

    border-radius: 18px;

    background: #f2f8ff;

    border: 1px solid #dcecff;
}


.sidebar-icon {
    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: var(--primary);

    color: #ffffff;

    margin-bottom: 20px;
}


.article-sidebar-cta h3 {
    color: var(--text);

    font-size: 21px;

    line-height: 1.35;
}


.article-sidebar-cta p {
    color: var(--text-light);

    font-size: 14px;

    line-height: 1.7;
}


.article-sidebar-cta a {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 20px;

    padding: 13px 18px;

    background: var(--primary);

    color: #ffffff;

    border-radius: 9px;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    transition: 0.3s;
}


.article-sidebar-cta a:hover {
    background: var(--primary-dark);

    color: #ffffff;

    text-decoration: none;

    transform: translateY(-2px);
}


/* =========================================================
   ARTÍCULOS RELACIONADOS
========================================================= */

.related-articles {
    padding: 100px 0;

    background: var(--bg);
}


.related-header {
    display: flex;

    align-items: end;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 45px;
}


.related-header > div > span {
    color: var(--primary);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 2px;
}


.related-header h2 {
    margin: 12px 0 0;

    color: var(--text);

    font-size: 38px;

    font-weight: 700;
}


.related-header h2 strong {
    color: var(--primary);
}


.related-header > a {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: var(--primary);

    font-weight: 600;

    text-decoration: none;

    white-space: nowrap;
}


.related-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}


.related-card {
    padding: 35px;

    border-radius: 18px;

    background: #ffffff;

    border: 1px solid var(--border);

    transition: 0.3s;
}


.related-card:hover {
    transform: translateY(-7px);

    box-shadow: var(--shadow);
}


.related-icon {
    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 20px;

    margin-bottom: 25px;
}


.related-card > span {
    color: var(--primary);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.5px;
}


.related-card h3 {
    color: var(--text);

    font-size: 21px;

    line-height: 1.4;

    margin: 14px 0 25px;
}


.related-card a {
    color: var(--primary);

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {

    .article-layout {
        grid-template-columns: 1fr;

        gap: 60px;
    }


    .article-sidebar {
        position: relative;

        top: auto;

        display: grid;

        grid-template-columns: 1fr 1fr;
    }


    .related-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 768px) {

    .article-hero {
        padding: 120px 0 70px;
    }


    .article-hero h1 {
        font-size: 42px;
    }


    .article-intro {
        font-size: 17px;
    }


    .article-date {
        width: 100%;

        margin-left: 67px;
    }


    .article-section {
        padding: 70px 0;
    }


    .article-block {
        grid-template-columns: 1fr;

        gap: 18px;

        margin-bottom: 55px;
    }


    .article-number {
        width: 50px;
        height: 50px;
    }


    .article-block h2 {
        font-size: 27px;
    }


    .article-lead {
        font-size: 19px;
    }


    .article-checklist {
        grid-template-columns: 1fr;
    }


    .article-conclusion {
        padding: 40px 28px;
    }


    .article-conclusion h2 {
        font-size: 30px;
    }


    .article-sidebar {
        grid-template-columns: 1fr;
    }


    .related-header {
        flex-direction: column;

        align-items: flex-start;
    }


    .related-header h2 {
        font-size: 30px;
    }


    .related-articles {
        padding: 70px 0;
    }

}


@media (max-width: 480px) {

    .article-hero h1 {
        font-size: 34px;
    }


    .article-author {
        align-items: flex-start;
    }


    .article-date {
        margin-left: 0;
    }


    .article-highlight {
        flex-direction: column;
    }


    .article-share {
        flex-direction: column;

        align-items: flex-start;

        gap: 18px;
    }


    .article-conclusion {
        padding: 35px 22px;
    }

}