/* === HEADER: Transparente -> Sticky negro === */
.niz-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--niz-header-height);
    background-color: transparent;
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.niz-header.scrolled {
    background-color: rgba(9, 15, 12, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.niz-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.niz-logo img {
    height: 42px;
    width: auto;
    transition: var(--niz-transition);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.niz-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.niz-menu {
    display: flex;
    gap: 2rem;
}

.niz-menu a {
    color: var(--niz-white);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0;
    padding: 4px 0;
}

.niz-menu a:hover {
    color: var(--niz-primary);
}

.niz-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--niz-gradient-primary);
    transition: var(--niz-transition);
    border-radius: 2px;
}

.niz-menu a:hover::after {
    width: 100%;
}

/* CTA Button in header */
.niz-header-cta .niz-btn {
    padding: 10px 24px;
    font-size: 0.85rem;
    letter-spacing: 0;
}

.niz-btn-header-turno {
    isolation: isolate;
    white-space: nowrap;
    animation: nizHeaderTurnoPulse 2.8s ease-in-out infinite;
}

.niz-btn-header-turno .niz-btn-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: nizCalendarNudge 2.8s ease-in-out infinite;
}

.niz-btn-header-turno:hover .niz-btn-icon {
    animation-play-state: paused;
    transform: translateY(-1px);
}

@keyframes nizHeaderTurnoPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(78,205,196,0.28), var(--niz-shadow-accent-glow);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(78,205,196,0), 0 8px 30px rgba(78,205,196,0.34);
    }
}

@keyframes nizCalendarNudge {
    0%, 72%, 100% {
        transform: translateY(0);
    }
    78% {
        transform: translateY(-2px);
    }
    84% {
        transform: translateY(0);
    }
}

/* --- Mobile --- */
.niz-mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
    padding: 4px;
}

.niz-mobile-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--niz-white);
    transition: var(--niz-transition);
    border-radius: 2px;
}

@media (max-width: 991px) {
    .niz-mobile-toggle {
        display: flex;
    }

    .niz-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        height: 100dvh;
        background: rgba(9, 15, 12, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        padding: 2rem;
        box-shadow: -10px 0 40px rgba(0,0,0,0.6);
    }

    .niz-nav.active {
        right: 0;
    }

    .niz-menu {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .niz-menu a {
        font-size: 1.1rem;
        letter-spacing: 0;
    }

    .niz-mobile-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .niz-mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .niz-mobile-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
