.resources-page {
    overflow: hidden;
    background: var(--progreso-white);
    color: var(--progreso-ink);
    font-family: var(--progreso-body-font);
}

.resources-page p,
.resources-page li {
    font-family: var(--progreso-body-font) !important;
    font-size: var(--progreso-body-size) !important;
    font-weight: var(--progreso-body-weight) !important;
    line-height: var(--progreso-body-leading) !important;
    letter-spacing: var(--progreso-body-spacing) !important;
}

.resources-container {
    width: min(1320px, calc(100% - 96px));
    margin: 0 auto;
}

.resources-kicker {
    display: block;
    color: var(--progreso-gold-bright);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: .22em;
}

.resources-hero {
    position: relative;
    z-index: 8;
    min-height: 650px;
    margin-bottom: calc(0px - var(--progreso-v-depth));
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--progreso-v-depth)), 50% 100%, 0 calc(100% - var(--progreso-v-depth)));
    background-color: var(--progreso-ink);
    background-image: url('/assets/images/hero/biblioteca-juridica-progreso-v2.jpg');
    background-position: center bottom;
    background-size: cover;
    background-repeat: no-repeat;
}

.resources-hero::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 5;
    width: 100%;
    height: var(--progreso-v-depth);
    background: var(--progreso-gold);
    clip-path: polygon(0 0, 50% 100%, 100% 0, 50% calc(100% - var(--progreso-v-line)));
    pointer-events: none;
}

.resources-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(8,13,23,.18), rgba(8,13,23,.56) 31%, rgba(8,13,23,.72) 50%, rgba(8,13,23,.56) 69%, rgba(8,13,23,.18));
}

.resources-hero__content {
    padding: 118px 0 130px;
    text-align: center;
}

.resources-hero h1 {
    max-width: 860px;
    margin: 24px auto 0;
    color: var(--progreso-white);
    font: 700 clamp(54px, 5.6vw, 86px)/.98 Georgia, 'Times New Roman', serif;
}

.resources-rule {
    width: 110px;
    height: 4px;
    margin: 30px auto;
    background: var(--progreso-gold);
}

.resources-hero p {
    max-width: 710px;
    margin: 0 auto;
    color: rgba(255,255,255,.9);
}

.resources-section {
    --section-divider: var(--progreso-white);
    position: relative;
    padding: 112px 0;
}

.resources-section > .resources-container {
    position: relative;
    z-index: 5;
}

.resources-section::after,
.resources-section::before {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    pointer-events: none;
}

.resources-section::after {
    z-index: 6;
    bottom: calc(0px - var(--progreso-v-depth));
    height: var(--progreso-v-depth);
    background: var(--progreso-gold);
}

.resources-section::before {
    z-index: 7;
    bottom: calc(var(--progreso-v-line) - var(--progreso-v-depth));
    height: calc(var(--progreso-v-depth) - var(--progreso-v-line) + 2px);
    background: var(--section-divider);
}

.resources-section--white {
    --section-divider: var(--progreso-white);
    background: var(--progreso-white);
}

.resources-section--navy {
    --section-divider: var(--progreso-ink);
    background: var(--progreso-ink);
    color: var(--progreso-white);
}

.resources-section--white .resources-kicker {
    color: var(--progreso-bronze);
}

.resources-intro {
    padding-top: 170px;
}

.resources-intro__grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 70px;
    align-items: center;
}

.resources-intro h2,
.resources-heading h2,
.resources-featured h2,
.resources-contact h2 {
    margin: 20px 0 22px;
    font: 700 clamp(42px, 4.1vw, 68px)/1.02 Georgia, 'Times New Roman', serif;
}

.resources-intro p,
.resources-heading p {
    max-width: 780px;
    margin: 0;
}

.resources-notice {
    padding: 34px 38px;
    border-left: 5px solid var(--progreso-gold);
    background: var(--progreso-warm-white);
    box-shadow: 0 20px 50px rgba(8,13,23,.08);
}

.resources-notice strong {
    display: block;
    margin-bottom: 12px;
    color: var(--progreso-ink);
    font-size: 21px;
    font-weight: 600;
}

.resources-categories {
    margin-top: 58px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.resources-categories a {
    padding: 16px 18px;
    border: 1px solid rgba(155,97,37,.25);
    background: var(--progreso-white);
    color: var(--progreso-ink);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.resources-categories a:hover,
.resources-categories a:focus-visible {
    background: var(--progreso-gold);
    transform: translateY(-3px);
}

.resources-featured__grid {
    display: grid;
    grid-template-columns: 220px 1fr 270px;
    gap: 54px;
    align-items: center;
}

.resources-featured__mark {
    aspect-ratio: 1;
    display: grid;
    place-content: center;
    border: 1px solid rgba(213,165,91,.5);
    background: rgba(255,255,255,.04);
    text-align: center;
}

.resources-featured__mark span {
    color: var(--progreso-gold-bright);
    font: 700 48px/1 Georgia, serif;
}

.resources-featured__mark strong {
    margin-top: 10px;
    font-size: 13px;
    letter-spacing: .24em;
}

.resources-featured p {
    max-width: 680px;
    color: rgba(255,255,255,.78);
}

.resources-featured__actions {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.resources-button {
    min-height: 50px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .05em;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.resources-button:hover,
.resources-button:focus-visible {
    transform: translateY(-3px);
}

.resources-button--gold {
    background: var(--progreso-gold);
    color: var(--progreso-ink);
}

.resources-button--outline {
    border-color: rgba(255,255,255,.45);
    color: var(--progreso-white);
}

.resources-button--outline:hover,
.resources-button--outline:focus-visible {
    background: var(--progreso-white);
    color: var(--progreso-ink);
}

.resources-button--navy {
    background: var(--progreso-ink);
    color: var(--progreso-white);
}

.resources-featured__summary {
    display: grid;
    gap: 22px;
}

.resources-featured__summary span {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.76);
    font-size: 14px;
}

.resources-featured__summary strong {
    display: block;
    margin-bottom: 4px;
    color: var(--progreso-gold-bright);
    font: 700 30px/1 Georgia, serif;
}

.resources-heading {
    max-width: 900px;
    margin-bottom: 54px;
}

.resources-heading--light p {
    color: rgba(255,255,255,.76);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.resource-card {
    min-height: 390px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    border-top: 5px solid var(--progreso-gold);
    border-right: 1px solid rgba(155,97,37,.18);
    border-bottom: 1px solid rgba(155,97,37,.18);
    border-left: 1px solid rgba(155,97,37,.18);
    background: var(--progreso-warm-white);
    box-shadow: 0 18px 44px rgba(8,13,23,.08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.resource-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 26px 54px rgba(8,13,23,.14);
}

.resources-grid--dark .resource-card {
    border-color: rgba(213,165,91,.38);
    border-top-color: var(--progreso-gold);
    background: #101827;
    box-shadow: none;
}

.resource-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.resource-card__icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    background: var(--progreso-ink);
    color: var(--progreso-gold-bright);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
}

.resources-grid--dark .resource-card__icon {
    background: var(--progreso-gold);
    color: var(--progreso-ink);
}

.resource-card__type {
    color: var(--progreso-bronze);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-align: right;
    text-transform: uppercase;
}

.resources-grid--dark .resource-card__type {
    color: var(--progreso-gold-bright);
}

.resource-card h3 {
    margin: 28px 0 16px;
    color: var(--progreso-ink);
    font: 700 27px/1.12 Georgia, 'Times New Roman', serif;
}

.resources-grid--dark .resource-card h3 {
    color: var(--progreso-white);
}

.resource-card p {
    margin: 0 0 28px;
    color: var(--progreso-muted);
}

.resources-grid--dark .resource-card p {
    color: rgba(255,255,255,.7);
}

.resource-card__actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
}

.resource-card__actions a {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
}

.resource-card__download {
    color: var(--progreso-bronze);
}

.resources-grid--dark .resource-card__download {
    color: var(--progreso-gold-bright);
}

.resource-card__source {
    color: var(--progreso-muted);
}

.resources-grid--dark .resource-card__source {
    color: rgba(255,255,255,.7);
}

.resource-card__actions a:hover,
.resource-card__actions a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.resources-sources__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(213,165,91,.35);
    border: 1px solid rgba(213,165,91,.35);
}

.resources-sources__grid article {
    min-height: 270px;
    padding: 34px;
    background: var(--progreso-ink);
}

.resources-sources__grid span {
    color: var(--progreso-gold-bright);
    font: 700 18px/1 Georgia, serif;
}

.resources-sources__grid h3 {
    margin: 18px 0 14px;
    color: var(--progreso-white);
    font: 700 25px/1.15 Georgia, serif;
}

.resources-sources__grid p {
    color: rgba(255,255,255,.72);
}

.resources-sources__grid a {
    display: inline-block;
    margin-top: 14px;
    color: var(--progreso-gold-bright);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
}

.resources-sources__note {
    margin: 34px 0 0;
    color: rgba(255,255,255,.68);
}

.resources-contact {
    position: relative;
    padding: 150px 0 94px;
    background: var(--progreso-white);
    color: var(--progreso-ink);
}

.resources-contact__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 70px;
    align-items: center;
}

.resources-contact .resources-kicker {
    color: var(--progreso-ink);
}

.resources-contact h2 {
    max-width: 850px;
}

.resources-contact p {
    max-width: 760px;
}

.resources-contact__actions {
    display: grid;
    gap: 18px;
    justify-items: center;
}

.resources-contact__phone {
    font-size: 26px;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .resources-featured__grid { grid-template-columns: 180px 1fr; }
    .resources-featured__summary { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
    .resources-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .resources-categories { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .resources-container { width: calc(100% - 30px); }
    .resources-hero {
        min-height: 580px;
        background-position: center bottom;
    }
    .resources-hero__content { padding: 110px 0 125px; }
    .resources-hero h1 { font-size: clamp(46px, 14vw, 66px); }
    .resources-section { padding: 92px 0; }
    .resources-intro { padding-top: 145px; }
    .resources-intro__grid,
    .resources-featured__grid,
    .resources-contact__inner { grid-template-columns: 1fr; gap: 38px; }
    .resources-categories,
    .resources-grid,
    .resources-sources__grid { grid-template-columns: 1fr; }
    .resources-featured__mark { width: 170px; }
    .resources-featured__summary { grid-column: auto; grid-template-columns: 1fr; }
    .resources-intro h2,
    .resources-heading h2,
    .resources-featured h2,
    .resources-contact h2 { font-size: clamp(38px, 11vw, 55px); }
    .resource-card { min-height: 0; }
    .resources-contact { padding-top: 130px; }
    .resources-contact__actions { justify-items: start; }
}

@media (prefers-reduced-motion: reduce) {
    .resource-card,
    .resources-button,
    .resources-categories a { transition: none; }
}
