/* === FOOTER MODULE STYLES === */
/* Debug: Footer styles loaded */

.footer {
    position: relative;
    padding: 4rem 0 2rem;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* === FOOTER BACKGROUND === */
.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.footer-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(26, 26, 26, 0.8) 100%);
    z-index: 2;
}

.footer-container {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === FOOTER CONTENT GRID === */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

/* === FOOTER LOGO SECTION === */
.footer-logo-section {
    max-width: 400px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-logo:hover {
    transform: scale(1.05) rotate(2deg);
}

.footer-logo .logo-sky {
    color: var(--accent-cyan);
    text-shadow: 0 0 20px var(--accent-cyan);
}

.footer-logo .logo-web {
    color: var(--accent-gold);
    text-shadow: 0 0 20px var(--accent-gold);
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* === FOOTER SERVICES === */
.footer-services h4,
.footer-contact h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-services h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

.footer-services ul {
    list-style: none;
}

.footer-services li {
    margin-bottom: 0.8rem;
}

.footer-services a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    position: relative;
}

.footer-services a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--accent-cyan);
}

.footer-services a:hover {
    color: var(--accent-cyan);
    padding-left: 20px;
}

.footer-services a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* === FOOTER CONTACT === */
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
}

.contact-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.contact-item i {
    color: var(--accent-cyan);
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.contact-item.whatsapp:hover i {
    color: #25d366;
    animation: bounce 0.6s ease;
}

.contact-item.email:hover i {
    color: var(--accent-gold);
}

.contact-item.location:hover i {
    color: #ff6b6b;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/* === FOOTER CTA === */
.footer-cta {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-whatsapp-btn {
    background: #25d366;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.footer-whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.footer-whatsapp-btn:hover {
    background: #20b358;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

.footer-whatsapp-btn:hover::before {
    left: 100%;
}

.footer-whatsapp-btn:active {
    transform: translateY(-1px);
}

/* === FOOTER COPYRIGHT === */
.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-copyright p {
    margin: 0;
    line-height: 1.8;
}

/* === LEGAL LINK (NUEVO) === */
.legal-link {
    color: var(--accent-cyan);
    text-decoration: none;
    position: relative;
    padding: 0.2rem 0.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-block;
}

.legal-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.legal-link:hover {
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.legal-link:hover::after {
    width: 100%;
}

.legal-link:active {
    transform: translateY(0);
}

/* === WHATSAPP FLOATING BUTTON === */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1500;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #20b358;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

.whatsapp-float i {
    color: white;
    font-size: 1.8rem;
}

.pulse-ring {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px solid #25d366;
    border-radius: 50%;
    animation: pulsate 2s ease-out infinite;
    opacity: 0;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

@keyframes pulsate {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* === SCROLL TO TOP BUTTON === */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--glass-effect);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1400;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--accent-cyan);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.4);
}

.scroll-to-top i {
    color: var(--text-primary);
    font-size: 1.2rem;
}

.scroll-to-top:hover i {
    color: var(--primary-dark);
}

/* === RESPONSIVE FOOTER === */
@media (max-width: 1024px) {
    .footer-container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-services h4::after,
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-logo {
        font-size: 1.5rem;
    }
    
    .footer-whatsapp-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float i {
        font-size: 1.5rem;
    }
    
    .scroll-to-top {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .pulse-ring {
        width: 50px;
        height: 50px;
    }
    
    /* Legal link responsive */
    .legal-link {
        display: inline-block;
        margin: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .footer-content {
        gap: 1.5rem;
    }
    
    .contact-item {
        font-size: 0.9rem;
    }
    
    .footer-services a {
        font-size: 0.9rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
    
    .footer-copyright {
        font-size: 0.8rem;
    }
    
    .legal-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .footer-container {
        padding: 0 0.5rem;
    }
    
    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float i {
        font-size: 1.3rem;
    }
    
    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 70px;
        right: 15px;
    }
}

/* === PRINT STYLES === */
@media print {
    .whatsapp-float,
    .scroll-to-top,
    .footer-whatsapp-btn {
        display: none !important;
    }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    .whatsapp-float {
        animation: none;
    }
    
    .pulse-ring {
        display: none;
    }
    
    .contact-item:hover,
    .footer-services a:hover,
    .footer-logo:hover,
    .legal-link:hover {
        transform: none;
    }
}