
/* =====================================
   MUNDOLIGAS - NAVEGACIÓN PREMIUM
===================================== */

.ml-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: rgba(9, 18, 34, 0.98);
    border-bottom: 1px solid rgba(56, 189, 248, 0.15);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.ml-header * {
    box-sizing: border-box;
}

.ml-barra {
    width: 100%;
    max-width: 1450px;
    min-height: 72px;
    margin: 0 auto;
    padding: 0 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* LOGOTIPO */

.ml-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;

    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.7px;
    text-decoration: none;
}

.ml-logo b {
    color: #38bdf8;
}

.ml-logo-icono {
    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;
    font-size: 23px;

    background: rgba(56, 189, 248, 0.10);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 11px;
}

/* MENÚ DE COMPUTADORA */

.ml-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.ml-link {
    position: relative;
    display: inline-flex;
    align-items: center;

    padding: 12px 13px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 8px;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.ml-link:hover {
    color: #ffffff;
    background: rgba(56, 189, 248, 0.09);
}

.ml-link.ml-activo {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.10);
}

.ml-link.ml-activo::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 4px;
    height: 2px;
    border-radius: 5px;
    background: #38bdf8;
}

.ml-flecha {
    display: none;
}

/* BOTÓN DE TRES LÍNEAS */

.ml-hamburguesa {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;

    width: 46px;
    height: 46px;
    flex-shrink: 0;

    padding: 0;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 12px;

    cursor: pointer;
    transition: background 0.2s ease;
}

.ml-hamburguesa:hover {
    background: rgba(56, 189, 248, 0.22);
}

.ml-hamburguesa span {
    display: block;
    width: 22px;
    height: 2px;
    background: #38bdf8;
    border-radius: 5px;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

/* =====================================
   TABLET Y CELULAR
===================================== */

@media (max-width: 900px) {

    .ml-barra {
        min-height: 66px;
        padding: 0 18px;
        gap: 12px;
    }

    .ml-logo {
        font-size: 21px;
    }

    .ml-hamburguesa {
        display: flex;
        margin-left: auto;
    }

    .ml-nav {
        display: none;

        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 5px;

        width: 100%;
        padding: 16px;

        background: #0b1424;
        border-top: 1px solid rgba(56, 189, 248, 0.15);
        border-bottom: 1px solid rgba(56, 189, 248, 0.25);
        box-shadow: 0 20px 35px rgba(0, 0, 0, 0.3);
    }

    .ml-nav.ml-visible {
        display: flex;
        animation: mlDesplegar 0.22s ease-out;
    }

    .ml-link {
        width: 100%;
        min-height: 52px;
        padding: 14px 18px;

        justify-content: space-between;
        color: #e2e8f0;
        font-size: 16px;
        font-weight: 600;

        border-radius: 10px;
    }

    .ml-link:hover,
    .ml-link.ml-activo {
        color: #ffffff;
        background: rgba(56, 189, 248, 0.13);
    }

    .ml-link.ml-activo {
        border-left: 3px solid #38bdf8;
    }

    .ml-link.ml-activo::after {
        display: none;
    }

    .ml-flecha {
        display: inline;
        color: #38bdf8;
        font-size: 24px;
    }

    /* Transformación de ☰ a X */

    .ml-hamburguesa.ml-abierto span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .ml-hamburguesa.ml-abierto span:nth-child(2) {
        opacity: 0;
    }

    .ml-hamburguesa.ml-abierto span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@keyframes mlDesplegar {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ml-nav,
    .ml-hamburguesa span,
    .ml-link {
        animation: none;
        transition: none;
    }
}
