/* Footer */
.footer {
    background: linear-gradient(to bottom, #050505, #000000);
    padding: 4rem 2rem 2rem;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Sección principal del footer */
.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

/* Brand section */
.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #4a9eff, #b366ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #a0a0a0;
    margin-bottom: 2rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: linear-gradient(to right, #4a9eff, #b366ff);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(74, 158, 255, 0.2);
}

/* Links section */
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.links-column {
    display: flex;
    flex-direction: column;
}

.links-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.links-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(to right, #4a9eff, #b366ff);
}

.links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-link {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
    display: inline-block;
}

.footer-link:hover {
    color: #ffffff;
    padding-left: 8px;
}

.footer-link::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #4a9eff;
}

.footer-link:hover::before {
    left: -10px;
    opacity: 1;
}

/* Suscripción section */
.footer-subscribe {
    display: flex;
    flex-direction: column;
}

.subscribe-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.subscribe-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #a0a0a0;
    margin-bottom: 1.5rem;
}

.subscribe-form {
    margin-bottom: 2rem;
}

.input-group {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: #4a9eff;
    box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
}

.subscribe-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
}

.subscribe-input::placeholder {
    color: #666;
}

.subscribe-btn {
    padding: 0 1.5rem;
    background: linear-gradient(to right, #4a9eff, #b366ff);
    border: none;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.subscribe-btn:hover {
    background: linear-gradient(to right, #3a8eff, #a356ff);
    transform: scale(1.05);
}

.subscribe-message {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    min-height: 20px;
    transition: all 0.3s ease;
}

.subscribe-message.success {
    color: #00ff88;
}

.subscribe-message.error {
    color: #ff4a4a;
}

/* App download */
.app-download {
    margin-top: 1.5rem;
}

.app-download p {
    font-size: 0.9rem;
    color: #a0a0a0;
    margin-bottom: 1rem;
}

.app-buttons {
    display: flex;
    gap: 1rem;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.8rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
}

.app-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.app-btn i {
    font-size: 1.2rem;
}

/* Divider */
.footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 2rem 0;
}

/* Footer bottom */
.footer-bottom {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.legal-link {
    color: #888;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: #ffffff;
}

.separator {
    color: #555;
    font-size: 0.8rem;
}

.copyright {
    font-size: 0.8rem;
    color: #666;
}

/* Payment methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.payment-title {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.payment-icons {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
    color: #a0a0a0;
}

.payment-icons i {
    transition: all 0.3s ease;
    cursor: pointer;
}

.payment-icons i:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

/* Locale selector */
.footer-locale {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

.locale-selector,
.country-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.locale-selector i,
.country-selector i {
    color: #888;
    font-size: 0.9rem;
}

.locale-select,
.country-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.locale-select:hover,
.country-select:hover,
.locale-select:focus,
.country-select:focus {
    border-color: #4a9eff;
    background: rgba(255, 255, 255, 0.1);
}

.locale-select option,
.country-select option {
    background: #000000;
    color: #ffffff;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(to right, #4a9eff, #b366ff);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(74, 158, 255, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(74, 158, 255, 0.4);
}

/* Footer particles effect */
.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.footer-particles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(74, 158, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(179, 102, 255, 0.03) 0%, transparent 50%);
}

/* Animación para elementos del footer */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-brand,
.footer-links,
.footer-subscribe {
    animation: slideUp 0.6s ease forwards;
}

.footer-links {
    animation-delay: 0.2s;
}

.footer-subscribe {
    animation-delay: 0.4s;
}

/* Responsive */
@media (max-width: 1100px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-bottom {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-locale {
        align-items: center;
    }
    
    .payment-methods {
        order: -1;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 1.5rem 1.5rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .legal-links {
        justify-content: center;
    }
    
    .app-buttons {
        flex-direction: column;
    }
    
    .footer-main {
        gap: 2rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2rem 1rem 1rem;
    }
    
    .footer-logo {
        font-size: 2rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .payment-icons {
        font-size: 1.2rem;
        gap: 0.8rem;
    }
    
    .locale-selector,
    .country-selector {
        width: 100%;
        justify-content: center;
    }
}