/* 1) Reducir el espacio superior general del footer */
.footer .section-footer {
    padding-top: 4px !important;     /* antes suele ser muy alto */
    padding-bottom: 0 !important;
}

/* Si el theme aplica padding grande a la zona principal del footer */
.footer .tp-footer-main-area {
    padding-top: 0 !important;
}

/* 2) Evitar que el contenedor agregue “aire” arriba */
.footer .section-footer > .container-fluid,
.footer .section-footer .container {
    padding-top: 0 !important;
}

/* 3) Header superior (logo + about + redes) pegado arriba */
.footer .la-footer-info-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start !important;  /* clave para subir el logo */
    gap: 18px;

    padding-top: 0 !important;
    margin-top: 0 !important;

    padding-bottom: 14px;
    margin-bottom: 14px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* 4) Bloque de marca (izquierda) */
.footer .la-footer-info-brand {
    min-width: 280px;
}

/* 5) Logo: sin márgenes y alineado arriba */
.footer .la-footer-info-logo {
    display: inline-flex;
    align-items: flex-start;
    padding-top: 0 !important;
    margin-top: 0 !important;
    line-height: 1;
}

.footer .la-footer-info-logo img {
    display: block;
    height: 46px;
    width: auto;
    margin: 0 !important;
}

/* 6) Descripción: compacta y sobria */
.footer .la-footer-info-about {
    margin: 6px 0 0 !important;
    max-width: 560px;

    color: rgba(255, 255, 255, 0.70);
    font-weight: 500;
    line-height: 1.55;

    /* asegura que no cree un bloque grande innecesario */
    padding: 0 !important;
}

/* 7) Redes: alineadas arriba a la derecha */
.footer .la-footer-info-social {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 2px;
}

/* Botones sociales (cuadrados con borde como wireframe) */
.footer .la-footer-info-social .social-icons {
    display: inline-flex;
    align-items: center;
}

.footer .la-footer-info-social .la-social-btn {
    width: 40px;
    height: 40px;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.14) !important;

    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.footer .la-footer-info-social .la-social-btn:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-1px);
}

/* 8) Ajuste de columnas de widgets (mantener consistencia visual) */
.footer .tp-footer-main-area .row.py-90 {
    padding-top: 20px !important;  /* reduce la “caída” del contenido */
    padding-bottom: 40px !important;
}

/* Footer: mostrar solo un logo (evita duplicado dark + white) */
.footer .la-footer-info-logo .logo-dark {
    display: none !important;
}

.footer .la-footer-info-logo .logo-white {
    display: block !important;
}

/* 9) Responsive: apilar sin perder el “arriba” */
@media (max-width: 768px) {
    .footer .la-footer-info-top {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .footer .la-footer-info-social {
        width: 100%;
        justify-content: flex-start;
        padding-top: 8px;
    }

    .footer .la-footer-info-about {
        max-width: 100%;
    }
}
