
#header {
    height: 120px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-hidden {
    transform: translateY(-100%);
}

#nav-top {
    background: var(--primary-blue);
    height: 80px;
}

#nav-top .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

#triton-projects {
    display: flex;
    align-items: center;
    height: 80px;
}

#triton-projects li {
    display: flex;
    align-items: center;
    height: 100%;
}

#triton-projects li:not(#current-project) a {
    display: flex;
    align-items: center;
    height: 80px;
    padding: 0 15px;
    color: var(--white);
    -webkit-text-fill-color: var(--white);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

#triton-projects li:not(#current-project) a:hover {
    background: var(--white);
    color: var(--primary-blue);
    -webkit-text-fill-color: var(--primary-blue);
}

#triton-projects li#current-project {
    height: 80px;
    position: relative;
    margin-right: 0;
}

#triton-projects li#current-project a {
    padding: 0;
    width: auto;
    min-width: 160px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

#triton-projects li#current-project a:before {
    content: '';
    width: 133px;
    height: inherit;
    display: block;
    background: url(../img/TRITONSA_Triton_SouthAmerica_Logo_Colored_SVG.svg) no-repeat center;
    background-size: contain;
    filter: brightness(0) invert(1);
}

#triton-projects li#current-project a span {
    display: none;
}

#triton-projects li#current-project a::after {
    display: none;
}

#triton-projects li#current-project a:hover {
    background: var(--white);
}

#triton-projects li#current-project a:hover:before {
    filter: none;
}

body.home #triton-projects li#current-project a {
    background: var(--white);
}

body.home #triton-projects li#current-project a:before {
    filter: none;
}

#nav {
    height: 40px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: absolute;
    bottom: 0;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

#nav .wrap {
    height: 100%;
    min-width: max-content;
}

#nav ul {
    display: flex;
    height: 100%;
    align-items: center;
    list-style: none;
    gap: 25px;
    white-space: nowrap;
}

#nav li {
    display: flex;
    height: 100%;
}

#nav a {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 10px;
    color: #111;
    -webkit-text-fill-color: #111;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
}

#nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

#nav a:hover:after,
#nav a:focus:after,
#nav li.active a:after {
    transform: scaleX(1);
}

#usage-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 80px;
    list-style: none;
}

#usage-menu li {
    margin: 0;
    padding: 0;
}

#usage-menu a {
    text-decoration: none;
    color: var(--white);
    -webkit-text-fill-color: var(--white);
    transition: all 0.3s ease;
    border: 1px solid var(--white);
    border-radius: 3px;
    padding: 6px 12px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    line-height: 1;
    text-transform: uppercase;
}

#usage-menu a i {
    font-size: 14px;
}

#usage-menu a:hover {
    background: var(--white);
    color: var(--primary-blue);
    -webkit-text-fill-color: var(--primary-blue);
}

#usage-menu-login-button {
    background: transparent;
    border: 1px solid var(--white) !important;
}

#usage-menu-login-button:hover {
    background: var(--white) !important;
    color: var(--primary-blue) !important;
    -webkit-text-fill-color: var(--primary-blue) !important;
}

body.download #usage-menu-download-button {
    background: var(--white) !important;
    color: var(--primary-blue) !important;
    -webkit-text-fill-color: var(--primary-blue) !important;
}

body.contact #usage-menu-contact-button {
    background: var(--white) !important;
    color: var(--primary-blue) !important;
    -webkit-text-fill-color: var(--primary-blue) !important;
}

body.calculadoras #usage-menu-calculators-button {
    background: var(--white) !important;
    color: var(--primary-blue) !important;
    -webkit-text-fill-color: var(--primary-blue) !important;
}

.logo-container {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-container::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

.logo-container:hover::after {
    width: 100%;
}

body.home .logo-container::after {
    width: 100%;
}

#mobile-toggle {
    display: none;
}

#mobile-nav {
    display: block;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gray-100);
    z-index: 9999998;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), visibility 0.4s;
    overflow-y: auto;
    visibility: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#mobile-logo {
    display: none;
}

#mobile-logo a {
    display: block;
    height: 100%;
    width: 100%;
    text-decoration: none;
}

#mobile-logo a img {
    height: 45px;
    width: auto;
    max-width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toggleBounce {
    0% { transform: scale(1); }
    40% { transform: scale(1.2); }
    60% { transform: scale(0.9); }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@media screen and (max-width: 1050px) {
    body {
        padding-top: 60px;
    }

    #header {
        height: 60px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10000;
        animation: none;
        background: none;
    }

    #header::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: var(--white);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid var(--gray-200);
        z-index: 10000;
    }

    #mobile-logo {
        display: block;
        position: fixed;
        top: 0;
        left: 15px;
        height: 60px;
        width: 140px;
        z-index: 10001;
        animation: none;
    }

    #mobile-logo img {
        height: 45px;
        width: auto;
        max-width: 100%;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 0;
    }

    #nav-top,
    #nav,
    #triton-projects li:not(#current-project),
    #usage-menu {
        display: none !important;
    }

    #triton-projects {
        display: none !important;
    }

    #mobile-toggle {
        display: block !important;
        position: fixed;
        right: 15px;
        top: 15px;
        width: 30px;
        height: 30px;
        padding: 0;
        border: none;
        background: none;
        cursor: pointer;
        z-index: 10001;
        pointer-events: auto !important;
        animation: none;
        transition: none;
    }

    #mobile-toggle:hover {
        animation: none;
    }

    #mobile-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--primary-blue);
        position: absolute;
        left: 3px;
        transition: transform 0.3s, opacity 0.3s;
        pointer-events: none;
    }

    #mobile-toggle span:nth-child(1) { top: 8px; }
    #mobile-toggle span:nth-child(2) { top: 14px; }
    #mobile-toggle span:nth-child(3) { top: 20px; }

    #mobile-nav {
        display: block;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--gray-100);
        z-index: 9999;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), visibility 0.4s;
        overflow-y: auto;
        visibility: hidden;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open #mobile-nav {
        transform: translateY(0);
        visibility: visible;
    }

    body.menu-open #mobile-toggle span:nth-child(1) {
        transform: rotate(45deg);
        top: 14px;
        transition: transform 0.3s, top 0.3s;
    }

    body.menu-open #mobile-toggle span:nth-child(2) {
        opacity: 0;
        transition: opacity 0.3s;
    }

    body.menu-open #mobile-toggle span:nth-child(3) {
        transform: rotate(-45deg);
        top: 14px;
        transition: transform 0.3s, top 0.3s;
    }

    .mobile-nav-content {
        padding: 0;
        background-color: var(--gray-100);
    }

    .mobile-section {
        margin-bottom: 0;
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    body.menu-open .mobile-section {
        opacity: 1;
        transform: translateY(0);
    }

    body.menu-open .mobile-section:nth-child(1) {
        transition-delay: 0.1s;
    }

    body.menu-open .mobile-section:nth-child(2) {
        transition-delay: 0.2s;
    }

    body.menu-open .mobile-section:nth-child(3) {
        transition-delay: 0.3s;
    }

    .mobile-section h3 {
        display: block;
        padding: 10px 20px;
        margin: 0;
        background-color: var(--gray-200);
        color: var(--gray-800);
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border: none;
    }

    .mobile-section ul {
        list-style: none;
        margin: 0;
        padding: 0;
        background-color: var(--white);
    }

    .mobile-section ul li {
        margin-bottom: 0;
        border-bottom: 1px solid var(--gray-200);
        background-color: var(--white);
    }

    .mobile-section ul li:last-child {
        margin-bottom: 0;
    }

    .mobile-section ul li a {
        display: block;
        padding: 12px 20px;
        color: #333;
        text-decoration: none;
        font-size: 14px;
        border-radius: 0;
        background-color: var(--white);
        font-weight: 400;
        border-left: 4px solid transparent;
    }

    .mobile-section ul li a:active,
    .mobile-section ul li a:hover {
        background-color: #f2f2f2;
        border-left: 4px solid var(--primary-blue);
    }

    .mobile-section + .mobile-section {
        margin-top: 0;
    }

    .mobile-section:last-child {
        margin-top: 8px;
    }

    .mobile-buttons {
        display: flex;
        flex-direction: column;
        gap: 1px;
        margin-top: 0;
        border-top: 1px solid var(--gray-200);
    }

    .mobile-section:last-child:before {
        content: "";
        display: none;
    }

    .mobile-button {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        padding: 12px 20px;
        background: var(--primary-blue);
        color: var(--white);
        text-decoration: none;
        border-radius: 0;
        font-size: 14px;
        font-weight: 600;
        text-transform: uppercase;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-left: 4px solid transparent;
        letter-spacing: 0.5px;
        transition: none;
    }

    .mobile-button i {
        font-size: 18px;
        width: 20px;
        text-align: center;
        color: var(--white);
    }

    .mobile-button:active,
    .mobile-button:hover {
        background: var(--dark-blue);
        border-left: 4px solid var(--white);
    }

    body:not(.menu-open) .mobile-section {
        opacity: 0;
        transform: translateY(10px);
        transition-delay: 0s !important;
    }

    body:not(.menu-open) #mobile-nav {
        transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1), 
                    visibility 0.3s;
    }
} 