/* ============================================
   Footer Mejorado - Diseño Moderno
   ============================================ */

footer {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 2rem 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 width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="60" height="60" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Footer About Section */
.footer-about {
    max-width: 350px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    margin-bottom: 1rem;
}

.footer-logo img {
    border-radius: 10px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.footer-version {
    display: inline-flex;
}

.footer-version-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'SF Mono', 'Monaco', monospace;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.footer-version-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Footer Sections */
.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1rem;
    font-weight: var(--font-bold);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.95;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-list a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding-left: 0;
}

.footer-links-list a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.footer-links-list a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links-list a:hover::before {
    width: 100%;
}

.footer-links-list svg {
    opacity: 0.8;
    flex-shrink: 0;
}

/* Footer Bottom */
.footer-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 2rem;
}

.footer-bottom-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.85;
}

.footer-copyright a {
    color: white;
    text-decoration: underline;
    font-weight: var(--font-semibold);
    transition: opacity 0.3s ease;
}

.footer-copyright a:hover {
    opacity: 0.8;
}

/* Social Buttons */
.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.social-btn svg {
    transition: transform 0.3s ease;
}

.social-btn:hover svg {
    transform: scale(1.1);
}

/* Footer Badges */
.footer-badge {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 2rem auto 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-badge span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.footer-badge span:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.badge-opensource {
    color: rgba(255, 255, 255, 0.95);
}

.badge-free {
    color: rgba(255, 255, 255, 0.95);
}

.badge-license {
    color: rgba(255, 255, 255, 0.95);
}

/* Dark Mode Adjustments */
[data-theme="dark"] footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .footer-about {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 3rem 1.5rem 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-copyright {
        font-size: 0.85rem;
    }
    
    .footer-badge {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        gap: 0.75rem;
    }
    
    .footer-badge span {
        font-size: 0.75rem;
        padding: 0.4rem 0.85rem;
    }
}

@media (max-width: 480px) {
    .footer-social {
        width: 100%;
        justify-content: center;
    }
    
    .footer-title {
        font-size: 0.95rem;
    }
    
    .footer-links-list a {
        font-size: 0.85rem;
    }
}