/* FINSA - Layout del portal careers integrado con topBar/footBar legacy.
 * Las reglas del header/footer originales del portal careers fueron retiradas
 * para evitar que .nav-item, .dropdown-menu y .active modifiquen el menú legacy.
 * El estilo del header y footer lo proveen los estilos compartidos del sitio.
 */

/* Tipografías disponibles para las vistas careers */
@font-face {
    font-family: 'ARS Maquette Pro';
    src: url('../../../fonts/ars-marquette/ARSMaquettePro-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ARS Maquette Pro';
    src: url('../../../fonts/ars-marquette/ARSMaquettePro-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ARS Maquette Pro';
    src: url('../../../fonts/ars-marquette/ARSMaquettePro-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ARS Maquette Pro';
    src: url('../../../fonts/ars-marquette/ARSMaquettePro-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* La tipografía del sitio legacy permanece a cargo de sus propias hojas.
   ARS Maquette se usa en la landing de careers, no sobre el topBar/footBar. */
#main-content .finsa-legacy-landing {
    font-family: 'ARS Maquette Pro', sans-serif;
    font-weight: 500;
}

#main-content :is(button, input, select, textarea) {
    font-family: inherit;
}

/* Estructura común del layout; mantiene el pie al final de la pantalla. */
html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

#main-content {
    flex: 1;
    width: 100%;
}

#main-content {
    --primary-navy: #071e3d;
    --accent-cyan: #00a3e0;
    --bg-light: #fcf9f4;
    --text-main: #1d2939;
    --text-muted: #667085;
}

/* Conservado para enlaces de privacidad en las vistas careers. */
#main-content .privacy-link {
    color: #94a3b8;
    text-decoration: none;
}

/* La navegación pública queda fija SOLAMENTE si la vista contiene subheader.
   En páginas sin subheader, el topBar conserva su funcionamiento legacy. */
body.careers-has-subheader > .topbar {
    position: sticky;
    top: 0;
    z-index: 1200;
    flex-shrink: 0;
    align-self: stretch;
}
