.res-page {
    width: 100%;
    background: #f5f8fc;
    font-family: "Open Sans", Arial, sans-serif;
}

.res-container {
    width: calc(100% - 40px);
    max-width: 1400px;
    margin: 0 auto;
}

.res-hero {
    padding: 52px 0 45px;
    background: linear-gradient(135deg, #082b58, #0b3d75);
    color: #ffffff;
}

.res-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #72c2f2;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.res-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
}

.res-hero p {
    max-width: 780px;
    margin: 12px 0 0;
    color: rgba(255,255,255,.82);
    font-size: 14px;
    line-height: 1.6;
}

.res-section {
    padding: 48px 0 65px;
}

.res-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 25px;
}

.res-heading > div:first-child > span {
    display: block;
    margin-bottom: 5px;
    color: #0072bc;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.res-heading h2 {
    position: relative;
    margin: 0;
    padding-bottom: 11px;
    color: #0b3264;
    font-size: 27px;
    font-weight: 800;
}

.res-heading h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 52px;
    height: 3px;
    border-radius: 10px;
    background: #0072bc;
}

.res-total {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid #d5e0eb;
    border-radius: 20px;
    background: #ffffff;
    color: #65778b;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.res-total i {
    color: #0b3264;
}

.res-filters {
    display: grid;
    grid-template-columns:
        minmax(280px, 1fr)
        200px
        auto
        auto;
    gap: 10px;
    margin-bottom: 25px;
    padding: 15px;
    border: 1px solid #dce5ee;
    border-radius: 12px;
    background: #ffffff;
    box-shadow:
        0 3px 13px
        rgba(11,50,100,.04);
}

.res-search,
.res-year {
    position: relative;
    display: flex;
    align-items: center;
}

.res-search > i,
.res-year > i {
    position: absolute;
    left: 13px;
    color: #8190a1;
    font-size: 13px;
    pointer-events: none;
    z-index: 2;
}

.res-search input,
.res-year select {
    width: 100%;
    height: 43px;
    padding: 8px 12px 8px 38px;
    border: 1px solid #d5e0ea;
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    color: #34495e;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 12.5px;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.res-search input::placeholder {
    color: #9ba8b5;
}

.res-search input:focus,
.res-year select:focus {
    border-color: #0b3264;
    box-shadow:
        0 0 0 3px
        rgba(11,50,100,.08);
}

.res-search-btn,
.res-clear-btn {
    height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 15px;
    border-radius: 8px;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.res-search-btn {
    border: 0;
    background: #0b3264;
    color: #ffffff;
    cursor: pointer;
}

.res-search-btn:hover {
    background: #0072bc;
    color: #ffffff;
}

.res-clear-btn {
    border: 1px solid #d1dbe5;
    background: #ffffff;
    color: #53677c;
}

.res-clear-btn:hover {
    border-color: #b8c7d6;
    background: #f2f6fa;
    color: #0b3264;
}

.res-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.res-card {
    display: grid;
    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 17px;
    min-height: 100px;
    padding: 17px 18px;
    border: 1px solid #dce5ee;
    border-radius: 12px;
    background: #ffffff;
    box-shadow:
        0 3px 13px
        rgba(11,50,100,.045);
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.res-card:hover {
    transform: translateY(-2px);
    border-color: #bdd0e1;
    box-shadow:
        0 8px 22px
        rgba(11,50,100,.09);
}

.res-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 11px;
    background: #eaf3fb;
    color: #0b3264;
    font-size: 24px;
}

.res-icon .fa-file-pdf {
    color: #c62828;
}

.res-info {
    min-width: 0;
}

.res-label {
    display: block;
    margin-bottom: 4px;
    color: #0072bc;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.res-info h3 {
    margin: 0 0 8px;
    color: #0b3264;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.res-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.res-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #7a8a9c;
    font-size: 10.5px;
}

.res-meta i {
    color: #65809c;
}

.res-type {
    padding: 3px 7px;
    border-radius: 4px;
    background: #eef4fa;
    color: #0b3264 !important;
    font-weight: 700;
}

.res-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.res-btn {
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 13px;
    border-radius: 7px;
    font-size: 10.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}


/* VER ARCHIVO */

.res-btn-primary {
    border: 1px solid #0b3264;
    background: #0b3264;
    color: #ffffff;
}

.res-btn-primary:hover {
    transform: translateY(-1px);
    border-color: #0072bc;
    background: #0072bc;
    color: #ffffff;
}


/* DESCARGAR */

.res-btn-light {
    border: 1px solid #cedae6;
    background: #ffffff;
    color: #0b3264;
}

.res-btn-light:hover {
    transform: translateY(-1px);
    border-color: #0b3264;
    background: #eef5fb;
    color: #0b3264;
}

.res-disabled {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 11px;
    border-radius: 7px;
    background: #f2f4f6;
    color: #8c99a6;
    font-size: 10px;
    font-weight: 600;
}

.res-pagination {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 28px;
}

.res-page-number,
.res-page-arrow {
    width: 39px;
    height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d4dee9;
    border-radius: 7px;
    background: #ffffff;
    color: #0b3264;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.res-page-number:hover,
.res-page-arrow:hover {
    border-color: #0b3264;
    background: #eef5fb;
    color: #0b3264;
}

.res-page-number.active {
    border-color: #0b3264;
    background: #0b3264;
    color: #ffffff;
}

.res-empty {
    padding: 55px 25px;
    border: 1px solid #dce5ee;
    border-radius: 14px;
    background: #ffffff;
    text-align: center;
    box-shadow:
        0 3px 13px
        rgba(11,50,100,.04);
}

.res-empty > i {
    margin-bottom: 15px;
    color: #0b3264;
    font-size: 50px;
}

.res-empty h2 {
    margin: 0 0 8px;
    color: #0b3264;
    font-size: 20px;
    font-weight: 700;
}

.res-empty p {
    max-width: 500px;
    margin: 0 auto;
    color: #718195;
    font-size: 12.5px;
    line-height: 1.6;
}

@media (max-width: 991.98px) {

    .res-hero {
        padding: 42px 0 38px;
    }

    .res-hero h1 {
        font-size: 31px;
    }

    .res-section {
        padding: 40px 0 50px;
    }

    .res-filters {
        grid-template-columns:
            minmax(0, 1fr)
            180px;
    }

    .res-card {
        grid-template-columns:
            auto
            minmax(0, 1fr);
    }

    .res-actions {
        grid-column: 2;
        justify-content: flex-start;
    }

}

@media (max-width: 575.98px) {

    .res-container {
        width: calc(100% - 26px);
    }


    /* HERO */

    .res-hero {
        padding: 32px 0;
    }

    .res-eyebrow {
        font-size: 9.5px;
    }

    .res-hero h1 {
        font-size: 25px;
        line-height: 1.2;
    }

    .res-hero p {
        margin-top: 10px;
        font-size: 12.5px;
    }


    /* SECCIÓN */

    .res-section {
        padding: 28px 0 38px;
    }


    /* ENCABEZADO */

    .res-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 20px;
    }

    .res-heading h2 {
        font-size: 22px;
    }


    /* FILTROS */

    .res-filters {
        grid-template-columns: 1fr;
        gap: 9px;
        padding: 12px;
        margin-bottom: 20px;
    }

    .res-search input,
    .res-year select,
    .res-search-btn,
    .res-clear-btn {
        width: 100%;
    }


    /* TARJETA */

    .res-card {
        grid-template-columns:
            42px
            minmax(0, 1fr);
        gap: 11px;
        min-height: 0;
        padding: 13px;
        border-radius: 9px;
    }


    /* ICONO */

    .res-icon {
        width: 42px;
        height: 42px;
        border-radius: 8px;
        font-size: 19px;
    }


    /* INFO */

    .res-info h3 {
        margin-bottom: 6px;
        font-size: 12.5px;
        line-height: 1.4;
    }

    .res-meta {
        gap: 6px;
    }

    .res-meta span {
        font-size: 9.5px;
    }


    /* BOTONES */

    .res-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .res-btn {
        width: 100%;
        min-height: 38px;
        font-size: 10px;
    }


    /* PAGINACIÓN */

    .res-pagination {
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 22px;
    }

    .res-page-number,
    .res-page-arrow {
        width: 36px;
        height: 36px;
        font-size: 11px;
    }


    /* VACÍO */

    .res-empty {
        padding: 38px 18px;
    }

    .res-empty > i {
        font-size: 42px;
    }

    .res-empty h2 {
        font-size: 18px;
    }

    .res-empty p {
        font-size: 11.5px;
    }

}

@media (max-width: 390px) {

    .res-container {
        width: calc(100% - 20px);
    }

    .res-hero h1 {
        font-size: 22px;
    }

    .res-heading h2 {
        font-size: 20px;
    }

    .res-actions {
        grid-template-columns: 1fr;
    }

    .res-btn {
        font-size: 9.5px;
    }

}