/* ============================================
   LIBERTY INMOBILIARIA - FOOTER MODERNO
   Versión: 4.0 - Estilo Verde Premium
   ============================================ */

/* ====== FOOTER PRINCIPAL ====== */
.footer {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: var(--white);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="0.5" fill="rgba(34,197,94,0.1)"/></svg>') repeat;
    opacity: 0.5;
}

.footer .container {
    position: relative;
    z-index: 1;
}

/* ====== SECCIONES DEL FOOTER ====== */
.footer-section {
    height: 100%;
}

.footer-section h5,
.footer-section h6 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h5::after,
.footer-section h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-section p {
    color: var(--gray-300);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ====== LOGO EN FOOTER ====== */
.footer .footer-section img {
    filter: brightness(1.2) contrast(1.1);
    transition: all var(--transition-base);
    border-radius: var(--border-radius-md);
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
}

.footer .footer-section img:hover {
    transform: scale(1.05);
    background: rgba(34, 197, 94, 0.1);
}

/* ====== ENLACES DE REDES SOCIALES ====== */
.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--gray-300);
    text-decoration: none;
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
    border-color: var(--primary);
}

.social-links a i {
    font-size: 1.2rem;
    transition: transform var(--transition-base);
}

.social-links a:hover i {
    transform: scale(1.1);
}

/* ====== LISTAS DE ENLACES ====== */
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.75rem;
    transition: transform var(--transition-fast);
}

.footer-section li:hover {
    transform: translateX(5px);
}

.footer-section li a {
    color: var(--gray-300);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-base);
    padding: 0.25rem 0;
    border-radius: var(--border-radius-sm);
    position: relative;
}

.footer-section li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--primary);
    transition: width var(--transition-base);
    border-radius: var(--border-radius-sm);
    z-index: -1;
}

.footer-section li a:hover {
    color: var(--white);
    padding-left: 0.75rem;
}

.footer-section li a:hover::before {
    width: 100%;
}

.footer-section li a i {
    color: var(--primary);
    width: 16px;
    transition: all var(--transition-base);
}

.footer-section li a:hover i {
    color: var(--white);
    transform: scale(1.2);
}

/* ====== INFORMACIÓN DE CONTACTO ====== */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info > div {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.contact-info > div:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.contact-info i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 0.125rem;
    min-width: 18px;
    transition: all var(--transition-base);
}

.contact-info div:hover i {
    transform: scale(1.2);
}

.contact-info a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color var(--transition-base);
}

.contact-info a:hover {
    color: var(--white);
}

.contact-info span {
    color: var(--gray-300);
}

/* ====== LÍNEA SEPARADORA ====== */
.footer hr {
    border-color: rgba(34, 197, 94, 0.3);
    margin: 3rem 0 2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border: none;
    opacity: 1;
}

/* ====== ÁREA DE COPYRIGHT ====== */
.footer .row:last-child {
    align-items: center;
}

.footer p {
    margin-bottom: 0;
    color: var(--gray-400);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-base);
    position: relative;
    padding: 0.25rem 0;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width var(--transition-base);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links a:hover::after {
    width: 100%;
}

/* ====== BOTÓN FLOTANTE DE WHATSAPP ====== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: var(--z-tooltip);
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-base);
    border: 3px solid var(--white);
    animation: whatsapp-pulse 3s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
    color: var(--white);
}

.whatsapp-btn i {
    animation: whatsapp-bounce 2s infinite;
}

/* ====== ANIMACIONES ====== */
@keyframes whatsapp-pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

@keyframes whatsapp-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* ====== TOOLTIP PARA WHATSAPP ====== */
.whatsapp-btn::before {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    right: 0;
    background: var(--dark);
    color: var(--white);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-md);
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    pointer-events: none;
    margin-bottom: 10px;
    box-shadow: var(--shadow-lg);
}

.whatsapp-btn::after {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--dark);
    opacity: 0;
    transform: translateY(-5px);
    transition: all var(--transition-base);
    pointer-events: none;
    margin-bottom: 5px;
}

.whatsapp-btn:hover::before,
.whatsapp-btn:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-section {
        margin-bottom: 2rem;
    }
    
    .footer-section h5,
    .footer-section h6 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-info > div {
        padding: 0.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        margin-top: 1rem;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-btn {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    .whatsapp-btn::before {
        right: -10px;
        bottom: 120%;
        transform: translateX(50%);
    }
    
    .whatsapp-btn::after {
        right: 50%;
        transform: translateX(50%);
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-section img {
        height: 50px;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .contact-info > div {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .contact-info i {
        margin-top: 0;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* ====== MEJORAS DE ACCESIBILIDAD ====== */
@media (prefers-reduced-motion: reduce) {
    .whatsapp-btn {
        animation: none;
    }
    
    .whatsapp-btn i {
        animation: none;
    }
    
    .footer-section li:hover {
        transform: none;
    }
    
    .social-links a:hover {
        transform: none;
    }
}

/* ====== MODO OSCURO ====== */
@media (prefers-color-scheme: dark) {
    .footer {
        background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    }
    
    .contact-info > div {
        background: rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.05);
    }
    
    .contact-info > div:hover {
        background: rgba(34, 197, 94, 0.15);
    }
}

/* ====== ESTILOS ADICIONALES PARA ELEMENTOS ESPECÍFICOS ====== */
.footer .text-warning {
    color: var(--primary) !important;
}

.footer .text-light {
    color: var(--gray-300) !important;
}

.footer .border-secondary {
    border-color: rgba(34, 197, 94, 0.3) !important;
}