/* ==========================================
   HEADER - Navegación Principal
   ========================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--azul-oscuro);
    z-index: 1000;
    transition: all 0.3s ease;
    height: var(--header-h);
}

.scroll-header {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.nav {
    height: 100%;
}

.nav__container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gap-lg);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo img {
    height: 50px;
    width: auto;
}

.nav__menu {
    display: flex;
    align-items: center;
}

.nav__list {
    display: flex;
    gap: var(--gap-xl);
    list-style: none;
}

.nav__link {
    color: var(--blanco);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blanco);
    transition: width 0.3s ease;
}

.nav__link:hover,
.nav__link.active {
    color: var(--blanco);
    opacity: 0.9;
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
}

.nav__actions .btn--primary {
    background: var(--oro);
    color: var(--azul-oscuro);
    border-color: var(--oro);
    font-weight: 700;
}

.nav__actions .btn--primary:hover {
    background: transparent;
    color: var(--oro);
    border-color: var(--oro);
}

.nav__toggle,
.nav__close {
    display: none;
    color: var(--blanco);
    cursor: pointer;
}

/* Mobile Menu */
@media screen and (max-width: 768px) {

    /* Hide "Cotizar ahora" button — leave only the toggle */
    .nav__actions .btn--primary {
        display: none;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--azul-oscuro);
        padding: var(--gap-3xl) var(--gap-lg);
        transition: right 0.4s ease;
        flex-direction: column;
        justify-content: flex-start;
        z-index: 1100;
    }
    
    .nav__menu.show-menu {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
        gap: var(--gap-lg);
        margin-top: var(--gap-2xl);
    }
    
    .nav__link {
        font-size: 1.3rem;
    }
    
    .nav__toggle,
    .nav__close {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.6rem;
        cursor: pointer;
        color: var(--blanco);
    }

    .nav__toggle {
        width: 44px;
        height: 44px;
    }
    
    .nav__close {
        position: absolute;
        top: var(--gap-lg);
        right: var(--gap-lg);
        width: 44px;
        height: 44px;
    }
}
