/* =========================================
   CX PARAGUAY — CONVERSACIONES
   ========================================= */


/* =========================================
   BIBLIOTECA — HERO
   ========================================= */

.articles-hero {
    width: min(1250px, calc(100% - 80px));
    margin: 0 auto;
    padding: 110px 0 80px;
}

.articles-hero h1 {
    max-width: 850px;

    margin-top: 18px;

    font-size: clamp(52px, 7vw, 92px);
    font-weight: 500;
    line-height: .98;
    letter-spacing: -4px;
}

.articles-hero h1 span {
    display: block;
    color: var(--aqua);
}

.articles-hero > p {
    max-width: 650px;

    margin-top: 32px;

    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}


/* =========================================
   BIBLIOTECA
   ========================================= */

.articles-library {
    width: min(1250px, calc(100% - 80px));
    margin: 0 auto;
    padding: 20px 0 130px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    border-top: 1px solid var(--border);
}

.library-card {
    min-height: 430px;

    padding: 45px 45px 42px;

    display: flex;
    flex-direction: column;

    border-bottom: 1px solid var(--border);
}

.library-card:nth-child(odd) {
    border-right: 1px solid var(--border);
}

.library-meta {
    display: flex;
    justify-content: space-between;
    gap: 25px;

    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: var(--muted);
}

.library-meta span:first-child {
    color: var(--aqua);
}

.library-meta span:last-child {
    text-align: right;
}

.library-accent {
    width: 38px;
    height: 3px;

    margin: 35px 0 28px;

    background: var(--magenta);
}

.library-card h2 {
    max-width: 480px;

    font-size: clamp(25px, 3vw, 37px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -1px;
}

.library-card > p {
    max-width: 560px;

    margin-top: 26px;

    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

.library-link {
    width: fit-content;

    margin-top: auto;
    padding-top: 35px;

    display: flex;
    align-items: center;
    gap: 12px;

    color: var(--aqua);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;

    transition: gap .2s ease;
}

.library-link:hover {
    gap: 18px;
}

.articles-empty {
    padding: 100px 0;

    color: var(--muted);

    text-align: center;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}


/* =========================================
   ARTÍCULO INDIVIDUAL
   ========================================= */

.article-page {
    width: min(1050px, calc(100% - 80px));
    margin: 0 auto;

    padding: 80px 0 130px;
}


/* VOLVER */

.article-back {
    display: inline-flex;
    align-items: center;

    margin-bottom: 65px;

    color: var(--muted);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    transition: color .2s ease;
}

.article-back:hover {
    color: var(--aqua);
}


/* CABECERA */

.article-hero {
    max-width: 900px;
}

.article-page-meta {
    margin-bottom: 30px;

    display: flex;
    align-items: center;
    gap: 25px;

    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: var(--muted);
}

.article-page-meta span:first-child {
    color: var(--aqua);
}

.article-page-meta span:first-child::after {
    content: "";

    display: inline-block;

    width: 35px;
    height: 1px;

    margin-left: 25px;

    vertical-align: middle;

    background: var(--magenta);
}

.article-hero h1 {
    max-width: 900px;

    font-size: clamp(48px, 7vw, 82px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -3px;
}

.article-intro {
    max-width: 750px;

    margin-top: 35px;

    color: var(--muted);

    font-size: 19px;
    line-height: 1.7;
}

.article-date {
    margin-top: 35px;

    color: var(--muted);

    font-size: 10px;
    letter-spacing: 2px;
}


/* =========================================
   CUERPO DEL ARTÍCULO
   ========================================= */

.article-body {
    max-width: 760px;

    margin-top: 90px;
    padding-top: 65px;

    color: #dce4e6;

    font-size: 18px;
    line-height: 1.95;

    border-top: 1px solid var(--border);
}


/* =========================================
   CIERRE DEL ARTÍCULO
   ========================================= */

.article-footer {
    max-width: 760px;

    margin-top: 90px;
    padding-top: 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

    border-top: 1px solid var(--border);
}

.article-footer-label {
    display: block;

    margin-bottom: 8px;

    color: var(--aqua);

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}

.article-footer p {
    color: var(--muted);

    font-size: 13px;
}


/* =========================================
   404 ARTÍCULO
   ========================================= */

.article-not-found {
    width: min(900px, calc(100% - 80px));
    min-height: 65vh;

    margin: 0 auto;
    padding: 120px 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-not-found h1 {
    max-width: 700px;

    margin-top: 20px;

    font-size: clamp(45px, 6vw, 75px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -3px;
}

.article-not-found p {
    max-width: 600px;

    margin-top: 30px;

    color: var(--muted);

    font-size: 16px;
    line-height: 1.7;
}

.article-not-found .article-back {
    margin-top: 45px;
    margin-bottom: 0;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 900px) {

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .library-card:nth-child(odd) {
        border-right: none;
    }

    .library-card {
        min-height: 390px;
    }

}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 750px) {

    .articles-hero,
    .articles-library,
    .article-page,
    .article-not-found {
        width: calc(100% - 40px);
    }

    .articles-hero {
        padding: 70px 0 55px;
    }

    .articles-hero h1 {
        letter-spacing: -2px;
    }

    .library-card {
        min-height: 0;

        padding: 38px 5px;
    }

    .library-meta {
        flex-direction: column;
        gap: 8px;
    }

    .library-meta span:last-child {
        text-align: left;
    }

    .library-link {
        margin-top: 35px;
    }

    .article-page {
        padding-top: 55px;
    }

    .article-back {
        margin-bottom: 45px;
    }

    .article-page-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .article-page-meta span:first-child::after {
        display: none;
    }

    .article-hero h1 {
        letter-spacing: -2px;
    }

    .article-intro {
        font-size: 17px;
    }

    .article-body {
        margin-top: 65px;
        padding-top: 45px;

        font-size: 17px;
        line-height: 1.85;
    }

    .article-footer {
        align-items: flex-start;
        flex-direction: column;
    }

}