/* Footer Rediseño SKF */

/* ============================================
   ELIMINAR ESPACIO BLANCO EN PÁGINAS DE LOGIN
   ============================================ */
/* Ocultar completamente el control-sidebar-bg que está creando espacio blanco */
body.light #app .control-sidebar-bg,
body.light #app > .control-sidebar-bg {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -9999 !important;
}

/* Eliminar márgenes y padding del body y html en páginas de login */
body.light {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

body.light #app {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh !important;
}

/* Eliminar espacio después del footer sin afectar la imagen de fondo */
body.light .skf-footer {
    margin-bottom: 0 !important;
}

/* ============================================ */

/* Ocultar cualquier footer antiguo que pueda existir */
.header-login.primary-color:not(.skf-footer),
.primary-color[class*="footer"]:not(.skf-footer),
footer:not(.skf-footer),
footer.primary-color:not(.skf-footer) {
    display: none !important;
}

.skf-footer {
    background-color: var(--color-brand-blue);
    padding: 2rem 1.5rem;
    width: 100%;
    position: relative;
    z-index: 1000;
    font-family: 'SKFSans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    align-items: center;
}

/* Footer fijo en páginas de login - pegado al fondo del navegador */
body.light .page.parallel .skf-footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    z-index: 1000 !important;
}

/* Compatibilidad con footer antiguo - si necesita posición fixed */
.skf-footer.fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

.skf-footer__container {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Sección de Información de Contacto */
.skf-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
}

.skf-footer__contact-label {
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 400;
    margin: 0;
}

.skf-footer__contact-email {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.skf-footer__contact-email:hover {
    opacity: 0.8;
    text-decoration: none;
    color: var(--color-white);
}

.skf-footer__contact-icon {
    font-size: 16px;
    color: var(--color-white);
    flex-shrink: 0;
    display: inline-block;
}

/* Sección de Copyright */
.skf-footer__copyright {
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 400;
    text-align: center;
    flex: 1;
    min-width: 150px;
}

/* Botón de Términos y Condiciones */
.skf-footer__terms {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    min-width: 200px;
}

.skf-footer__terms-button {
    background-color: transparent;
    border: 1px solid var(--color-white);
    color: var(--color-white);
    padding: 0.625rem 1.25rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    font-family: inherit;
}

.skf-footer__terms-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    text-decoration: none;
    border-color: var(--color-white);
}

.skf-footer__terms-button:focus {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}

/* Responsive - Mobile (mínimo 390px) */
@media screen and (max-width: 767px) {
    .skf-footer {
        padding: 2rem 1rem;
    }

    .skf-footer__container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .skf-footer__contact {
        align-items: center;
        width: 100%;
    }

    .skf-footer__contact-label {
        text-align: center;
    }

    .skf-footer__contact-email {
        justify-content: center;
    }

    .skf-footer__copyright {
        width: 100%;
        order: 2;
    }

    .skf-footer__terms {
        justify-content: center;
        width: 100%;
        order: 3;
    }

    .skf-footer__terms-button {
        width: 100%;
        max-width: 280px;
    }
}

/* Desktop - 1280px a 1920px */
@media screen and (min-width: 1280px) {
    .skf-footer {
        height: 76px;
        padding: 0 3rem;
        display: flex;
        align-items: center;
    }

    .skf-footer__container {
        gap: 2rem;
        width: 100%;
    }
}

/* Desktop grande - 1600px+ */
@media screen and (min-width: 1600px) {
    .skf-footer {
        height: 76px;
        padding: 0 4rem;
    }
}

/* Ajustes para páginas normales - footer relativo */
.page:not(.parallel) .skf-footer {
    position: relative;
}

/* Asegurar que no haya espacio blanco debajo del footer en páginas de login */
body.light #app .page.parallel {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Eliminar cualquier espacio después del footer */
body.light .skf-footer {
    margin-bottom: 0 !important;
    margin-top: auto !important;
}

/* Si se necesita mantener el footer fijo en algunas páginas */
.skf-footer.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

