.footer-enterprise-3d {
    --footer-surface: #07121f;
    --footer-border: rgba(210, 224, 238, 0.13);
    --footer-text: #f5f8fb;
    --footer-muted: #b4c2ce;
    --footer-subtle: #8294a4;
    --footer-highlight: #d4a853;
    --footer-tech: #64c3d2;
    --footer-toolbox-clearance: calc(52px + 18px + 1rem);

    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    width: 100%;
    margin-top: clamp(1.25rem, 2.5vw, 2.25rem);
    overflow: hidden;
    isolation: isolate;
    color: var(--footer-text);
    background: var(--footer-surface);
    border-top: 1px solid var(--footer-border);
    box-shadow: 0 -18px 38px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.footer-content {
    position: relative;
    z-index: 1;
    width: min(100%, 1500px);
    margin: 0 auto;
    padding: 0.9rem clamp(1rem, 2.8vw, 2.5rem) 1rem;
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(290px, 0.95fr) minmax(0, 2fr);
    align-items: center;
    gap: 2.5rem;
    padding-bottom: 0.1rem;
}

.footer-identity,
.footer-platform-badge {
    display: flex;
    align-items: center;
}

.footer-identity {
    min-width: 0;
    gap: 1rem;
}

.footer-logo-shell {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: clamp(7rem, 9vw, 7.25rem);
    height: clamp(4rem, 5.25vw, 4.75rem);
    padding: 0.25rem;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff, #e9edf2);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 0.8rem;
    box-shadow: inset 0 1px 0 #ffffff, 0 10px 22px rgba(0, 0, 0, 0.28);
}

.footer-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.58rem;
}

.footer-brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0.2rem;
}

.footer-kicker {
    color: var(--footer-tech);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.25;
    text-transform: uppercase;
}

.footer-kicker {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.footer-title {
    margin: 0;
    color: var(--footer-text);
    font-size: clamp(1.05rem, 1.35vw, 1.3rem);
    font-weight: 700;
    letter-spacing: -0.018em;
    line-height: 1.25;
}

.footer-tagline {
    color: var(--footer-subtle);
    font-size: 0.78rem;
    line-height: 1.4;
}

.footer-bottom {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: flex-end;
    width: calc(100% - var(--footer-toolbox-clearance));
    margin-right: var(--footer-toolbox-clearance);
    gap: 1.25rem;
    padding: 0;
    color: var(--footer-subtle);
    text-align: right;
}

.footer-legal {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem 0.75rem;
    font-size: 0.72rem;
    line-height: 1.4;
    text-align: right;
}

.footer-legal strong {
    color: var(--footer-muted);
    font-weight: 750;
}

.footer-legal time {
    color: var(--footer-text);
    font-variant-numeric: tabular-nums;
}

.footer-separator {
    width: 1px;
    height: 0.9rem;
    flex: 0 0 auto;
    background: var(--footer-border);
}

.footer-platform-badge {
    align-self: flex-end;
    flex: 0 0 auto;
    gap: 0.4rem;
    color: var(--footer-muted);
    font-size: 0.69rem;
    font-weight: 600;
    white-space: nowrap;
}

.footer-platform-badge i {
    color: var(--footer-highlight);
    font-size: 0.72rem;
}

.footer-dav-line {
    position: relative;
    z-index: 1;
    width: min(100%, 1500px);
    height: 2px;
    margin: 0 auto;
    background: var(--footer-border);
    opacity: 1;
}

html:not(.dark) .footer-enterprise-3d {
    --footer-surface: #f5f8fb;
    --footer-border: rgba(28, 50, 69, 0.14);
    --footer-text: #1c3040;
    --footer-muted: #506777;
    --footer-subtle: #718492;
    --footer-highlight: #a7770a;
    --footer-tech: #116b8a;

    background: var(--footer-surface);
    box-shadow: 0 -14px 30px rgba(31, 55, 75, 0.1), inset 0 1px 0 #ffffff;
}

html:not(.dark) .footer-logo-shell {
    box-shadow: inset 0 1px 0 #ffffff, 0 8px 18px rgba(31, 55, 75, 0.14);
}

@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .footer-bottom {
        width: calc(100% - var(--footer-toolbox-clearance));
        margin-right: var(--footer-toolbox-clearance);
        padding-top: 1.1rem;
        border-top: 1px solid var(--footer-border);
    }
}

@media (max-width: 767px) {
    .footer-enterprise-3d {
        --footer-toolbox-clearance: calc(52px + 18px + 0.65rem);
        margin-top: 1.25rem;
    }

    .footer-content {
        padding: 1.2rem 1rem 0.9rem;
    }

    .footer-bottom {
        align-items: flex-end;
        flex-direction: column;
        gap: 0.7rem;
    }
}

@media (max-width: 440px) {
    .footer-identity {
        gap: 0.75rem;
    }

    .footer-logo-shell {
        width: 6rem;
        height: 3.5rem;
    }

    .footer-kicker {
        font-size: 0.58rem;
        letter-spacing: 0.12em;
    }

    .footer-title {
        font-size: 0.95rem;
    }

    .footer-tagline {
        font-size: 0.7rem;
    }

    .footer-legal {
        align-items: flex-end;
        flex-direction: column;
        gap: 0.25rem;
    }

    .footer-legal .footer-separator {
        display: none;
    }
}

/* Compact operational footer */
.banking-shell .footer-enterprise-3d {
    min-height: var(--app-footer-height, 50px);
    margin-top: 0;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    background: var(--footer-surface, #07121f);
    color: var(--footer-text, #f5f8fb);
    border-top: 1px solid var(--footer-border, rgba(210, 224, 238, .13));
    box-shadow: 0 -10px 24px rgba(0, 0, 0, .16), inset 0 1px 0 rgba(255,255,255,.035);
    font-family: 'Inter', system-ui, sans-serif;
}

.banking-shell .footer-enterprise-3d .footer-content {
    width: 100%;
    max-width: none;
    min-height: var(--app-footer-height, 50px);
    margin: 0;
    padding: 5px clamp(14px, 2.5vw, 28px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: inherit;
    font-size: 10px;
    line-height: 1.2;
}

.banking-shell .footer-partner-lockup {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
}

.banking-shell .footer-partner-datafile-mark {
    width: 66px;
    height: 32px;
    flex: 0 0 66px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .2);
}

.banking-shell .footer-partner-datafile-mark img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.banking-shell .footer-partner-connector {
    width: 1px;
    height: 25px;
    flex: 0 0 1px;
    background: linear-gradient(180deg, transparent, var(--footer-border) 25%, var(--footer-border) 75%, transparent);
}

.banking-shell .footer-partner-davivienda-mark {
    width: 76px;
    height: 28px;
    flex: 0 0 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px;
}

.banking-shell .footer-partner-davivienda-mark img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.banking-shell .footer-partner-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.banking-shell .footer-partner-kicker {
    color: var(--footer-tech, #64c3d2);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .14em;
    line-height: 1;
    white-space: nowrap;
}

.banking-shell .footer-partner-name {
    min-width: 0;
    overflow: hidden;
    color: var(--footer-muted, #b4c2ce);
    font-size: 10px;
    font-weight: 550;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.banking-shell .footer-partner-name strong { color: var(--footer-text, #f5f8fb); font-weight: 800; }
.banking-shell .footer-partner-name i { margin: 0 3px; color: var(--footer-highlight, #d4a853); font-style: normal; font-weight: 800; }
.banking-shell .footer-legal { display: inline; flex: none; color: var(--footer-subtle, #8294a4); font-size: 9px; text-align: right; white-space: nowrap; }

@media (max-width: 767px) {
    .banking-shell { --app-footer-height: 70px; }
    .banking-shell .footer-enterprise-3d { min-height: var(--app-footer-height); }
    .banking-shell .footer-enterprise-3d .footer-content { min-height: var(--app-footer-height); justify-content: center; flex-wrap: wrap; padding: 5px 12px; gap: 4px 12px; }
    .banking-shell .footer-partner-lockup { max-width: 100%; }
    .banking-shell .footer-partner-name { font-size: 9px; }
    .banking-shell .footer-legal { text-align: center; }
}

@media (max-width: 440px) {
    .banking-shell { --app-footer-height: 76px; }
    .banking-shell .footer-partner-datafile-mark { width: 58px; height: 28px; flex-basis: 58px; }
    .banking-shell .footer-partner-davivienda-mark { width: 66px; flex-basis: 66px; }
    .banking-shell .footer-partner-kicker { display: none; }
    .banking-shell .footer-partner-name { font-size: 8.5px; }
}
