/**
 * Mobile Bottom Navigation Menu
 * Estilo GelatoMix con iconos y texto
 */

/* ============================================
   BOTTOM NAVIGATION BAR (MÓVIL)
   ============================================ */
@media (max-width: 768px) {

    /* Crear espacio para el bottom nav */
    body {
        padding-bottom: 70px;
    }

    /* Bottom Navigation Container */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9998;
        background: #fff;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        padding: 0.5rem 0;
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    /* Nav Item */
    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        padding: 0.375rem 0.75rem;
        text-decoration: none;
        color: #6b7280;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        flex: 1;
        min-width: 0;
    }

    .bottom-nav-item.active {
        color: #0ea5e9;
    }

    .bottom-nav-item:active {
        transform: scale(0.95);
    }

    /* FAB Central de WhatsApp */
    .bottom-nav-fab {
        position: relative;
        margin-top: -20px;
    }

    .bottom-nav-fab .fab-circle {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
        border: 3px solid #ffffff;
        transition: transform 0.3s ease;
    }

    .bottom-nav-fab .fab-circle svg {
        width: 24px;
        height: 24px;
        fill: #ffffff;
    }

    /* Icon */
    .bottom-nav-item .nav-icon {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .bottom-nav-item svg {
        width: 100%;
        height: 100%;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
    }

    .bottom-nav-item.active svg {
        stroke-width: 2.5;
    }

    /* Text */
    .bottom-nav-item .nav-text {
        font-size: 0.7rem;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    /* Hover effect */
    @media (hover: hover) {
        .bottom-nav-item:hover {
            color: #0ea5e9;
        }
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 360px) {
    .bottom-nav-item {
        padding: 0.375rem 0.5rem;
    }

    .bottom-nav-item .nav-icon {
        width: 20px;
        height: 20px;
    }

    .bottom-nav-item .nav-text {
        font-size: 0.65rem;
    }
}

/* Desktop - Ocultar bottom nav */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }

    body {
        padding-bottom: 0 !important;
    }
}