/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1e3a8a 100%);
    color: #ffffff;
    padding: 60px 0 0;
    margin-top: 80px;
    width: 100%;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
}

.footer-container {
    max-width: 1700px;
    margin: 0 auto;
    padding: 60px 56px 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Footer Top Section */
.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: none;
    flex: 1;
    align-items: start;
}

.footer-column {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-right: 20px;
}

.menu-links {
    justify-content: flex-start;
    padding-left: 0;
}

.quick-links {
    justify-content: flex-start;
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 28px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 16px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    line-height: 1.6;
    transition: color 0.3s ease, transform 0.2s ease;
}

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

.footer-links a i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Logo and Social Media Section */
.logo-social {
    align-items: flex-start;
    padding-right: 0;
    max-width: 100%;
}

.footer-logo-social {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    width: 100%;
}

.footer-logo {
    height: 50px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
    background: #ffffff;
    padding: 2px 0 2px 0;
    border-radius: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-media {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    flex-shrink: 0;
}

.social-icon.facebook {
    background: #1877f2;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.twitter {
    background: #1da1f2;
}

.social-icon.linkedin {
    background: #0077b5;
}

.social-icon.whatsapp {
    background: #25d366;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-icon i {
    font-size: 18px;
}

/* Description Section */
.footer-description {
    text-align: left;
    padding: 0;
    margin-top: 0;
    margin-bottom: 24px;
    width: 100%;
}

.footer-description p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
    word-wrap: break-word;
}

/* Map Section */
.footer-map {
    width: 100%;
    height: 200px;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    margin-top: 0;
    flex-shrink: 0;
}

.footer-map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    min-height: 200px;
}

/* Footer Bottom Section */
.footer-bottom {
    margin-top: auto;
    padding-top: 30px;
    padding-bottom: 0;
    width: 100%;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.footer-copyright {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    padding-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer {
        height: auto;
        min-height: 50vh;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
        margin-bottom: 50px;
        padding-bottom: 50px;
    }

    .logo-social {
        grid-column: 1 / -1;
        margin-top: 20px;
    }

    .footer-logo-social {
        justify-content: flex-start;
    }

    .footer-description {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .footer {
        height: auto;
        min-height: 50vh;
    }

    .footer-container {
        padding: 0 32px 32px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 40px;
        padding-bottom: 40px;
    }
    
    .footer-column {
        padding-right: 0;
    }

    .footer-title {
        font-size: 20px;
    }

    .footer-logo {
        height: 50px;
        width: auto;
        max-width: 100px;
    }

    .footer-logo-social {
        flex-direction: row;
        align-items: center;
        gap: 20px;
        flex-wrap: wrap;
    }

    .social-media {
        justify-content: flex-start;
    }

    .footer-description {
        text-align: left;
    }

    .footer-map {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .footer {
        height: auto;
        min-height: auto;
        padding: 40px 0 0;
        margin-top: 60px;
    }

    .footer-container {
        padding: 0 15px 20px;
    }

    .footer-top {
        gap: 32px;
        grid-template-columns: 1fr;
        margin-bottom: 32px;
        padding-bottom: 32px;
    }

    .footer-column {
        width: 100%;
    }

    .menu-links,
    .quick-links {
        padding-left: 0;
    }

    .footer-title {
        font-size: 18px;
        margin-bottom: 16px;
        text-align: left;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .footer-links li {
        margin-bottom: 0;
    }

    .footer-links a {
        font-size: 15px;
        padding: 10px 0;
        touch-action: manipulation;
    }

    .footer-links a i {
        width: 20px;
        font-size: 16px;
    }

    .logo-social {
        order: -1;
        margin-bottom: 0;
    }

    .footer-logo-social {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 16px;
    }

    .footer-logo {
        height: 50px;
        width: auto;
    }

    .social-media {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 12px;
    }

    .social-icon {
        width: 44px;
        height: 44px;
        touch-action: manipulation;
    }

    .social-icon i {
        font-size: 18px;
    }

    .footer-description {
        text-align: left;
        margin-top: 12px;
    }

    .footer-description p {
        font-size: 13px;
        line-height: 1.5;
    }

    .footer-map {
        height: 180px;
        margin-top: 16px;
        border-radius: 8px;
    }

    .footer-bottom {
        padding-top: 20px;
        padding-bottom: 0;
    }

    .footer-copyright {
        font-size: 12px;
        padding-bottom: 20px;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
    isolation: isolate; /* Create new stacking context to prevent affecting other elements */
}

.whatsapp-float:hover {
    background: #20ba5a;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    animation: none; /* Stop animation on hover */
}

.whatsapp-float i {
    font-size: 32px;
}

/* WhatsApp-specific pulse animation - isolated to prevent affecting other elements */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

/* Responsive design for floating button */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float i {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float i {
        font-size: 24px;
    }
}

