/* Modernization and Responsiveness overrides */

/* Global Smooth Transitions */
a, button, .button, input[type="submit"] {
    transition: all 0.3s ease-in-out !important;
}

/* Header & Navigation Modernization */
#header.sticky-header #header-wrap {
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

#primary-menu > ul > li > a {
    font-weight: 500;
    letter-spacing: 0.5px;
}

.autogestion-menu-item a div {
    box-shadow: 0 4px 10px rgba(224, 78, 19, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.autogestion-menu-item a:hover div {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(224, 78, 19, 0.4);
    background-color: #c94410 !important;
}

/* Buttons Modernization */
.button.button-rounded {
    border-radius: 30px !important;
}

.button {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.button:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* WhatsApp Floating Widget */
.whatsapp-float-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: wa-pulse 2s infinite;
}

.whatsapp-float-btn:hover {
    background-color: #20BA56;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
    color: #FFF;
}

.whatsapp-float-btn img, .whatsapp-float-btn svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .whatsapp-float-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
    .whatsapp-float-btn img, .whatsapp-float-btn svg {
        width: 28px;
        height: 28px;
    }
    
    .autogestion-menu-item a div {
        display: inline-block;
        margin-top: 10px;
        margin-bottom: 10px;
    }
}
