/* ===========================================================
   SOULFULSYNC — MOBILE MENU PANEL (SLIDE)
   MOBILE ONLY — FINAL STABLE (2026)
   =========================================================== */

/* --------------------------------------------------------------
   MOBILE MENU (≤1023px)
--------------------------------------------------------------- */
@media (max-width: 1023px) {

    /* PANEL LATERAL */
    .ssx-mobile-menu-panel {
        position: fixed;
        top: 0;
        right: -100%;
        width: 82%;
        max-width: 360px;
        height: 100%;
        background: #0c0d12;
        z-index: 100000;
        padding: 20px 18px 18px;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        transition: right 0.3s ease;
        box-sizing: border-box;
    }

    /* PANEL ACTIVO */
    .ssx-mobile-menu-panel.active {
        right: 0;
    }

    /* ----------------------------------------------------------
       HEADER DEL MENÚ
    ---------------------------------------------------------- */

    .sse-mobile-title {
        margin: 0 0 22px;
        padding-right: 48px;
        font-size: 20px;
        font-weight: 600;
        color: #ffffff;
        opacity: 0.95;
    }

    .sse-mobile-close {
        position: absolute;
        top: 14px;
        right: 14px;
        width: 40px;
        height: 40px;
        font-size: 28px;
        background: rgba(255,255,255,0.14);
        border: none;
        border-radius: 12px;
        color: #ffffff;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    .sse-mobile-close:hover,
    .sse-mobile-close:active {
        background: rgba(255,255,255,0.22);
    }

    /* ----------------------------------------------------------
       NAVEGACIÓN
    ---------------------------------------------------------- */

    .sse-mobile-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .sse-mobile-list li a {
        display: block;
        padding: 12px 0;
        font-size: 16px;
        font-weight: 500;
        text-decoration: none;
        color: #ffffff;
        opacity: 0.9;
    }

    .sse-mobile-list li a:hover {
        opacity: 1;
    }

    /* ----------------------------------------------------------
       IDIOMAS (POLYLANG)
    ---------------------------------------------------------- */

    .sse-mobile-lang {
        margin-top: auto;
        padding-top: 18px;
        border-top: 1px solid rgba(255,255,255,0.12);
        display: flex;
        justify-content: center;
    }

    /* SELECT BASE */
    .sse-mobile-lang select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;

        min-width: 160px;
        padding: 10px 40px 10px 14px;
        border-radius: 10px;

        font-size: 15px;
        font-weight: 500;

        background-color: #ffffff;
        color: #111111;

        border: 1px solid rgba(0,0,0,0.25);
        outline: none;
        cursor: pointer;

        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 18px;
    }

    /* Flecha LIGHT */
    .sse-mobile-lang select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23111111' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    }

    /* DARK MODE */
    body.dark-mode .ssx-mobile-menu-panel .sse-mobile-lang select {
        background-color: #1a1c24;
        color: #ffffff;
        border-color: rgba(255,255,255,0.25);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    }

    /* ----------------------------------------------------------
       OVERLAY
    ---------------------------------------------------------- */

    #sse-mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        display: none;
        z-index: 99990;
    }

    #sse-mobile-overlay.active {
        display: block;
    }
}

/* --------------------------------------------------------------
   SAFETY: HIDE ON DESKTOP
--------------------------------------------------------------- */
@media (min-width: 1024px) {
    .ssx-mobile-menu-panel,
    #sse-mobile-overlay {
        display: none !important;
    }
}

/* ===========================================================
   FIX CONTRASTE HEADER MENÚ — LIGHT MODE
   =========================================================== */

/* Asegura contraste del header del menú en light mode */
body:not(.dark-mode) .ssx-mobile-menu-panel .sse-mobile-title {
    color: #ffffff;
    opacity: 1;
}

/* Botón cerrar (X) — visible y elegante en light mode */
body:not(.dark-mode) .ssx-mobile-menu-panel .sse-mobile-close {
    background: rgba(255,255,255,0.22);
    color: #ffffff;
}

/* Hover en light */
body:not(.dark-mode) .ssx-mobile-menu-panel .sse-mobile-close:hover {
    background: rgba(255,255,255,0.32);
}

