/* =========================================================
   ESTILOS EXCLUSIVOS PARA MENU BARRAS
   Ruta: php/utilidades/menu-barras.css
   ========================================================= */

/* --- EN ESCRITORIO (PC) --- */
@media screen and (min-width: 769px) {
    /* Ocultar barra móvil inferior en pantallas grandes */
    #cgt-menu-inferior {
        display: none !important;
    }
}

/* Forzar ocultar al imprimir */
@media print {
    #cgt-menu-inferior { display: none !important; }
}

/* --- EN MÓVILES (PANTALLAS <= 768px) --- */
@media screen and (max-width: 768px) {
    /* Padding para que el contenido de la web no quede tapado por la barra */
    body {
        padding-bottom: 75px !important; 
    }

    /* 1. Ocultar todos los botones de navegación inyectados por PHP */
    .cgt-menu-item,
    .cgt-btn-nav {
        display: none !important;
    }

    /* 2. Ocultar enlaces estándar del menú navegación salvo el texto informativo */
    .menu-item:not(.info-envio-express) {
        display: none !important;
    }

    /* 3. Asegurar que el elemento con la leyenda "Recibes en 2 horas" se muestre centrado */
    .info-envio-express {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 8px 10px !important;
        font-size: 13px !important;
    }

    /* 4. Mostrar y fijar la barra móvil estilo App abajo */
    #cgt-menu-inferior {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        z-index: 2147483647 !important;
        height: 65px !important;
        background: var(--bg-card, #001233) !important; 
        border-top: 1px solid var(--border-light, #1e293b) !important;
        width: 100% !important;
        align-items: center !important;
        justify-content: space-around !important;
        transition: background 0.4s ease !important;
        box-shadow: 0 -10px 20px rgba(0,0,0,0.05) !important; 
    }

    /* Colores y animaciones de los íconos de la barra */
    .cgt-app-link {
        color: var(--text-muted, #64748b) !important;
        text-decoration: none !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        font-size: 9px;
        font-weight: 700;
    }

    .cgt-app-link i {
        font-size: 20px;
        transition: all 0.3s ease;
    }

    .cgt-app-link:hover, .cgt-app-link:active {
        color: var(--color-primary, #38bdf8) !important;
    }

    .cgt-app-link:hover i {
        transform: translateY(-3px);
    }
}