/* Plantilla institucional compartida UBO: header y footer. */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

:root {
    --navy: #16244C;
    --navy-400: #3A5490;
    --ubo-blue: #5C9BE6;
    --green: #22A45D;
    --footer-bg: #0E0E10;
    --fac-verde: #81D742;
    --fac-azul: #1E73BE;
    --fac-rojo: #DD3333;
    --fac-morado: #51509D;
}

/* ============ HEADER ============ */
/* No es sticky: el banner completo se desplaza y desaparece al hacer scroll. */
.site-header {
    position: relative;
    z-index: 30;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
    color: initial;
    text-align: initial;
    border: 0;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    box-shadow: 0 2px 16px -10px rgba(22, 36, 76, .5);
}

.topbar-accent { display: flex; height: 3px; width: 100%; }
.topbar-accent span { flex: 1; }
.topbar-accent span:nth-child(1) { background: var(--fac-verde); }
.topbar-accent span:nth-child(2) { background: var(--fac-azul); }
.topbar-accent span:nth-child(3) { background: var(--fac-rojo); }
.topbar-accent span:nth-child(4) { background: var(--fac-morado); }

.header-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 46px 12px 150px;
}

.header-platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    white-space: nowrap;
}

.header-platform .hp-main {
    padding: 1px 7px;
    color:black;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.header-platform .hp-sub {
    color: #262626;
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.3;
}

.header-bar .brand { display: flex; align-items: center; user-select: none; }
.header-bar .brand img {
    height: 94px;
    width: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.header-tag {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 3px;
    padding-left: 16px;
    border-left: 3px solid var(--navy);
}

.header-tag .ht-main {
    font-size: .9rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
    white-space: nowrap;
}

.header-tag .ht-sub {
    font-size: .8rem;
    font-weight: 500;
    color: var(--navy-400);
    letter-spacing: .01em;
    white-space: nowrap;
}

/* ============ FOOTER ============ */
.footer {
    width: 100%;
    margin: 0;
    border: 0;
    background: var(--footer-bg);
    color: #fff;
    text-align: center;
    padding: 50px 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
}

.footer-logo-main { width: 112px; height: auto; margin-bottom: 20px; opacity: .96; }
.footer h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: .01em; color: #fff; }
.footer h4 { margin: 7px 0 0; font-size: 14px; font-weight: 400; color: rgba(255,255,255,.62); }

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 40px;
    margin-top: 22px;
}

.footer-contact span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: rgba(255,255,255,.9);
    font-size: 14.5px;
}

.footer-ico { width: 19px; height: 19px; color: rgba(255,255,255,.75); transition: color .2s ease; }
.footer-link { color: #fff; text-decoration: none; transition: color .2s ease; }
.footer-contact span:hover .footer-link,
.footer-link:hover { color: var(--ubo-blue); }
.footer-contact span:hover .footer-ico { color: var(--ubo-blue); }

.footer-divider {
    width: min(860px, 88%);
    border: none;
    border-top: 1px solid rgba(255,255,255,.14);
    margin: 30px 0 24px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
    width: min(860px, 88%);
    color: rgba(255,255,255,.62);
    font-size: 13px;
}

.footer-bottom img { height: 56px; width: auto; opacity: .9; }
.footer-bottom span { text-align: right; max-width: 340px; }

@media (max-width: 1180px) {
    .header-bar {
        flex-wrap: wrap;
        padding-left: 46px;
    }

    .header-platform {
        order: 3;
        width: 100%;
        margin-top: 2px;
    }
}

@media (max-width: 760px) {
    .header-bar { padding: 10px 20px; }
    .header-bar .brand img { height: 64px; }
    .header-platform .hp-main { font-size: 10.5px; }
    .header-platform .hp-sub { font-size: 11px; }
    .header-tag { padding-left: 12px; }
    .header-tag .ht-main { font-size: 10.5px; }
    .header-tag .ht-sub { font-size: 9px; }
}

@media (max-width: 560px) {
    .header-tag { display: none; }
    .header-platform { margin-top: 5px; }
    .footer-bottom { flex-direction: column; justify-content: center; text-align: center; gap: 16px; }
    .footer-bottom span { text-align: center; }
}
