:root {
    --orange-soft: #f7a24b;
    --orange-strong: #f07a1f;
    --orange-deep: #d85a12;
    --cream: #fff4e6;
    --text-dark: #2f1c0e;
}

.site-header {
    background: linear-gradient(90deg, #fff8f0 0%, var(--cream) 100%);
    border: 1px solid #ffd9b3;
    border-radius: 16px;
    padding: 16px 24px;
    font-family: Arial, Helvetica, sans-serif;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.3px;
    text-decoration: none;
}

.logo:hover,
.logo:focus,
.logo:active {
    text-decoration: none;
}

.logo-img {
    height: 36px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 18px;
}

.nav-links {
    display: flex;
    gap: 10px 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-btn {
    text-decoration: none;
    color: var(--text-dark);
    background: #fff;
    border: 1px solid #ffd1a1;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-btn:hover {
    background: var(--orange-soft);
    color: #fff;
    box-shadow: 0 8px 16px rgba(247, 162, 75, 0.3);
    transform: translateY(-1px);
}

.auth-actions {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    border: 1px solid #ffd1a1;
    background: #fff;
    color: var(--text-dark);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.menu-toggle:hover {
    background: var(--orange-soft);
    color: #fff;
    transform: translateY(-1px);
}

.mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(47, 28, 14, 0.44);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 998;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(82vw, 330px);
    height: 100vh;
    background: linear-gradient(180deg, #fff8f0 0%, var(--cream) 100%);
    border-right: 1px solid #ffd8af;
    box-shadow: 18px 0 35px rgba(47, 28, 14, 0.18);
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    z-index: 999;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-dark);
    font-weight: 700;
}

.menu-close {
    border: 1px solid #ffd1a1;
    background: #fff;
    color: var(--text-dark);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
}

.mobile-nav-links {
    display: grid;
    gap: 10px;
}

.mobile-nav-btn {
    text-decoration: none;
    color: var(--text-dark);
    background: #fff;
    border: 1px solid #ffd1a1;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mobile-login-btn {
    margin-top: 18px;
    /* subir ligeramente desde el fondo */
    text-decoration: none;
    color: #fff;
    background: var(--orange-strong);
    padding: 11px 14px;
    border-radius: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 18px rgba(240, 122, 31, 0.28);
}

body.menu-open {
    overflow: hidden;
}

body.menu-open .mobile-backdrop {
    opacity: 1;
    pointer-events: auto;
}

body.menu-open .mobile-sidebar {
    transform: translateX(0);
}

.login-btn {
    text-decoration: none;
    color: #fff;
    background: var(--orange-strong);
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 18px rgba(240, 122, 31, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-btn:hover {
    background: var(--orange-deep);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(216, 90, 18, 0.35);
}

@media (max-width: 1200px) {
    .header-inner {
        align-items: center;
    }

    .site-header {
        padding: 12px 14px;
    }

    .logo-text {
        font-size: 17px;
    }

    .nav-links,
    .auth-actions {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }
}