/* MBeat Category Carousel - Horizontal Top Fijo */

/* --- 1. CONFIGURACIÓN BASE --- */
.mbeat-carousel-wrapper {
    width: 100% !important;
    background: #0000 !important;
    overflow: hidden !important;
    z-index: 9999;
}

.mbeat-carousel-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    height: 100% !important;
    will-change: transform;
}

.mbeat-cat-item {
    flex: 0 0 140px !important;
    width: 140px !important;
    min-width: 140px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    background: #0000 !important;
    padding: 10px !important;
    transition: background 0.3s ease;
}

.mbeat-cat-item:hover { background: #1111 !important; }

/* OCULTAR IMÁGENES EN EL MENÚ PRINCIPAL (Solo Escritorio) */
@media (min-width: 1025px) {
    .mbeat-cat-item img {
        display: none !important;
    }

    .mbeat-cat-item span {
        font-size: 16px !important;
    }

    

    .mbeat-carousel-track {
        justify-content: center !important;
        transform: none !important;
    }



/* --- 2. DISEÑO PARA MÓVIL (Carrusel fijo abajo) --- */
@media (max-width: 1024px) {
    .mbeat-carousel-wrapper {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        height: 85px !important;
        background: #000 !important;
        z-index: 99999 !important;
        border-top: 1px solid #333 !important;
        border-bottom: none !important;
        overflow: hidden !important;
        width: 100% !important;
        margin: 0 !important;
        padding-bottom: env(safe-area-inset-bottom) !important;
    }

    .mbeat-carousel-track {
        display: flex !important;
        flex-wrap: nowrap !important;
        height: 100% !important;
        will-change: transform;
    }

    .mbeat-carousel-wrapper .mbeat-cat-item img {
        width: 35px !important;
        height: 35px !important;
        display: block !important;
        margin: 0 auto 4px auto !important;
    }

    .mbeat-carousel-wrapper .mbeat-cat-item {
        flex: 0 0 90px !important;
        width: 90px !important;
        min-width: 90px !important;
        height: 100% !important;
        padding: 8px 5px !important;
        border-right: 1px solid #1a1a1a !important;
    }

    .mbeat-carousel-wrapper .mbeat-cat-item span {
        font-size: 9px !important;
        color: #fff !important;
        white-space: normal !important;
        word-break: break-word !important;
        width: 80px !important;
        text-align: center !important;
        line-height: 1.1 !important;
    }

    body {
        padding-bottom: 85px !important;
        padding-top: 0 !important;
    }
}

.mbeat-cat-item span {
    font-size: 11px !important;
    color: #ffff !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    text-align: center !important;
}

/* --- 3. MODAL --- */
.mbeat-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999 !important;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.mbeat-modal.active { display: flex; }

.mbeat-modal-box {
    background: #ffff;
    width: 90%;
    max-width: 1000px;
    max-height: 80vh;
    overflow: hidden;
}

.mbeat-modal-header {
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.mbeat-modal-header h3 {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 20px;
    margin: 0;
    color: #000;
}

.mbeat-modal-close {
    font-size: 35px;
    background: none;
    border: none;
    cursor: pointer;
    color: #000;
}

.mbeat-modal-body {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

.mbeat-subcats ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    list-style: none;
    padding: 0;
}

.mbeat-subcats li a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 20px !important;
    background: #f9f9f9 !important;
    text-decoration: none !important;
    border: 1px solid #eee !important;
}

.mbeat-subcats li a:hover { background: #000 !important; }
.mbeat-subcats li a:hover span { color: #fff !important; }

.mbeat-subcats img {
    width: 60px !important;
    height: 60px !important;
    margin-bottom: 10px !important;
    display: block !important;
}

.mbeat-subcats span {
    font-size: 14px !important;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .mbeat-subcats ul { grid-template-columns: repeat(2, 1fr); }
}

/* --- 4. SHORTCODE INDIVIDUAL --- */
.mbeat-single-cat-wrapper {
    display: block;
    margin: 20px 0;
    text-align: center;
}

.mbeat-single-cat-wrapper .mbeat-cat-item {
    position: relative !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: auto !important;
    background: transparent !important;
    padding: 0 !important;
}

.mbeat-single-cat-wrapper .mbeat-cat-item img {
    display: block !important;
    width: 150px !important;
    height: 150px !important;
    margin: 0 auto 15px auto !important;
    object-fit: cover;
    border-radius: 15px;
}

.mbeat-single-cat-wrapper .mbeat-cat-item span {
    color: #333 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
}

.mbeat-single-cat-wrapper .mbeat-cat-item:hover {
    background: transparent !important;
}