@media (max-width: 768px) {
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        padding: 0.5rem;
        display: block !important;
        height: 65px;
    }
    .content-wrapper {
        padding-bottom: 80px !important;
    }
    .bottom-nav-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.25rem;
        width: 100%;
    }
    .bottom-nav-item {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        color: #666;
        text-decoration: none;
        font-size: 0.75rem;
        padding: 0.5rem 0.25rem;
        text-align: center;
        min-width: 0;
        transition: color 0.3s ease;
    }
    .bottom-nav-item i {
        font-size: 1.25rem;
        flex-shrink: 0;
        display: inline-block !important;
    }
    .bottom-nav-item span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
        display: block !important;
    }
    .bottom-nav-item.active {
        color: hsl(var(--p));
        font-weight: 500;
    }
    /* Asegurar que la barra de navegación siempre esté visible */
    .bottom-nav, .bottom-nav-grid, .bottom-nav-item {
        visibility: visible !important;
        opacity: 1 !important;
    }
    /* Ajustes específicos para el formulario */
    form .form-control:last-child {
        margin-bottom: 100px !important;
    }
    .btn-primary {
        margin-bottom: 80px !important;
    }
}
