/* ========================================================================== */
/* QRCLAN — MENÚ HAMBURGUESA Y PANEL DE NAVEGACIÓN AERO GLASS (GPU 120FPS)    */
/* ========================================================================== */

.nav-right-cluster {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1002;
}

.menu-toggle#mobile-menu {
    display: none !important;
}

/* Botón Hamburguesa Aero Glass */
.aero-burger-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 40px;
    padding: 0 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0.08) 49%, rgba(0, 20, 60, 0.24) 50%, rgba(0, 229, 255, 0.18) 100%);
    color: #ffffff;
    font-family: var(--font-body, 'Trebuchet MS', sans-serif);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.4px;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 2px 8px rgba(0, 18, 55, 0.4);
    text-shadow: 0 1px 3px rgba(0, 18, 54, 0.9);
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    transition:
        transform 0.16s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.16s ease,
        color 0.16s ease,
        border-color 0.16s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    z-index: 1005;
}

.aero-burger-btn:hover,
.aero-burger-btn:focus-visible {
    color: #001940;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: #ffffff;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.45) 49%, rgba(68, 255, 0, 0.45) 50%, rgba(0, 229, 255, 0.75) 100%);
    box-shadow:
        0 0 14px rgba(0, 229, 255, 0.65),
        inset 0 1px 2px #ffffff;
    transform: translate3d(0, -1px, 0);
    outline: none;
}

.aero-burger-btn[aria-expanded="true"] {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.4) 49%, rgba(0, 0, 0, 0.05) 50%, rgba(255, 255, 255, 0.4) 100%),
        linear-gradient(180deg, #77FF00 0%, #1DB800 100%);
    color: #002200;
    border-color: #ffffff;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
    box-shadow:
        0 0 16px rgba(68, 255, 0, 0.6),
        inset 0 1px 2px #ffffff;
}

.aero-burger-bars {
    width: 18px;
    height: 12px;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    flex-shrink: 0;
}

.aero-burger-bars span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 3px;
    background: currentColor;
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.14s ease;
    transform-origin: center;
    will-change: transform, opacity;
}

.aero-burger-btn[aria-expanded="true"] .aero-burger-bars span:nth-child(1) {
    transform: translate3d(0, 5px, 0) rotate(45deg);
}

.aero-burger-btn[aria-expanded="true"] .aero-burger-bars span:nth-child(2) {
    opacity: 0;
}

.aero-burger-btn[aria-expanded="true"] .aero-burger-bars span:nth-child(3) {
    transform: translate3d(0, -5px, 0) rotate(-45deg);
}

.aero-burger-label {
    font-family: var(--font-body, 'Trebuchet MS', sans-serif);
    font-weight: 700;
    line-height: 1;
}

/* ========================================================================== */
/* PANEL DESPLEGABLE (COMPOSITOR-ONLY, 0% BACKDROP-FILTER REPAINT LAG)        */
/* ========================================================================== */
.aero-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 12, 38, 0.58);
    z-index: 99995;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    will-change: opacity;
    backface-visibility: hidden;
    transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s linear;
}

.aero-drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.aero-burger-drawer {
    position: fixed;
    top: 76px;
    right: 32px;
    width: calc(100vw - 32px);
    max-width: 340px;
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    z-index: 99996;
    border-radius: 16px;
    border: 2px solid #ffffff;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 38%, rgba(0, 20, 60, 0.4) 39%, rgba(0, 140, 255, 0.18) 100%),
        linear-gradient(180deg, #082B75 0%, #041642 100%);
    box-shadow:
        0 0 0 2px #0044AA,
        0 18px 42px rgba(0, 8, 28, 0.82),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    color: #ffffff;
    padding: 18px;
    transform: translate3d(0, -8px, 0) scale3d(0.97, 0.97, 1);
    transform-origin: top right;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    will-change: transform, opacity;
    backface-visibility: hidden;
    contain: layout style paint;
    transition:
        transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.16s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.2s linear;
}

.aero-burger-drawer.is-open {
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.aero-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(160, 235, 255, 0.28);
}

.aero-drawer-title {
    font-family: var(--font-head, 'Bricolage Grotesque', sans-serif);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #C2EEFF;
    text-transform: uppercase;
}

.aero-drawer-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.aero-drawer-close:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.06);
}

.aero-drawer-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aero-drawer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.aero-drawer-link:hover,
.aero-drawer-link:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    border-color: #ffffff;
    transform: translate3d(2px, 0, 0);
    outline: none;
}

.aero-drawer-link.active {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.3) 49%, rgba(0,0,0,0.05) 50%, rgba(255,255,255,0.4) 100%),
        linear-gradient(180deg, #77FF00 0%, #1DB800 100%);
    color: #022000;
    border-color: #ffffff;
}

.aero-drawer-link-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.aero-drawer-link-left i {
    width: 20px;
    text-align: center;
    font-size: 1.05rem;
    color: #00E5FF;
}

.aero-drawer-link.active .aero-drawer-link-left i {
    color: #022000;
}

.aero-drawer-link-name {
    font-family: var(--font-head, 'Bricolage Grotesque', sans-serif);
    font-weight: 800;
    font-size: 1.05rem;
    display: block;
    line-height: 1.15;
}

.aero-drawer-link-desc {
    font-size: 0.8rem;
    color: #B8E6FF;
    display: block;
}

.aero-drawer-link.active .aero-drawer-link-desc {
    color: #053300;
}

.aero-drawer-divider {
    height: 1px;
    background: rgba(160, 235, 255, 0.24);
    margin: 14px 0;
}

.aero-drawer-channels-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #88DCFF;
    margin-bottom: 8px;
    display: block;
}

.aero-drawer-channels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.aero-channel-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    font-family: var(--font-head, 'Bricolage Grotesque', sans-serif);
    font-weight: 800;
    font-size: 0.88rem;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.aero-channel-pill.whatsapp {
    background: linear-gradient(180deg, #25D366 0%, #118C42 100%);
}

.aero-channel-pill.discord {
    background: linear-gradient(180deg, #5865F2 0%, #3742B5 100%);
}

.aero-channel-pill:hover {
    transform: translate3d(0, -2px, 0);
    filter: brightness(1.08);
}

/* Enlaces principales visibles dentro del drawer solo en móvil */
.aero-drawer-mobile-main {
    display: none;
}

@media (max-width: 768px) {
    .aero-burger-drawer {
        top: 68px;
        right: 14px;
        left: 14px;
        width: auto;
        max-width: none;
    }

    .aero-drawer-mobile-main {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 14px;
        padding-bottom: 14px;
        border-bottom: 1px solid rgba(160, 235, 255, 0.24);
    }

    .aero-mobile-main-link {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 9px 10px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.35);
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
        font-family: var(--font-head, 'Bricolage Grotesque', sans-serif);
        font-weight: 700;
        font-size: 0.9rem;
        text-decoration: none;
    }

    .aero-mobile-main-link.active {
        background: #44FF00;
        color: #022000;
        border-color: #ffffff;
    }

    body:not(.force-desktop-mode) nav:not(.mobile-bottom-nav):not([aria-label="Navegación del pie de página"]) .menu-links#nav-links {
        display: none !important;
    }
}
