/* HEADER */

.header {
    background-color: rgba(47, 47, 47, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0 40px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, rgba(47, 47, 47, 0.4), transparent);
    pointer-events: none;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
}

.header-logo img {
    height: 50px;
    display: block;
}

.header-nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: #E3E3E3;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ff9900;
}

.header-btn {
    color: #ff9900;
    border: 1.5px solid #ff9900;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header-btn:hover {
    background-color: #ff9900;
    color: #fff;
}

/* Ocultos en desktop */
.header-hamburger,
.nav-close,
.header-overlay,
.header-btn--mobile {
    display: none;
}

/* MOBILE */
@media (max-width: 768px) {

    .header {
        padding: 0 20px;
    }

    .header-container {
        height: 60px;
    }

    .header-logo img {
        height: 40px;
    }

    .header-btn--desktop {
        display: none;
    }

    .header-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 1002;
    }

    .header-hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: #E3E3E3;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .header-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }

    .header-overlay.is-active {
        opacity: 1;
        visibility: visible;
    }

    /* Menú lateral */
    .header-nav {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background: rgba(20, 20, 20, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 80px 0 40px;
        z-index: 1003;
        transition: right 0.35s cubic-bezier(0.22, 1, 0.36, 1);
        border-left: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.4);
        overflow-y: auto;
    }

    .header-nav.is-open {
        right: 0;
    }

    .nav-close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        cursor: pointer;
        transition: background 0.3s ease;
    }

    .nav-close:hover {
        background: rgba(255, 255, 255, 0.12);
    }

    .header-nav .nav-link {
        display: block;
        padding: 16px 28px;
        font-size: 1rem;
        font-weight: 400;
        color: #E3E3E3;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: background 0.2s ease, color 0.2s ease;
    }

    .header-nav .nav-link:hover {
        background: rgba(255, 153, 0, 0.08);
        color: #ff9900;
    }

    .header-btn--mobile {
        display: block;
        text-align: center;
        margin: 24px 28px 0;
        padding: 12px 20px;
    }
}
