/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: var(--navbar-bg);
}

.navbar.scrolled {
    box-shadow: var(--navbar-scrolled-shadow);
    padding: 0.8rem 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    /* Adjustable based on actual logo visual weight */
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-yellow);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions .btn-sm {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
}

/* Hidden on desktop, visible on mobile */
.mobile-only {
    display: none !important;
}

/* Mobile Responsive Navbar */
@media (max-width: 768px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Menú desplegado al activar el toggle */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        background: var(--navbar-bg);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 1.5rem 0;
        box-shadow: var(--navbar-scrolled-shadow);
        z-index: 999;
        border-top: 1px solid rgba(17, 74, 141, 0.08);
        animation: slideDown 0.25s ease;
    }

    /* Show mobile-only links inside active menu */
    .nav-links.active .mobile-only {
        display: block !important;
    }

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

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links.active .nav-link {
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
        font-size: 1.05rem;
        border-bottom: 1px solid rgba(17, 74, 141, 0.06);
        color: var(--text-dark);
    }

    .nav-links.active .nav-link:last-child {
        border-bottom: none;
    }

    .nav-links.active .nav-link:hover {
        background-color: var(--soft-blue);
        color: var(--primary-blue);
    }

    .logo-img {
        height: 40px;
    }
}

/* Tablet landscape — navbar ligeramente más compacta */
@media (min-width: 769px) and (max-width: 1024px) {

    .nav-links {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .logo-img {
        height: 42px;
    }
}