.portal-footer,
.portal-footer * {
    box-sizing: border-box;
}

.portal-footer {
    clear: both;
    margin-top: 42px;
    color: #dbe7ef;
    background: #101827;
    border-top: 4px solid #e84d3d;
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.55;
}

.portal-footer-shell {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}

.portal-footer-grid {
    display: grid;
    grid-template-columns: minmax(230px, 1.25fr) repeat(2, minmax(150px, .8fr)) minmax(210px, 1fr);
    gap: 34px;
    padding: 38px 0 32px;
}

.portal-footer-grid > div {
    min-width: 0;
}

.portal-footer-brand {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    margin-bottom: 10px;
}

.portal-footer-brand img {
    display: block;
    width: auto;
    max-width: 210px;
    max-height: 58px;
    object-fit: contain;
}

.portal-footer-intro > strong {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 16px;
}

.portal-footer-grid p {
    margin: 0 0 13px;
    color: #9fb2c1;
    font-size: 13px;
}

.portal-footer-grid .portal-footer-slogan {
    color: #f3b552;
    font-size: 12px;
}

.portal-footer-source {
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid rgba(219, 231, 239, .16);
}

.portal-footer-source p {
    margin-bottom: 8px;
    font-size: 11px;
}

.portal-footer-source a {
    color: #f3b552 !important;
    font-weight: 700;
}

.portal-footer-title {
    display: block;
    margin-bottom: 14px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.portal-footer-grid a:not(.portal-footer-brand) {
    display: block;
    width: fit-content;
    margin: 0 0 9px;
    color: #dbe7ef;
    font-size: 13px;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.portal-footer-grid a:not(.portal-footer-brand):hover {
    color: #f3b552;
    transform: translateX(3px);
}

.portal-footer-credits {
    padding-left: 22px;
    border-left: 1px solid rgba(219, 231, 239, .18);
}

.portal-footer-credits strong {
    color: #fff;
    font-size: 15px;
}

.portal-footer-credits .portal-footer-note {
    margin-top: 17px;
    font-size: 11px;
}

.portal-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0 19px;
    color: #91a6b5;
    border-top: 1px solid rgba(219, 231, 239, .16);
    font-size: 11px;
}

.portal-share {
    margin: 24px 0;
    padding: 16px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.portal-share > strong {
    display: block;
    margin-bottom: 10px;
    color: #111827;
    font-size: 14px;
}

.portal-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portal-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 7px;
    color: #fff !important;
    font: 600 13px/1 "Segoe UI", Arial, sans-serif;
    text-decoration: none;
    cursor: pointer;
}

.portal-share-button.facebook { background: #1877f2; }
.portal-share-button.x { background: #111827; }
.portal-share-button.whatsapp { background: #16a34a; }
.portal-share-button.email { background: #64748b; }
.portal-share-button.copy { background: #b23a2e; }
.portal-share-status { display: block; min-height: 18px; margin-top: 8px; color: #64748b; font-size: 12px; }

@media (max-width: 900px) {
    .portal-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 24px;
    }

    .portal-footer-intro {
        grid-column: 1 / -1;
    }

    .portal-footer-credits {
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 560px) {
    .portal-footer-shell {
        width: min(100% - 32px, 1240px);
    }

    .portal-footer-grid {
        grid-template-columns: 1fr;
        padding: 30px 0 24px;
    }

    .portal-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}
