/* =========================
   MENU / HEADER
========================= */

.menu.menu-pro{
    background:linear-gradient(180deg,#0b1f3a 0%, #0a2242 100%);
    color:#fff;
    box-shadow:0 6px 18px rgba(0,0,0,0.14);
    position:sticky;
    top:0;
    z-index:1000;
    padding:0;
    display:block;
    border-bottom:1px solid rgba(255,255,255,0.06);
    width:100%;
    max-width:100%;
    overflow:visible;
}

.menu-pro .menu-topbar{
    max-width:1280px;
    margin:0 auto;
    display:grid;
    grid-template-columns:auto 1fr auto auto;
    align-items:center;
    gap:18px;
    padding:14px 22px;
    box-sizing:border-box;
    width:100%;
}

.menu-pro .logo{
    margin:0;
    font-size:24px;
    font-weight:900;
    color:#fff;
    white-space:nowrap;
    letter-spacing:0.2px;
}

.menu-nav-desktop{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

.menu-nav-desktop a{
    color:#dbeafe;
    text-decoration:none;
    font-size:14px;
    font-weight:800;
    padding:10px 12px;
    border-radius:999px;
    transition:all 0.2s ease;
    border:1px solid transparent;
}

.menu-nav-desktop a:hover{
    color:#fff;
    background:rgba(255,255,255,0.08);
    border-color:rgba(255,255,255,0.08);
}

.menu-nav-desktop a.active{
    color:#0b1f3a;
    background:#fff;
    box-shadow:0 8px 18px rgba(255,255,255,0.18);
}

.menu-pro #usuarioMenu{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
    min-width:max-content;
}

.menu-pro #nombreUsuario{
    font-size:14px;
    font-weight:800;
    color:#e5efff;
    white-space:nowrap;
    padding:8px 12px;
    border-radius:999px;
    background:rgba(255,255,255,0.06);
}

.menu-pro #cerrarSesionMenu,
.menu-pro #cerrarSesionMenuMobile{
    border:none;
    background:linear-gradient(135deg,#ef4444,#dc2626);
    color:#fff;
    border-radius:12px;
    padding:9px 14px;
    font-weight:800;
    cursor:pointer;
    box-shadow:0 8px 16px rgba(239,68,68,0.22);
    transition:transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-pro #cerrarSesionMenu:hover,
.menu-pro #cerrarSesionMenuMobile:hover{
    transform:translateY(-1px);
    box-shadow:0 12px 18px rgba(239,68,68,0.28);
}

.menu-toggle{
    display:none;
    border:none;
    background:rgba(255,255,255,0.08);
    color:#fff;
    font-size:24px;
    cursor:pointer;
    line-height:1;
    padding:8px 10px;
    border-radius:12px;
    transition:background 0.2s ease, transform 0.2s ease;
}

.menu-toggle:hover{
    background:rgba(255,255,255,0.14);
    transform:translateY(-1px);
}



/* =========================
   PLAY DROPDOWN / MOBILE PLAY GROUP
========================= */

.menu-dropdown{
    position:relative;
    display:inline-flex;
    align-items:center;
}

.menu-dropdown-toggle{
    display:inline-flex;
    align-items:center;
    gap:6px;
    border:1px solid transparent;
    background:transparent;
    color:#dbeafe;
    font-size:14px;
    font-weight:800;
    padding:10px 12px;
    border-radius:999px;
    cursor:pointer;
    transition:all 0.2s ease;
    font-family:inherit;
}

.menu-dropdown-toggle:hover{
    color:#fff;
    background:rgba(255,255,255,0.08);
    border-color:rgba(255,255,255,0.08);
}

.menu-dropdown-toggle.active,
.menu-dropdown.is-active > .menu-dropdown-toggle,
.menu-dropdown.is-open > .menu-dropdown-toggle{
    color:#0b1f3a;
    background:#fff;
    box-shadow:0 8px 18px rgba(255,255,255,0.18);
}

.menu-dropdown-caret{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:11px;
    line-height:1;
    transition:transform 0.2s ease;
}

.menu-dropdown.is-open .menu-dropdown-caret{
    transform:rotate(180deg);
}

.menu-dropdown-panel{
    position:absolute;
    top:calc(100% + 10px);
    left:0;
    min-width:180px;
    padding:10px;
    border-radius:18px;
    background:rgba(8,22,44,0.98);
    border:1px solid rgba(255,255,255,0.08);
    box-shadow:0 22px 44px rgba(8,15,35,0.28);
    display:none;
    flex-direction:column;
    gap:6px;
    z-index:1300;
}

.menu-dropdown.is-open > .menu-dropdown-panel{
    display:flex;
}

.menu-dropdown-link{
    display:block;
    text-decoration:none;
    color:#dbeafe;
    font-size:14px;
    font-weight:800;
    padding:11px 12px;
    border-radius:12px;
    transition:all 0.2s ease;
}

.menu-dropdown-link:hover{
    color:#fff;
    background:rgba(255,255,255,0.08);
}

.menu-dropdown-link.active{
    color:#fff;
    background:rgba(59,130,246,0.2);
    box-shadow:inset 0 0 0 1px rgba(96,165,250,0.22);
}

.menu-disabled{
    opacity:0.52;
    cursor:not-allowed;
}

.menu-disabled:hover{
    background:transparent;
    color:#dbeafe;
}

.menu-mobile-group-toggle,
.menu-mobile-submenu{
    display:none;
}

.menu-mobile-group-toggle{
    width:100%;
    align-items:center;
    justify-content:space-between;
    border:none;
    background:transparent;
    color:#e5efff;
    font-size:15px;
    font-weight:800;
    padding:12px 14px;
    border-radius:14px;
    cursor:pointer;
    transition:background 0.2s ease, color 0.2s ease;
    font-family:inherit;
}

.menu-mobile-group-toggle:hover{
    background:rgba(255,255,255,0.08);
    color:#fff;
}

.menu-mobile-group-toggle.active,
.menu-mobile-group-toggle.is-open{
    background:#fff;
    color:#0b1f3a;
}

.menu-mobile-group-toggle .menu-dropdown-caret{
    font-size:12px;
}

.menu-mobile-group-toggle.is-open .menu-dropdown-caret{
    transform:rotate(180deg);
}

.menu-mobile-submenu{
    padding:6px 0 8px 14px;
}

.menu-mobile-submenu.is-open{
    display:block;
}

.menu-mobile-submenu .menu-dropdown-link{
    display:block;
    margin-bottom:8px;
    padding:10px 12px;
    border-radius:12px;
    background:rgba(255,255,255,0.04);
}

.menu-mobile-submenu .menu-dropdown-link:last-child{
    margin-bottom:0;
}

/* =========================
   MOBILE MENU PANEL
========================= */

.menu-links-mobile{
    display:none !important;
    width:100%;
    max-width:100%;
    padding:0;
    margin:0;
    background:transparent;
    box-sizing:border-box;
}

.menu-links-mobile.menu-open{
    display:block !important;
}

.mobile-panel{
    width:100%;
    box-sizing:border-box;
}

@media (max-width: 900px){
    .menu-pro .menu-topbar{
        grid-template-columns:1fr auto;
        gap:12px;
        padding:12px 14px;
    }

    .menu-pro .logo{
        font-size:20px;
        overflow:hidden;
        text-overflow:ellipsis;
    }

    .menu-toggle{
        display:block;
        justify-self:end;
        margin-left:auto;
    }

    .menu-nav-desktop,
    .menu-pro #usuarioMenu{
        display:none !important;
    }

    .menu-links-mobile{
        padding:0 14px 14px;
    }

    .menu-links-mobile .mobile-panel{
        background:rgba(255,255,255,0.06);
        border:1px solid rgba(255,255,255,0.08);
        border-radius:18px;
        padding:12px;
        backdrop-filter:blur(8px);
    }

    .menu-links-mobile a{
        display:block;
        text-decoration:none;
        color:#e5efff;
        font-size:15px;
        font-weight:800;
        padding:12px 14px;
        border-radius:14px;
        margin-bottom:8px;
        transition:background 0.2s ease, color 0.2s ease;
    }

    .menu-links-mobile a:last-of-type{
        margin-bottom:0;
    }

    .menu-mobile-group-toggle{
        display:flex;
    }

    .menu-mobile-submenu{
        display:none;
    }

    .menu-mobile-submenu.is-open{
        display:block;
    }

    .menu-links-mobile a:hover{
        background:rgba(255,255,255,0.08);
        color:#fff;
    }

    .menu-links-mobile a.active{
        background:#fff;
        color:#0b1f3a;
    }

    .menu-mobile-user{
        margin-top:12px;
        padding-top:12px;
        border-top:1px solid rgba(255,255,255,0.08);
        display:flex;
        flex-direction:column;
        gap:10px;
    }

    .menu-mobile-user span{
        color:#fff;
        font-weight:800;
        padding:10px 12px;
        border-radius:12px;
        background:rgba(255,255,255,0.06);
    }
}

.menu-auth-area{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
    min-width:max-content;
}

.lang-switch{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    position:relative;
}

.lang-switch select{
    min-width:72px;
    height:38px;
    padding:0 34px 0 12px;
    border:1px solid rgba(255,255,255,0.18);
    border-radius:12px;
    background-color:#17355d;
    color:#ffffff;
    font-size:13px;
    font-weight:800;
    cursor:pointer;
    outline:none;
    transition:all 0.2s ease;
    box-sizing:border-box;

    appearance:auto;
    -webkit-appearance:menulist;
    -moz-appearance:menulist;
}

.lang-switch select:hover{
    background-color:#1d426f;
    border-color:rgba(255,255,255,0.28);
}

.lang-switch select:focus{
    border-color:#93c5fd;
    box-shadow:0 0 0 3px rgba(147,197,253,0.20);
}

.lang-switch select option,
.lang-switch select optgroup{
    color:#111827 !important;
    background:#ffffff !important;
}

@media (max-width: 900px){
    .lang-switch select{
        min-width:64px;
        height:36px;
        padding:0 30px 0 10px;
        font-size:12px;
    }
}

/* =========================
   ALPHA BOSS GLOBAL ALERT
========================= */

.menu-boss-live{
    position:relative;
    border-color:rgba(250,204,21,0.62) !important;
    box-shadow:0 0 0 1px rgba(250,204,21,0.24), 0 0 0 8px rgba(250,204,21,0.08), 0 12px 28px rgba(245,158,11,0.18);
    animation:menuBossPulse 1.9s ease-in-out infinite;
}

.menu-boss-live-pill{
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin-left:8px;
    padding:4px 8px;
    border-radius:999px;
    background:linear-gradient(135deg,#fef3c7,#fde68a);
    color:#92400e;
    font-size:10px;
    font-weight:900;
    letter-spacing:0.08em;
    text-transform:uppercase;
    box-shadow:0 8px 16px rgba(245,158,11,0.2);
}

.menu-boss-live-pill::before{
    content:"";
    width:7px;
    height:7px;
    border-radius:50%;
    background:#ef4444;
    box-shadow:0 0 0 5px rgba(239,68,68,0.15);
}

.menu-boss-toast{
    position:fixed;
    right:18px;
    bottom:18px;
    width:min(380px, calc(100vw - 28px));
    padding:18px 18px 16px;
    border-radius:24px;
    color:#fff;
    background:linear-gradient(160deg,#131f45 0%, #1a2759 58%, #2a255f 100%);
    border:1px solid rgba(255,255,255,0.12);
    box-shadow:0 24px 48px rgba(9,13,35,0.4);
    z-index:1600;
    overflow:hidden;
    transform:translateY(16px);
    opacity:0;
    pointer-events:none;
    transition:opacity 0.22s ease, transform 0.22s ease;
}

.menu-boss-toast.is-visible{
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
}

.menu-boss-toast.is-leaving{
    opacity:0;
    transform:translateY(10px);
}

.menu-boss-toast-glow{
    position:absolute;
    inset:auto -30px -44px auto;
    width:180px;
    height:180px;
    border-radius:50%;
    background:radial-gradient(circle, rgba(250,204,21,0.38) 0%, rgba(250,204,21,0) 72%);
    pointer-events:none;
}

.menu-boss-toast-close{
    position:absolute;
    top:12px;
    right:12px;
    width:34px;
    height:34px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,0.08);
    color:#e5efff;
    font-size:22px;
    line-height:1;
    cursor:pointer;
    transition:background 0.2s ease, transform 0.2s ease;
}

.menu-boss-toast-close:hover{
    background:rgba(255,255,255,0.14);
    transform:scale(1.04);
}

.menu-boss-toast-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:7px 12px;
    border-radius:999px;
    background:rgba(255,255,255,0.08);
    color:#fde68a;
    font-size:11px;
    font-weight:900;
    letter-spacing:0.12em;
    text-transform:uppercase;
}

.menu-boss-toast-title{
    margin-top:14px;
    font-size:25px;
    font-weight:900;
    line-height:1.05;
}

.menu-boss-toast-name{
    margin-top:8px;
    font-size:16px;
    font-weight:800;
    color:#fef3c7;
}

.menu-boss-toast-text{
    margin-top:10px;
    color:#dbeafe;
    font-size:14px;
    line-height:1.55;
    max-width:30ch;
}

.menu-boss-toast-actions{
    margin-top:16px;
    display:flex;
    justify-content:flex-start;
}

.menu-boss-toast-action{
    border:none;
    border-radius:14px;
    padding:12px 16px;
    background:linear-gradient(135deg,#f59e0b,#ef4444);
    color:#fff;
    font-size:14px;
    font-weight:900;
    cursor:pointer;
    box-shadow:0 14px 28px rgba(239,68,68,0.22);
    transition:transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-boss-toast-action:hover{
    transform:translateY(-1px);
    box-shadow:0 18px 32px rgba(239,68,68,0.28);
}

@keyframes menuBossPulse{
    0%, 100%{
        box-shadow:0 0 0 1px rgba(250,204,21,0.24), 0 0 0 8px rgba(250,204,21,0.08), 0 12px 28px rgba(245,158,11,0.16);
    }
    50%{
        box-shadow:0 0 0 1px rgba(250,204,21,0.36), 0 0 0 12px rgba(250,204,21,0.12), 0 18px 36px rgba(245,158,11,0.26);
    }
}

@media (max-width: 900px){
    .menu-boss-live-pill{
        margin-left:6px;
        padding:4px 7px;
        font-size:9px;
    }

    .menu-boss-toast{
        left:14px;
        right:14px;
        bottom:14px;
        width:auto;
        padding:16px 16px 14px;
        border-radius:20px;
    }

    .menu-boss-toast-title{
        font-size:22px;
    }

    .menu-boss-toast-text{
        max-width:none;
    }

    .menu-boss-toast-action{
        width:100%;
        justify-content:center;
    }
}
