/* ==============================
   HEADER BASE
============================== */

.psw-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: linear-gradient(90deg, #245c2a, #2f7a36);
}

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

/* ==============================
   LOGO
============================== */

.psw-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.psw-ball {
    font-size: 22px;
}

.psw-text {
    font-family: 'Poppins','Segoe UI',sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #fff;
}

/* ==============================
   MENÚ DESKTOP
============================== */

.psw-nav {
    display: flex;
    gap: 22px;
}

.psw-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ==============================
   ZONA DERECHA
============================== */

.psw-header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* ==============================
   BUSCADOR DESKTOP
============================== */

.psw-search-desktop {
    display: flex;
    align-items: center;
    gap: 6px;
}

.psw-search-desktop input {
    width: 180px;
    padding: 7px 10px;
    border-radius: 6px;
    border: 1px solid #bcdcbc;
    font-size: 14px;
}

.psw-search-desktop button {
    background: #4ea24e;
    color: #fff;
    border: none;
    padding: 7px 10px;
    border-radius: 6px;
    cursor: pointer;
}

/* ==============================
   USUARIO DESKTOP
============================== */

.psw-user-desktop {
    display: flex;
    align-items: center;
    gap: 10px;
}

.psw-user-login {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.psw-user-register {
    background: #3d8f3d;
    color: #fff;
    padding: 7px 14px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

/* ==============================
   BOTÓN MENÚ MÓVIL
============================== */

.psw-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.psw-menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
}

/* ==============================
   BUSCADOR MÓVIL
============================== */

.psw-search-mobile {
    display: none;
    padding: 12px 16px;
    background: #2d6a30;
}

.psw-search-mobile input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #bcdcbc;
}

/* ==============================
   MENÚ MÓVIL
============================== */

.psw-nav-mobile {
    position: fixed;
    top: 0;
    right: -260px;
    width: 260px;
    height: 100vh;
    background: #1c1c1c;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: right .25s ease;
    z-index: 10000;
}

.psw-nav-mobile.open {
    right: 0;
}

.psw-nav-mobile a {
    color: #fff;
    text-decoration: none;
    font-size: 17px;
}

.psw-nav-mobile hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,.2);
    margin: 10px 0;
}

/* ==============================
   OVERLAY
============================== */

.psw-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease;
    z-index: 9000;
}

.psw-menu-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 899px) {
    .psw-nav,
    .psw-search-desktop,
    .psw-user-desktop {
        display: none;
    }

    .psw-menu-toggle {
        display: block;
    }

    .psw-search-mobile {
        display: block;
    }
}

body.no-scroll {
    overflow: hidden;
}
