/* =========================
   LINKS DE INTERÉS
========================= */

.links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.link-resource-card {
    min-height: 260px;

    padding: 26px;

    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 18px;

    border-radius: 26px;
    border: 1px solid rgba(214, 177, 97, 0.26);

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.96),
            rgba(255, 248, 235, 0.96)
        );

    box-shadow: 0 18px 42px rgba(44, 27, 6, 0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.link-resource-card:hover {
    transform: translateY(-4px);

    border-color: rgba(214, 177, 97, 0.5);

    box-shadow: 0 26px 54px rgba(44, 27, 6, 0.12);
}

.link-resource-card--featured {
    background:
        radial-gradient(
            circle at top right,
            rgba(214, 177, 97, 0.24),
            transparent 38%
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.98),
            rgba(255, 248, 235, 0.96)
        );
}

.link-resource-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background: rgba(214, 177, 97, 0.16);
    color: #c89c42;

    font-size: 1.35rem;
}

.link-resource-content {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.link-resource-tag {
    width: fit-content;

    margin-bottom: 12px;
    padding: 7px 13px;

    border-radius: 999px;

    background: rgba(214, 177, 97, 0.14);
    color: #9b7132;

    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.link-resource-card h3 {
    margin: 0 0 12px;

    color: #082f5f;

    font-size: 1.25rem;
    font-weight: 850;
    line-height: 1.15;
}

.link-resource-card p {
    margin: 0;

    color: rgba(7, 48, 94, 0.82);

    font-size: 0.94rem;
    line-height: 1.7;

    flex: 1;
}

.link-resource-btn {
    width: fit-content;
    min-height: 42px;

    margin-top: 20px;
    padding: 0 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    border-radius: 999px;

    background: #ead28e;
    color: #0f376d;

    font-size: 0.86rem;
    font-weight: 850;
    text-decoration: none;

    transition:
        transform 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease;
}

.link-resource-btn:hover {
    transform: translateY(-2px);

    background: #d6b161;

    box-shadow: 0 12px 26px rgba(214, 177, 97, 0.24);
}

/* DARK MODE */

html[data-theme="dark"] .link-resource-card {
    background:
        linear-gradient(
            180deg,
            rgba(24, 36, 56, 0.98),
            rgba(18, 28, 44, 0.98)
        );

    border-color: rgba(214, 177, 97, 0.16);

    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .link-resource-card h3 {
    color: #f8f1df;
}

html[data-theme="dark"] .link-resource-card p {
    color: rgba(245, 236, 214, 0.84);
}

html[data-theme="dark"] .link-resource-icon {
    background: rgba(214, 177, 97, 0.12);
    color: #e5bf6d;
}

html[data-theme="dark"] .link-resource-tag {
    background: rgba(214, 177, 97, 0.12);
    color: #f0d28d;
}

html[data-theme="dark"] .link-resource-btn {
    background:
        linear-gradient(
            180deg,
            #d6b161,
            #c89c42
        );

    color: #0f1b2c;
}

/* RESPONSIVE */

@media (max-width: 850px) {
    .links-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .link-resource-card {
        min-height: auto;

        grid-template-columns: 1fr;
        gap: 14px;

        padding: 22px 18px;

        border-radius: 24px;
    }

    .link-resource-icon {
        width: 52px;
        height: 52px;
    }

    .link-resource-card h3 {
        font-size: 1.18rem;
    }

    .link-resource-card p {
        font-size: 0.92rem;
        line-height: 1.68;
    }

    .link-resource-btn {
        width: 100%;
    }
}