
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--color-background, #ffffff);
    border-bottom: 1px solid color-mix(in srgb, var(--color-text, #333) 12%, transparent);
    z-index: 1000;
    transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.header.scrolled {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
    background: var(--color-background, #ffffff);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--def-nav-h, var(--def-header-h, 76px));
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    gap: 1rem;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    font-family: var(--font-family, sans-serif);
}

.logo-img,
.logo-auto-img,
.logo [data-saas-brand="logo"] {
    height: 44px;
    max-height: 44px;
    max-width: 240px;
    width: auto;
    object-fit: contain;
    object-position: left center;
    display: block;
    transition: opacity 0.2s ease;
}

.logo-auto-img {
    min-width: 42px;
    min-height: 42px;
}

.logo .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo .brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.04em;
    line-height: 1.1;
    white-space: nowrap;
}

.logo .brand-tagline {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: color-mix(in srgb, var(--color-text, #333) 55%, var(--color-background, #fff));
    margin-top: 2px;
}

.logo-link:hover .logo-auto-img,
.logo-link:hover .logo-img {
    opacity: 0.9;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--color-primary);
    font-family: var(--font-family, sans-serif);
    white-space: nowrap;
}

.logo-link:hover {
    text-decoration: none;
}

.logo-link:hover .logo-text {
    color: var(--color-secondary);
}

.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
    min-width: 0;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.85rem;
    color: #0a0a0a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
    font-family: var(--font-family, sans-serif);
    white-space: nowrap;
}

.nav-link i {
    display: inline-block;
    margin-right: 8px;
    font-size: 16px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.nav-link-home {
    display: none;
}

.nav-link:hover {
    background: #f3f4f6;
    color: #0a0a0a;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.nav-link.active {
    background: transparent;
    color: #0a0a0a;
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    font-family: var(--font-family, sans-serif);
    border: none;
    cursor: pointer;
}

.btn-action i {
    font-size: 18px;
}

.btn-reservation {
    background: var(--color-primary);
    color: #ffffff;
}

.btn-reservation:hover {
    background: color-mix(in srgb, var(--color-primary) 82%, #000);
    color: #ffffff;
    text-decoration: none;
}

.btn-whatsapp {
    background: var(--color-whatsapp);
    color: #ffffff;
}

.btn-whatsapp:hover {
    background: var(--color-whatsapp-dark, #128C7E);
    color: #ffffff;
    text-decoration: none;
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    padding: 12px 10px;
    z-index: 1002;
    box-sizing: border-box;
    flex-shrink: 0;
}

@media (min-width: 969px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text, #333333);
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.2s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 968px) {
    .header-content {
        height: var(--def-nav-h, 64px);
        padding: 0 1rem;
        justify-content: space-between;
        position: relative;
    }
    
    .logo-link {
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100% - 7.5rem);
        z-index: 1001;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .logo-img,
    .logo-auto-img,
    .logo [data-saas-brand="logo"] {
        height: 36px;
        max-height: 36px;
        max-width: min(58vw, 190px);
        width: auto;
    }
    
    .header-nav {
        display: none;
        position: fixed;
        top: var(--def-header-h, 64px);
        left: 0;
        right: 0;
        background: var(--color-background, #ffffff);
        box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
        z-index: 999;
        max-height: calc(100dvh - var(--def-header-h, 64px) - 76px - env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .header-nav.active {
        display: block;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem 0;
        gap: 0;
        margin: 0;
        list-style: none;
    }
    
    .nav-list li {
        margin: 0;
        padding: 0;
    }
    
    .nav-link {
        padding: 1rem 1.25rem;
        width: auto;
        display: flex;
        align-items: center;
        gap: 14px;
        text-decoration: none;
        color: #0a0a0a;
        font-weight: 600;
        font-size: 1rem;
        transition: background 0.2s ease, color 0.2s ease;
        border-bottom: none;
        position: relative;
        font-family: var(--font-family, sans-serif);
        white-space: normal;
    }
    
    .nav-link i {
        display: inline-block;
        font-size: 18px;
        width: 24px;
        text-align: center;
        color: #6b7280;
        flex-shrink: 0;
    }
    
    .nav-link span {
        flex: 1;
        display: block;
    }
    
    
    .nav-link-home {
        display: flex;
    }
    
    
    .nav-link-home span {
        display: block;
    }
    
    .nav-link:hover {
        background: #f3f4f6;
        color: #0a0a0a;
        padding-left: 1.25rem;
        text-decoration: underline;
        text-underline-offset: 0.2em;
    }
    
    .nav-link:hover i {
        color: #0a0a0a;
    }
    
    .nav-link.active {
        background: #f3f4f6;
        color: #0a0a0a;
        font-weight: 700;
    }
    
    .nav-link.active:hover {
        padding-left: 1.25rem;
        background: #f3f4f6;
        color: #0a0a0a;
    }
    
    .nav-link.active i {
        color: #0a0a0a;
    }
    
    
    .header-actions {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 6px;
        z-index: 1001;
        position: relative;
    }
    
    
    .action-buttons {
        display: flex;
        align-items: center;
        gap: 6px;
        z-index: 1001;
        position: static;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        flex: 0 0 auto;
    }

    .header-nav {
        
        display: none;
    }
    .header-nav.active {
        display: block;
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 640px) {
    .header-content {
        padding: 0 0.85rem;
    }
    
    .btn-action {
        width: 40px;
        height: 40px;
    }
    
    .btn-action i {
        font-size: 16px;
    }
    
    .action-buttons {
        gap: 6px;
    }
    
    .nav-link {
        padding: 0.9rem 1rem;
    }
}

.nav-link:focus-visible,
.btn-action:focus-visible,
.mobile-menu-toggle:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.header-actions .btn-whatsapp,
.header-actions a[href^="https://wa.me"] {
    display: none !important;
}
