.navbar-modern {
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: all 0.3s ease;
}

.navbar-modern.scrolled {
    padding: 12px 0;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.navbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

/* Logo */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.brand-logo {
    height: 55px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar-modern.scrolled .brand-logo {
    height: 45px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-size: 22px;
    font-weight: 700;
    color: #166534;
    line-height: 1;
    letter-spacing: -0.5px;
}

.brand-tagline {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Desktop Menu */
.desktop-menu {
    display: flex;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item {
    position: relative;
}

.menu-link {
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 18px;
    display: block;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.menu-link:hover {
    color: #166534;
    background-color: rgba(22, 101, 52, 0.05);
}

.link-underline {
    position: absolute;
    bottom: 5px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: linear-gradient(90deg, #166534 0%, #4ade80 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.menu-link:hover .link-underline,
.menu-link.active .link-underline {
    transform: scaleX(1);
}

/* Desktop CTA */
.navbar-cta,
.desktop-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #25d366 0%, #1fa855 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    position: relative;
    overflow: hidden;
}

.navbar-cta::before,
.desktop-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.navbar-cta:hover::before,
.desktop-cta:hover::before {
    width: 300px;
    height: 300px;
}

.navbar-cta:hover,
.desktop-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.navbar-cta i,
.desktop-cta i {
    font-size: 18px;
    position: relative;
    z-index: 1;
}

.navbar-cta span,
.desktop-cta span {
    position: relative;
    z-index: 1;
}

/* Mobile Toggle - Hidden by default */
.mobile-toggle {
    display: none;
}

/* Mobile Menu - Hidden by default */
.mobile-menu {
    display: none;
}

.mobile-logo-image {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 1024px) {
    /* Hide desktop elements */
    .desktop-menu,
    .desktop-cta {
        display: none !important;
    }
    
    /* Mobile Toggle Button */
    .mobile-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 1001;
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    /* Ocultar hamburger cuando menu está abierto */
    .mobile-toggle.active {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    
    .toggle-line {
        width: 28px;
        height: 3px;
        background: linear-gradient(135deg, #166534 0%, #15803d 100%);
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    
    /* Mobile Menu */
    .mobile-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        background-color: #fff;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 999;
    }
    
    .mobile-menu.active {
        right: 0;
    }
    
    /* Mobile Header */
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        background: linear-gradient(135deg, #166534 0%, #15803d 100%);
        color: #fff;
        flex-shrink: 0;
    }
    
    .mobile-menu-logo {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .mobile-menu-logo img {
        height: 40px;
        width: auto;
    }
    
    .mobile-menu-logo span {
        font-size: 18px;
        font-weight: 700;
    }
    
    .mobile-close-btn {
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.2);
        border: none;
        border-radius: 50%;
        color: #fff;
        font-size: 20px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-close-btn:hover {
        background-color: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }
    
    /* Mobile Menu List */
    .mobile-menu-list {
        list-style: none;
        margin: 0;
        padding: 20px 0;
    }
    
    .mobile-menu-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 20px;
        color: #334155;
        text-decoration: none;
        font-weight: 600;
        font-size: 15px;
        border-bottom: 1px solid #f8fafc;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-link:hover {
        background-color: rgba(22, 101, 52, 0.05);
        color: #166534;
    }
    
    .mobile-menu-link i {
        font-size: 18px;
        color: #64748b;
        width: 24px;
    }
    
    .mobile-menu-link:hover i {
        color: #166534;
    }
    
    /* Mobile Contact */
    .mobile-contact {
        padding: 20px;
        border-top: 1px solid #f1f5f9;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .mobile-contact-btn {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        background-color: #f8fafc;
        border-radius: 10px;
        text-decoration: none;
        transition: all 0.3s ease;
        color: #1e293b;
        font-weight: 600;
        font-size: 15px;
    }
    
    .mobile-contact-btn:hover {
        background-color: #f0fdf4;
        transform: translateX(5px);
    }
    
    .mobile-contact-btn i {
        font-size: 20px;
        width: 24px;
        text-align: center;
    }
    
    .mobile-contact-btn.whatsapp i {
        color: #25d366;
    }
    
    .mobile-contact-btn.email i {
        color: #3b82f6;
    }
    
    .mobile-contact-btn.phone i {
        color: #8b5cf6;
    }
    
    /* Mobile Footer */
    .mobile-menu-footer {
        padding: 20px;
        text-align: center;
        background-color: #f8fafc;
        border-top: 1px solid #e2e8f0;
        margin-top: auto;
    }
    
    .mobile-menu-footer p {
        font-size: 12px;
        color: #64748b;
        margin: 0;
    }
}

@media (max-width: 640px) {
    .brand-logo {
        height: 45px;
    }
    
    .brand-name {
        font-size: 18px;
    }
    
    .brand-tagline {
        font-size: 10px;
    }
    
    .mobile-menu {
        width: 90%;
    }
}
