/* Header & Navbar */
.header {
    background: rgba(0, 0, 0, 0.7);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    flex-shrink: 0;
}

.navbar {
    padding: 1rem 0;
}

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

.logo-desktop {
    height: 40px;
}

.logo-desktop a {
    display: block;
    height: 40px;
}

.logo-desktop a img {
    width: 40px;
    height: auto;
    margin-right: 20px;
}

.nav-menu {
    font-family: var(--main-accent-font), sans-serif;
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Dropdown Menu - Solo Desktop */
.nav-item-dropdown {
    position: relative;
}

.nav-item-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    list-style: none;
    padding: 1rem 0;
    min-width: 220px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    pointer-events: none;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    font-size: 1.2rem;
    display: block;
        padding: 0.5rem 1.2rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary-color);
    padding-left: 1.5rem;
}

@media (min-width: 769px) {
    .nav-item-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

@media (max-width: 768px) {
    .dropdown-menu {
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

.burger-menu {
    width: 40px;
    display: block;
    transition: all 0.3s;
    cursor: pointer;
    height: 40px;
    padding-top: 10px;
}

.burger-menu .bar {
    transition: all 0.3s;
    height: 2px;
    width: 100%;
    display: block;
    background-color: var(--primary-color);
}

.burger-menu .bar:nth-of-type(2) {
    margin: 8px 0;
}

.burger-menu--closed {
    transition-delay: 0.3s;
}

.burger-menu--closed .bar:nth-of-type(2) {
    width: 75%;
    transition-property: margin, height, width;
    transition-delay: 0.3s, 0.3s, 0s;
}

.burger-menu--closed .bar:nth-of-type(3) {
    width: 50%;
}

.burger-menu--closed:hover .bar:nth-of-type(2) {
    width: 100%;
}

.burger-menu--closed:hover .bar:nth-of-type(3) {
    width: 100%;
}

.burger-menu--opened {
    padding-top: 20px;
}

.burger-menu--opened .bar:nth-of-type(1) {
    transform: rotate(45deg);
    transition-delay: 0.3s;
    height: 2px;
}

.burger-menu--opened .bar:nth-of-type(2) {
    opacity: 0;
    height: 0;
    margin: -1px;
}

.burger-menu--opened .bar:nth-of-type(3) {
    transform: rotate(-45deg);
    transition-delay: 0.3s;
    height: 2px;
}

@media (min-width: 768px) {
    .burger-menu {
        display: none;
    }

    .item-mobile {
        display: none;
    }

}

@media (max-width: 768px) {
    .nav-item-dropdown .mdi {
        display: none;
    }

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

    .burger-menu {
        display: flex;
        flex-direction: column;
        align-items: end;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: #000000;
        background-image: url(/images/fondo_espacio_naranja.png);
        background-repeat: no-repeat;
        background-size: 200%;
        background-position: center right;
        width: 0;
        height: 100vh;
        overflow-x: hidden;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        width: 100vw;
        padding: 4% 10%;
        left: 0;
        text-align: left;
        gap: 0.6rem;
    }

    .nav-menu.active a {
        font-family: var(--main-text-font);
        font-size: 40px;
        font-weight: 700;
        text-align: left;
        transition: all 0.5s ease;
    }

    .nav-menu.active a:hover {
        color: var(--primary-color);
        transition: all 0.5s ease;

    }

    .nav-menu.active a::before {
        font-family: var(--main-accent-font);
        color: var(--primary-color);
        content: attr(data-order);
        margin-right: 10px;
    }
}

@media (max-width: 500px) {
    .nav-menu.active a {
        font-size: 30px;
    }
}