.dg-page {
    width: 100%;
    background: #f5f8fc;
    font-family: "Open Sans", Arial, sans-serif;
}

.dg-container {
    width: calc(100% - 40px);
    max-width: 1400px;
    margin: 0 auto;
}

.dg-hero {
    padding: 52px 0 45px;

    background:
        linear-gradient(
            135deg,
            #082b58,
            #0b3d75
        );

    color: #ffffff;
}

.dg-eyebrow {
    display: block;

    margin-bottom: 7px;

    color: #72c2f2;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.7px;
}

.dg-hero h1 {
    margin: 0;

    max-width: 850px;

    color: #ffffff;

    font-size: 38px;
    font-weight: 800;

    line-height: 1.2;
}

.dg-hero p {
    max-width: 720px;

    margin: 12px 0 0;

    color: rgba(255, 255, 255, .82);

    font-size: 14px;

    line-height: 1.6;
}

.dg-section {
    padding: 50px 0 65px;
}

.dg-section-heading {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 25px;

    margin-bottom: 25px;
}

.dg-section-heading > div:first-child > span {
    display: block;

    margin-bottom: 5px;

    color: #0072bc;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.dg-section-heading h2 {
    position: relative;

    margin: 0;

    padding-bottom: 11px;

    color: #0b3264;

    font-size: 27px;
    font-weight: 800;
}

.dg-section-heading h2::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 52px;
    height: 3px;

    border-radius: 10px;

    background: #0072bc;
}

.dg-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;
}

.dg-total i {
    color: #0b3264;
}

.dg-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);
}

.dg-search,
.dg-year-filter {
    position: relative;

    display: flex;

    align-items: center;
}

.dg-search > i,
.dg-year-filter > i {
    position: absolute;

    left: 13px;

    color: #8190a1;

    font-size: 13px;

    pointer-events: none;

    z-index: 2;
}

.dg-search input,
.dg-year-filter 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;
}

.dg-search input::placeholder {
    color: #9aa8b7;
}

.dg-search input:focus,
.dg-year-filter select:focus {
    border-color: #0b3264;

    box-shadow:
        0 0 0 3px
        rgba(11, 50, 100, .08);
}

.dg-filter-button,
.dg-clear-button {
    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: .2s ease;
}

.dg-filter-button {
    border: 0;

    background: #0b3264;

    color: #ffffff;

    cursor: pointer;
}

.dg-filter-button:hover {
    background: #0072bc;

    color: #ffffff;
}

.dg-clear-button {
    border: 1px solid #d1dbe5;

    background: #ffffff;

    color: #53677c;
}

.dg-clear-button:hover {
    border-color: #b8c7d6;

    background: #f2f6fa;

    color: #0b3264;
}

.dg-list {
    display: flex;

    flex-direction: column;

    gap: 11px;
}

.dg-document {
    display: grid;
    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 17px;

    min-height: 94px;

    padding: 16px 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;
}

.dg-document:hover {
    transform: translateY(-2px);

    border-color: #bdd0e1;

    box-shadow:
        0 8px 22px
        rgba(11, 50, 100, .09);
}

.dg-document-icon {
    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 11px;

    background: #eaf3fb;

    color: #0b3264;

    font-size: 24px;
}

.dg-document-icon .fa-file-pdf {
    color: #c62828;
}

.dg-document-icon .fa-file-word {
    color: #1e5ba8;
}

.dg-document-icon .fa-file-excel {
    color: #238445;
}


.dg-document-icon .fa-file-powerpoint {
    color: #d24726;
}


.dg-document-icon .fa-file-lines {
    color: #0b3264;
}

.dg-document-info {
    min-width: 0;
}

.dg-document-info h3 {
    margin: 0 0 8px;

    color: #0b3264;

    font-size: 14px;
    font-weight: 700;

    line-height: 1.45;

    overflow-wrap: anywhere;
}

.dg-document-meta {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;
}

.dg-document-meta span {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    color: #7a8a9c;

    font-size: 10.5px;
}

.dg-document-meta i {
    color: #65809c;
}

.dg-extension {
    padding: 3px 7px;

    border-radius: 4px;

    background: #eef4fa;

    color: #0b3264 !important;

    font-weight: 700;
}

.dg-document-actions {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 7px;
}


.dg-btn {
    min-height: 38px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    padding: 7px 12px;

    border-radius: 7px;

    font-family: "Open Sans", Arial, sans-serif;

    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 */

.dg-btn-primary {
    border: 1px solid #0b3264;

    background: #0b3264;

    color: #ffffff;
}

.dg-btn-primary:hover {
    border-color: #0072bc;

    background: #0072bc;

    color: #ffffff;
}


/* DESCARGAR */

.dg-btn-light {
    border: 1px solid #cedae6;

    background: #ffffff;

    color: #0b3264;
}

.dg-btn-light:hover {
    border-color: #0b3264;

    background: #eef5fb;

    color: #0b3264;
}

.dg-no-file {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    color: #9a6b00;

    font-size: 11px;
}

.dg-pagination {
    display: flex;

    align-items: center;

    gap: 7px;

    margin-top: 28px;
}

.dg-page-number,
.dg-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-family: "Open Sans", Arial, sans-serif;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.dg-page-number:hover,
.dg-page-arrow:hover {
    border-color: #0b3264;

    background: #eef5fb;

    color: #0b3264;
}


/* PÁGINA ACTUAL */

.dg-page-number.active {
    border-color: #0b3264;

    background: #0b3264;

    color: #ffffff;
}

.dg-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);
}

.dg-empty > i {
    margin-bottom: 15px;

    color: #0b3264;

    font-size: 50px;
}

.dg-empty h2 {
    margin: 0 0 8px;

    color: #0b3264;

    font-size: 20px;
    font-weight: 700;
}

.dg-empty p {
    max-width: 500px;

    margin: 0 auto 18px;

    color: #718195;

    font-size: 12.5px;

    line-height: 1.6;
}

@media (max-width: 991.98px) {

    .dg-hero {
        padding: 42px 0 38px;
    }

    .dg-hero h1 {
        font-size: 31px;
    }

    .dg-section {
        padding: 40px 0 50px;
    }


    /* FILTROS */

    .dg-filters {
        grid-template-columns:
            minmax(0, 1fr)
            180px;
    }

    .dg-document {
        grid-template-columns:
            auto
            minmax(0, 1fr);
    }

    .dg-document-actions {
        grid-column: 2;

        justify-content: flex-start;

        padding-left: 0;
    }

}

@media (max-width: 575.98px) {

    .dg-container {
        width: calc(100% - 26px);
    }


    /* HERO */

    .dg-hero {
        padding: 32px 0;
    }

    .dg-eyebrow {
        font-size: 9.5px;
    }

    .dg-hero h1 {
        font-size: 26px;

        line-height: 1.22;
    }

    .dg-hero p {
        margin-top: 10px;

        font-size: 12.5px;
    }


    /* SECCIÓN */

    .dg-section {
        padding: 28px 0 38px;
    }

    .dg-section-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 14px;

        margin-bottom: 20px;
    }

    .dg-section-heading h2 {
        font-size: 22px;
    }


    /* FILTROS */

    .dg-filters {
        grid-template-columns: 1fr;

        gap: 9px;

        padding: 12px;

        margin-bottom: 20px;
    }

    .dg-search input,
    .dg-year-filter select,
    .dg-filter-button,
    .dg-clear-button {
        width: 100%;
    }

    .dg-search input,
    .dg-year-filter select {
        height: 44px;

        font-size: 12px;
    }

    .dg-filter-button,
    .dg-clear-button {
        height: 42px;
    }

    .dg-document {
        grid-template-columns:
            42px
            minmax(0, 1fr);

        gap: 11px;

        min-height: 0;

        padding: 13px;

        border-radius: 9px;
    }


    .dg-document-icon {
        width: 42px;
        height: 42px;

        border-radius: 8px;

        font-size: 19px;
    }


    .dg-document-info h3 {
        margin-bottom: 6px;

        font-size: 12.5px;

        line-height: 1.4;
    }

    .dg-document-meta {
        gap: 6px;
    }

    .dg-document-meta span {
        font-size: 9.5px;
    }

    .dg-document-actions {
        grid-column: 1 / -1;

        display: grid;

        grid-template-columns:
            1fr 1fr;

        width: 100%;

        padding-left: 0;

        margin-top: 3px;
    }

    .dg-btn {
        width: 100%;

        min-height: 37px;

        font-size: 10px;
    }

    .dg-pagination {
        justify-content: center;

        flex-wrap: wrap;

        gap: 6px;

        margin-top: 22px;
    }

    .dg-page-number,
    .dg-page-arrow {
        width: 36px;
        height: 36px;

        font-size: 11px;
    }

    .dg-empty {
        padding: 38px 18px;
    }

    .dg-empty > i {
        font-size: 42px;
    }

    .dg-empty h2 {
        font-size: 18px;
    }

    .dg-empty p {
        font-size: 11.5px;
    }

}

@media (max-width: 390px) {

    .dg-container {
        width: calc(100% - 20px);
    }

    .dg-hero h1 {
        font-size: 23px;
    }

    .dg-section-heading h2 {
        font-size: 20px;
    }


    /*
       En pantallas muy pequeñas:
       VER
       DESCARGAR
       uno debajo del otro.
    */

    .dg-document-actions {
        grid-template-columns: 1fr;
    }

}