/* Enhanced Footer Styles */
.enhanced-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 50px 0 20px 0;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

.enhanced-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #9b59b6, #e74c3c, #f39c12, #27ae60);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #3498db;
    font-size: 1.2em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(52, 152, 219, 0.3);
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #3498db;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    border-radius: 4px;
}

.footer-links a:hover {
    color: #3498db;
    text-decoration: none;
    padding-left: 10px;
    background: rgba(52, 152, 219, 0.1);
}

.footer-links .link-icon {
    font-size: 0.9em;
    opacity: 0.7;
}

/* About Section */
.footer-about p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.footer-stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-stat-number {
    font-size: 1.5em;
    font-weight: bold;
    color: #3498db;
    display: block;
}

.footer-stat-label {
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 5px;
}

/* Languages Section */
.language-switcher {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.language-btn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 20px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.language-btn:hover {
    background: rgba(52, 152, 219, 0.2);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Social Media Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2em;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.social-link.facebook {
    background: rgba(59, 89, 152, 0.2);
    color: #3b5998;
}

.social-link.twitter {
    background: rgba(29, 161, 242, 0.2);
    color: #1da1f2;
}

.social-link.instagram {
    background: rgba(225, 48, 108, 0.2);
    color: #e1306c;
}

.social-link.youtube {
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
}

.social-link.whatsapp {
    background: rgba(37, 211, 102, 0.2);
    color: #25d366;
}

.social-link:hover {
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-link.facebook:hover {
    background: #3b5998;
    color: white;
}

.social-link.twitter:hover {
    background: #1da1f2;
    color: white;
}

.social-link.instagram:hover {
    background: #e1306c;
    color: white;
}

.social-link.youtube:hover {
    background: #ff0000;
    color: white;
}

.social-link.whatsapp:hover {
    background: #25d366;
    color: white;
}

/* Newsletter */
.newsletter-form {
    margin-top: 20px;
}

.newsletter-input {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-input input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9em;
}

.newsletter-input input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input input:focus {
    outline: none;
    border-color: #3498db;
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
}

.footer-legal {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #3498db;
    text-decoration: none;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* Dark Mode Support */
.dark-mode .enhanced-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.dark-mode .footer-stat,
.dark-mode .language-btn,
.dark-mode .newsletter-input input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .enhanced-footer {
        padding: 40px 0 20px 0;
    }
    
    .footer-sections {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-stats {
        grid-template-columns: 1fr;
    }
    
    .language-switcher {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .newsletter-input {
        flex-direction: column;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .enhanced-footer {
        padding: 30px 0 15px 0;
    }
    
    .footer-content {
        padding: 0 15px;
    }
    
    .footer-sections {
        gap: 25px;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1em;
    }
}

/* Print Styles */
@media print {
    .enhanced-footer {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .social-links,
    .newsletter-form,
    .back-to-top {
        display: none !important;
    }
    
    .footer-links a {
        color: black !important;
    }
}

/* Animation for footer appearance */
.enhanced-footer {
    animation: footerSlideUp 0.6s ease-out;
}

@keyframes footerSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
