/* =========================
   HEADER BASE
========================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(193, 152, 105, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 4, 0.03);
    transition:
        background 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        backdrop-filter 0.35s ease,
        -webkit-backdrop-filter 0.35s ease,
        transform 0.35s ease;
}

.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
    z-index: 0;
    transition: background 0.35s ease;
}

.site-header__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: 92px;
    transition: height 0.35s ease, gap 0.35s ease;
}

/* Admin bar only */
body.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* =========================
   BRAND / LOGO
========================= */

.site-header__brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.site-header__brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.custom-logo-link {
    display: block;
}

.custom-logo {
    max-height: 80px;
    width: auto;
    display: block;
    object-fit: contain;
    transition:
        transform 0.3s ease,
        max-height 0.35s ease,
        opacity 0.3s ease;
}

.custom-logo:hover {
    transform: scale(1.03);
}

.site-header__title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #000004;
    transition: color 0.3s ease;
}

.site-header__brand-link:hover .site-header__title {
    color: #C19869;
}

/* =========================
   NAVIGATION
========================= */

.site-header__nav {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
}

.site-header__menu {
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-header__menu li {
    margin: 0;
    padding: 0;
}

.site-header__menu a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    color: #000004;
    letter-spacing: 0.04em;
    transition:
        color 0.3s ease,
        transform 0.3s ease,
        opacity 0.3s ease;
}

.site-header__menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, #C19869, #CF7255);
    transition: width 0.3s ease;
}

.site-header__menu a:hover {
    color: #C19869;
    transform: translateY(-1px);
}

.site-header__menu a:hover::after {
    width: 100%;
}

.site-header__menu .current-menu-item a {
    color: #C19869;
}

.site-header__menu .current-menu-item a::after {
    width: 100%;
}

/* =========================
   ACTIONS / CTA
========================= */

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
}

.site-header__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    background: linear-gradient(135deg, #CF7255, #C19869);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    box-shadow: 0 8px 18px rgba(207, 114, 85, 0.16);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        opacity 0.3s ease,
        filter 0.3s ease;
}

.site-header__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(193, 152, 105, 0.2);
    filter: brightness(1.02);
}

/* =========================
   HAMBURGER TOGGLE
========================= */

.site-header__toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.site-header__toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: #000004;
    border-radius: 999px;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease,
        background-color 0.3s ease;
}

/* =========================
   SCROLLED STATE
========================= */

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.46);
    border-bottom: 1px solid rgba(193, 152, 105, 0.2);
    backdrop-filter: saturate(190%) blur(24px);
    -webkit-backdrop-filter: saturate(190%) blur(24px);
    box-shadow:
        0 16px 38px rgba(0, 0, 4, 0.08),
        0 2px 0 rgba(255, 255, 255, 0.22) inset;
}

.site-header.scrolled::before {
    background:
        linear-gradient(to bottom,
            rgba(255, 255, 255, 0.42),
            rgba(255, 255, 255, 0.08));
}

.site-header.scrolled .site-header__inner {
    height: 76px;
}

.site-header.scrolled .custom-logo {
    max-height: 58px;
}

.site-header.scrolled .site-header__button {
    background: linear-gradient(135deg, #C19869, #6D564B);
    box-shadow: 0 10px 22px rgba(193, 152, 105, 0.22);
}

/* =========================
   MOBILE MENU PREMIUM
========================= */

.site-header__mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 4, 0.56);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 999;
}

.site-header__mobile-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(88vw, 380px);
    height: 100vh;
    padding: 1.5rem 1.25rem 2rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(185%) blur(22px);
    -webkit-backdrop-filter: saturate(185%) blur(22px);
    border-left: 1px solid rgba(193, 152, 105, 0.16);
    box-shadow: -18px 0 48px rgba(0, 0, 4, 0.12);
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.site-header__mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(193, 152, 105, 0.1);
}

.site-header__mobile-title {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6D564B;
}

.site-header__mobile-close {
    position: relative;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    flex: 0 0 auto;
}

.site-header__mobile-close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 1.5px;
    background: #000004;
    border-radius: 999px;
}

.site-header__mobile-close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.site-header__mobile-close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.site-header__mobile-nav {
    flex: 1 1 auto;
}

.site-header__mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-header__mobile-menu li {
    margin: 0;
    padding: 0;
}

.site-header__mobile-menu a {
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.2;
    color: #000004;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

.site-header__mobile-menu a:hover {
    color: #C19869;
    transform: translateX(4px);
}

.site-header__mobile-menu .current-menu-item a {
    color: #C19869;
}

.site-header__mobile-cta {
    margin-top: 2rem;
}

.site-header__mobile-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 0 1.25rem;
    border-radius: 6px;
    background: linear-gradient(135deg, #CF7255, #C19869);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(207, 114, 85, 0.16);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        filter 0.3s ease;
}

.site-header__mobile-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(193, 152, 105, 0.18);
    filter: brightness(1.02);
}

/* Estado abierto */
.site-header.menu-open .site-header__mobile-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.site-header.menu-open .site-header__mobile-panel {
    transform: translateX(0);
}

.site-header.menu-open .site-header__toggle-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.site-header.menu-open .site-header__toggle-line:nth-child(2) {
    opacity: 0;
}

.site-header.menu-open .site-header__toggle-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {
    .site-header__menu {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .site-header__inner {
        height: 74px;
        gap: 1rem;
    }

    .site-header__nav {
        display: none;
    }

    .site-header__toggle {
        display: inline-flex;
    }

    .custom-logo {
        max-height: 56px;
    }

    .site-header__button {
        display: none;
    }

    .site-header.scrolled .site-header__inner {
        height: 68px;
    }

    .site-header.scrolled .custom-logo {
        max-height: 50px;
    }
}

@media (max-width: 480px) {
    .site-header__title {
        font-size: 16px;
    }

    .site-header__mobile-panel {
        width: 100%;
        max-width: 100%;
        padding: 1.25rem 1rem 1.75rem;
    }

    .site-header__mobile-menu a {
        font-size: 1.05rem;
    }

    .site-header__mobile-button {
        min-height: 48px;
        font-size: 0.92rem;
    }
}

@media (min-width: 769px) {
    .site-header__mobile-overlay,  
    .site-header__mobile-panel,
    .site-header__toggle {
        display: none !important;
    }
}