/* =============================================================================
   Footer Vibrant Modular
   Prefijo: .vm-footer-
   Todas las reglas ancladas a #vm-footer para especificidad máxima
   y override total sobre estilos de Astra.
   ============================================================================= */

/* ── Variables locales ────────────────────────────────────────────────────── */
#vm-footer {
    --vm-blue:          #002FD9;
    --vm-blue-deep:     #001DB0;
    --vm-blue-glass:    rgba(255, 255, 255, 0.07);
    --vm-blue-glass-bd: rgba(255, 255, 255, 0.14);
    --vm-white:         #FFFFFF;
    --vm-white-70:      rgba(255, 255, 255, 0.70);
    --vm-white-40:      rgba(255, 255, 255, 0.40);
    --vm-white-10:      rgba(255, 255, 255, 0.10);
    --vm-white-06:      rgba(255, 255, 255, 0.06);
    --vm-font:          -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    --vm-transition:    0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --vm-radius-card:   20px;
    --vm-radius-btn:    50px;
}

/* =============================================================================
   FOOTER — BASE
   ============================================================================= */
#vm-footer {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;

    /* Azul Maestro sólido — identidad Alianza Vital */
    background: #002FD9 !important;

    /* Reset total de Astra */
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--vm-white) !important;
}

/* Asegurar que el texto de Astra no herede colores oscuros */
#vm-footer *,
#vm-footer *::before,
#vm-footer *::after {
    box-sizing: border-box;
    font-family: var(--vm-font);
}

/* ── Separador superior ───────────────────────────────────────────────────── */
#vm-footer .vm-footer__top-rule {
    height: 1px;
    background: rgba(255, 255, 255, 0.10);
    width: 100%;
    flex-shrink: 0;
}

/* =============================================================================
   CUERPO PRINCIPAL
   ============================================================================= */
#vm-footer .vm-footer__body {
    padding: 5rem 2rem 4rem;
}

#vm-footer .vm-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 3rem;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

/* =============================================================================
   COLUMNA — BASE
   ============================================================================= */
#vm-footer .vm-footer__col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Título de columna */
#vm-footer .vm-footer__col-title {
    font-family: var(--vm-font) !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.09em !important;
    text-transform: uppercase !important;
    color: var(--vm-white) !important;
    opacity: 0.5 !important;
    margin: 0 0 1.25rem !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* =============================================================================
   COL 1 — BRAND
   ============================================================================= */
#vm-footer .vm-footer__logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    margin-bottom: 1.25rem;
}

/* Logo imagen — forzar blanco */
#vm-footer .vm-footer__logo-link img,
#vm-footer .vm-footer__logo-link .custom-logo {
    height: 42px !important;
    width: auto !important;
    filter: brightness(0) invert(1) !important;
    display: block !important;
}

/* Texto fallback del logo */
#vm-footer .vm-footer__logo-text {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
    color: var(--vm-white) !important;
    line-height: 1 !important;
}

/* Descripción de marca */
#vm-footer .vm-footer__brand-desc {
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
    color: var(--vm-white-70) !important;
    margin: 0 0 1.75rem !important;
    padding: 0 !important;
    max-width: 280px !important;
}

/* ── Redes Sociales ──────────────────────────────────────────────────────── */
#vm-footer .vm-footer__social {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

#vm-footer .vm-footer__social-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: var(--vm-blue-glass) !important;
    border: 1px solid var(--vm-blue-glass-bd) !important;
    color: var(--vm-white) !important;
    text-decoration: none !important;
    transition: background var(--vm-transition), transform var(--vm-transition) !important;
}

#vm-footer .vm-footer__social-link:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px) !important;
    color: var(--vm-white) !important;
}

#vm-footer .vm-footer__social-link svg {
    display: block;
    flex-shrink: 0;
}

/* =============================================================================
   COL 2 & 3 — LISTAS DE LINKS
   ============================================================================= */
#vm-footer .vm-footer__link-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.1rem !important;
}

#vm-footer .vm-footer__link-list li {
    margin: 0 !important;
    padding: 0 !important;
}

#vm-footer .vm-footer__link-list li a,
#vm-footer .vm-footer__link-list li a:visited {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    padding: 0.45rem 0 !important;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    color: var(--vm-white-70) !important;
    text-decoration: none !important;
    border-bottom: 1px solid transparent !important;
    transition: color var(--vm-transition), border-color var(--vm-transition) !important;
}

#vm-footer .vm-footer__link-list li a:hover {
    color: var(--vm-white) !important;
    border-bottom-color: rgba(255, 255, 255, 0.35) !important;
}

/* =============================================================================
   COL 4 — CONTACTO DIRECTO (TARJETA GLASSMORPHIC)
   ============================================================================= */
#vm-footer .vm-footer__contact-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;

    background: var(--vm-blue-glass) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid var(--vm-blue-glass-bd) !important;
    border-radius: var(--vm-radius-card) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

/* Número de WhatsApp */
/* Dirección física Soacha */
#vm-footer .vm-footer__contact-address {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    color: rgba(255, 255, 255, 0.92) !important;
}
#vm-footer .vm-footer__contact-address svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: rgba(255, 255, 255, 0.80);
}

#vm-footer .vm-footer__contact-wa-number {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    color: var(--vm-white) !important;
}

#vm-footer .vm-footer__contact-wa-number svg {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.80);
}

/* CTA botón */
#vm-footer .vm-footer__contact-cta,
#vm-footer .vm-footer__contact-cta:visited {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0.75rem 1.25rem !important;

    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;

    color: var(--vm-blue) !important;
    background: var(--vm-white) !important;
    border-radius: var(--vm-radius-btn) !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.20) !important;
    transition: opacity var(--vm-transition), transform var(--vm-transition) !important;
}

#vm-footer .vm-footer__contact-cta:hover {
    opacity: 0.92 !important;
    transform: translateY(-1px) !important;
    color: var(--vm-blue) !important;
}

/* Horario */
#vm-footer .vm-footer__schedule {
    border-top: 1px solid var(--vm-white-10);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

#vm-footer .vm-footer__schedule-title {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    color: var(--vm-white-70) !important;
    margin: 0 0 0.35rem !important;
    padding: 0 !important;
}

#vm-footer .vm-footer__schedule-line {
    font-size: 0.82rem !important;
    font-weight: 400 !important;
    color: var(--vm-white-70) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
}

/* =============================================================================
   BOTTOM BAR (COPYRIGHT)
   ============================================================================= */
#vm-footer .vm-footer__bottom-bar {
    border-top: 1px solid var(--vm-white-10);
    padding: 1.5rem 2rem;
}

#vm-footer .vm-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.85rem;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

#vm-footer .vm-footer__copyright {
    font-size: 0.82rem !important;
    color: var(--vm-white-40) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
}

#vm-footer .vm-footer__copyright a,
#vm-footer .vm-footer__copyright a:visited {
    color: var(--vm-white-70) !important;
    text-decoration: none !important;
    transition: color var(--vm-transition) !important;
}

#vm-footer .vm-footer__copyright a:hover {
    color: var(--vm-white) !important;
}

/* Links legales */
#vm-footer .vm-footer__legal-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

#vm-footer .vm-footer__legal-links a,
#vm-footer .vm-footer__legal-links a:visited {
    font-size: 0.82rem !important;
    color: var(--vm-white-40) !important;
    text-decoration: none !important;
    transition: color var(--vm-transition) !important;
}

#vm-footer .vm-footer__legal-links a:hover {
    color: var(--vm-white) !important;
}

#vm-footer .vm-footer__legal-links span {
    color: var(--vm-white-10) !important;
    font-size: 0.82rem !important;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

/* Tablet landscape: 2 columnas */
@media (max-width: 1100px) {
    #vm-footer .vm-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    #vm-footer .vm-footer__col--brand {
        grid-column: span 2;
        flex-direction: row;
        align-items: flex-start;
        gap: 3rem;
    }

    #vm-footer .vm-footer__brand-desc {
        max-width: 340px !important;
    }
}

/* Tablet portrait: 1 columna centrada */
@media (max-width: 768px) {
    #vm-footer .vm-footer__body {
        padding: 4rem 1.5rem 3rem;
    }

    #vm-footer .vm-footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    #vm-footer .vm-footer__col--brand {
        grid-column: span 1;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0;
    }

    #vm-footer .vm-footer__brand-desc {
        max-width: 100% !important;
    }

    #vm-footer .vm-footer__social {
        justify-content: center;
    }

    #vm-footer .vm-footer__col--nav,
    #vm-footer .vm-footer__col--services {
        align-items: center;
        text-align: center;
    }

    #vm-footer .vm-footer__link-list li a {
        justify-content: center !important;
    }

    #vm-footer .vm-footer__bottom-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.6rem;
    }
}

/* Mobile pequeño */
@media (max-width: 480px) {
    #vm-footer .vm-footer__body {
        padding: 3rem 1.25rem 2.5rem;
    }

    #vm-footer .vm-footer__bottom-bar {
        padding: 1.25rem;
    }

    #vm-footer .vm-footer__legal-links {
        justify-content: center;
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    #vm-footer .vm-footer__social-link,
    #vm-footer .vm-footer__contact-cta,
    #vm-footer .vm-footer__link-list li a {
        transition: none !important;
    }
}
