/* ==========================================================================
   NUEVO LAYOUT FOOTER BRAND (50% / 50%)
   ========================================================================== */

.footer-brand-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 2rem; /* Espacio de seguridad entre columnas */
}

/* COLUMNA IZQUIERDA: Logo + Copyright (50%) */
.footer-col-left {
    flex: 0 0 50%;       /* Fuerza el 50% exacto */
    max-width: 50%;      /* Evita que crezca más allá */
    padding-right: 1rem; /* Margen interno para no pegar al tagline */
}

/* COLUMNA DERECHA: Tagline (50%) */
.footer-col-right {
    flex: 0 0 50%;       /* Fuerza el 50% exacto */
    max-width: 50%;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* --- ESTILOS INTERNOS DEL LOGO (Reconstruidos) --- */
.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* FIX CRÍTICO PARA EL LOGO: Tamaño fijo y contain */
.footer-logo-img {
    width: 60px !important;   /* Tamaño base escritorio */
    height: 60px !important;
    min-width: 60px !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    flex-shrink: 0;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-mark {
    font-weight: 700;
    font-size: 1.4rem;
    color: #fff;
}

.logo-text {
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
}

/* COPYRIGHT INTEGRADO */
.footer-copyright {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    line-height: 1.4;
}

/* TAGLINE */
.footer-tagline {
    font-size: 1rem;
    line-height: 1.3;
    color: #ffffff;
    margin: 0;
    font-weight: 500;
}

/* ==========================================================================
   RESPONSIVE (Móvil < 768px)
   ========================================================================== */

@media (max-width: 1024px) {
    .footer-brand-layout {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .footer-col-left, 
    .footer-col-right {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
        text-align: left; /* Todo a la izquierda en móvil */
    }

    .footer-logo-wrapper {
        justify-content: center;
    }

    .footer-tagline {
        margin-top: 0.5rem;
        text-align: center;
    }
}
@media (max-width: 768px) {
    .footer-brand-layout {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    /* En móvil, ambas columnas ocupan el 100% */
    .footer-col-left, 
    .footer-col-right {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
        text-align: left; /* Todo a la izquierda en móvil */
    }

    .footer-logo-wrapper {
        margin-bottom: 1rem;
        justify-content: center;
    }

    .footer-logo-img {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
    }

    .logo-mark { font-size: 1.2rem; }
    .logo-text { font-size: 0.8rem; }
    
    .footer-tagline {
        font-size: 0.8rem;
        margin-top: 0.5rem;
        text-align: center;
    }

    .footer-copyright {
        padding-top: 1rem;
    }
}