/* =========================================================
   POKENEXO // NAVEGACIÓN
   ========================================================= */

.navbar {
    position: fixed;

    top: 24px;
    right: 30px;

    z-index: 1000;

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;
}


/* =========================================================
   BOTÓN DEL MENÚ
   ========================================================= */

.navbar-toggle {
    position: relative;

    min-width: 118px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 11px;

    padding: 0 15px;

    border:
        2px solid rgba(30, 45, 65, 0.48);

    color:
        #18212d;

    background:
        rgba(255, 255, 255, 0.68);

    cursor: pointer;

    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 700;

    letter-spacing: 0.17em;

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.72);

    transition:
        background 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.navbar-toggle:hover {
    background:
        rgba(255, 255, 255, 0.80);

    border-color:
        rgba(30, 45, 65, 0.62);

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.86);
}

.navbar-toggle:focus-visible {
    outline:
        2px solid #3f6df6;

    outline-offset:
        4px;
}

.navbar-toggle[aria-expanded="true"] {
    background:
        rgba(255, 255, 255, 0.80);

    border-color:
        rgba(30, 45, 65, 0.62);
}


/* =========================================================
   ICONO DEL MENÚ
   ========================================================= */

.navbar-toggle-icon {
    width: 15px;
    height: 11px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    flex-shrink: 0;
}

.navbar-toggle-icon span {
    display: block;

    width: 100%;
    height: 1px;

    background:
        rgba(24, 33, 45, 0.88);

    transform-origin: center;

    transition:
        transform 180ms ease,
        opacity 180ms ease;
}

.navbar-toggle[aria-expanded="true"] .navbar-toggle-icon span:nth-child(1) {
    transform:
        translateY(5px)
        rotate(45deg);
}

.navbar-toggle[aria-expanded="true"] .navbar-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle[aria-expanded="true"] .navbar-toggle-icon span:nth-child(3) {
    transform:
        translateY(-5px)
        rotate(-45deg);
}


/* =========================================================
   PANEL DEL MENÚ
   ========================================================= */

.navbar-menu {
    position: absolute;

    top: calc(100% + 9px);
    right: 0;

    width: 248px;

    padding: 13px 12px 12px;

    border:
        2px solid rgba(30, 45, 65, 0.72);

    background:
        rgba(255, 255, 255, 1);

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.88);

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(-6px);

    transform-origin: top right;

    pointer-events: none;

    transition:
        opacity 150ms ease,
        visibility 150ms ease,
        transform 150ms ease;
}

.navbar-menu.is-open {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(0);

    pointer-events: auto;
}


/* =========================================================
   MARCO DEL PANEL
   ========================================================= */

.navbar-menu::before {
    content: "";

    position: absolute;

    inset: 2px;

    border:
        1px solid rgba(255, 255, 255, 0.78);

    pointer-events: none;
}

.navbar-menu::after {
    content: "";

    position: absolute;

    top: 5px;
    bottom: 5px;
    left: 5px;
    right: 5px;

    border:
        1px solid rgba(30, 45, 65, 0.22);

    pointer-events: none;
}


/* =========================================================
   CABECERA DEL PANEL
   ========================================================= */

.navbar-menu-header {
    position: relative;
    z-index: 2;

    padding: 3px 11px 8px;

    border-bottom:
        1px solid rgba(30, 45, 65, 0.18);
}

.navbar-menu-label {
    font-size: 0.55rem;

    font-weight: 700;

    letter-spacing: 0.17em;

    color:
        rgba(24, 33, 45, 0.58);
}


/* =========================================================
   ENLACES
   ========================================================= */

.navbar-menu-links {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;

    gap: 0;

    padding-top: 7px;
}

.navbar-link {
    position: relative;

    min-height: 40px;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 0 10px;

    border: 0;

    color:
        rgba(24, 33, 45, 0.78);

    background:
        transparent;

    text-decoration: none;

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.12em;

    transition:
        color 120ms ease,
        background 120ms ease,
        transform 120ms ease;
}

.navbar-link:hover {
    color:
        #18212d;

    background:
        rgba(255, 255, 255, 0.34);

    transform:
        translateX(2px);
}

.navbar-link:focus-visible {
    outline:
        2px solid #3f6df6;

    outline-offset:
        -2px;
}

.navbar-link.is-active {
    color:
        #18212d;

    background:
        rgba(255, 255, 255, 0.22);
}


/* =========================================================
   INDICADOR DE SELECCIÓN
   ========================================================= */

.navbar-link-indicator {
    width: 15px;
    height: 12px;

    flex-shrink: 0;

    display: flex;
    align-items: center;

    color:
        transparent;

    font-size: 0.72rem;
    font-weight: 700;

    line-height: 1;

    transition:
        color 120ms ease,
        transform 120ms ease;
}

.navbar-link-indicator::before {
    content: "▶";
}

.navbar-link:hover .navbar-link-indicator {
    color:
        #18212d;

    transform:
        translateX(2px);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .navbar {
        top: 18px;
        right: 18px;
    }

    .navbar-toggle {
        min-width: 106px;
        height: 40px;

        padding: 0 13px;

        font-size: 0.64rem;
    }

    .navbar-menu {
        width:
            min(248px, calc(100vw - 36px));
    }
}


@media (max-width: 480px) {

    .navbar {
        top: 14px;
        right: 14px;
    }

    .navbar-menu {
        width:
            calc(100vw - 28px);
    }
}