/**
 * Footer Institucional — Estudio Zygos
 */

.zygos-footer {
    background-color: #04060B;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--zygos-space-xl) 0 2.5rem;
    position: relative;
    overflow: hidden;
}

.zygos-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.35), transparent);
}

.zygos-footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .zygos-footer-top {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 3.5rem;
    }
}

.zygos-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.35rem;
}

.zygos-footer-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    /* Inversión para logo con fondo transparente — la imagen base tiene letras oscuras;
       invert la pasa a blanco, brightness la amplifica sobre el fondo negro del footer */
    filter: invert(1) brightness(2);
    opacity: 0.92;
}

.zygos-footer-desc {
    font-size: 0.92rem;
    color: #94A3B8 !important;
    line-height: 1.75;
    max-width: 340px;
}

.zygos-footer-col h4 {
    font-family: var(--zygos-font-body);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #FFFFFF !important;
    margin-bottom: 1.4rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.zygos-footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--zygos-primary);
    border-radius: 2px;
}

.zygos-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.zygos-footer-links a {
    font-size: 0.92rem;
    color: #94A3B8 !important;
    transition: var(--zygos-transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.zygos-footer-links a:hover {
    color: #38BDF8 !important;
    transform: translateX(4px);
}

.zygos-footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding-top: 2.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.86rem;
    color: #64748B !important;
    text-align: center;
}

@media (min-width: 768px) {
    .zygos-footer-bottom {
        flex-direction: row;
        text-align: left;
    }
}

.zygos-footer-bottom a {
    color: #38BDF8 !important;
    font-weight: 500;
}

.zygos-footer-bottom a:hover {
    color: #FFFFFF !important;
    text-decoration: underline;
}
