/* =========================================================
   JN GENESIS — CATEGORÍAS DEL BLOG
========================================================= */

.jn-category,
.jn-category * {
    box-sizing: border-box;
}

.jn-category {
    width: 100%;
    padding: 34px 0 70px;

    background: #f7f9fc;

    font-family: "Open Sans", Arial, sans-serif;
}

.jn-category-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.jn-category-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;

    margin: 0 0 30px;

    color: #718096;

    font-size: 12px;
    line-height: 1.5;
}

.jn-category-breadcrumb a,
.jn-category-breadcrumb a:visited {
    color: #5d6f83;
    text-decoration: none;
}

.jn-category-breadcrumb a:hover,
.jn-category-breadcrumb a:focus {
    color: #136fe8;
}


/* =========================================================
   CABECERA DE CATEGORÍA
========================================================= */

.jn-category-header {
    max-width: 800px;

    margin: 0 0 42px;
}

.jn-category-eyebrow {
    display: block;

    margin: 0 0 9px;

    color: #136fe8;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.2px;

    text-transform: uppercase;
}

.jn-category-header h1 {
    margin: 0 0 14px;
    padding: 0;

    color: #082748;

    font-size: clamp(34px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.12;

    letter-spacing: -1.2px;
}

.jn-category-description {
    max-width: 720px;

    margin: 0;

    color: #586a7c;

    font-size: 16px;
    line-height: 1.7;
}

.jn-category-description p {
    margin: 0;
}


/* =========================================================
   GRID PRINCIPAL
========================================================= */

.jn-category-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        320px;

    gap: 52px;

    align-items: start;
}

.jn-category-main {
    min-width: 0;
}


/* =========================================================
   CABECERA DEL LISTADO
========================================================= */

.jn-category-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin: 0 0 14px;
    padding: 0 4px 15px;

    border-bottom: 1px solid #dde5ee;
}

.jn-category-list-header h2 {
    margin: 0;

    color: #082748;

    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
}

.jn-category-count {
    color: #718096;

    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   LISTADO DE ARTÍCULOS
========================================================= */

.jn-category-list {
    display: flex;
    flex-direction: column;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 10px;

    overflow: hidden;

    box-shadow:
        0 8px 30px rgba(8, 39, 72, 0.045);
}

.jn-category-item {
    margin: 0;
    padding: 0;

    border: 0;
    border-bottom: 1px solid #e7edf3;

    background: #ffffff;
}

.jn-category-item:last-child {
    border-bottom: 0;
}


/* =========================================================
   ENLACE COMPLETO DEL ARTÍCULO
========================================================= */

.jn-category-item-link,
.jn-category-item-link:visited {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    width: 100%;

    padding: 23px 24px;

    color: inherit;

    text-decoration: none;

    transition:
        background-color 0.18s ease,
        padding-left 0.18s ease;
}

.jn-category-item-link:hover,
.jn-category-item-link:focus {
    background: #f5f9ff;

    text-decoration: none;
}

.jn-category-item-link:focus-visible {
    outline: 3px solid rgba(19, 111, 232, 0.22);
    outline-offset: -3px;
}


/* =========================================================
   FECHA
========================================================= */

.jn-category-item-date {
    display: block;

    margin: 0 0 7px;

    color: #7b8b9c;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;

    letter-spacing: 0.25px;

    text-transform: uppercase;
}


/* =========================================================
   TÍTULO
========================================================= */

.jn-category-item-title {
    margin: 0 !important;
    padding: 0 !important;

    color: #082748 !important;

    font-size: 18px !important;
    font-weight: 750 !important;
    line-height: 1.42 !important;

    letter-spacing: -0.2px;
}

.jn-category-item-link:hover
.jn-category-item-title {
    color: #136fe8 !important;
}


/* =========================================================
   FLECHA
========================================================= */

.jn-category-item-arrow {
    display: flex;
    flex: 0 0 auto;

    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    background: #edf5ff;
    color: #136fe8;

    font-size: 18px;
    font-weight: 700;

    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.jn-category-item-link:hover
.jn-category-item-arrow {
    background: #136fe8;
    color: #ffffff;

    transform: translateX(3px);
}


/* =========================================================
   PAGINACIÓN
========================================================= */

.jn-category-pagination {
    margin: 34px 0 0;
}

.jn-category-pagination ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 8px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.jn-category-pagination li {
    margin: 0;
    padding: 0;
}

.jn-category-pagination .page-numbers {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 40px;
    height: 40px;

    padding: 0 13px;

    border: 1px solid #dbe4ed;
    border-radius: 6px;

    background: #ffffff;
    color: #082748;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.jn-category-pagination
.page-numbers:hover {
    border-color: #136fe8;

    color: #136fe8;
}

.jn-category-pagination
.page-numbers.current {
    border-color: #136fe8;

    background: #136fe8;
    color: #ffffff;
}


/* =========================================================
   SIDEBAR
========================================================= */

.jn-category-sidebar {
    min-width: 0;
}

.jn-category-sidebar .widget:first-child {
    margin-top: 0;
}


/* =========================================================
   SIN ARTÍCULOS
========================================================= */

.jn-category-empty {
    padding: 36px;

    border: 1px solid #e1e8f0;
    border-radius: 10px;

    background: #ffffff;
}

.jn-category-empty h2 {
    margin: 0 0 10px;

    color: #082748;

    font-size: 20px;
    font-weight: 800;
}

.jn-category-empty p {
    margin: 0 0 18px;

    color: #617386;

    font-size: 14px;
    line-height: 1.65;
}

.jn-category-back-blog {
    color: #136fe8;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;
}


/* =========================================================
   EVITAR ESTILOS DE ARCHIVO GENESIS
========================================================= */

.jn-category-page
.archive-description,

.jn-category-page
.archive-title,

.jn-category-page
.archive-description + .content {
    margin-top: 0;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 960px) {

    .jn-category-grid {
        grid-template-columns: minmax(0, 1fr);

        gap: 42px;
    }

    .jn-category-sidebar {
        max-width: 620px;
    }
}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 600px) {

    .jn-category {
        padding-top: 24px;
        padding-bottom: 50px;
    }

    .jn-category-container {
        width: calc(100% - 28px);
    }

    .jn-category-breadcrumb {
        margin-bottom: 22px;
    }

    .jn-category-header {
        margin-bottom: 30px;
    }

    .jn-category-header h1 {
        font-size: 34px;
    }

    .jn-category-description {
        font-size: 14px;
        line-height: 1.65;
    }

    .jn-category-list-header {
        align-items: flex-end;
    }

    .jn-category-item-link {
        gap: 15px;

        padding: 19px 17px;
    }

    .jn-category-item-title {
        font-size: 16px !important;
    }

    .jn-category-item-arrow {
        width: 34px;
        height: 34px;

        font-size: 16px;
    }

    .jn-category-pagination ul {
        gap: 6px;
    }

    .jn-category-pagination .page-numbers {
        min-width: 36px;
        height: 36px;

        padding: 0 10px;

        font-size: 12px;
    }
}