/* ============================================
   FOOTER SECTION
   ============================================ */

/* Base Footer Styles */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    position: relative;
    font-size: clamp(0.875rem, 0.75rem + 0.5vw, 1rem);
}

/* Main Footer Content */
.footer-main {
    padding: clamp(3rem, 5vw, 5rem) 0 clamp(2rem, 3vw, 3.75rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.container {
    width: min(100% - 2rem, 1200px);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Footer Grid Layout */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: clamp(2rem, 3vw, 2.5rem);
}

.footer-col {
    padding: 0 clamp(0.5rem, 1.5vw, 1rem);
}

/* Company Info & Logo */
.footer-logo {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 1.5vw, 1rem);
    margin-bottom: clamp(1.25rem, 2vw, 1.5rem);
}

.footer-logo img {
    width: clamp(2rem, 3vw, 2.75rem);
    height: clamp(2rem, 3vw, 2.75rem);
    object-fit: contain;
}

.footer-logo .logo-text {
    font-size: clamp(1.5rem, 2vw, 1.8rem);
    font-weight: 800;
    color: white;
}

.footer-logo .logo-highlight {
    background: var(--gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: clamp(1.25rem, 2vw, 1.5rem);
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    max-width: 30ch;
}

/* Social Media Links */
.footer-social {
    display: flex;
    gap: clamp(0.75rem, 1.5vw, 1rem);
    flex-wrap: wrap;
}

.social-link {
    width: clamp(2.5rem, 3vw, 2.75rem);
    height: clamp(2.5rem, 3vw, 2.75rem);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: white;
    transition: all 0.3s ease;
    z-index: 1;
}

.social-link:hover::before {
    left: 0;
}

.social-link i {
    position: relative;
    z-index: 2;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Social Icons Hover Colors */
.social-link:nth-child(1):hover i { color: #1877F2; } /* Facebook */
.social-link:nth-child(2):hover i { color: #FF0000; } /* YouTube */
.social-link:nth-child(3):hover i { color: #0077B5; } /* LinkedIn */
.social-link:nth-child(4):hover i { color: #E4405F; } /* Instagram */
.social-link:nth-child(5):hover i { color: #EA4C89; } /* Dribbble */
.social-link:nth-child(6):hover i { color: #181717; } /* GitHub */


/* Section Titles */
.footer-title {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    margin-bottom: clamp(1.25rem, 2vw, 1.5rem);
    color: white;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: clamp(2.5rem, 4vw, 3rem);
    height: 3px;
    background: var(--gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    border-radius: 2px;
}

/* Quick Links & Services Lists */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links a i {
    font-size: 0.7rem;
    color: var(--primary, #667eea);
    transition: all 0.3s ease;
}

.footer-links a:hover i {
    color: white;
    transform: translateX(3px);
}

/* Contact Information */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0 0 clamp(1.5rem, 2vw, 2rem);
}

.footer-contact li {
    display: flex;
    gap: clamp(0.75rem, 1.5vw, 1rem);
    margin-bottom: clamp(1rem, 1.5vw, 1.25rem);
    align-items: flex-start;
}

.footer-contact i {
    color: var(--primary, #667eea);
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    margin-top: 0.125rem;
    min-width: 1.25rem;
    flex-shrink: 0;
}

.footer-contact span {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    word-break: break-word;
}

.footer-contact a:hover {
    color: white;
    text-decoration: underline;
}

/* Newsletter Section */
.newsletter-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius, 10px);
    padding: clamp(1.25rem, 2vw, 1.5rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: clamp(1rem, 2vw, 1.5rem) auto;
    max-width: min(500px, 100%);
    width: 100%;
}

.newsletter-section h4 {
    color: white;
    margin-bottom: 0.75rem;
    font-size: clamp(1.1rem, 1.5vw, 1.2rem);
}

.newsletter-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    margin-bottom: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.6;
}

.newsletter-form .input-group {
    display: flex;
    gap: clamp(0.5rem, 1vw, 0.75rem);
    margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
}

.newsletter-form input {
    flex: 1;
    min-width: 0;
    padding: clamp(0.75rem, 1.5vw, 1rem) clamp(1rem, 1.5vw, 1.25rem);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius, 10px);
    color: white;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary, #667eea);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.btn-newsletter {
    width: clamp(3rem, 4vw, 3.25rem);
    height: clamp(3rem, 4vw, 3.25rem);
    background: var(--gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    border: none;
    border-radius: var(--radius, 10px);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-newsletter:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-newsletter:active {
    transform: translateY(0);
}

/* Form Note & Checkbox */
.form-note {
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    color: rgba(255, 255, 255, 0.6);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1vw, 0.75rem);
    cursor: pointer;
    font-weight: 400;
    padding: 0.25rem 0;
    line-height: 1.4;
}

.checkbox-label input {
    display: none;
}

.checkbox-custom {
    display: inline-block;
    width: clamp(1.125rem, 1.5vw, 1.25rem);
    height: clamp(1.125rem, 1.5vw, 1.25rem);
    min-width: clamp(1.125rem, 1.5vw, 1.25rem);
    min-height: clamp(1.125rem, 1.5vw, 1.25rem);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
}

.checkbox-label input:checked + .checkbox-custom {
    background: var(--primary, #667eea);
    border-color: var(--primary, #667eea);
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    font-weight: bold;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.checkbox-label:hover .checkbox-custom {
    border-color: var(--primary, #667eea);
    background: rgba(255, 255, 255, 0.15);
}

/* Footer Bottom Section */
.footer-bottom {
    padding: clamp(1.5rem, 2vw, 2rem) 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(1rem, 2vw, 1.25rem);
}

.copyright p {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    margin: 0;
}

.copyright #currentYear {
    color: var(--primary, #667eea);
    font-weight: 600;
}

.footer-legal {
    display: flex;
    gap: clamp(1rem, 2vw, 1.5rem);
    flex-wrap: wrap;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.footer-legal a:hover {
    color: white;
    text-decoration: underline;
}

.footer-legal a:not(:last-child)::after {
    content: '•';
    position: absolute;
    right: -0.875rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-payment {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 1.5vw, 1rem);
    flex-wrap: wrap;
}

.footer-payment span {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    white-space: nowrap;
}

.payment-methods {
    display: flex;
    gap: clamp(0.5rem, 1vw, 0.75rem);
    flex-wrap: wrap;
}

.payment-methods i {
    font-size: clamp(1.5rem, 2vw, 1.75rem);
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    cursor: default;
}

.payment-methods i:hover {
    color: white;
    transform: translateY(-2px);
}

/* Back to Top Button (Mobile) */
.footer-back-to-top {
    position: fixed;
    bottom: clamp(1.5rem, 3vw, 2rem);
    right: clamp(1.5rem, 3vw, 2rem);
    width: clamp(3rem, 4vw, 3.25rem);
    height: clamp(3rem, 4vw, 3.25rem);
    background: var(--gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.footer-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.footer-back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: clamp(6rem, 10vw, 7rem);
    right: clamp(1.5rem, 3vw, 2rem);
    width: clamp(3.5rem, 4vw, 3.75rem);
    height: clamp(3.5rem, 4vw, 3.75rem);
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(1.5rem, 2vw, 1.75rem);
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-tooltip {
    position: absolute;
    right: calc(100% + 10px);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius, 10px);
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    border-left: 5px solid rgba(0, 0, 0, 0.85);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Live Chat Indicator */
.live-chat-indicator {
    position: fixed;
    bottom: clamp(10rem, 15vw, 12rem);
    right: clamp(1.5rem, 3vw, 2rem);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    color: white;
    z-index: 998;
    animation: pulse 2s infinite;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-dot {
    width: 8px;
    height: 8px;
    background: #25D366;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
}

/* Form States */
.form-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: var(--radius, 10px);
    padding: clamp(1rem, 2vw, 1.25rem);
    text-align: center;
    animation: slideIn 0.3s ease;
}

.form-success i {
    color: #28a745;
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
}

.form-success h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.form-success p {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}

.form-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: var(--radius, 10px);
    padding: clamp(0.75rem, 1.5vw, 1rem);
    margin-bottom: clamp(1rem, 1.5vw, 1.25rem);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
}

.form-error i {
    color: #dc3545;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    flex-shrink: 0;
}

.form-error span {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet & Small Desktop */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .newsletter-section {
        max-width: 100%;
        grid-column: 1 / -1;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .footer-main {
        padding: clamp(2.5rem, 4vw, 3rem) 0 clamp(1.5rem, 3vw, 2rem);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 3vw, 2rem);
    }
    
    .footer-col {
        padding: 0;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: clamp(0.75rem, 1.5vw, 1rem);
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .footer-legal a:not(:last-child)::after {
        display: none;
    }
    
    .footer-payment {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .whatsapp-float {
        bottom: clamp(5rem, 8vw, 6rem);
        right: clamp(1rem, 2vw, 1.5rem);
        width: clamp(3rem, 4vw, 3.25rem);
        height: clamp(3rem, 4vw, 3.25rem);
        font-size: clamp(1.25rem, 2vw, 1.5rem);
    }
    
    .live-chat-indicator {
        bottom: clamp(8rem, 12vw, 10rem);
        right: clamp(1rem, 2vw, 1.5rem);
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .footer-back-to-top {
        display: flex;
        bottom: clamp(1rem, 2vw, 1.5rem);
        right: clamp(1rem, 2vw, 1.5rem);
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .footer-logo {
        flex-direction: row;
        align-items: center;
        gap: clamp(0.5rem, 1vw, 0.75rem);
    }
    
    .footer-social {
        justify-content: flex-start;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .btn-newsletter {
        width: 100%;
        height: clamp(2.75rem, 4vw, 3rem);
    }
    
    .whatsapp-float {
        bottom: clamp(4rem, 6vw, 5rem);
    }
    
    .live-chat-indicator {
        bottom: clamp(6.5rem, 10vw, 8rem);
    }
}

/* Touch-friendly enhancements */
@media (hover: none) and (pointer: coarse) {
    .social-link,
    .footer-links a,
    .btn-newsletter,
    .footer-legal a,
    .footer-back-to-top,
    .whatsapp-float {
        min-height: 44px;
        min-width: 44px;
    }
    
    .footer-links a {
        padding: 0.5rem 0;
    }
    
    .payment-methods i {
        font-size: 1.75rem;
    }
}

/* ============================================
   MOBILE CENTERING FIXES
   ============================================ */

@media (max-width: 768px) {
    /* Center align all text and content on mobile */
    .footer-col {
        text-align: center;
    }
    
    /* Center the logo horizontally */
    .footer-logo {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    /* Center logo text and image */
    .footer-logo img {
        margin: 0 auto;
    }
    
    .footer-logo .logo-text {
        width: 100%;
        text-align: center;
        justify-content: center;
        
    }
    
    /* Center the social links */
    .footer-social {
        justify-content: center;
        gap: 1rem;
    }
    
    /* Center section titles with their underline */
    .footer-title {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Center the lists */
    .footer-links,
    .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    /* Center contact items */
    .footer-contact li {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }
    
    /* Center contact icons */
    .footer-contact i {
        margin: 0;
    }
    
    /* Center the newsletter section */
    .newsletter-section {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Center newsletter form */
    .newsletter-form {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-form .input-group {
        width: 100%;
        max-width: 400px;
    }
    
    /* Center checkbox */
    .checkbox-label {
        justify-content: center;
        text-align: center;
    }
    
    /* Center footer bottom content */
    .footer-bottom-content {
        text-align: center;
        align-items: center;
    }
    
    /* Center payment methods */
    .payment-methods {
        justify-content: center;
    }
    
    /* Center footer legal links */
    .footer-legal {
        justify-content: center;
        text-align: center;
    }
    
    /* Center the description text */
    .footer-description {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    /* Make links stack vertically and centered */
    .footer-links a {
        justify-content: center;
        text-align: center;
    }
    
    /* Adjust spacing for very small screens */
    .footer-col {
        padding: 0 0.5rem;
    }
    
    /* Ensure newsletter input is centered */
    .newsletter-form input {
        text-align: center;
    }
}

/* Add smooth transitions for mobile layout changes */
.footer-col,
.footer-logo,
.footer-social,
.footer-title,
.footer-links,
.footer-contact,
.newsletter-section {
    transition: all 0.3s ease;
}